/* =============================================================================
   Toursys WP Theme — theme.css
   Mobile-first. Compatible con Toursys WP-Integration plugin.
   ============================================================================= */

/* ── Variables ─────────────────────────────────────────────────────────────── */

:root {
    /* Colores del tema (overrides desde customizer vía inline CSS) */
    --tt-primary:       #0B5C6B;
    --tt-primary-dark:  #084956;
    --tt-accent:        #C8773A;
    --tt-accent-dark:   #A85E28;
    --tt-text:          #1A2830;
    --tt-muted:         #5A7280;
    --tt-bg:            #FAFAF8;
    --tt-surface:       #FFFFFF;
    --tt-border:        #DDE6EA;
    --tt-shadow-sm:     0 1px 4px rgba(0,0,0,.08);
    --tt-shadow:        0 4px 16px rgba(0,0,0,.1);
    --tt-shadow-lg:     0 8px 32px rgba(0,0,0,.14);
    --tt-radius:        10px;
    --tt-radius-lg:     18px;

    /* Tipografía */
    --tt-font:          -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --tt-font-display:  Georgia, "Times New Roman", serif;

    /* Espaciado */
    --tt-header-h:      68px;
    --tt-container:     1280px;
    --tt-content:       800px;

    /* Pasar valores al plugin Toursys (serán redefinidos por el admin desde la config del plugin) */
    --toursys-primary:       var(--tt-primary);
    --toursys-primary-dark:  var(--tt-primary-dark);
    --toursys-accent:        var(--tt-accent-dark); /* versión oscura para garantizar contraste en texto pequeño */
    --toursys-text:          var(--tt-text);
    --toursys-muted:         var(--tt-muted);
}

/* ── Reset base ────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    /* Overscroll color matches footer — no white flash at bottom on iOS */
    background: #0d1e26;
}

body {
    font-family: var(--tt-font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--tt-text);
    /* Dark background so iOS overscroll (top & bottom) matches header/footer */
    background: #0d1e26;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Color base de links — solo texto, sin color global que interfiera con UI */
a { text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.5rem; }

/* ── Accesibilidad ─────────────────────────────────────────────────────────── */

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: auto;
    height: auto;
    padding: .75rem 1.5rem;
    background: var(--tt-primary);
    color: #fff;
    border-radius: var(--tt-radius);
    z-index: 9999;
    font-weight: 700;
    outline: 3px solid #fff;
}
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ── Header ────────────────────────────────────────────────────────────────── */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--tt-header-h);
    background: rgba(255,255,255,0);
    transition: background .25s, box-shadow .25s;
}
.site-header.is-scrolled,
.site-header.is-opaque {
    background: rgba(13, 30, 38, .97);
    box-shadow: var(--tt-shadow-sm);
    backdrop-filter: blur(8px);
}
/* En páginas interiores el header siempre es oscuro */
body:not(.is-front-page) .site-header {
    background: rgba(13, 30, 38, .97);
    box-shadow: var(--tt-shadow-sm);
}

.site-header__inner {
    max-width: var(--tt-container);
    margin: 0 auto;
    padding: 0 1.25rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Branding */
.site-branding { flex-shrink: 0; }
.site-branding .custom-logo,
.site-branding__logo {
    height: 40px;
    width: auto;
    display: block;
}
.site-branding__logo-link { display: block; text-decoration: none; }

/* Logo sobre hero: filtro para hacerlo visible en blanco */
body.is-front-page .site-header:not(.is-scrolled) .site-branding__logo,
body.is-front-page .site-header:not(.is-scrolled) .custom-logo {
    filter: brightness(0) invert(1);
}

/* ── Selector de idioma ────────────────────────────────────────────────────── */

.lang-switcher {
    position: relative;
    flex-shrink: 0;
}
.lang-switcher__btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .38rem .65rem;
    background: transparent;
    border: 1.5px solid var(--tt-border);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--tt-text);
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    white-space: nowrap;
}
.lang-switcher__btn:hover {
    border-color: var(--tt-primary);
    color: var(--tt-primary);
    background: hsl(198, 60%, 95%);
}
.lang-switcher__globe { display: flex; align-items: center; opacity: .65; }
.lang-switcher__current { letter-spacing: .06em; }
.lang-switcher__arrow { display: flex; align-items: center; opacity: .5; transition: transform .2s; }
.lang-switcher[data-open] .lang-switcher__arrow { transform: rotate(180deg); }

