/* =============================================
   Teatro Diana 2026 — main.css
   ============================================= */

/* ---- Outfit (local) ---- */
@font-face {
    font-family: 'Outfit';
    src: url('/v2/fonts-26/Outfit-Regular.woff2') format('woff2'),
         url('/v2/fonts-26/Outfit-Regular.woff')  format('woff');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('/v2/fonts-26/Outfit-SemiBold.woff2') format('woff2'),
         url('/v2/fonts-26/Outfit-SemiBold.woff')  format('woff');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('/v2/fonts-26/Outfit-Bold.woff2') format('woff2'),
         url('/v2/fonts-26/Outfit-Bold.woff')  format('woff');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('/v2/fonts-26/Outfit-ExtraBold.woff2') format('woff2'),
         url('/v2/fonts-26/Outfit-ExtraBold.woff')  format('woff');
    font-weight: 800; font-style: normal; font-display: swap;
}

/* ---- Variables ---- */
:root {
    /* Paleta */
    --td-primary:    #ec002f;
    --td-secondary:  #ff0d55;
    --td-accent:     #5F0000;
    --td-black:      #0a0000;
    --td-white:      #ffffff;
    --td-gradient:   linear-gradient(180deg, #5F0000 0%, #1a0000 60%, #0a0000 100%);
    --td-border-dark:#2a0000;

    /* Tipografía — escala modular 1.25× */
    --td-font:       'Outfit', sans-serif;
    --td-base:       1rem;       /* 16px */
    --td-h1:         3rem;       /* 48px */
    --td-h2:         2.25rem;    /* 36px */
    --td-h3:         1.875rem;   /* 30px */
    --td-h4:         1.5rem;     /* 24px */
    --td-h5:         1.25rem;    /* 20px */
    --td-h6:         1rem;       /* 16px */

    /* Line-heights */
    --td-lh-heading: 1.25em;
    --td-lh-body:    1.65em;

    /* Tamaños de texto UI */
    --td-text-nav:   0.825rem;
    --td-text-btn:   0.875rem;
    --td-text-sm:    0.8rem;
    --td-text-xs:    0.75rem;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; }

body {
    font-family: var(--td-font);
    font-size: var(--td-base);
    line-height: var(--td-lh-body);
    background-color: #ffffff;
    color: #222222;
    margin: 0;
}

/* ---- Escala tipográfica ---- */
h1, .h1 { font-size: var(--td-h1); line-height: var(--td-lh-heading); font-weight: 800; }
h2, .h2 { font-size: var(--td-h2); line-height: var(--td-lh-heading); font-weight: 700; }
h3, .h3 { font-size: var(--td-h3); line-height: var(--td-lh-heading); font-weight: 700; }
h4, .h4 { font-size: var(--td-h4); line-height: 1.35em;               font-weight: 700; }
h5, .h5 { font-size: var(--td-h5); line-height: 1.4em;                font-weight: 600; }
h6, .h6 { font-size: var(--td-h6); line-height: 1.5em;                font-weight: 600; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--td-font);
    margin-top: 0;
}

/* Mobile — escala reducida */
@media (max-width: 767px) {
    :root {
        --td-h1: 2rem;
        --td-h2: 1.625rem;
        --td-h3: 1.375rem;
        --td-h4: 1.25rem;
        --td-h5: 1.125rem;
        --td-h6: 1rem;
    }
}

a { color: var(--td-primary); text-decoration: none; transition: opacity 0.3s ease; }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; }

/* ============================================
   BOTONES — sistema unificado
   ============================================ */
.td-btn-comprar,
.td-btn-buscar,
.td-btn-newsletter {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background-color: var(--td-primary);
    color: var(--td-white);
    border: 1.5px solid var(--td-primary);
    font-size: var(--td-text-btn);
    font-weight: 700;
    font-family: var(--td-font);
    letter-spacing: 0.05em;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.td-btn-comprar:hover,
.td-btn-buscar:hover,
.td-btn-newsletter:hover {
    background-color: transparent;
    color: var(--td-primary);
}

/* Tamaños específicos */
.td-btn-comprar {
    padding: 0.5rem 1.1rem;
    margin-right: 0.5rem;
    margin-bottom: 0.4rem;
}
.td-btn-buscar {
    padding: 0.5rem 1.4rem;
    white-space: nowrap;
}
.td-btn-newsletter {
    padding: 0.5rem 1rem;
}

/* Iconos dentro de botones de card — más presencia */
.td-btn-comprar .bi,
.td-btn-info .bi {
    font-size: 1rem;
    -webkit-text-stroke: 0.4px currentColor;
}

/* Botón solo texto */
.td-btn-info {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: var(--td-primary);
    font-size: var(--td-text-btn);
    font-weight: 700;
    font-family: var(--td-font);
    letter-spacing: 0.05em;
    padding: 0.45rem 0;
    cursor: pointer;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}
.td-btn-info:hover { opacity: 0.7; }

/* ============================================
   HEADER
   ============================================ */
.td-header {
    background: var(--td-gradient);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.td-header .navbar { padding: 1.5rem 0; }
.td-header .navbar-brand img { height: 78px; width: auto; }

/* Nav links */
.td-header .nav-link {
    color: var(--td-white) !important;
    font-size: var(--td-text-nav);
    font-weight: 700;
    letter-spacing: 0.07em;
    padding: 0.5rem 0.9rem !important;
    transition: color 0.3s ease;
}
.td-header .nav-link:hover,
.td-header .nav-link.active { color: var(--td-primary) !important; }

/* Dropdown */
.td-header .dropdown-menu {
    background: #1a0000;
    border: 1px solid var(--td-border-dark);
    border-radius: 0;
    min-width: 210px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
    margin-top: 0;
}

/* Hover en desktop */
@media (min-width: 992px) {
    .td-header .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
    }
    .td-header .nav-item.dropdown > .dropdown-toggle::after {
        pointer-events: none;
    }
}
.td-header .dropdown-item {
    color: #dddddd;
    font-size: var(--td-text-xs);
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.65rem 1.1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.td-header .dropdown-item:hover {
    background-color: var(--td-primary);
    color: var(--td-white);
}

/* Toggler móvil */
.td-header .navbar-toggler {
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.3rem 0.6rem;
}
.td-header .navbar-toggler .bi {
    color: var(--td-white);
    font-size: 1.4rem;
}

/* Botón búsqueda */
.td-btn-search {
    background: none;
    border: none;
    color: var(--td-white);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.4rem 0.5rem;
    transition: opacity 0.3s ease;
    line-height: 1;
}
.td-btn-search:hover { opacity: 0.7; }

/* Redes sociales en header */
.td-social { gap: 10px; align-items: center; }
.td-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--td-secondary);
    border-radius: 50%;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.td-social a:hover {
    border-color: var(--td-accent);
    background: var(--td-accent);
}
.td-social img { width: 18px; height: 18px; }

/* Barra de búsqueda */
.td-search-bar {
    display: none;
    background: rgba(0,0,0,0.6);
    padding: 0.75rem 0;
    border-top: 1px solid var(--td-border-dark);
}
.td-search-bar.active { display: block; }
.td-search-input {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--td-white);
    border-radius: 4px;
}
.td-search-input:focus {
    background: rgba(255,255,255,0.18);
    border-color: var(--td-primary);
    color: var(--td-white);
    box-shadow: none;
}
.td-search-input::placeholder { color: rgba(255,255,255,0.5); }
.td-btn-search-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.4rem;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}
.td-btn-search-close:hover { opacity: 1; color: var(--td-white); }

