  /* Contenedor de la tarjeta */
  .custom-cards {
    position: relative;
}

/* Establecer relleno basado en si es impar o par */
.custom-cards:nth-child(odd) {
    padding: 18px 0 18px 18px;
}

.custom-cards:nth-child(even) {
    padding: 18px 18px 18px 0;
}

/* Global ::before */
.custom-cards::before {
    content: "";
    position: absolute;
    width: 50%;
    border: solid #006400;
}

/* Establecer el borde en la parte superior, inferior e izquierda */
.custom-cards:nth-child(odd)::before {
    left: 0px;
    top: -4.5px;
    bottom: -4.5px;
    border-width: 5px 0 5px 5px;
    border-radius: 50px 0 0 50px;
}

/* Establecer el borde en la parte superior, inferior y derecha */
.custom-cards:nth-child(even)::before {
    right: 0;
    top: 0;
    bottom: 0;
    border-width: 5px 5px 5px 0;
    border-radius: 0 50px 50px 0;
}

/* Eliminar el borde si es la primera tarjeta */
.custom-cards:first-child::before {
    border-top: 0;
    border-top-left-radius: 0;
}

/* Eliminar el borde si es la última tarjeta y es impar */
.custom-cards:last-child:nth-child(odd)::before {
    border-bottom: 0;
    border-bottom-left-radius: 0;
}

/* Eliminar el borde si es la última tarjeta y es par */
.custom-cards:last-child:nth-child(even)::before {
    border-bottom: 0;
    border-bottom-right-radius: 0;
}

/* Información de la línea de tiempo */
.custom-info {
    display: flex;
    flex-direction: column;
    background: #fff;
    color: gray;
    border-radius: 10px;
    padding: 10px;
    border: 2px solid #006400;
    /* Contorno verde */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Suaviza la animación */
    position: relative;
    /* Necesario para que z-index funcione */
    z-index: 10;
    /* Asegura que esté por encima de otros elementos */
}

.custom-info:hover {
    transform: translateY(-10px) scale(1.05);
    /* Elevar y escalar ligeramente */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    /* Agregar sombra */
    z-index: 20;
    /* Aumenta el z-index al interactuar */
}


/* Título de la tarjeta */
.custom-title {
    color: #000;
    /* Color del texto */
    position: relative;
    font-weight: bold;
    /* Hace el texto negrita */
    font-size: 1.2em;
    /* Tamaño de la letra adaptable */
}

/* Punto de la línea de tiempo */
.custom-title::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 999px;
    border: 3px solid #006400;
}

/* Texto a la derecha si la tarjeta es par */
.custom-cards:nth-child(even)>.custom-info>.custom-title {
    text-align: right;
}

/* Colocar el punto a la izquierda si la tarjeta es impar */
.custom-cards:nth-child(odd)>.custom-info>.custom-title::before {
    left: -31px;
}

/* Colocar el punto a la derecha si la tarjeta es par */
.custom-cards:nth-child(even)>.custom-info>.custom-title::before {
    right: -30px;
}

/* Estilos para el mensaje de no documentos */
.no-documents {
    background-color: #5fca49 !important;
    cursor: default !important;
    padding: 1rem !important;
}

.no-documents:hover {
    transform: none !important;
    box-shadow: none !important;
}

.no-documents p {
    margin: 0;
    font-size: 1rem;
}

.no-documents i {
    margin-bottom: 0.5rem;
    color: #000000;
}

/* Estilos para la linea de tiempo */
/* Asegúrate de que solo las listas de la línea de tiempo sean afectadas */
#timeline ol {
    margin: 0;
    list-style: none;
    padding: 0;
    --hue: 1;
    --unit: 1rem;
}

h1 {
    text-align: center;
}

p {
    line-height: 1.3;
}

.event-date {
    margin: 0 0 0.25rem;
    font-weight: bold;
}

.event-description {
    margin: 0;
}

/* Estilos específicos para la lista en la línea de tiempo */
#timeline li {
    --height: 7rem;
    position: relative;
    display: block;
    background-color: var(--color);
    /* Color de fondo dinámico */
    border-color: var(--color);
    padding: 1rem;
    margin: 2rem 0;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#timeline li::before {
    content: "";
    background-color: inherit;
    position: absolute;
    display: block;
    width: var(--unit);
    height: var(--unit);
    top: 100%;
    left: calc(50% - (var(--unit)/2));
}

#timeline li::after {
    content: "";
    position: absolute;
    display: block;
    top: calc(100% + var(--unit));
    left: calc(50% - (var(--unit)));
    border: var(--unit) solid transparent;
    border-top-color: inherit;
}

#timeline li:last-child::before,
#timeline li:last-child::after {
    content: none;
}

/* Definir los valores de --hue para cada elemento */
#timeline li:nth-child(1) {
    --color: #5fca49;
}

/* Primer color verde */
#timeline li:nth-child(2) {
    --color: #63cd4b;
}

/* Segundo color más claro */
#timeline li:nth-child(3) {
    --color: #68cf4d;
}

/* Tercer color más claro */
#timeline li:nth-child(4) {
    --color: #6cd24f;
}

