/* Tour · Estilos específicos (requiere style.css) */

.tour-page {
    background: #000;
    color: #fff;
}

.tour-page .tour-layout {
    position: relative;
    background: #000;
}

/* Imagen de fondo */
.tour-page .tour-visual {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.tour-page .tour-visual picture,
.tour-page .tour-visual img {
    display: block;
}

.tour-page .tour-visual::after {
    display: none;
}

/* Contenido */
.tour-page .tour-content {
    position: relative;
    z-index: 1;
    scrollbar-width: thin;
    scrollbar-color: #444 transparent;
}

.tour-page .tour-content-inner {
    box-sizing: border-box;
    width: min(100%, 760px);
    margin: 0 auto;
}

/* Pestañas */
.tour-page .tour-tabs {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 42px;
    padding: 0 0 17px;
    margin-bottom: 20px;
    background: transparent;
    border-bottom: 1px solid #303030;
}

.tour-page .tour-tab {
    position: relative;
    padding: 12px 10px;
    border: 0;
    background: none;
    color: #8e8e8e;
    font: 600 14px Inter, sans-serif;
    letter-spacing: .035em;
    cursor: pointer;
    transition: color .2s ease;
}

.tour-page .tour-tab:hover,
.tour-page .tour-tab.is-active {
    color: #fff;
}

.tour-page .tour-tab.is-active::after {
    content: "";
    position: absolute;
    bottom: -18px;
    left: 0;
    right: 0;
    height: 2px;
    background: #fff;
    box-shadow: 0 0 9px #fff6;
}

/* Filas de eventos */
.tour-page .tour-events {
    min-height: 200px;
}

.tour-page .tour-event {
    position: relative;
    display: grid;
    grid-template-columns: 75px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    min-height: 92px;
    padding: 15px 0 15px 40px;
    border-bottom: 1px solid #292929;
    box-sizing: border-box;
}

.tour-page .tour-date {
    display: flex;
    flex-direction: column;
    line-height: .92;
}

.tour-page .tour-day {
    font-size: clamp(34px, 3.1vw, 46px);
    font-weight: 800;
    letter-spacing: -.065em;
    font-variant-numeric: tabular-nums;
}

.tour-page .tour-month {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .02em;
}

.tour-page .tour-details {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.tour-page .tour-city {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.tour-page .tour-venue {
    font-size: 12px;
    color: #a4a4a4;
    line-height: 1.35;
}

/* Botones y estados */
.tour-page .tour-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 125px;
    white-space: nowrap;
    text-decoration: none;
}

.tour-page .tour-action-icon {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    flex: 0 0 33px;
    border: 1px solid #bfbfbf;
    border-radius: 50%;
    color: #fff;
}

.tour-page .tour-action-icon svg {
    display: block;
    width: 19px;
    height: 19px;
}

.tour-page .tour-status {
    font-size: 12px;
    font-weight: 700;
    color: #f87708;
}

.tour-page .tour-status.is-muted {
    color: #a5a5a5;
}

.tour-page .tour-status.is-sold-out {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    text-decoration-color: currentColor;
}

.tour-page .tour-event.is-past .tour-day,
.tour-page .tour-event.is-past .tour-month {
    color: #8d8d8d;
}

/* Indicador de nueva fecha */
.tour-page .tour-new {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 20px;
    height: 100%;
    margin: 0;
    padding: 5px 2px;
    transform: none;
    rotate: none;
    writing-mode: sideways-lr;
    text-orientation: mixed;
    background: #f87708;
    color: #fff;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .025em;
}

.tour-page .tour-empty {
    padding: 55px 0;
    color: #a5a5a5;
    font-size: 13px;
    letter-spacing: .02em;
}

/* Capas del menú y footer */
.tour-page #site-header {
    z-index: 50;
}
.tour-page #mobile-menu {
    z-index: 40;
}
.tour-page #site-footer {
    z-index: 30;
}

/* Animación del enlace de boletos */
.tour-page a.tour-action {
    transition: transform .3s ease;
}