/* Dropdown del idioma */
.lang-switcher__list {
    position: absolute;
    top: calc(100% + .5rem);
    right: 0;
    min-width: 140px;
    background: var(--tt-surface);
    border: 1px solid var(--tt-border);
    border-radius: var(--tt-radius);
    box-shadow: var(--tt-shadow);
    padding: .35rem;
    list-style: none;
    margin: 0;
    z-index: 200;
    animation: tt-dropdown-in .15s ease;
}
.lang-switcher__list[hidden] { display: none; }

@keyframes tt-dropdown-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lang-switcher__option {
    display: flex;
    align-items: center;
    gap: .6rem;
    width: 100%;
    padding: .55rem .75rem;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    transition: background .12s;
    color: var(--tt-text);
}
.lang-switcher__option:hover { background: hsl(198, 60%, 94%); }
.lang-switcher__option.is-active {
    background: hsl(198, 65%, 91%);
    color: var(--tt-primary);
}
.lang-switcher__option-code {
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .06em;
    min-width: 22px;
    color: inherit;
}
.lang-switcher__option-name {
    font-size: .82rem;
    font-weight: 500;
    color: var(--tt-muted);
}
.lang-switcher__option.is-active .lang-switcher__option-name { color: var(--tt-primary); }

/* Selector sobre header oscuro: borde blanco siempre */
.lang-switcher__btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .38rem .65rem;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,.35);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    color: rgba(255,255,255,.85);
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    white-space: nowrap;
}
.lang-switcher__btn:hover {
    border-color: rgba(255,255,255,.8);
    color: #fff;
    background: rgba(255,255,255,.12);
}
/* Eliminar override específico del hero — ya no es necesario */
body.is-front-page .site-header:not(.is-scrolled) .lang-switcher__btn {
    border-color: rgba(255,255,255,.35);
    color: rgba(255,255,255,.85);
}
body.is-front-page .site-header:not(.is-scrolled) .lang-switcher__btn:hover {
    border-color: rgba(255,255,255,.8);
    background: rgba(255,255,255,.12);
    color: #fff;
}

/* En portada sobre hero, barras del hamburger en blanco */

/* Nav */
.site-nav { margin-left: auto; }
.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: .25rem;
}
.site-nav__list li a {
    display: block;
    padding: .45rem .85rem;
    font-size: .88rem;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    border-radius: 6px;
    transition: background .15s, color .15s;
    text-decoration: none;
}
.site-nav__list li a:hover,
.site-nav__list li.current-menu-item > a {
    background: rgba(255,255,255,.12);
    color: #fff;
}
/* Siempre blancos — el header es siempre oscuro */
body.is-front-page .site-header:not(.is-scrolled) .site-nav__list li a {
    color: rgba(255,255,255,.85);
}
body.is-front-page .site-header:not(.is-scrolled) .site-nav__list li a:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
}

/* Dropdown */
.site-nav__list .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + .5rem);
    left: 0;
    min-width: 200px;
    background: var(--tt-surface);
    border-radius: var(--tt-radius);
    box-shadow: var(--tt-shadow);
    padding: .4rem 0;
    list-style: none;
    z-index: 100;
}
.site-nav__list li { position: relative; }
.site-nav__list li:hover > .sub-menu,
.site-nav__list li:focus-within > .sub-menu { display: block; }
.site-nav__list .sub-menu li a {
    padding: .55rem 1.1rem;
    color: var(--tt-text);
    font-weight: 500;
    border-radius: 0;
}
.site-nav__list .sub-menu li a:hover {
    background: hsl(198, 65%, 92%);
    color: var(--tt-primary);
}

/* Hamburger */
.site-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
    flex-shrink: 0;
}
.site-nav-toggle__bar {
    display: block;
    width: 24px;
    height: 2px;
    background: rgba(255,255,255,.85);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
    transform-origin: center;
}
body.is-front-page .site-header:not(.is-scrolled) .site-nav-toggle__bar {
    background: rgba(255,255,255,.85);
}
.site-nav-toggle[aria-expanded="true"] .site-nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.site-nav-toggle[aria-expanded="true"] .site-nav-toggle__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.site-nav-toggle[aria-expanded="true"] .site-nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */

.site-hero {
    position: relative;
    min-height: 100svh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0d3d4d;
    background-image: var(--hero-bg, none);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.site-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        170deg,
        rgba(5,25,35,.75) 0%,
        rgba(5,25,35,.45) 60%,
        rgba(5,25,35,.65) 100%
    );
    opacity: 1;
}
.site-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 6rem 1.5rem 4rem;
    max-width: 780px;
    color: #fff; /* todos los hijos heredan blanco por defecto */
}
.site-hero__heading {
    font-family: var(--tt-font-display);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -.02em;
    text-shadow: 0 2px 12px rgba(0,0,0,.25);
    margin-bottom: 1rem;
}
.site-hero__sub {
    font-size: clamp(.95rem, 2.5vw, 1.2rem);
    color: rgba(255,255,255,.88);
    margin-bottom: 2.25rem;
    line-height: 1.55;
}
.site-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    justify-content: center;
}