/* Mobile nav collapse */
@media (max-width: 991px) {
    .td-header .navbar-collapse {
        padding: 0.75rem 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: 0.5rem;
    }
    .td-header .nav-link { padding: 0.65rem 0 !important; }
    .td-social { display: none !important; }
}

/* ============================================
   CARRUSEL HERO
   ============================================ */
.td-carousel-section { padding: 0; margin: 0; overflow: hidden; }
.td-carousel { position: relative; width: 100%; user-select: none; }
.td-carousel__track-wrapper { overflow: hidden; width: 100%; }
.td-carousel__track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.td-carousel__track.no-transition { transition: none !important; }

/* 1 slide visible — full width */
.td-carousel__slide {
    flex: 0 0 100%;
    min-width: 100%;
}

/* Slide interior: imagen izquierda + contenido derecha */
.td-carousel__inner {
    display: flex;
    width: 100%;
    height: 480px;
}
.td-carousel__img {
    flex: 0 0 55%;
    overflow: hidden;
    position: relative;
}
.td-carousel__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.6s ease;
}
.td-carousel__img img.img-loaded { opacity: 1; }
.td-carousel__slide:hover .td-carousel__img img { transform: scale(1.03); }

.td-carousel__content {
    flex: 1;
    background: linear-gradient(160deg, #1a0000 0%, #5F0000 100%);
    padding: 3rem 3rem 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}
.td-carousel__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--td-secondary);
    margin-bottom: 0.75rem;
}
.td-carousel__titulo {
    color: var(--td-white);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}
.td-carousel__titulo a { color: inherit; transition: opacity 0.3s ease; }
.td-carousel__titulo a:hover { opacity: 0.85; }
.td-carousel__fecha {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
}
.td-carousel__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
/* Override botones dentro del carrusel — sobre fondo oscuro */
.td-carousel__content .td-btn-info {
    color: rgba(255,255,255,0.65);
}
.td-carousel__content .td-btn-info:hover { color: var(--td-white); }

/* Flechas de navegación */
.td-carousel__btn {
    position: absolute;
    bottom: 2rem;
    width: 42px; height: 42px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    color: var(--td-white); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 10;
    transition: background 0.3s ease, border-color 0.3s ease;
    padding: 0;
}
.td-carousel__btn:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.6);
}
.td-carousel__btn svg { width: 18px; height: 18px; pointer-events: none; }
.td-carousel__btn--prev { right: 5rem; }
.td-carousel__btn--next { right: 2rem; }

/* Dots indicadores */
.td-carousel__dots {
    position: absolute;
    bottom: 2.2rem;
    left: 3rem;
    display: flex;
    gap: 6px;
    z-index: 10;
}
.td-carousel__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: background 0.3s ease, width 0.3s ease;
    cursor: pointer;
}
.td-carousel__dot.active {
    background: var(--td-secondary);
    width: 20px;
    border-radius: 3px;
}

/* Tablet y mobile — apilado vertical */
@media (max-width: 991px) {
    .td-carousel__inner {
        flex-direction: column;
        height: auto;
    }
    .td-carousel__img {
        flex: 0 0 260px;
        height: 260px;
    }
    .td-carousel__content {
        flex: 1;
        padding: 1.75rem 1.5rem 4rem;
    }
    .td-carousel__titulo { font-size: 1.25rem; }
    .td-carousel__btn--prev { right: 4.5rem; bottom: 1.25rem; }
    .td-carousel__btn--next { right: 1.25rem; bottom: 1.25rem; }
    .td-carousel__dots { left: 1.5rem; bottom: 1.5rem; }
}

/* ============================================
   SECCIÓN EVENTOS — HOME
   ============================================ */
.td-section { padding: 3rem 0; }

/* Filtro categorías — elemento unificado */
#selectFilterCat {
    border: 2px solid var(--td-primary);
    border-radius: 8px;
    overflow: hidden;
}
#selectFilterCat .form-select {
    background-color: var(--td-white);
    border: none;
    border-radius: 0;
    color: #111111;
    font-size: var(--td-text-sm);
    font-weight: 700;
    font-family: var(--td-font);
    letter-spacing: 0.04em;
    box-shadow: none !important;
    outline: none;
    flex: 1;
}
#selectFilterCat .form-select option {
    color: #333333;
    font-weight: 400;
}
#selectFilterCat .td-btn-buscar {
    border-radius: 0 6px 6px 0;
    padding: 0.5rem 1.6rem;
    margin: 0;
}

/* Tarjeta de evento */
.td-evento-card {
    background: var(--td-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
.td-evento-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}
.td-evento-img { overflow: hidden; background: #1a0000; }
.td-evento-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center top;
    display: block;
    /* Fade-in al cargar — evita el efecto JPEG progresivo top-to-bottom */
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.35s ease;
}
.td-evento-img img.img-loaded { opacity: 1; }
.td-evento-card:hover .td-evento-img img { transform: scale(1.04); }

.td-evento-body {
    padding: 1rem 1rem 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.td-evento-actions { margin-top: auto; padding-top: 0.75rem; }

.td-evento-fecha {
    color: var(--td-primary);
    font-size: 0.875rem; /* 14px */
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 0.3rem;
}
.td-evento-divider {
    border: none;
    border-top: 2px solid var(--td-primary);
    width: 36px;
    margin: 0.4rem 0 0.6rem;
}
.td-evento-titulo {
    color: #111111;
    font-size: var(--td-h6);
    font-weight: 700;
    margin-bottom: 0.9rem;
    line-height: 1.4em;
    text-transform: uppercase;
}
.td-evento-titulo a { color: inherit; transition: opacity 0.3s ease; }
.td-evento-titulo a:hover { opacity: 0.7; }

/* ============================================
   BANNER JUEVES 2×1
   ============================================ */
.td-jueves-banner {
    background: linear-gradient(90deg, var(--td-primary) 0%, var(--td-secondary) 100%);
    padding: 0.7rem 0;
}
.td-jueves-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.td-jueves-inner > .bi { color: #fff; font-size: 1.1rem; flex-shrink: 0; }
.td-jueves-inner > span { color: #fff; font-size: 0.82rem; flex: 1; }
.td-jueves-cta {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.9rem;
    white-space: nowrap;
    transition: background 0.3s ease;
}
.td-jueves-cta:hover { background: rgba(255,255,255,0.35); color: #fff; }
.td-jueves-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.2rem;
    flex-shrink: 0;
    transition: color 0.2s;
}
.td-jueves-close:hover { color: #fff; }

/* ============================================
   EVENTO DESTACADO
   ============================================ */
.td-featured-section { padding: 3rem 0 0; }
.td-featured-card {
    display: flex;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    background: #fff;
}
.td-featured-img {
    flex: 0 0 42%;
    overflow: hidden;
}
.td-featured-img a { display: block; height: 100%; }
.td-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.4s ease;
}
.td-featured-card:hover .td-featured-img img { transform: scale(1.03); }
.td-featured-body {
    flex: 1;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.td-featured-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--td-secondary);
    margin-bottom: 0.75rem;
}
.td-featured-titulo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111;
    line-height: 1.25em;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}
.td-featured-titulo a { color: inherit; transition: color 0.3s ease; }
.td-featured-titulo a:hover { color: var(--td-primary); }
.td-featured-subtitulo {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6em;
    margin-bottom: 0.75rem;
}
.td-featured-fecha {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--td-primary);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.td-featured-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }

@media (max-width: 767px) {
    .td-featured-card { flex-direction: column; }
    .td-featured-img { flex: 0 0 auto; max-height: 220px; }
    .td-featured-body { padding: 1.25rem; }
    .td-featured-titulo { font-size: 1.2rem; }
}

/* ============================================
   FILTROS DE FECHA
   ============================================ */
.td-date-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.td-date-btn {
    background: none;
    border: 1.5px solid #ddd;
    color: #555;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--td-font);
    letter-spacing: 0.04em;
    padding: 0.35rem 0.9rem;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
    white-space: nowrap;
}
.td-date-btn:hover {
    border-color: var(--td-primary);
    color: var(--td-primary);
}
.td-date-btn.active {
    background: var(--td-primary);
    border-color: var(--td-primary);
    color: #fff;
}

/* ============================================
   BADGES EN CARDS
   ============================================ */
.td-evento-img { position: relative; overflow: hidden; }
.td-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    z-index: 2;
}
.td-badge--warning { background: #f59e0b; color: #fff; }
.td-badge--danger  { background: var(--td-primary); color: #fff; }
.td-badge--info    { background: var(--td-secondary); color: #fff; }

/* Sin resultados */
.td-no-results {
    text-align: center;
    padding: 3rem 0;
    color: #999;
}
.td-no-results .bi { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; }

/* ============================================
   CÓMO LLEGAR
   ============================================ */
.td-como-llegar {
    padding: 3rem 0;
    background: #fff;
}
.td-mapa-wrap { min-height: 360px; overflow: hidden; }
.td-mapa-wrap iframe { display: block; height: 100%; min-height: 360px; }

/* Mapa facade — carga bajo demanda */
.td-mapa-facade {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 360px;
    overflow: hidden;
    cursor: pointer;
}
.td-mapa-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.85);
    transition: filter 0.3s;
}
.td-mapa-facade:hover img { filter: brightness(0.7); }
.td-mapa-cta {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--td-primary);
    color: #fff;
    border: none;
    border-radius: 2rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
    transition: opacity 0.2s, transform 0.2s;
    cursor: pointer;
    white-space: nowrap;
}
.td-mapa-cta:hover { opacity: 0.9; transform: translate(-50%, -50%) scale(1.04); }

