@charset "UTF-8";

/* =========================================================
   GIRA — CUADRÍCULA SIMPLE DE FECHAS
   Sección independiente situada después de los accesos sociales.
   ========================================================= */

.tour-schedule {
    position: relative;
    z-index: 2;
    padding: 76px 0 54px;
    background: var(--color-bg);
}

/*
 * Los accesos sociales usan un margen superior negativo respecto al hero.
 * La gira comienza después en el flujo normal y recibe separación propia.
 */
.quick-actions + .tour-schedule {
    margin-top: 0;
}

.tour-schedule-heading {
    margin-bottom: 20px;
}

.tour-schedule-heading > div > span {
    display: block;
    margin-bottom: 5px;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.tour-schedule-heading h2 {
    margin: 0;
    color: var(--color-text);
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.05;
}

.tour-events-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 26px;
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.tour-event-card {
    position: relative;
    min-width: 0;
    min-height: 132px;
    padding: 22px 18px;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    color: var(--color-text);
    background: var(--color-surface);
    border-right: 1px solid var(--color-line);
    transition:
        background 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.tour-event-card:nth-child(4n) {
    border-right: 0;
}

@media (min-width: 1051px) {
    .tour-event-card:nth-child(n + 5) {
        border-top: 1px solid var(--color-line);
    }
}

a.tour-event-card:hover,
a.tour-event-card:focus-visible {
    z-index: 2;
    color: var(--color-text);
    background: var(--color-surface-2);
    box-shadow: 0 16px 36px rgba(70, 38, 112, 0.12);
    transform: translateY(-2px);
}

.tour-event-date {
    width: 62px;
    height: 62px;
    display: grid;
    place-content: center;
    justify-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: #17131d;
}

.tour-event-date small {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tour-event-date strong {
    margin-top: -1px;
    font-size: 25px;
    line-height: 1;
}

.tour-event-info {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.tour-event-info > strong {
    overflow: hidden;
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tour-event-info > span,
.tour-event-info > small {
    overflow: hidden;
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tour-event-info > small {
    font-size: 11px;
    font-weight: 700;
}

.tour-event-info > p {
    margin: 5px 0 0;
    color: var(--color-muted);
    font-size: 11px;
    line-height: 1.45;
}

.tour-event-arrow {
    position: absolute;
    right: 13px;
    bottom: 13px;
    color: var(--color-primary);
}

.tour-event-arrow svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tour-empty {
    padding: 28px;
    display: grid;
    gap: 4px;
    border: 1px solid var(--color-line);
    border-radius: 24px;
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.tour-empty strong {
    color: var(--color-text);
}

.tour-empty span {
    color: var(--color-muted);
}

html[data-theme="dark"] .tour-event-date {
    color: #ffffff;
    background: #08070a;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Tablet: dos fechas por fila. */
@media (max-width: 1050px) {
    .tour-schedule {
        padding-top: 64px;
    }

    .tour-events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tour-event-card {
        border-bottom: 1px solid var(--color-line);
    }

    .tour-event-card:nth-child(2n) {
        border-right: 0;
    }

    .tour-event-card:nth-last-child(-n + 2) {
        border-bottom: 0;
    }
}

/* Celular: una fecha por fila. */
@media (max-width: 640px) {
    .tour-schedule {
        padding: 52px 0 38px;
    }

    .tour-schedule-heading {
        margin-bottom: 15px;
    }

    .tour-events-grid {
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

    .tour-event-card {
        min-height: 112px;
        padding: 18px;
        border-right: 0;
        border-bottom: 1px solid var(--color-line);
    }

    .tour-event-card:nth-last-child(-n + 2) {
        border-bottom: 1px solid var(--color-line);
    }

    .tour-event-card:last-child {
        border-bottom: 0;
    }

    .tour-event-date {
        width: 58px;
        height: 58px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tour-event-card {
        transition: none;
    }
}