#timeline li:nth-child(5) {
    --color: #70d451;
}

#timeline li:nth-child(6) {
    --color: #74d753;
}

#timeline li:nth-child(7) {
    --color: #78d955;
}

#timeline li:nth-child(8) {
    --color: #7cdc57;
}

#timeline li:nth-child(9) {
    --color: #80de59;
}

#timeline li:nth-child(10) {
    --color: #85e15b;
}

#timeline li:nth-child(11) {
    --color: #89e35d;
}

#timeline li:nth-child(12) {
    --color: #8de65f;
}

#timeline li:nth-child(13) {
    --color: #90e861;
}

#timeline li:nth-child(14) {
    --color: #94eb63;
}

#timeline li:nth-child(15) {
    --color: #98ed65;
}

#timeline li:nth-child(16) {
    --color: #9cf067;
}

#timeline li:nth-child(17) {
    --color: #a0f26a;
}

#timeline li:nth-child(18) {
    --color: #a4f56c;
}

#timeline li:nth-child(19) {
    --color: #a8f76e;
}

#timeline li:nth-child(20) {
    --color: #acfa70;
}

/* Ajustes para que los contenedores se acomoden de a dos */
@media (min-width: 550px) {
    #timeline li {
        margin: 1rem;
        width: calc(50% - 2rem); /* Cambiar el ancho para que quepan dos por fila */
        float: left;
        min-height: var(--height);
    }

    #timeline li:nth-child(2n+1)::before {
        top: calc(var(--height)/2 + var(--unit)/2);
        left: 100%;
    }

    #timeline li:nth-child(2n+1)::after {
        top: calc(var(--height)/2);
        left: calc(100% + (var(--unit)));
        border: var(--unit) solid transparent;
        border-left-color: inherit;
    }

    #timeline li:nth-child(2n)::before {
        top: calc(var(--height)/2 + var(--unit)/2);
        left: -1rem;
    }

    #timeline li:nth-child(2n)::after {
        top: calc(var(--height)/2);
        left: -3rem;
        border: var(--unit) solid transparent;
        border-right-color: inherit;
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    #timeline li {
        margin: 1rem;
        width: calc(33.33% - 2rem);
        float: left;
        min-height: 7rem;
    }

    #timeline li:nth-child(6n+4),
    #timeline li:nth-child(6n+5),
    #timeline li:nth-child(6n+6) {
        float: right;
    }

    #timeline li:nth-child(6n+1)::before,
    #timeline li:nth-child(6n+2)::before {
        top: calc(var(--height)/2 + var(--unit)/2);
        left: 100%;
    }

    #timeline li:nth-child(6n+1)::after,
    #timeline li:nth-child(6n+2)::after {
        top: 3.5rem;
        left: calc(100% + (var(--unit)));
        border: var(--unit) solid transparent;
        border-left-color: inherit;
    }

    #timeline li:nth-child(6n+4)::before,
    #timeline li:nth-child(6n+5)::before {
        top: calc(var(--height)/2 + var(--unit)/2);
        left: -1rem;
    }

    #timeline li:nth-child(6n+4)::after,
    #timeline li:nth-child(6n+5)::after {
        top: calc(var(--height)/2);
        left: -3rem;
        border: var(--unit) solid transparent;
        border-right-color: inherit;
    }
}

@media (min-width: 1200px) {
    #timeline ol {
        max-width: 1600px;
        margin: 0 auto;
    }

    #timeline li {
        margin: 1rem;
        width: calc(25% - 2rem);
        float: left;
        min-height: 7rem;
    }

    #timeline li:nth-child(8n+5),
    #timeline li:nth-child(8n+6),
    #timeline li:nth-child(8n+7),
    #timeline li:nth-child(8n+8) {
        float: right;
    }

    #timeline li:nth-child(8n+1)::before,
    #timeline li:nth-child(8n+2)::before,
    #timeline li:nth-child(8n+3)::before {
        top: calc(var(--height)/2 + var(--unit)/2);
        left: 100%;
    }

    #timeline li:nth-child(8n+1)::after,
    #timeline li:nth-child(8n+2)::after,
    #timeline li:nth-child(8n+3)::after {
        top: calc(var(--height)/2);
        left: calc(100% + (var(--unit)));
        border: var(--unit) solid transparent;
        border-left-color: inherit;
    }

    #timeline li:nth-child(8n+5)::before,
    #timeline li:nth-child(8n+6)::before,
    #timeline li:nth-child(8n+7)::before {
        top: calc(var(--height)/2 + var(--unit)/2);
        left: -1rem;
    }

    #timeline li:nth-child(8n+5)::after,
    #timeline li:nth-child(8n+6)::after,
    #timeline li:nth-child(8n+7)::after {
        top: calc(var(--height)/2);
        left: -3rem;
        border: var(--unit) solid transparent;
        border-right-color: inherit;
    }
}

/* Estilos para el li clickeable */
#timeline li:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Evitar que el hover del botón interfiera con el hover del li */
#timeline li:hover .btn-success {
    transform: none;
}