.td-llegar-info {
    padding: 3rem 3rem 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--td-accent);
}
.td-llegar-titulo {
    color: var(--td-white);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}
.td-llegar-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.td-llegar-list li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}
.td-llegar-list .bi {
    color: var(--td-secondary);
    font-size: 1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}
.td-llegar-list span {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    line-height: 1.6em;
}
.td-llegar-list a { color: var(--td-secondary); }
.td-llegar-list a:hover { color: #fff; }
.td-llegar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--td-primary);
    color: #fff;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--td-font);
    letter-spacing: 0.05em;
    padding: 0.65rem 1.3rem;
    text-transform: uppercase;
    transition: background 0.3s ease;
    align-self: flex-start;
}
.td-llegar-btn:hover { background: var(--td-secondary); color: #fff; }

@media (max-width: 991px) {
    .td-llegar-info { padding: 2rem 1.5rem; }
}

/* ============================================
   MÓDULO INFORMATIVO — HOME
   ============================================ */
.td-info-strip {
    background: linear-gradient(180deg, #0a0000 0%, #5F0000 100%);
    overflow: hidden;
}

.td-info-row { min-height: 420px; }

.td-info-block {
    position: relative;
    padding: 3rem 2.5rem;
}

/* Divisores verticales entre columnas */
.td-info-block + .td-info-block::before {
    content: '';
    position: absolute;
    left: 0; top: 12%; height: 76%;
    width: 1px;
    background: rgba(255,255,255,0.12);
}

.td-info-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.td-info-inner--center { align-items: center; text-align: center; }

/* Eyebrow */
.td-info-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--td-secondary);
    margin-bottom: 0.5rem;
}

/* Título */
.td-info-title {
    color: var(--td-white);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3em;
    margin-bottom: 0.75rem;
}

/* Texto */
.td-info-text {
    color: rgba(255,255,255,0.65);
    font-size: 0.85rem;
    line-height: 1.75em;
    margin-bottom: 1.25rem;
}

/* --- Newsletter --- */
.td-nl-field {
    position: relative;
    margin-bottom: 0.75rem;
}
.td-nl-field .bi {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    pointer-events: none;
}
.td-nl-input {
    width: 100%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: var(--td-white);
    font-size: 0.85rem;
    font-family: var(--td-font);
    padding: 0.6rem 0.85rem 0.6rem 2.4rem;
    transition: border-color 0.3s ease, background 0.3s ease;
    outline: none;
}
.td-nl-input:focus {
    background: rgba(255,255,255,0.13);
    border-color: var(--td-secondary);
}
.td-nl-input::placeholder { color: rgba(255,255,255,0.35); }

.td-nl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--td-secondary);
    color: var(--td-white);
    border: none;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: var(--td-font);
    letter-spacing: 0.05em;
    padding: 0.65rem 1.4rem;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    margin-bottom: 0.75rem;
    width: 100%;
    justify-content: center;
}
.td-nl-btn:hover { background-color: var(--td-accent); opacity: 1; }

.td-nl-privacy {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
    margin: 0;
}
.td-nl-privacy a {
    color: rgba(255,255,255,0.5);
    text-decoration: underline;
}
.td-nl-privacy a:hover { color: var(--td-white); }

/* Formulario real de GoDaddy Email Marketing: su script le reescribe la clase
   a los <input> y al botón cuando valida (los deja en "required"/"required invalid"
   y "submit"/"disabled"), así que el estilo se aplica por tipo de campo e ID,
   no por clase, para que no se pierda al escribir o enviar. */
.td-nl-field input[type="text"],
.td-nl-field input[type="email"] {
    width: 100%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: var(--td-white);
    font-size: 0.85rem;
    font-family: var(--td-font);
    padding: 0.6rem 0.85rem 0.6rem 2.4rem;
    transition: border-color 0.3s ease, background 0.3s ease;
    outline: none;
}
.td-nl-field input[type="text"]:focus,
.td-nl-field input[type="email"]:focus {
    background: rgba(255,255,255,0.13);
    border-color: var(--td-secondary);
}
.td-nl-field input::placeholder { color: rgba(255,255,255,0.35); }
.td-nl-field input.invalid { border-color: var(--td-primary); }

#webform_submit_button {
    display: block;
    appearance: none;
    background-color: var(--td-secondary);
    color: var(--td-white);
    border: none;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: var(--td-font);
    letter-spacing: 0.05em;
    padding: 0.65rem 1.4rem;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    margin-bottom: 0.75rem;
    width: 100%;
}
#webform_submit_button:hover { background-color: var(--td-accent); opacity: 1; }
#webform_submit_button.disabled { opacity: 0.6; cursor: not-allowed; }

/* Campo trampa anti-spam del proveedor: debe existir y quedar fuera de la vista,
   sin display:none (algunos bots lo ignoran si se oculta así). */