/* ── Botones ───────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .65rem 1.4rem;
    border-radius: var(--tt-radius);
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .01em;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background .18s, color .18s, border-color .18s, transform .12s, box-shadow .18s;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }

.btn--primary {
    background: var(--tt-accent);
    color: #fff;
    border-color: var(--tt-accent);
}
.btn--primary:hover {
    background: var(--tt-accent-dark);
    border-color: var(--tt-accent-dark);
    box-shadow: 0 4px 16px rgba(200,119,58,.35);
    color: #fff;
}

.btn--secondary {
    background: var(--tt-primary);
    color: #fff;
    border-color: var(--tt-primary);
}
.btn--secondary:hover {
    background: var(--tt-primary-dark);
    border-color: var(--tt-primary-dark);
    color: #fff;
}

.btn--outline {
    background: transparent;
    color: var(--tt-primary);
    border-color: var(--tt-primary);
}
.btn--outline:hover {
    background: var(--tt-primary);
    color: #fff;
}

.btn--outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.7);
}
.btn--outline-light:hover {
    background: rgba(255,255,255,.15);
    border-color: #fff;
    color: #fff;
}

.btn--sm { padding: .45rem 1rem; font-size: .8rem; }
.btn--lg { padding: .85rem 2rem; font-size: 1rem; }

/* ── Layout general ────────────────────────────────────────────────────────── */

.site-main {
    padding-top: var(--tt-header-h);
    min-height: 60vh;
    flex: 1; /* sticky footer */
    background: var(--tt-bg); /* light bg only for content, not body overscroll */
}
/* Páginas con hero: el hero ya empieza desde arriba, padding lo maneja el propio hero */
.site-main .site-hero { margin-top: calc(-1 * var(--tt-header-h)); padding-top: var(--tt-header-h); }

.site-main--full {
    padding-top: var(--tt-header-h);
}

.page-wrap {
    max-width: var(--tt-container);
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}
.page-wrap--narrow {
    max-width: var(--tt-content);
    margin: 0 auto;
    padding: 3rem 1.25rem 5rem;
}

.page-content--full {
    padding: 2.5rem 1.25rem 4rem;
}

/* Páginas de ancho completo: el plugin maneja su propio contenedor */
.page-full-width .entry-content {
    padding: 0;
    max-width: none;
}
.site-main--full .entry-content {
    padding: 0;
    max-width: none;
}

/* ── Página / artículo general ─────────────────────────────────────────────── */

.page-article__header { margin-bottom: 2rem; }
.page-article__title {
    font-family: var(--tt-font-display);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: var(--tt-text);
    line-height: 1.2;
    font-weight: 700;
}

.entry-content {
    max-width: var(--tt-content);
    margin: 0 auto;
}
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content h2 { font-size: 1.6rem; margin-top: 2.5rem; font-family: var(--tt-font-display); }
.entry-content h3 { font-size: 1.25rem; margin-top: 2rem; }
.entry-content h4 { font-size: 1.05rem; margin-top: 1.5rem; }
.entry-content p  { line-height: 1.75; }
.entry-content ul,
.entry-content ol { padding-left: 1.6rem; }
.entry-content li { margin-top: .35rem; line-height: 1.7; }
.entry-content blockquote {
    border-left: 4px solid var(--tt-primary);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: hsl(198, 60%, 96%);
    border-radius: 0 var(--tt-radius) var(--tt-radius) 0;
    color: var(--tt-text);
    font-style: italic;
}
.entry-content img { border-radius: var(--tt-radius); max-width: 100%; height: auto; }
/* Las imágenes dentro de tarjetas del plugin usan posición absoluta + padding-top
   para el ratio fijo. Restauramos height:100% para que object-fit:cover funcione. */
.entry-content .toursys-card__image img {
    height: 100%;
    max-width: none;
    border-radius: 0;
}
.entry-content a:not([class*="toursys"]):not([class*="btn"]) { color: var(--tt-primary); }
.entry-content a:not([class*="toursys"]):not([class*="btn"]):hover { color: var(--tt-primary-dark); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.entry-content th,
.entry-content td { border: 1px solid var(--tt-border); padding: .6rem .9rem; text-align: left; }
.entry-content th { background: hsl(198, 60%, 95%); font-weight: 700; }

/* Las páginas con shortcodes del plugin NO necesitan max-width ni padding */
.is-full-width .entry-content,
.toursys-catalog-page .entry-content {
    max-width: none;
    padding: 0;
}

/* ── Blog: grid de tarjetas ────────────────────────────────────────────────── */

.archive-header { margin-bottom: 2rem; }
.archive-header__title {
    font-family: var(--tt-font-display);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--tt-text);
}
.archive-header__title span { color: var(--tt-primary); }