.tour-page a.tour-action .tour-action-icon {
    transition: transform .3s ease, border-color .3s ease, background-color .3s ease;
}

@media (hover: hover) {
    .tour-page a.tour-action:hover {
        transform: translateX(6px);
    }

    .tour-page a.tour-action:hover .tour-action-icon {
        transform: translateX(3px);
        border-color: #fff;
        background: rgba(255, 255, 255, .08);
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Distribución base para pantallas estrechas */

html:has(body.tour-page),
body.tour-page {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.tour-page .tour-layout {
    --visual-width: min(100vw, 650px);

    position: relative;
    display: block;
    width: 100%;
    height: auto;
    min-height: 100svh;
    overflow: hidden;
}

/* Imagen vertical */

.tour-page .tour-visual {
    position: absolute;
    top: 0;
    bottom: auto;
    left: 50%;
    right: auto;

    width: var(--visual-width);
    height: auto;

    transform: translateX(-50%);
    overflow: hidden;
}

.tour-page .tour-visual picture {
    display: block;
    width: 100%;
    height: auto;
}

.tour-page .tour-visual img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;

    object-fit: contain;
    object-position: center top;
}

.tour-page .tour-visual::after {
    display: none;
}

/* Contenido */

.tour-page .tour-content {
    position: relative;
    width: 100%;
    height: auto;
    margin: 0;

    padding-top: calc(var(--visual-width) * .78);

    overflow: visible;
    box-sizing: border-box;
}

.tour-page .tour-content-inner {
    width: min(100%, 760px);
    padding: 26px 24px 85px;
}

/* Footer */

.tour-page #site-footer,
.tour-page .site-footer {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
}

.tour-page .footer-gradient {
    height: 100%;
}

.tour-page .footer-content {
    padding-top: 24px;
}

/* Desktop horizontal */

@media (min-width: 1000px) and (min-aspect-ratio: 7/5) {
    html:has(body.tour-page),
    body.tour-page {
        height: 100%;
        overflow: hidden;
    }

    .tour-page .tour-layout {
        display: block;
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    /* Fondo de pantalla completo */

    .tour-page .tour-visual {
        position: absolute;
        inset: 0;

        width: 100%;
        height: 100%;

        transform: none;
        overflow: hidden;

        -webkit-mask-image: none;
        mask-image: none;
    }

    .tour-page .tour-visual picture {
        display: block;
        width: 100%;
        height: 100%;
    }

    .tour-page .tour-visual img {
        display: block;

        width: auto;
        max-width: none;
        height: 100%;

        object-fit: contain;
        object-position: left top;
    }

    /* Fechas */

    .tour-page .tour-content {
        width: 50%;
        height: 100%;
        margin: 0 0 0 50%;
        padding: 0;

        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
    }

    .tour-page .tour-content-inner {
        width: min(100%, 760px);

        padding:
            clamp(50px, 7vh, 180px)
            clamp(26px, 5vw, 85px)
            125px
            clamp(20px, 3.5vw, 60px);
    }

    .tour-page #site-footer,
    .tour-page .site-footer {
        position: fixed;
        bottom: 0;
        left: 0;
    }
}

/* Desktop de proporción intermedia */

@media (min-width: 1000px)
       and (min-aspect-ratio: 7/5)
       and (max-aspect-ratio: 17/10) {
    .tour-page .tour-visual img {
        width: auto;
        height: min(100dvh, 56.25vw);
        max-width: none;
    }

    /* Degradado inferior de la imagen */

    .tour-page .tour-visual picture {
        position: relative;
        height: min(100dvh, 56.25vw);
    }

    .tour-page .tour-visual picture::after {
        content: "";
        position: absolute;
        inset: auto 0 0;
        height: 25%;

        background: linear-gradient(
            to bottom,
            transparent,
            #000
        );

        pointer-events: none;
    }

    /* Ajuste del listado al ancho disponible */

    .tour-page .tour-content-inner {
        padding-left: 24px;
        padding-right: 30px;
    }

    .tour-page .tour-event {
        grid-template-columns: 60px minmax(0, 1fr) auto;
        gap: 12px;
        padding-left: 32px;
    }

    .tour-page .tour-action {
        min-width: 0;
        gap: 8px;
    }

    .tour-page .tour-day {
        font-size: 40px;
    }
}

/* Celulares */

@media (max-width: 600px) {
    .tour-page .tour-layout {
        --visual-width: 100vw;
    }

    .tour-page .tour-visual {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .tour-page .tour-content-inner {
        width: 100%;
        padding: 26px 21px 85px;
    }

    .tour-page .tour-tabs {
        gap: 28px;
        padding-bottom: 12px;
        margin-bottom: 18px;
    }

    .tour-page .tour-tab {
        font-size: 13px;
    }

    .tour-page .tour-tab.is-active::after {
        bottom: -13px;
    }

    .tour-page .tour-event {
        grid-template-columns: 57px minmax(0, 1fr) auto;
        gap: 10px;
        min-height: 88px;
        padding: 13px 13px 13px 35px;
    }

    .tour-page .tour-day {
        font-size: 37px;
    }

    .tour-page .tour-month {
        font-size: 14px;
    }

    .tour-page .tour-city {
        font-size: 12px;
    }

    .tour-page .tour-venue {
        font-size: 11px;
    }

    .tour-page .tour-status {
        font-size: 10px;
    }

    .tour-page .tour-action {
        min-width: 0;
        gap: 7px;
    }

    .tour-page .tour-action-icon {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
    }

    .tour-page .tour-action-icon svg {
        width: 16px;
        height: 16px;
    }

    .tour-page .tour-new {
        width: 18px;
        font-size: 9px;
    }
}

/* Celulares de hasta 360 px */

@media (max-width: 360px) {
    .tour-page .tour-content-inner {
        padding-left: 14px;
        padding-right: 14px;
    }

    .tour-page .tour-event {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        gap: 8px;
        padding-left: 28px;
        padding-right: 4px;
    }

    .tour-page .tour-day {
        font-size: 33px;
    }

    .tour-page .tour-action {
        gap: 5px;
    }

    .tour-page .tour-action-icon {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
    }
}

/* Movimiento reducido */

@media (prefers-reduced-motion: reduce) {
    .tour-page a.tour-action,
    .tour-page a.tour-action .tour-action-icon {
        transition: none;
    }
}

/* Tablets y ventanas intermedias */

@media (min-width: 601px) and (max-width: 999px),
       (min-width: 1000px) and (aspect-ratio < 7/5) {
    .tour-page .tour-layout {
        --visual-width: 100%;
    }

    .tour-page .tour-visual {
        position: absolute;
        inset: 0 0 auto 0;

        width: 100%;
        height: auto;

        transform: none;
        overflow: hidden;

        -webkit-mask-image: none;
        mask-image: none;
    }

    .tour-page .tour-visual picture,
    .tour-page .tour-visual img {
        display: block;
        width: 100%;
        max-width: none;
        height: auto;
    }

    .tour-page .tour-visual img {
        object-fit: contain;
        object-position: center top;
    }

    .tour-page .tour-visual::after,
    .tour-page .tour-visual picture::after {
        display: none;
    }

    .tour-page .tour-content {
        width: 100%;
        height: auto;
        margin: 0;
        padding-top: 65vw;
        overflow: visible;
    }

    .tour-page .tour-content-inner {
        width: min(100%, 760px);
        padding: 26px 24px 85px;
    }
}

/* Desktop ultrapanorámico */

@media (min-width: 1000px) and (min-aspect-ratio: 16/9) {
    .tour-page .tour-visual img {
        display: block;

        width: max(80vw, calc(100dvh * 1920 / 1143));
        height: auto;

        min-width: 0;
        min-height: 0;
        max-width: none;
        max-height: none;

        object-fit: contain;
        object-position: left top;
    }
}