.td-nl-honeypot { background: #fff; font-size: 1px; height: 0; overflow: hidden; }
.td-nl-honeypot-input {
    font-size: 1px;
    width: 1px !important;
    height: 1px !important;
    border: 0 !important;
    line-height: 1px !important;
    padding: 0;
    min-height: 1px !important;
}

/* Utilidad: visible para lectores de pantalla, oculta en pantalla (Bootstrap la trae,
   pero la versión purgada del sitio la quitó por no usarse antes) */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Vaso eco --- */
.td-vaso-img-wrap {
    width: 100%;
    max-width: 280px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.td-vaso-img-wrap img { width: 100%; height: auto; display: block; }

/* --- Cultura UDG --- */
.td-cultura-badge {
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.td-cultura-badge .bi {
    font-size: 2rem;
    color: var(--td-secondary);
}
.td-cultura-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: 1.5px solid var(--td-secondary);
    color: var(--td-secondary);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--td-font);
    letter-spacing: 0.05em;
    padding: 0.6rem 1.3rem;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-transform: uppercase;
}
.td-cultura-link:hover {
    background-color: var(--td-secondary);
    color: var(--td-white);
    border-color: var(--td-secondary);
}

/* Responsive — mobile: divisores horizontales */
@media (max-width: 767px) {
    .td-info-block { padding: 2.5rem 1.5rem; }
    .td-info-block + .td-info-block::before {
        top: 0; left: 10%; width: 80%; height: 1px;
    }
    .td-info-row { min-height: auto; }
}

/* ============================================
   FOOTER
   ============================================ */
.td-footer { background: var(--td-gradient); }

.td-footer-main { padding: 3.5rem 0 2.5rem; }

.td-footer-title {
    color: var(--td-white);
    font-size: var(--td-text-sm);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.td-footer-text {
    color: rgba(255,255,255,0.65);
    font-size: var(--td-text-sm);
    line-height: 1.8em;
}
.td-footer-text a { color: rgba(255,255,255,0.65); transition: color 0.3s ease; }
.td-footer-text a:hover { color: var(--td-white); }

.td-footer-links { list-style: none; padding: 0; margin: 0; }
.td-footer-links li { margin-bottom: 0.5rem; }
.td-footer-links a {
    color: rgba(255,255,255,0.65);
    font-size: var(--td-text-sm);
    transition: color 0.3s ease;
}
.td-footer-links a:hover { color: var(--td-white); }

/* Newsletter */
.td-newsletter-input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--td-white);
    font-size: var(--td-text-sm);
    font-family: var(--td-font);
}
.td-newsletter-input:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--td-primary);
    color: var(--td-white);
    box-shadow: none;
}
.td-newsletter-input::placeholder { color: rgba(255,255,255,0.4); }

/* Newsletter button — secundario con hover en accent */
.td-btn-newsletter {
    background-color: var(--td-secondary) !important;
    border-color: var(--td-secondary) !important;
}
.td-btn-newsletter:hover {
    background-color: var(--td-accent) !important;
    border-color: var(--td-accent) !important;
    color: var(--td-white);
}

.form-check-label { color: rgba(255,255,255,0.6); font-size: var(--td-text-sm); }
.form-check-input:checked { background-color: var(--td-primary); border-color: var(--td-primary); }

/* Redes en footer */
.td-footer-social { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.td-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--td-secondary);
    border-radius: 50%;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.td-footer-social a:hover {
    border-color: var(--td-accent);
    background: var(--td-accent);
}
.td-footer-social img { width: 18px; height: 18px; }

/* Boletos en footer */
.td-footer-btn-cartelera {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--td-primary);
    color: var(--td-white);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--td-font);
    letter-spacing: 0.05em;
    padding: 0.65rem 1.1rem;
    margin-bottom: 1.1rem;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    text-transform: uppercase;
}
.td-footer-btn-cartelera:hover {
    background-color: var(--td-secondary);
    color: var(--td-white);
    opacity: 1;
}
.td-footer-ya-sabes {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}
.td-footer-platforms { display: flex; gap: 8px; flex-wrap: wrap; }
.td-footer-platform-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.65);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.td-footer-platform-link:hover {
    border-color: var(--td-secondary);
    color: var(--td-white);
    background: rgba(255,13,85,0.1);
}

/* Copyright */
.td-footer-bottom {
    background: rgba(0,0,0,0.35);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 0;
}
.td-footer-bottom p { color: rgba(255,255,255,0.5); font-size: var(--td-text-sm); }
.td-footer-bottom a { color: rgba(255,255,255,0.5); transition: color 0.3s ease; }
.td-footer-bottom a:hover { color: var(--td-white); }

/* ============================================
   SCROLL TOP
   ============================================ */
#scrollTop {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 40px;
    height: 40px;
    background-color: var(--td-primary);
    color: var(--td-white);
    border: 1.5px solid var(--td-primary);
    border-radius: 4px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 999;
    transition: background-color 0.3s ease, color 0.3s ease;
}
#scrollTop:hover {
    background-color: transparent;
    color: var(--td-primary);
}
#scrollTop.visible { display: flex; }

/* ============================================
   REDES SOCIALES FIJAS (lateral derecho)
   ============================================ */
.td-social-fixed {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 8px;
    background: var(--td-accent);
    border-radius: 8px 0 0 8px;
}
.td-social-fixed a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1.5px solid var(--td-secondary);
    border-radius: 50%;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.td-social-fixed a:hover {
    border-color: var(--td-primary);
    background: var(--td-primary);
    opacity: 1;
}
/* Iconos via CSS mask — permite cambiar color libremente */
.td-social-fixed .td-si {
    display: block;
    width: 15px;
    height: 15px;
    background-color: var(--td-primary); /* color normal */
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    transition: background-color 0.3s ease;
}
.td-social-fixed a:hover .td-si {
    background-color: var(--td-white); /* blanco en hover */
}

/* Mobile — barra horizontal fija en la parte inferior */
@media (max-width: 767px) {
    .td-social-fixed {
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        transform: none;
        flex-direction: row;
        justify-content: center;
        border-radius: 8px 8px 0 0;
        padding: 8px 16px;
        gap: 12px;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
/* Carrusel: siempre 1 slide — no override de ancho aquí */

/* ============================================
   PAGE HEADER (páginas interiores)
   ============================================ */
.td-page-header {
    background: var(--td-gradient);
    padding: 4rem 0 3rem;
    text-align: center;
}
.td-page-header__titulo {
    font-size: clamp(2rem, 5vw, var(--td-h1));
    font-weight: 800;
    color: var(--td-white);
    margin-bottom: 0.5rem;
    line-height: var(--td-lh-heading);
}
.td-page-header__sub {
    color: rgba(255,255,255,0.75);
    font-size: 1.05rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Variante light (contacto, etc.) */
.td-page-header--light {
    background: #fff;
    border-top: 4px solid var(--td-primary);
    border-bottom: 1px solid #f0e8e8;
    padding: 3rem 0 2.5rem;
}
.td-page-header--light .td-page-header__eyebrow {
    display: block;
    color: var(--td-primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.td-page-header--light .td-page-header__eyebrow i { margin-right: 0.3rem; }
.td-page-header--light .td-page-header__titulo {
    color: var(--td-black);
}
.td-page-header--light .td-page-header__sub {
    color: #666;
}

/* ============================================
   PÁGINA DE EVENTO — HERO MARQUESINA
   ============================================ */
.td-ev-marquee {
    position: relative;
    /* Arranca igual que el footer del header → sin corte visual */
    background: linear-gradient(180deg,
        #0a0000  0%,
        #190006 35%,
        #2e000e 65%,
        #190006 85%,
        #0a0000 100%
    );
    padding: 3.5rem 0 9rem; /* 9rem de colchón para el overlap del contenido */
    text-align: center;
    overflow: hidden;
}

/* Foco de luz centrado — spotlight */
.td-ev-marquee::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle,
        rgba(220, 0, 45, 0.20) 0%,
        rgba(140, 0, 20, 0.10) 35%,
        transparent 70%
    );
    pointer-events: none;
}

/* Rayos de escenario — líneas diagonales ultrasutiles */
.td-ev-marquee::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -52deg,
        transparent           0px,
        transparent           28px,
        rgba(255,255,255,0.012) 28px,
        rgba(255,255,255,0.012) 29px
    );
    pointer-events: none;
}

/* Línea de luces decorativa en la base (oculta bajo el overlap) */
.td-ev-marquee__deco {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--td-primary)       0px,  var(--td-primary)       8px,
        rgba(255,255,255,0.12)  8px,  rgba(255,255,255,0.12) 18px
    );
    opacity: 0.7;
}