.post-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.post-card {
    background: var(--tt-surface);
    border-radius: var(--tt-radius-lg);
    box-shadow: var(--tt-shadow-sm);
    overflow: hidden;
    transition: box-shadow .2s, transform .15s;
    display: flex;
    flex-direction: column;
}
.post-card:hover { box-shadow: var(--tt-shadow); transform: translateY(-2px); }

.post-card__thumb {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}
.post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.post-card:hover .post-card__thumb img { transform: scale(1.04); }

.post-card__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    flex: 1;
}
.post-card__meta { font-size: .78rem; color: var(--tt-muted); }
.post-card__title { font-size: 1.05rem; font-weight: 700; line-height: 1.35; }
.post-card__title a { color: var(--tt-text); text-decoration: none; }
.post-card__title a:hover { color: var(--tt-primary); }
.post-card__excerpt { font-size: .88rem; color: var(--tt-muted); line-height: 1.6; flex: 1; }

/* Paginación del blog */
.pagination { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0 .75rem;
    border-radius: var(--tt-radius);
    font-size: .88rem;
    font-weight: 600;
    color: var(--tt-text);
    background: var(--tt-surface);
    border: 1px solid var(--tt-border);
    text-decoration: none;
    transition: background .15s, color .15s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--tt-primary);
    color: #fff;
    border-color: var(--tt-primary);
}

/* ── Post individual ───────────────────────────────────────────────────────── */

.single-post__thumb {
    margin: -2.5rem -1.25rem 2rem;
    max-height: 460px;
    overflow: hidden;
}
.single-post__thumb img { width: 100%; height: 100%; object-fit: cover; }
.single-post__meta { font-size: .8rem; color: var(--tt-muted); margin-bottom: .5rem; }
.single-post__title {
    font-family: var(--tt-font-display);
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--tt-text);
    margin-bottom: 2rem;
}
.single-post__content { max-width: var(--tt-content); margin: 0 auto; }
.single-post__footer { max-width: var(--tt-content); margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--tt-border); }
.entry-tags { font-size: .85rem; color: var(--tt-muted); }
.entry-tags a { display: inline-block; padding: .25rem .65rem; border-radius: 999px; background: hsl(198,60%,92%); color: var(--tt-primary); font-weight: 600; margin: .2rem; text-decoration: none; }

/* ── 404 ───────────────────────────────────────────────────────────────────── */

.error-404 { text-align: center; padding: 4rem 0; }
.error-404__code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--tt-border);
    line-height: 1;
    font-family: var(--tt-font-display);
}
.error-404__title { font-size: 1.8rem; font-weight: 700; color: var(--tt-text); margin: .5rem 0; }
.error-404__sub { color: var(--tt-muted); margin-bottom: 2rem; }
.error-404__actions { margin-bottom: 2rem; }

/* ── Formulario de búsqueda ────────────────────────────────────────────────── */

.search-form { display: flex; gap: .5rem; max-width: 480px; margin: 1.5rem auto 0; }
.search-form input[type="search"] {
    flex: 1;
    padding: .65rem 1rem;
    border: 1px solid var(--tt-border);
    border-radius: var(--tt-radius);
    font-size: .95rem;
    outline: none;
    transition: border-color .15s;
}
.search-form input[type="search"]:focus { border-color: var(--tt-primary); }
.search-form button[type="submit"] {
    padding: .65rem 1.25rem;
    background: var(--tt-primary);
    color: #fff;
    border: none;
    border-radius: var(--tt-radius);
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}
.search-form button[type="submit"]:hover { background: var(--tt-primary-dark); }

/* ── Footer ────────────────────────────────────────────────────────────────── */

