/* timeline.css - Línea de tiempo tipo infografía vertical */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Línea central */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 6px;
    background-color: #333;
    border-radius: 3px;
    transform: translateX(-50%);
    z-index: 1;
}

/* Cada paso */
.timeline-step {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
}

    /* Alineación izquierda y derecha */
    .timeline-step.left {
        left: 0;
        text-align: right;
    }

    .timeline-step.right {
        left: 50%;
        text-align: left;
    }

/* Recuadro de contenido */
.timeline-content {
    background: #fff;
    display: inline-block;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
    max-width: 320px;
}

/* Número y título */
.timeline-number {
    font-size: 1.6rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

/* Puntos de conexión */
.timeline-dot {
    position: absolute;
    top: 30px;
    left: 100%;
    width: 20px;
    height: 20px;
    background: #ffe066;
    border-radius: 50%;
    border: 4px solid #fff;
    z-index: 3;
    transform: translateX(-50%);
}

.timeline-step.right .timeline-dot {
    left: 0;
    transform: translateX(-50%);
}

    /* Colores alternos */
    .timeline-dot.bg-warning {
        background: #ffe066;
    }

    .timeline-dot.bg-danger {
        background: #ff6f61;
    }

/* Conector entre pasos */
.timeline-step.left .timeline-content::after {
    content: "";
    position: absolute;
    top: 30px;
    right: -14px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

.timeline-step.right .timeline-content::after {
    content: "";
    position: absolute;
    top: 30px;
    left: -14px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
}

.info-desc {
    font-family: "Work Sans", sans-serif;
    font-size: 14px;
    font-style: italic;
    font-weight: 400;
    line-height: 121%; /* 14.52px */
    letter-spacing: -0.6px;
    text-align: left;
    margin-bottom: 10px;
}

.info-title {
    font-family: "Work Sans", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.4px;
}

h2 {
    font-family: "Work Sans", sans-serif;
    font-size: 42px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -2.08px;
    margin-top: 0;
    margin-bottom: 8px;
}

hr {
    height: 2px;
    background-color: #000;
    border: none;
    margin: 24px 0;
}

/* Adaptación para móviles */
@media screen and (max-width: 768px) {
    .timeline-step {
        width: 100%;
        text-align: left !important;
        padding-left: 60px;
    }

    .timeline-line {
        left: 30px;
    }

    .timeline-dot {
        left: 30px;
        transform: translateX(-50%);
    }

    .timeline-step.left,
    .timeline-step.right {
        left: 0;
    }

    .timeline-content {
        max-width: 90%;
    }

    .timeline-step .timeline-content::after {
        display: none;
    }
}