.td-ev-marquee__inner {
    position: relative;
    z-index: 1;
    max-width: 840px;
    margin: 0 auto;
}
.td-ev-marquee__sala {
    color: var(--td-secondary);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}
.td-ev-marquee__sala i { margin-right: 0.35rem; }
.td-badge--marquee { margin-bottom: 0.85rem; display: inline-block; }
.td-ev-marquee__titulo {
    font-size: clamp(2.1rem, 5.5vw, 4.25rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.08;
    margin-bottom: 1.6rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 40px rgba(0,0,0,0.6);
}
.td-ev-marquee__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 2.5rem;
    color: rgba(255,255,255,0.68);
    font-size: 0.92rem;
    margin-bottom: 2.25rem;
}
.td-ev-marquee__meta span { display: flex; align-items: center; gap: 0.4rem; }
.td-ev-marquee__meta span + span {
    padding-left: 2.5rem;
    border-left: 1px solid rgba(255,255,255,0.18);
}
.td-ev-marquee__meta i   { color: var(--td-secondary); }
.td-ev-marquee__meta strong { color: #fff; font-weight: 700; }

/* Botón hero — variante grande */
.td-btn-comprar--lg {
    padding: 0.85rem 2.25rem;
    font-size: 1rem;
    box-shadow: 0 4px 24px rgba(236,0,47,0.45);
}

@media (max-width: 767px) {
    .td-ev-marquee { padding: 3rem 0 7rem; }
    .td-ev-marquee__meta span + span { padding-left: 0; border-left: none; }
}

/* ============================================
   PÁGINA DE EVENTO — SECCIÓN PRINCIPAL
   (sube y se monta sobre el hero — efecto tarjeta)
   ============================================ */
.td-ev-section {
    position: relative;
    z-index: 2;
    margin-top: -5rem;
    padding: 3rem 0 5rem;
    background: #f9f6f6;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -10px 50px rgba(0,0,0,0.28);
}

/* --- Sidebar --- */
.td-ev-sidebar {
    position: sticky;
    top: 5.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.td-btn-comprar--full {
    display: flex;
    justify-content: center;
    width: 100%;
    border-radius: 0;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}
/* Hover sin borde visible — evita esquinas mochadas */
.td-btn-comprar--full:hover {
    background-color: #c8002a;
    color: #fff;
    border-color: #c8002a;
}
/* Variante fondo de sidebar — esquinas inferiores redondeadas */
.td-btn-comprar--sidebar-bottom {
    border-radius: 0 0 12px 12px;
    border-top: 1px solid rgba(0,0,0,0.08);
    margin-top: auto;
}
.td-btn-comprar--sidebar-bottom:hover {
    background-color: #c8002a;
    color: #fff;
    border-color: #c8002a;
    border-top-color: #c8002a;
}

/* Meta blocks */
.td-ev-meta-block {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.td-ev-meta-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--td-primary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.td-ev-meta-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a0000;
}

/* Fechas pills */
.td-ev-fechas-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.15rem;
}
.td-ev-fecha-pill {
    font-size: 0.875rem;
    color: #333;
    padding: 0.3rem 0;
    border-bottom: 1px dashed #eee;
    line-height: 1.4;
}
.td-ev-fecha-pill:last-child { border-bottom: none; }

/* Tabla de precios */
.td-ev-precios-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0.25rem;
}
.td-ev-precio-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0;
    border-bottom: 1px dashed #eee;
    gap: 0.5rem;
}
.td-ev-precio-row:last-child { border-bottom: none; }
.td-ev-zona-nombre {
    font-size: 0.875rem;
    color: #444;
    flex: 1;
}
.td-ev-zona-precio {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--td-accent);
    white-space: nowrap;
}

/* Botón mapa de localidades */
.td-ev-mapa-btn {
    width: 100%;
    background: transparent;
    border: none;
    border-top: 1px solid #eee;
    padding: 0.9rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.02em;
}
.td-ev-mapa-btn:hover {
    background: #fafafa;
    color: var(--td-primary);
}

/* --- Contenido derecho --- */
.td-ev-img-main {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 6px 28px rgba(0,0,0,0.12);
}
.td-ev-img-main img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.td-ev-img-main img.img-loaded { opacity: 1; }

.td-ev-widget {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}
.td-ev-widget:last-child { border-bottom: none; margin-bottom: 0; }

.td-ev-widget-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--td-accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--td-primary);
    display: inline-block;
}
.td-ev-sinopsis {
    font-size: 1rem;
    line-height: 1.75;
    color: #333;
}
.td-ev-edad {
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--td-primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Video embed */
.td-ev-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}
.td-ev-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Acordeones */
.td-ev-widget--acordeones { padding-bottom: 0; }
.td-ev-accordion {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.td-ev-acc-btn {
    width: 100%;
    background: #fafafa;
    border: none;
    padding: 0.9rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}
.td-ev-acc-btn:hover { background: #f0f0f0; }
.td-ev-acc-btn span { display: flex; align-items: center; gap: 0.5rem; }
.td-ev-acc-icon { transition: transform 0.3s ease; flex-shrink: 0; }
.td-ev-acc-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1.1rem;
}
.td-ev-acc-content.open {
    max-height: 600px;
    padding: 1rem 1.1rem;
}
.td-ev-liga {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--td-primary);
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0.3rem 0;
    transition: opacity 0.2s;
}
.td-ev-liga:hover { opacity: 0.8; }
.td-ev-info-list {
    padding-left: 1.25rem;
    margin: 0;
}
.td-ev-info-list li {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 0.5rem;
}
.td-ev-info-list a { color: var(--td-primary); }