.site-footer {
    background: #0d1e26;
    color: rgba(255,255,255,.75);
    margin-top: auto;
}
.site-footer__inner {
    max-width: var(--tt-container);
    margin: 0 auto;
    padding: 3rem 1.25rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.site-footer__brand .custom-logo,
.site-footer__logo { filter: brightness(0) invert(1); opacity: .8; height: 36px; width: auto; }
.site-footer__logo-link { display: inline-block; text-decoration: none; }
.site-footer__name { font-size: 1.25rem; font-weight: 800; color: #fff; }
.site-footer__tagline { font-size: .88rem; color: rgba(255,255,255,.55); margin-top: .5rem; max-width: 340px; line-height: 1.55; }

.site-footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.site-footer__list a { color: rgba(255,255,255,.65); font-size: .88rem; text-decoration: none; transition: color .15s; }
.site-footer__list a:hover { color: #fff; }

.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    background: rgba(0,0,0,.2);
    /* Safe area for iPhone home indicator */
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.site-footer__bottom .site-footer__inner { padding: 1rem 1.25rem; }
.site-footer__copy { font-size: .78rem; color: rgba(255,255,255,.4); }

/* ── Compatibilidad con el plugin Toursys ──────────────────────────────────── */

/*
 * El plugin tiene sus propios estilos. Aquí solo nos aseguramos de que
 * el contenedor del tema no interfiera con el layout del plugin.
 * El plugin ya aplica !important en .toursys-catalog-page .entry-content
 * para eliminar max-width y padding. Aquí reforzamos para la plantilla full-width.
 */

.site-main--full > .page-full-width,
.site-main--full > .page-full-width > .entry-content {
    max-width: none;
    padding: 0;
    margin: 0;
}

/* Asegurar que los shortcodes del plugin usen el ancho completo disponible */
.entry-content > .toursys-catalog,
.entry-content > .toursys-service,
.entry-content > .toursys-hotels-wrap,
.entry-content > .toursys-package-detail,
.entry-content > .toursys-packages-wrap {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

/* ── Responsive — tablet ────────────────────────────────────────────────────── */

@media (min-width: 640px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer__inner { flex-direction: row; flex-wrap: wrap; gap: 3rem; }
    .site-footer__brand { flex: 1 1 200px; }
    .site-footer__nav { flex: 0 0 auto; }
    .site-footer__list { flex-direction: column; }
}

/* ── Responsive — desktop ───────────────────────────────────────────────────── */

@media (min-width: 1024px) {
    .site-nav-toggle { display: none; }
    .site-nav { display: block; }
    .post-grid { grid-template-columns: repeat(3, 1fr); }

    .single-post__thumb {
        margin: -2.5rem -2rem 2.5rem;
        max-height: 520px;
    }
    .page-wrap { padding: 3.5rem 2rem 5rem; }
}

/* ── Responsive — móvil: nav desplegable ─────────────────────────────────────── */

/* Lock background scroll when mobile nav is open */
body.nav-open { overflow: hidden; }

@media (max-width: 1023px) {
    .site-nav-toggle { display: flex; }
    .site-nav {
        display: none;
        position: fixed;
        top: var(--tt-header-h);
        left: 0;
        right: 0;
        background: #0d1e26;
        box-shadow: var(--tt-shadow-lg);
        padding: 1rem;
        z-index: 999;
        max-height: calc(100svh - var(--tt-header-h));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .site-nav.is-open { display: block; }
    .site-nav__list { flex-direction: column; gap: .25rem; }
    .site-nav__list li a { padding: .75rem 1rem; font-size: .95rem; border-radius: var(--tt-radius); color: rgba(255,255,255,.85); }
    .site-nav__list li a:hover { background: rgba(255,255,255,.1); color: #fff; }
    .site-nav__list .sub-menu {
        position: static;
        box-shadow: none;
        background: rgba(255,255,255,.07);
        border-radius: var(--tt-radius);
        margin-top: .25rem;
        padding: .25rem 0;
    }
    .site-nav__list li:hover > .sub-menu,
    .site-nav__list li:focus-within > .sub-menu { display: block; }
}

/* WordPress admin bar offset */
body.admin-bar .site-header { top: 32px; }
body.admin-bar .site-nav     { top: calc(32px + var(--tt-header-h)); }
@media screen and (max-width: 782px) {
    body.admin-bar .site-header { top: 46px; }
    body.admin-bar .site-nav     { top: calc(46px + var(--tt-header-h)); }
}

@media (max-width: 639px) {
    .site-hero__actions { flex-direction: column; align-items: center; }
    .btn--lg { width: 100%; max-width: 320px; justify-content: center; }
    .post-grid { grid-template-columns: 1fr; }
}

/* ── Utilidades ─────────────────────────────────────────────────────────────── */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* Destacado de secciones en portada */
.section-title {
    font-family: var(--tt-font-display);
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    color: var(--tt-text);
    font-weight: 700;
    margin-bottom: 1.75rem;
    line-height: 1.2;
}
.section-title--center { text-align: center; }
.section-lead {
    font-size: 1.05rem;
    color: var(--tt-muted);
    max-width: 640px;
    line-height: 1.7;
    margin: -.75rem auto 2rem;
    text-align: center;
}
