/* =========================
   TIMELINE
========================= */

.timeline {
    width: fit-content;
    max-width: 100%;
    margin: 60px auto 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 75px 32px minmax(280px, 430px);
    column-gap: 16px;
    align-items: stretch;
}

.timeline-time {
    padding-top: 6px;

    /*color de las horas*/
    color: var(--color-accent);
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
    text-align: right;
}

.timeline-marker {
    position: relative;

    display: flex;
    justify-content: center;

    min-height: 100%;
}

.timeline-marker::before {
    position: relative;
    z-index: 2;

    flex: 0 0 auto;

    width: 14px;
    height: 14px;
    margin-top: 4px;

    /*color de los circulos indicando hora*/
    border: 3px solid var(--color-accent);
    border-radius: 50%;

    background-color: var(--color-accent-light);

    content: "";
}

.timeline-marker::after {
    position: absolute;
    top: 21px;
    bottom: 0;
    left: 50%;

    width: 1px;

    /*color de las barras entre horas*/
    background-color: var(--color-accent);

    content: "";
    transform: translateX(-50%);
}

.timeline-item:last-child .timeline-marker::after {
    display: none;
}

.timeline-content {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 20px;
    align-items: start;

    margin-bottom: 42px;
    padding: 2px 0 24px;

    text-align: left;
}

.timeline-icon {
    display: block;

    width: 72px;
    height: 72px;

    object-fit: contain;
}

.timeline-text {
    min-width: 0;
    padding-top: 3px;
}

.timeline-content h3 {
    margin: 0 0 8px;

    color: var(--color-dark);
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
}

.timeline-content p {
    margin: 0;


    color: var(--color-accent);
    font-size: 0.9rem;
    line-height: 1.6;
}


/* =========================
   UBICACIÓN
========================= */

.timeline-location {
    width: min(560px, 100%);
    margin: 25px auto 0;
    padding: 36px 32px;

    border: 1px solid rgba(180, 154, 120, 0.28);
    border-radius: 14px;

    background-color: rgba(255, 255, 255, 0.55);

    text-align: center;
}

.timeline-location-image {
    width: 190px;
    height: 190px;
    margin: 0 auto 26px;

    border: 5px solid var(--color-white);
    border-radius: 50%;

    overflow: hidden;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.timeline-location-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.timeline-location-label {
    margin-bottom: 8px;

    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.timeline-location h3 {
    margin-bottom: 8px;

    color: var(--color-dark);
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
}

.timeline-location p {
    margin-bottom: 22px;

    color: var(--color-text);
    font-size: 0.9rem;
    line-height: 1.6;
}

.timeline-location-button {
    display: inline-block;
    padding: 12px 24px;

    border: 1px solid var(--color-text);
    border-radius: 999px;

    color: var(--color-text);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.timeline-location-button:hover {
    background-color: var(--color-text);
    color: var(--color-white);

    transform: translateY(-2px);
}

.timeline-location-button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}


/* =========================
   TIMELINE EN CELULARES
========================= */

@media (max-width: 760px) {
    .timeline {
        width: 100%;
        margin-top: 45px;
    }

    .timeline-item {
        grid-template-columns: 52px 22px minmax(0, 1fr);
        column-gap: 10px;
    }

    .timeline-time {
        padding-top: 5px;

        font-size: 1.25rem;
    }

    .timeline-marker::before {
        width: 11px;
        height: 11px;
        margin-top: 3px;

        border-width: 2px;
    }

    .timeline-marker::after {
        top: 16px;
    }

    .timeline-content {
        grid-template-columns: 52px minmax(0, 1fr);
        column-gap: 14px;

        margin-bottom: 32px;
        padding: 1px 0 20px;
    }

    .timeline-icon {
        width: 52px;
        height: 52px;
    }

    .timeline-text {
        padding-top: 1px;
    }

    .timeline-content h3 {
        margin-bottom: 7px;

        font-size: 1.65rem;
        line-height: 1.05;
    }

    .timeline-content p {
        font-size: 0.85rem;
    }

    .timeline-location {
        margin-top: 15px;
        padding: 30px 20px;
    }

    .timeline-location-image {
        width: 155px;
        height: 155px;
        margin-bottom: 22px;

        border-width: 4px;
    }

    .timeline-location h3 {
        font-size: 1.75rem;
    }

    .timeline-location p {
        font-size: 0.85rem;
    }

    .timeline-location-button {
        padding: 11px 20px;

        font-size: 0.75rem;
    }
}


/* =========================
   PANTALLAS MUY PEQUEÑAS
========================= */

@media (max-width: 420px) {
    .timeline-item {
        grid-template-columns: 46px 18px minmax(0, 1fr);
        column-gap: 8px;
    }

    .timeline-time {
        font-size: 1.1rem;
    }

    .timeline-content {
        grid-template-columns: 46px minmax(0, 1fr);
        column-gap: 11px;
        padding-left: 0;
    }

    .timeline-icon {
        width: 46px;
        height: 46px;
    }

    .timeline-content h3 {
        font-size: 1.45rem;
    }
}