/* Modal mapa */
.td-modal-mapa .modal-content {
    background: #1a0000;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}
.td-modal-mapa .modal-header {
    background: var(--td-accent);
    border-bottom: none;
    padding: 0.9rem 1.25rem;
}
.td-modal-mapa .modal-title {
    color: var(--td-white);
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Botón comprar fixed — todos los dispositivos */
.td-ev-buy-fixed {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    background: var(--td-primary);
    color: #fff;
    font-family: var(--td-font);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(236,0,47,0.45);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    letter-spacing: 0.02em;
}
.td-ev-buy-fixed:hover {
    background: var(--td-secondary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(236,0,47,0.55);
}
.td-ev-buy-fixed i { font-size: 1rem; }
@media (max-width: 575px) {
    .td-ev-buy-fixed {
        bottom: 0;
        right: 0;
        left: 0;
        border-radius: 0;
        justify-content: center;
        padding: 1rem;
        font-size: 1rem;
    }
}

/* Responsive evento */
@media (max-width: 991px) {
    .td-ev-sidebar {
        position: static;
        margin-bottom: 1.5rem;
    }
    .td-ev-hero { min-height: 45vh; }
    .td-ev-section { padding-bottom: 6rem; } /* espacio para sticky CTA */
}
@media (max-width: 575px) {
    .td-ev-hero__inner { padding-bottom: 2rem; }
}

/* ============================================
   PÁGINA DE CONTACTO
   ============================================ */
.td-contacto-section {
    padding: 4rem 0 5rem;
    background: #fff;
    overflow-x: hidden;
}

/* Datos de contacto */
.td-contacto-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.td-contacto-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.td-contacto-item:last-of-type { border-bottom: none; }
.td-contacto-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--td-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.td-contacto-item strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--td-accent);
    margin-bottom: 0.2rem;
}
.td-contacto-item p {
    font-size: 0.9rem;
    color: #444;
    margin: 0;
    line-height: 1.55;
}
.td-contacto-item a { color: var(--td-primary); text-decoration: none; }
.td-contacto-item a:hover { text-decoration: underline; }
.td-contacto-social {
    display: flex;
    gap: 0.75rem;
    padding-top: 1.25rem;
    flex-wrap: wrap;
}
.td-contacto-social a {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--td-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}
.td-contacto-social a:hover { opacity: 0.8; }
.td-contacto-social img { width: 18px; height: 18px; filter: brightness(0) invert(1); }

/* Formulario */
.td-contacto-form { display: flex; flex-direction: column; }
.td-form-label {
    display: block;
    font-size: 0.825rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.35rem;
    letter-spacing: 0.02em;
}
.td-form-label span { color: var(--td-primary); }
.td-form-input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-family: var(--td-font);
    font-size: 0.9rem;
    color: #222;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.td-form-input:focus {
    border-color: var(--td-primary);
    box-shadow: 0 0 0 3px rgba(236,0,47,0.1);
}
.td-form-input.is-invalid { border-color: var(--td-primary); }
.td-form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; cursor: pointer; }
.td-form-textarea { resize: vertical; min-height: 130px; }
.td-form-error {
    display: block;
    font-size: 0.8rem;
    color: var(--td-primary);
    margin-top: 0.3rem;
}
.td-form-chars {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.25rem;
}
.td-form-privacy {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #888;
}
.td-form-privacy a { color: var(--td-primary); }

/* Alertas */
.td-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}
.td-alert--success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.td-alert--error {
    background: #fff1f2;
    color: #9f1239;
    border: 1px solid #fecdd3;
}

/* Cloudflare Turnstile alineación */
.cf-turnstile {
    margin-top: 0.25rem;
    max-width: 100%;
    overflow: hidden;
}
.cf-turnstile iframe {
    max-width: 100% !important;
}

@media (max-width: 767px) {
    .td-contacto-section { padding: 2.5rem 0 4rem; }
}

/* ============================================
   VISTA 360
   ============================================ */
.td-360-section {
    background: #0a0000;
    padding-bottom: 0;
}
.td-360-wrap {
    position: relative;
    width: 100%;
    line-height: 0;
}
.td-360-wrap iframe {
    display: block;
    width: 100%;
    height: 600px;
    border: 0;
}
.td-360-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    color: rgba(255,255,255,0.55);
    font-size: 0.82rem;
    padding: 0.85rem 0;
    letter-spacing: 0.02em;
}
.td-360-hint i { color: var(--td-secondary); }

.td-360-info {
    padding: 3.5rem 0 4rem;
    background: #f9f6f6;
}
.td-360-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    border: 1px solid #f0e8e8;
    height: 100%;
}
.td-360-card i {
    font-size: 1.75rem;
    color: var(--td-primary);
    display: block;
    margin-bottom: 0.75rem;
}
.td-360-card strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--td-black);
}
.td-360-card p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}
.td-360-card a { color: var(--td-primary); text-decoration: none; }
.td-360-card a:hover { text-decoration: underline; }

@media (max-width: 767px) {
    .td-360-wrap iframe { height: 320px; }
}

/* ============================================
   PROMOTORES — aviso privacidad
   ============================================ */
.td-promotores-aviso {
    margin-top: 1.5rem;
    padding: 1rem 1.1rem;
    background: #fff8f8;
    border: 1px solid #fce8e8;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #666;
    line-height: 1.5;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}
.td-promotores-aviso i {
    color: var(--td-primary);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* ============================================
   LOCALIDADES
   ============================================ */

/* Tabs de navegación entre foros */
.td-loc-tabs-wrap {
    background: #fff;
    border-bottom: 2px solid #f0e8e8;
    position: sticky;
    top: 0;
    z-index: 100;
}
.td-loc-tabs {
    display: flex;
    gap: 0;
}
.td-loc-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem 1.75rem;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #888;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}
.td-loc-tab:hover { color: var(--td-primary); }
.td-loc-tab.active {
    color: var(--td-primary);
    border-bottom-color: var(--td-primary);
}

/* Secciones de cada foro */
.td-loc-section {
    padding: 3.5rem 0 4rem;
    background: #fff;
}
.td-loc-section--alt {
    background: #f9f6f6;
}

/* Header de sección */
.td-loc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0e8e8;
}
.td-loc-titulo {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--td-black);
    margin-bottom: 0.4rem;
}
.td-loc-desc {
    color: #555;
    font-size: 0.95rem;
    margin: 0;
    max-width: 560px;
    line-height: 1.6;
}
.td-loc-capacidad {
    text-align: center;
    flex-shrink: 0;
    background: var(--td-black);
    color: #fff;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    min-width: 90px;
}
.td-loc-cap-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--td-primary);
    line-height: 1;
}
.td-loc-cap-label {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
}

/* Mapa interactivo (click para ampliar) */
.td-loc-mapa-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e8e0e0;
    cursor: zoom-in;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    background: #f5f5f5;
}
.td-loc-mapa-wrap img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}
.td-loc-mapa-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 0.3s;
}
.td-loc-mapa-overlay i { font-size: 1.25rem; }
.td-loc-mapa-wrap:hover img { transform: scale(1.02); }
.td-loc-mapa-wrap:hover .td-loc-mapa-overlay { opacity: 1; }

/* Panel de info: zonas, precios, acceso */
.td-loc-info-panel {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0e8e8;
    padding: 1.75rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
.td-loc-section--alt .td-loc-info-panel {
    background: #fff;
}
.td-loc-zonas-titulo {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.td-loc-zonas {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1.5rem;
}
.td-loc-zona {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f5f0f0;
}
.td-loc-zona:last-child { border-bottom: none; }
.td-loc-zona-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.td-loc-zona strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--td-black);
    margin-bottom: 0.15rem;
}
.td-loc-zona p {
    font-size: 0.82rem;
    color: #777;
    margin: 0;
    line-height: 1.4;
}
.td-loc-zona-aforo {
    font-size: 0.75rem;
    font-weight: 400;
    color: #999;
    margin-left: 4px;
}

.td-loc-precios-nota,
.td-loc-acceso {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.td-loc-precios-nota {
    background: #fff8f0;
    color: #664400;
    border: 1px solid #ffe4b5;
}
.td-loc-acceso {
    background: #f0f4ff;
    color: #1a2a6c;
    border: 1px solid #c5d0f0;
    margin-bottom: 0;
}
.td-loc-precios-nota i { color: #e67e00; flex-shrink: 0; margin-top: 1px; }
.td-loc-acceso i { color: #1a2a6c; flex-shrink: 0; margin-top: 1px; }
.td-loc-precios-nota p,
.td-loc-acceso p { margin: 0; }
.td-loc-acceso a { color: var(--td-primary); text-decoration: none; font-weight: 600; }

@media (max-width: 991px) {
    .td-loc-header { flex-direction: column; gap: 1rem; }
    .td-loc-capacidad { align-self: flex-start; flex-direction: row; display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; }
    .td-loc-cap-num { font-size: 1.4rem; }
}
@media (max-width: 575px) {
    .td-loc-tab { padding: 0.85rem 1rem; font-size: 0.8rem; }
}

/* ============================================
   HISTORIA — Intro
   ============================================ */
.td-historia-intro {
    padding: 3.5rem 0 0;
    background: #fff;
}
.td-historia-lead {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
    margin: 0;
}

/* ============================================
   HISTORIA — Timeline
   ============================================ */
.td-historia-timeline-section {
    padding: 3rem 0 4rem;
    background: #fff;
}

.td-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0;
}

/* Línea central */
.td-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #f0e0e0 8%, var(--td-primary) 20%, var(--td-primary) 80%, #f0e0e0 92%, transparent);
    transform: translateX(-50%);
}

.td-timeline-item {
    position: relative;
    display: flex;
    margin-bottom: 3rem;
}

/* Marcador central */
.td-timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    background: var(--td-black);
    border: 3px solid var(--td-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--td-primary);
    font-size: 1.1rem;
    z-index: 2;
    top: 0.5rem;
    flex-shrink: 0;
}
.td-timeline-item--highlight .td-timeline-marker {
    background: var(--td-primary);
    border-color: var(--td-primary);
    color: #fff;
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
    top: 0.15rem;
    box-shadow: 0 0 0 6px rgba(236,0,47,0.15);
}

/* Cards izquierda */
.td-timeline-item--left {
    justify-content: flex-start;
    padding-right: calc(50% + 2rem);
}
/* Cards derecha */
.td-timeline-item--right {
    justify-content: flex-end;
    padding-left: calc(50% + 2rem);
}

.td-timeline-card {
    background: #fff;
    border: 1px solid #f0e8e8;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    position: relative;
    width: 100%;
}
.td-timeline-item--highlight .td-timeline-card {
    border-color: var(--td-primary);
    box-shadow: 0 4px 24px rgba(236,0,47,0.12);
}

/* Flecha del card hacia la línea */
.td-timeline-item--left .td-timeline-card::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 1.25rem;
    border: 9px solid transparent;
    border-left-color: #f0e8e8;
}
.td-timeline-item--left .td-timeline-card::before {
    content: '';
    position: absolute;
    right: -8px;
    top: 1.27rem;
    border: 8px solid transparent;
    border-left-color: #fff;
    z-index: 1;
}
.td-timeline-item--right .td-timeline-card::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 1.25rem;
    border: 9px solid transparent;
    border-right-color: #f0e8e8;
}
.td-timeline-item--right .td-timeline-card::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 1.27rem;
    border: 8px solid transparent;
    border-right-color: #fff;
    z-index: 1;
}
.td-timeline-item--highlight .td-timeline-card::after { border-left-color: var(--td-primary); }

.td-timeline-year {
    display: inline-block;
    background: var(--td-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    margin-bottom: 0.65rem;
}
.td-timeline-titulo {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--td-black);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.td-timeline-texto {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.65;
    margin: 0;
}
.td-timeline-detail {
    margin-top: 0.85rem;
    padding: 0.75rem 1rem;
    background: #fff8f0;
    border-radius: 8px;
    border: 1px solid #ffe4b5;
    font-size: 0.85rem;
    color: #664400;
    line-height: 1.5;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}
.td-timeline-detail i { color: #e67e00; flex-shrink: 0; margin-top: 1px; }

/* Responsive timeline */
@media (max-width: 767px) {
    .td-timeline::before { left: 22px; }
    .td-timeline-item--left,
    .td-timeline-item--right {
        padding-left: 56px;
        padding-right: 0;
        justify-content: flex-start;
    }
    .td-timeline-marker {
        left: 0;
        transform: none;
    }
    .td-timeline-item--left .td-timeline-card::after,
    .td-timeline-item--right .td-timeline-card::after {
        left: -10px; right: auto;
        border-left-color: transparent;
        border-right-color: #f0e8e8;
    }
    .td-timeline-item--left .td-timeline-card::before,
    .td-timeline-item--right .td-timeline-card::before {
        left: -8px; right: auto;
        border-left-color: transparent;
        border-right-color: #fff;
    }
    .td-timeline-item--highlight .td-timeline-card::after { border-right-color: var(--td-primary); border-left-color: transparent; }
}

/* ============================================
   HISTORIA — Datos arquitectónicos
   ============================================ */
.td-historia-datos {
    padding: 3.5rem 0 4.5rem;
    background: #f9f6f6;
}
.td-historia-datos-titulo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--td-black);
    margin-bottom: 1.75rem;
    text-align: center;
}
.td-historia-dato-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0e8e8;
    padding: 1.75rem 1.5rem;
    text-align: center;
    height: 100%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.td-historia-dato-card i {
    font-size: 1.75rem;
    color: var(--td-primary);
    display: block;
    margin-bottom: 0.65rem;
}
.td-historia-dato-card strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 0.4rem;
}
.td-historia-dato-card p {
    font-size: 0.92rem;
    color: var(--td-black);
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

/* ============================================
   HISTÓRICO
   ============================================ */

/* Barra de filtro */
.td-historico-filtro-wrap {
    background: #fff;
    border-bottom: 1px solid #f0e8e8;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.td-historico-filtro {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.td-historico-filtro__label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #888;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-right: 0.25rem;
}
.td-historico-filtro__group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.td-historico-filtro__group label {
    font-size: 0.82rem;
    color: #666;
    font-weight: 600;
    white-space: nowrap;
}
.td-historico-select {
    padding: 0.4rem 2.5rem 0.4rem 0.75rem;
    font-size: 0.88rem;
    min-width: 0;
    width: auto;
    cursor: pointer;
}

/* Encabezado de resultados */
.td-historico-section {
    padding: 2.5rem 0 5rem;
    background: #f9f6f6;
    min-height: 400px;
}
.td-historico-results-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0e0e0;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.td-historico-mes-titulo {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 800;
    color: var(--td-black);
    margin: 0;
    text-transform: capitalize;
}
.td-historico-count {
    font-size: 0.82rem;
    color: #999;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* Lista de eventos */
.td-historico-lista {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0e8e8;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}

.td-historico-item {
    display: grid;
    grid-template-columns: 72px 1fr auto auto;
    align-items: center;
    gap: 1.25rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #f5f0f0;
    text-decoration: none;
    color: inherit;
    transition: background 0.18s;
}
.td-historico-item:last-child { border-bottom: none; }
.td-historico-item:hover { background: #fff8f8; }

.td-historico-item__img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0e8e8;
}
.td-historico-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.td-historico-item__body { min-width: 0; }
.td-historico-item__fecha {
    font-size: 0.78rem;
    color: #999;
    margin: 0 0 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.td-historico-item__titulo {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--td-black);
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.td-historico-item:hover .td-historico-item__titulo { color: var(--td-primary); }

.td-historico-item__sala { flex-shrink: 0; }
.td-historico-sala-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
}
.td-historico-sala-badge--teatro {
    background: rgba(10,0,0,0.07);
    color: var(--td-black);
}
.td-historico-sala-badge--estudio {
    background: rgba(236,0,47,0.08);
    color: var(--td-primary);
}

.td-historico-item__cta {
    color: #ccc;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}
.td-historico-item:hover .td-historico-item__cta {
    color: var(--td-primary);
    transform: translateX(3px);
}

/* =============================================
   INSTALACIONES
   ============================================= */

.td-inst-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    transition: box-shadow 0.2s;
}
.td-inst-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.07); }

.td-inst-card__icon {
    width: 40px;
    height: 40px;
    background: rgba(236,0,47,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--td-primary);
    font-size: 1.1rem;
    margin-bottom: 0.9rem;
}
.td-inst-card__titulo {
    font-size: 1rem;
    font-weight: 700;
    color: var(--td-black);
    margin-bottom: 0.85rem;
}
.td-inst-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.td-inst-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid #f2f2f2;
    font-size: 0.85rem;
}
.td-inst-list li:last-child { border-bottom: none; }
.td-inst-list li span { color: #888; flex: 1; }
.td-inst-list li strong { color: #222; text-align: right; flex-shrink: 0; }
.td-inst-list li a { color: var(--td-primary); }

.td-inst-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--td-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.85rem;
    text-decoration: none;
}
.td-inst-link:hover { text-decoration: underline; }

/* Bloque contacto técnico */
.td-inst-contacto {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: #f7f7f7;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    flex-wrap: wrap;
}
.td-inst-contacto > i {
    font-size: 2rem;
    color: var(--td-primary);
    flex-shrink: 0;
}
.td-inst-contacto > div { flex: 1; min-width: 200px; }
.td-inst-contacto strong { display: block; font-weight: 700; margin-bottom: 0.2rem; }
.td-inst-contacto p { margin: 0; color: #666; font-size: 0.9rem; }

/* =============================================
   PÁGINAS SIMPLES (estacionamientos, faq, aviso, etc.)
   ============================================= */

.td-simple-section {
    padding: 3rem 0 5rem;
}

/* Tarjeta de mensaje (confirmación / gracias) */
.td-msg-card {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.td-msg-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1.25rem;
}
.td-msg-icon--ok { color: var(--td-primary); }
.td-msg-titulo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--td-black);
}
.td-msg-texto {
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* FAQ Accordion */
.td-faq-accordion { margin-bottom: 2.5rem; }
.td-faq-item {
    border: none;
    border-bottom: 1px solid #eee;
    background: transparent;
}
.td-faq-item:first-child { border-top: 1px solid #eee; }
.td-faq-btn {
    background: transparent !important;
    color: var(--td-black) !important;
    font-family: var(--td-font);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 1.1rem 1rem 1.1rem 0;
    box-shadow: none !important;
    border: none;
}
.td-faq-btn:not(.collapsed) { color: var(--td-primary) !important; }
.td-faq-btn::after {
    filter: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: 12px;
}
.td-faq-body {
    padding: 0 1rem 1.25rem 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
}
.td-faq-list {
    margin: 0.5rem 0 0.75rem 1.25rem;
    padding: 0;
    color: #555;
}
.td-faq-list li { margin-bottom: 0.35rem; }
.td-faq-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--td-primary);
    font-weight: 600;
    font-size: 0.88rem;
    margin-top: 0.5rem;
    text-decoration: none;
}
.td-faq-link:hover { text-decoration: underline; }
.td-faq-contacto {
    font-size: 0.9rem;
    color: #777;
    margin-top: 2rem;
}
.td-faq-contacto a { color: var(--td-primary); font-weight: 600; }

/* Prosa (aviso de confidencialidad) */
.td-prose p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    text-align: justify;
}
.td-prose a { color: var(--td-primary); font-weight: 600; }

/* Accesibilidad */
.td-accesibilidad-lead {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}
.td-acc-bloque {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}
.td-acc-bloque:last-child { border-bottom: none; }
.td-acc-titulo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--td-black);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.td-acc-titulo i { color: var(--td-primary); }
.td-acc-bloque p { color: #555; line-height: 1.75; margin-bottom: 0.5rem; }

/* =============================================
   BÚSQUEDA
   ============================================= */

/* Barra de nueva búsqueda */
.td-busqueda-bar-wrap {
    background: #f7f7f7;
    border-bottom: 1px solid #eee;
    padding: 1.25rem 0;
}
.td-busqueda-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 640px;
}
.td-busqueda-input-wrap {
    position: relative;
    flex: 1;
}
.td-busqueda-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 0.9rem;
    pointer-events: none;
}
.td-busqueda-input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-family: var(--td-font);
    font-size: 0.95rem;
    color: #222;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.td-busqueda-input:focus {
    border-color: var(--td-primary);
    box-shadow: 0 0 0 3px rgba(236,0,47,0.1);
}

/* Badge sala sobre la imagen */
.td-busqueda-sala-badge {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
}
.td-busqueda-sala-badge--teatro {
    background: rgba(10,0,0,0.72);
    color: #fff;
}
.td-busqueda-sala-badge--estudio {
    background: var(--td-primary);
    color: #fff;
}

/* Estado vacío */
.td-busqueda-empty {
    text-align: center;
    padding: 5rem 1rem;
    color: #aaa;
}
.td-busqueda-empty i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    color: #ddd;
}
.td-busqueda-empty p { margin: 0 0 0.4rem; color: #666; font-size: 1rem; }
.td-busqueda-empty__sub { font-size: 0.88rem; color: #aaa !important; }

@media (max-width: 575px) {
    .td-busqueda-form { flex-direction: column; align-items: stretch; }
    .td-busqueda-form .td-btn-comprar { width: 100%; justify-content: center; }
}

/* Estado vacío */
.td-historico-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: #aaa;
}
.td-historico-empty i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    color: #ddd;
}
.td-historico-empty p { margin: 0 0 0.4rem; color: #666; font-size: 1rem; }
.td-historico-empty__sub { font-size: 0.88rem; color: #aaa !important; }

/* Responsive */
@media (max-width: 767px) {
    .td-historico-item {
        grid-template-columns: 56px 1fr auto;
        gap: 0.85rem;
        padding: 0.75rem 1rem;
    }
    .td-historico-item__img { width: 56px; height: 56px; }
    .td-historico-item__sala { display: none; }
    .td-historico-item__titulo { white-space: normal; }
}
@media (max-width: 480px) {
    .td-historico-filtro { gap: 0.5rem; }
    .td-historico-filtro__label { display: none; }
}
