/*
Theme Name: Travel
Theme URI: https://radioscr.com/
Author: RadiosCR.com
Description: Theme de tours y viajes: cabecera verde con el nombre a la izquierda y el menu a la derecha (letras blancas, hover amarillo), hero de bienvenida con el logotipo, rejilla de destinos a 3 columnas (hasta 1400px) y pie en dos columnas (About Us / Contact Us) con barra inferior centrada. Sin barra lateral.
Version: 2.0.0
Requires PHP: 8.2
License: MIT
Text Domain: theme-travel
Tags: travel, tours, green, hero, destinations, grid, no-sidebar, custom-colors, custom-menu, custom-logo
*/

/* ============================================================
   1. TOKENS
   ============================================================ */
:root {
    /* Paleta tours: verde selva + amarillo sol sobre blanco */
    --site-primary: #137a3f;
    /* verde: cabecera, pie, titulares y enlaces */
    --site-primary-dark: #0f6634;
    --site-primary-deep: #0a4522;
    /* barra inferior del pie */
    --site-accent: #ffd233;
    /* amarillo: hover del menu, botones, acentos */
    --site-accent-strong: #e6b800;
    --site-accent-soft: #fff8dc;
    --site-on-dark: #ffffff;

    --site-bg: #ffffff;
    --site-surface: #ffffff;
    --site-surface-alt: #f4f8f4;
    --site-text: #1e2a22;
    --site-text-muted: #55655c;
    --site-text-light: #7b8a80;
    --site-border: #e2ebe3;
    --site-border-soft: #eef4ef;

    --site-shadow-sm: 0 1px 2px rgba(20, 40, 28, .06);
    --site-shadow-md: 0 8px 22px -10px rgba(20, 60, 35, .22), 0 2px 6px -2px rgba(20, 60, 35, .08);
    --site-shadow-lg: 0 26px 50px -26px rgba(12, 60, 32, .38), 0 10px 22px -14px rgba(20, 60, 35, .18);

    --site-radius-sm: 8px;
    --site-radius: 14px;
    --site-radius-lg: 20px;

    --site-space-1: 4px;
    --site-space-2: 8px;
    --site-space-3: 12px;
    --site-space-4: 16px;
    --site-space-5: 20px;
    --site-space-6: 24px;
    --site-space-7: 28px;
    --site-space-8: 32px;
    --site-space-10: 40px;
    --site-space-12: 48px;
    --site-space-16: 64px;

    --font-sans: "Segoe UI", ui-rounded, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

    /* Ancho maximo pedido para la rejilla de destinos */
    --container-max: 1400px;
    --header-h: 76px;
}

/* ============================================================
   2. BASE / RESET
   ============================================================ */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--site-text);
    background: var(--site-bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.nav-open {
    overflow: hidden;
}

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

a {
    color: var(--site-primary);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--site-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 var(--site-space-4);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.015em;
    color: var(--site-primary);
}

p {
    margin: 0 0 var(--site-space-4);
}

hr {
    border: 0;
    border-top: 1px solid var(--site-border);
    margin: var(--site-space-6) 0;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--site-space-6);
}

/* Accesibilidad */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: var(--site-accent);
    color: var(--site-primary-deep);
    padding: 10px 18px;
    border-radius: 0 0 var(--site-radius-sm) var(--site-radius-sm);
    font-weight: 700;
}

.skip-link:focus {
    left: 12px;
    color: var(--site-primary-deep);
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.skip-link.screen-reader-text:focus {
    position: static !important;
    width: auto;
    height: auto;
    clip: auto;
    white-space: normal;
}

/* ============================================================
   3. LAYOUT (sin barra lateral)
   ============================================================ */
.site-shell {
    background: var(--main-bg, var(--site-bg));
    padding: var(--site-space-10) 0 var(--site-space-12);
    min-height: 40vh;
}

.site-shell-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--site-space-8);
    align-items: start;
}

.site-content-area {
    min-width: 0;
}

/* La ficha del tour ocupa TODO el ancho del contenedor (contenido + columna
   de contacto), como la web de referencia. Las paginas de texto simple se
   mantienen en un ancho comodo de lectura. */
.content-single {
    max-width: none;
}

.content-page {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================================
   4. CABECERA VERDE
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 120;
    background: var(--hdr-bg, var(--site-primary));
    box-shadow: 0 1px 0 rgba(255, 255, 255, .10);
    transition: box-shadow .25s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 12px 28px -20px rgba(0, 0, 0, .65);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--site-space-6);
    min-height: var(--header-h);
}

.site-branding {
    flex: 0 1 auto;
    min-width: 0;
}

.site-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    max-height: 46px;
    width: auto;
}

.site-title {
    display: inline-block;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 52vw;
}

.site-logo-link:hover .site-title {
    color: var(--site-accent);
}

/* Menu horizontal (derecha) */
.site-nav-desktop .menu-items,
.site-nav-desktop .menu-fallback .menu-items {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav-desktop .menu-items a,
.site-nav-desktop .menu-fallback a {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .01em;
    transition: color .18s ease, background-color .18s ease;
}

.site-nav-desktop .menu-items a:hover,
.site-nav-desktop .menu-items a:focus,
.site-nav-desktop .menu-fallback a:hover {
    color: var(--site-accent);
}

.site-nav-desktop .current-menu-item > a {
    color: var(--site-accent);
}

/* Hamburguesa (movil) */
.site-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    cursor: pointer;
}

.site-nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: transform .22s ease, opacity .18s ease;
}

.site-nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.site-nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Cajon lateral */
.site-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 30, 16, .55);
    z-index: 130;
}

.site-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(86vw, 330px);
    background: var(--site-primary);
    z-index: 140;
    transform: translateX(105%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
    gap: var(--site-space-4);
    padding: var(--site-space-5);
    overflow-y: auto;
    box-shadow: -20px 0 50px -30px rgba(0, 0, 0, .8);
}

.site-drawer.is-open {
    transform: translateX(0);
}

.site-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--site-space-3);
    padding-bottom: var(--site-space-3);
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.site-drawer-title {
    color: #fff;
    font-weight: 800;
    font-size: 17px;
}

.site-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 10px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.site-drawer .menu-items,
.site-drawer .menu-fallback .menu-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-drawer .menu-items a,
.site-drawer .menu-fallback a {
    display: block;
    padding: 13px 16px;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}

.site-drawer .menu-items a:hover,
.site-drawer .menu-fallback a:hover,
.site-drawer .current-menu-item > a {
    color: var(--site-accent);
    background: rgba(255, 255, 255, .08);
}

/* ============================================================
   5. HERO DE BIENVENIDA (logo + mensaje)
   ============================================================ */
.travel-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    /* Alto del bloque, ajustable en Personalizar → Portada → «Alto del hero».
       `header.php` escribe la variable --travel-hero-h en el propio <section>;
       si no se ha tocado, manda el valor de siempre (500px). */
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: var(--travel-hero-h, 500px);
    padding: var(--site-space-16) 0;
    text-align: center;
    background: linear-gradient(150deg, var(--site-primary) 0%, #178f4a 55%, #0f6634 100%);
}

.travel-hero.no-image {
    background:
        radial-gradient(900px 420px at 82% -10%, rgba(255, 210, 51, .28), transparent 62%),
        radial-gradient(760px 380px at 6% 110%, rgba(10, 69, 34, .55), transparent 60%),
        linear-gradient(150deg, var(--site-primary) 0%, #178f4a 60%, var(--site-primary-dark) 100%);
}

/* Imagen de fondo (Personalizar → Imagen de fondo del hero): encuadre
   centrado, sin repetir y cubriendo todo el bloque. */
.travel-hero.has-image {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Lo que va ENCIMA de la imagen del hero (Personalizar → Portada → «Fundido
   sobre la imagen»). Son dos capas, y las dos se controlan desde el panel con
   variables que escribe header.php en el <section>:

   1. TINTE (background-color): el color de --travel-hero-ov-color con la fuerza
      de --travel-hero-ov-strength (0% = sin tinte, se ve la foto tal cual).
      `color-mix()` compone el rgba; la línea de arriba es el respaldo para
      navegadores que no lo entiendan (se quedan con el tinte de siempre).
   2. FUNDIDO (background-image): de transparente hasta --travel-hero-fade-color,
      empezando en --travel-hero-fade-start. Por encima de ese punto la imagen se
      ve entera, y abajo se funde con el color de la sección siguiente. */
.travel-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: rgba(10, 69, 34, .72);
    background-color: color-mix(in srgb, var(--travel-hero-ov-color, #0a4522) var(--travel-hero-ov-strength, 0%), transparent);
    background-image: linear-gradient(
        180deg,
        transparent 0%,
        transparent var(--travel-hero-fade-start, 55%),
        var(--travel-hero-fade-color, #ffffff) 100%
    );
}

.travel-hero-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--site-space-4);
}

.travel-hero-logo {
    /* Alto del logo del hero (Personalizar → Portada → «Alto del logo»): es un
       TOPE, así que una imagen más pequeña se queda en su tamaño natural y
       nunca se pixela. `max-width: 100%` evita que un logo muy ancho se salga. */
    max-height: var(--travel-hero-logo-h, 350px);
    max-width: 100%;
    width: auto;
    margin: 0 auto var(--site-space-3);
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .30));
}

.travel-hero-brand {
    margin: 0 0 var(--site-space-2);
    color: #fff;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.travel-hero-title {
    margin: 0;
    max-width: 900px;
    color: #fff;
    font-size: clamp(30px, 5vw, 54px);
    font-weight: 800;
    letter-spacing: -.025em;
    /* BORDE DE LAS LETRAS (Personalizar → Portada): se dibuja con 8 sombras sin
       desenfoque alrededor del glifo (arriba, abajo, lados y diagonales), que es
       lo que entienden TODOS los navegadores. Grosor 0 = sin borde (las 8
       sombras caen en el mismo sitio y no se ven) y al final va la sombra suave
       de siempre. Las dos variables las escribe header.php en el <section>. */
    --tol-c: var(--travel-hero-tol-color, #000000);
    --tol-w: var(--travel-hero-tol-width, 2px);
    text-shadow:
        calc(var(--tol-w) * -1) calc(var(--tol-w) * -1) 0 var(--tol-c),
        var(--tol-w) calc(var(--tol-w) * -1) 0 var(--tol-c),
        calc(var(--tol-w) * -1) var(--tol-w) 0 var(--tol-c),
        var(--tol-w) var(--tol-w) 0 var(--tol-c),
        calc(var(--tol-w) * -1) 0 0 var(--tol-c),
        var(--tol-w) 0 0 var(--tol-c),
        0 calc(var(--tol-w) * -1) 0 var(--tol-c),
        0 var(--tol-w) 0 var(--tol-c),
        0 3px 26px rgba(0, 0, 0, .28);
}

/* ============================================================
   5b. HERO DE LA FICHA DE TOUR
   Imagen destacada de fondo + capa negra al 60% + titulo centrado en blanco.
   ============================================================ */
.tour-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(150deg, var(--site-primary) 0%, #178f4a 60%, var(--site-primary-dark) 100%);
}

.tour-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Encuadre del fondo: se ancla arriba y centrado (no se corta lo de arriba) */
    object-position: top center;
    z-index: -2;
}

.tour-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(0, 0, 0, .6);
}

.tour-hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tour-hero-title {
    margin: 0;
    max-width: 1000px;
    color: #fff;
    font-size: clamp(26px, 3.6vw, 46px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .45);
}

/* ============================================================
   6. BOTONES / CHIPS / FORMULARIOS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--site-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.btn:hover,
.btn:focus {
    color: #fff;
    background: var(--site-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--site-shadow-md);
}

.btn-accent {
    background: var(--site-accent);
    color: var(--site-primary-deep);
}

.btn-accent:hover,
.btn-accent:focus {
    background: var(--site-accent-strong);
    color: var(--site-primary-deep);
}

.btn-primary {
    background: var(--site-primary);
    color: #fff;
}

.btn-lg {
    padding: 15px 32px;
    font-size: 16px;
}

.post-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 13px;
    border-radius: 999px;
    background: var(--site-accent-soft);
    border: 1px solid #f3e2a4;
    color: #8a6d00;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.post-chip:hover,
.post-chip:focus {
    background: var(--site-accent);
    border-color: var(--site-accent);
    color: var(--site-primary-deep);
}

.post-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: var(--site-space-3);
}

/* Buscador */
.site-searchform {
    display: flex;
    gap: 8px;
    width: 100%;
}

.site-searchform input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 12px 18px;
    border: 1px solid var(--site-border);
    border-radius: 999px;
    background: var(--site-surface);
    color: var(--site-text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.site-searchform input[type="search"]:focus {
    border-color: var(--site-primary);
    box-shadow: 0 0 0 4px rgba(19, 122, 63, .16);
}

.site-searchform button {
    padding: 12px 24px;
    border: 0;
    border-radius: 999px;
    background: var(--site-primary);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    transition: background-color .18s ease;
}

.site-searchform button:hover {
    background: var(--site-primary-dark);
}

/* ============================================================
   7. TARJETAS / SECCIONES
   ============================================================ */
.card {
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius-lg);
    box-shadow: var(--site-shadow-sm);
}

.card-muted {
    background: var(--site-surface-alt);
}

/* Los titulos (h1-h6) van SIN borde inferior ni subrayado */
.home-section-title {
    margin: 0 0 var(--site-space-8);
    font-size: clamp(24px, 3.2vw, 34px);
    text-align: center;
    color: var(--site-primary);
}

.page-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--site-primary-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.page-header.card {
    padding: var(--site-space-8);
    margin-bottom: var(--site-space-8);
    background: linear-gradient(135deg, #ffffff 0%, var(--site-surface-alt) 100%);
    border-left: 6px solid var(--site-primary);
}

.page-title {
    margin: 0 0 var(--site-space-3);
    font-size: clamp(26px, 4vw, 38px);
}

.page-description {
    margin: 0 0 var(--site-space-4);
    color: var(--site-text-muted);
    font-size: 17px;
    max-width: 760px;
}

.page-meta {
    margin: 0;
    color: var(--site-text-light);
    font-size: 14.5px;
    font-weight: 600;
}

.no-posts {
    padding: var(--site-space-12) var(--site-space-8);
    text-align: center;
}

.no-posts h2 {
    font-size: 24px;
}

.no-posts p {
    color: var(--site-text-muted);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.no-posts .site-searchform {
    max-width: 480px;
    margin: var(--site-space-5) auto 0;
}

/* ============================================================
   8. OUR DESTINATIONS · 3 COLUMNAS · max 1400px
   ============================================================ */
.home-destinations {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--site-space-7);
}

.destination-card {
    display: flex;
    overflow: hidden;
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius-lg);
    box-shadow: var(--site-shadow-sm);
    transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
}

.destination-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--site-shadow-lg);
    border-color: #cfe3d5;
}

.destination-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    color: inherit;
}

.destination-link:hover {
    color: inherit;
}

.destination-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(150deg, var(--site-primary) 0%, #178f4a 100%);
}

.destination-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.destination-card:hover .destination-image {
    transform: scale(1.06);
}

.destination-initial {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .92);
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -.04em;
}

.destination-count {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 13px;
    border-radius: 999px;
    background: var(--site-accent);
    color: var(--site-primary-deep);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .03em;
    box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .55);
}

.destination-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    padding: var(--site-space-6);
}

.destination-name {
    font-size: 21px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--site-primary);
}

.destination-card:hover .destination-name {
    color: var(--site-primary-dark);
}

.destination-desc {
    flex: 1;
    color: var(--site-text-muted);
    font-size: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Boton READ MORE... (tarjetas de destinos, entradas y relacionados) */
.btn-read-more,
.destination-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: 6px;
    padding: 10px 20px;
    border: 0;
    border-radius: 4px;
    background: var(--site-primary);
    color: #fff;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    line-height: 1.2;
    transition: background-color .18s ease, color .18s ease;
}

.destination-card:hover .destination-more,
.destination-more:hover,
.btn-read-more:hover,
.btn-read-more:focus {
    background: var(--site-accent);
    color: var(--site-primary-deep);
}

/* Lista de posts (paginas de archivo, categoria, busqueda, autor) */
.posts-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--site-space-6);
}

.post-row {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    box-shadow: var(--site-shadow-sm);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.post-row:hover {
    transform: translateY(-4px);
    box-shadow: var(--site-shadow-md);
    border-color: #cfe3d5;
}

.post-row-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--site-surface-alt);
}

.post-row-media a {
    display: block;
    height: 100%;
}

.post-row-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.post-row:hover .post-row-image {
    transform: scale(1.05);
}

.post-row-no-image .post-row-media {
    display: none;
}

.post-row-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: var(--site-space-5) var(--site-space-5) var(--site-space-6);
}

.post-row-title {
    margin: 0 0 var(--site-space-3);
    font-size: 20px;
    line-height: 1.28;
}

.post-row-title a {
    color: var(--site-primary);
}

.post-row-title a:hover {
    color: var(--site-primary-dark);
}

.post-row-excerpt {
    flex: 1;
    color: var(--site-text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: var(--site-space-4);
}

.post-row-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--site-primary);
    font-size: 14.5px;
    font-weight: 800;
}

.post-row-more:hover {
    gap: 11px;
    color: var(--site-primary-dark);
}

/* ============================================================
   9. SINGLE (entrada)
   ============================================================ */
/* Ficha de tour: plana, sin borde ni sombra (solo lo necesario) */
.post-single {
    padding: var(--site-space-8);
    border: 0;
    box-shadow: none;
}

.post-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--site-space-5);
    font-size: 13.5px;
    color: var(--site-text-light);
}

.post-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--site-text-muted);
    font-weight: 600;
}

.post-breadcrumb a:hover {
    color: var(--site-primary);
}

.crumb-sep {
    color: var(--site-border);
}

.crumb-current {
    color: var(--site-text-light);
    max-width: 46ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-single-title {
    margin: 0 0 var(--site-space-4);
    font-size: clamp(28px, 4.2vw, 40px);
    line-height: 1.14;
}

.post-single-excerpt {
    margin: 0 0 var(--site-space-5);
    padding-left: var(--site-space-4);
    border-left: 4px solid var(--site-accent);
    color: var(--site-text-muted);
    font-size: 18px;
    line-height: 1.6;
}

.post-single-excerpt p {
    margin: 0;
}

.post-single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    margin-bottom: var(--site-space-6);
    padding-bottom: var(--site-space-5);
    border-bottom: 1px dashed var(--site-border);
    color: var(--site-text-light);
    font-size: 14.5px;
    font-weight: 600;
}

.post-single-author-item,
.post-single-date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.post-single-author-item a {
    color: var(--site-primary);
    font-weight: 700;
}

.post-single-media {
    margin: 0 0 var(--site-space-6);
    border-radius: var(--site-radius);
    overflow: hidden;
    box-shadow: var(--site-shadow-md);
}

.post-single-image {
    width: 100%;
}

.post-single-caption {
    padding: 11px 16px;
    background: var(--site-surface-alt);
    color: var(--site-text-light);
    font-size: 13.5px;
    font-style: italic;
}

.post-author-box {
    display: flex;
    gap: var(--site-space-5);
    align-items: flex-start;
    margin: var(--site-space-8) 0;
    padding: var(--site-space-5);
    background: var(--site-surface-alt);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
}

.post-author-avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--site-primary);
    flex-shrink: 0;
}

.post-author-name {
    margin: 0 0 6px;
    font-size: 18px;
}

.post-author-bio {
    margin: 0;
    color: var(--site-text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Relacionados */
.related-posts {
    margin: var(--site-space-8) 0;
}

.related-title {
    margin: 0 0 var(--site-space-5);
    font-size: 22px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--site-space-5);
}

.related-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    box-shadow: var(--site-shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--site-shadow-md);
}

.related-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--site-surface-alt);
}

.related-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-body {
    padding: var(--site-space-4) var(--site-space-5) var(--site-space-5);
}

.related-card-title {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.32;
}

.related-card-title a {
    color: var(--site-primary);
}

.related-excerpt {
    margin: 0 0 12px;
    color: var(--site-text-muted);
    font-size: 14.5px;
    line-height: 1.55;
}

.post-after-content-widgets {
    margin: var(--site-space-6) 0;
}

.post-navigation {
    margin-top: var(--site-space-6);
    padding: var(--site-space-5);
    border-radius: var(--site-radius);
}

.post-nav-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--site-space-4);
}

.post-nav-prev,
.post-nav-next {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: var(--site-space-4);
    border-radius: var(--site-radius-sm);
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    transition: border-color .2s ease, transform .2s ease;
}

.post-nav-next {
    text-align: right;
}

.post-nav-prev:hover,
.post-nav-next:hover {
    border-color: var(--site-primary);
    transform: translateY(-2px);
}

.post-nav-prev span,
.post-nav-next span {
    font-size: 13px;
    font-weight: 700;
    color: var(--site-primary);
    letter-spacing: .05em;
    text-transform: uppercase;
}

.post-nav-prev strong,
.post-nav-next strong {
    color: var(--site-text);
    font-size: 15.5px;
}

/* ============================================================
   9b. TOUR: pestanas (Tour Description / Photo gallery) + Contact us
   ============================================================ */
.tour-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: var(--site-space-8);
    align-items: start;
}

/* Sin columna lateral (ficha de contacto y widgets ocultos, o sin widgets): el
   contenido ocupa todo el ancho. Lo pone single.php. */
.tour-layout.is-single-col {
    grid-template-columns: minmax(0, 1fr);
}

/* Widgets de la columna derecha de la ficha (Apariencia → Widgets): las áreas
   «Ficha · columna lateral» y «Barra lateral (Sidebar)», una debajo de otra. */
.tour-side-widgets {
    display: flex;
    flex-direction: column;
    gap: var(--site-space-6);
}

/* Si hay más de un área, la segunda se separa de la primera */
.tour-side-widgets + .tour-side-widgets {
    margin-top: var(--site-space-6);
}

.tour-main {
    min-width: 0;
}

.tour-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--site-border);
    margin-bottom: var(--site-space-6);
}

.tour-tab {
    padding: 12px 22px;
    margin-bottom: -2px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: var(--site-text-muted);
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 700;
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.tour-tab:hover {
    color: var(--site-primary);
    background: var(--site-surface-alt);
}

.tour-tab.is-active {
    color: var(--site-primary);
    border-bottom-color: var(--site-primary);
    background: var(--site-surface-alt);
}

.tour-panel[hidden] {
    display: none;
}

.tour-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.tour-gallery-item {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    background: var(--site-surface-alt);
}

.tour-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.tour-gallery-item:hover img {
    transform: scale(1.06);
}

/* Imagen destacada al principio de la columna, antes de las pestañas
   (Tour Description / Photo gallery). */
.tour-cover {
    margin: 0 0 18px;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    overflow: hidden;
    background: var(--site-surface-alt);
}

.tour-cover img {
    display: block;
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

/* Lightbox de la galería de la ficha (pestaña «Photo gallery»).
   Lo abre main.js al pulsar una miniatura: flechas para pasar fotos,
   contador abajo y teclado (← →, Esc). */
.tgv-lb {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 12, 10, .93);
    cursor: zoom-out;
}

.tgv-lb[hidden] {
    display: none;
}

.tgv-lb img {
    max-width: 92vw;
    max-height: 86vh;
    border-radius: 10px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
    cursor: default;
}

.tgv-lb-btn {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease;
}

.tgv-lb-btn:hover,
.tgv-lb-btn:focus-visible {
    background: rgba(255, 255, 255, .3);
    outline: none;
}

.tgv-lb-close {
    top: 18px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
}

.tgv-lb-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 26px;
    line-height: 1;
}

.tgv-lb-prev {
    left: 16px;
}

.tgv-lb-next {
    right: 16px;
}

.tgv-lb-count {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 13px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    font-size: 13px;
    letter-spacing: .04em;
}

body.tgv-lb-on {
    overflow: hidden;
}

@media (max-width: 640px) {
    .tgv-lb-nav {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
}

/* (El formulario de contacto del theme se quitó: la columna derecha de la
   ficha son widgets. Si algún día vuelve, su CSS está en el historial.) */
/* ============================================================
   10. PAGINAS
   ============================================================ */
/* Paginas: una sola columna (sin sidebar), titulo centrado y sin borde ni sombra */
.page-single {
    padding: var(--site-space-8);
    border: 0;
    box-shadow: none;
}

.page-single-header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
    text-align: center;
}

.page-single-title {
    margin: 0;
    padding-bottom: 40px;
    font-size: clamp(28px, 4vw, 38px);
    text-align: center;
}

.page-single-excerpt {
    margin: 0 auto;
    max-width: 760px;
    text-align: center;
    color: var(--site-text-muted);
    font-size: 17px;
    line-height: 1.6;
}

.page-single-media {
    margin: 0 0 var(--site-space-6);
    border-radius: var(--site-radius);
    overflow: hidden;
}

.page-single-caption {
    padding: 10px 14px;
    background: var(--site-surface-alt);
    color: var(--site-text-light);
    font-size: 13.5px;
    font-style: italic;
}

/* ============================================================
   11. CATEGORIA / ARCHIVO / AUTOR / BUSQUEDA
   ============================================================ */
.category-header-image {
    margin: calc(var(--site-space-8) * -1) calc(var(--site-space-8) * -1) var(--site-space-6);
    max-height: 280px;
    overflow: hidden;
}

.category-header-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.author-header-inner {
    display: flex;
    align-items: center;
    gap: var(--site-space-6);
}

.author-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--site-primary);
    flex-shrink: 0;
}

.author-header-body {
    min-width: 0;
}

/* ============================================================
   12. PAGINACION
   ============================================================ */
.pagination-wrap.card {
    margin-top: var(--site-space-8);
    padding: var(--site-space-4);
    border-radius: var(--site-radius);
}

.site-pagination {
    display: flex;
    justify-content: center;
}

.site-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-pagination li a,
.site-pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--site-border);
    background: var(--site-surface);
    color: var(--site-primary);
    font-size: 15px;
    font-weight: 700;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.site-pagination li a:hover {
    background: var(--site-accent-soft);
    border-color: var(--site-accent);
}

.site-pagination .page-current span {
    background: var(--site-primary);
    border-color: var(--site-primary);
    color: #fff;
}

.site-pagination .page-dots {
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
    color: var(--site-text-light);
}

/* ============================================================
   13. WIDGETS (solo "despues del contenido")
   ============================================================ */
.widget {
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    padding: var(--site-space-5);
    box-shadow: var(--site-shadow-sm);
}

.widget-title {
    margin: 0 0 var(--site-space-4);
    font-size: 17px;
}

.widget-content {
    color: var(--site-text-muted);
    font-size: 15px;
}

.widget-latest-posts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--site-space-3);
}

.widget-latest-post a {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--site-primary);
}

.widget-latest-post-thumb {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.widget-latest-post-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.widget-latest-post-title {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.4;
}

.widget-latest-post-date {
    font-size: 12.5px;
    color: var(--site-text-light);
}

.widget-area {
    display: flex;
    flex-direction: column;
    gap: var(--site-space-5);
}

/* ============================================================
   14. PIE: About Us / Contact Us + barra centrada
   ============================================================ */
.site-footer {
    background: var(--ftr-bg, var(--site-surface));
    color: var(--site-text);
    border-top: 1px solid var(--site-border);
}

.site-footer-inner {
    padding: var(--site-space-12) var(--site-space-6) var(--site-space-10);
}

.footer-grid {
    /* About Us ocupa el resto y Contact Us tiene columna fija de 320px
       (igual que la columna de contacto de la ficha de tour). */
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: var(--site-space-10) var(--site-space-16);
}

.footer-col-title {
    margin: 0 0 var(--site-space-4);
    color: var(--site-text);
    font-size: 22px;
}

.footer-about-text {
    margin: 0;
    /* Sin tope de lectura: el texto cubre todo el ancho de su columna (1fr) */
    max-width: none;
    color: var(--site-text-muted);
    font-size: 15.5px;
    line-height: 1.75;
}

.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--site-space-4);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--site-text);
    font-size: 15.5px;
    line-height: 1.5;
}

.footer-contact-item svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--site-text);
}

.footer-contact-item a {
    color: var(--site-text);
    word-break: break-word;
}

.footer-contact-item a:hover,
.footer-contact-item a:focus {
    color: var(--site-primary);
}

.site-footer-bottom {
    background: var(--site-surface-alt);
    border-top: 1px solid var(--site-border);
    padding: var(--site-space-5) 0;
}

.site-footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.footer-copyright,
.footer-support {
    margin: 0;
    color: var(--site-text-light);
    font-size: 14px;
}

.footer-support {
    font-size: 13.5px;
}

.footer-support a {
    color: var(--site-primary);
    font-weight: 700;
}

.footer-support a:hover {
    color: var(--site-primary-dark);
}

/* ============================================================
   15. 404
   ============================================================ */
.content-404 {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--site-space-12) var(--site-space-8);
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, var(--site-surface-alt) 100%);
}

.error-404-icon {
    color: var(--site-primary);
    margin-bottom: var(--site-space-4);
}

.error-404-code {
    font-size: clamp(56px, 12vw, 96px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    color: var(--site-accent);
    text-shadow: 0 5px 0 rgba(19, 122, 63, .14);
    margin-bottom: var(--site-space-3);
}

.error-404-title {
    font-size: clamp(24px, 4vw, 32px);
}

.error-404-text {
    color: var(--site-text-muted);
    font-size: 17px;
    max-width: 520px;
    margin: 0 auto var(--site-space-6);
}

.error-404-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: var(--site-space-6);
}

.error-404-search .site-searchform {
    max-width: 440px;
    margin: 0 auto;
}

/* ============================================================
   16. CONTENIDO DEL EDITOR (.entry-content)
   ============================================================ */
.entry-content {
    font-size: 17.5px;
    line-height: 1.78;
    color: var(--site-text);
    overflow-wrap: break-word;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content p {
    margin: 0 0 var(--site-space-5);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: var(--site-space-8);
    color: var(--site-primary);
}

.entry-content h2 {
    font-size: 27px;
}

.entry-content h3 {
    font-size: 22px;
}

.entry-content a {
    color: var(--site-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(19, 122, 63, .35);
}

.entry-content a:hover {
    color: var(--site-primary-dark);
    text-decoration-color: var(--site-primary-dark);
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 var(--site-space-5);
    padding-left: 24px;
}

.entry-content li {
    margin-bottom: 8px;
}

.entry-content li::marker {
    color: var(--site-primary);
}

.entry-content blockquote {
    margin: var(--site-space-6) 0;
    padding: var(--site-space-4) var(--site-space-6);
    border-left: 5px solid var(--site-accent);
    border-radius: 0 var(--site-radius) var(--site-radius) 0;
    background: var(--site-accent-soft);
    color: var(--site-text);
    font-style: italic;
    font-size: 18.5px;
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content img {
    border-radius: var(--site-radius);
    margin: var(--site-space-5) 0;
    box-shadow: var(--site-shadow-md);
}

.entry-content img.alignleft {
    float: left;
    margin: 6px var(--site-space-5) var(--site-space-4) 0;
    max-width: 48%;
}

.entry-content img.alignright {
    float: right;
    margin: 6px 0 var(--site-space-4) var(--site-space-5);
    max-width: 48%;
}

.entry-content img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.entry-content figure {
    margin: var(--site-space-6) 0;
}

.entry-content figcaption {
    margin-top: 8px;
    font-size: 14px;
    color: var(--site-text-light);
    text-align: center;
    font-style: italic;
}

.entry-content table {
    width: 100%;
    margin: var(--site-space-6) 0;
    border-collapse: collapse;
    font-size: 16px;
    background: var(--site-surface);
    border-radius: var(--site-radius);
    overflow: hidden;
    box-shadow: var(--site-shadow-sm);
}

.entry-content th,
.entry-content td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--site-border);
    text-align: left;
}

.entry-content th {
    background: var(--site-primary);
    color: #fff;
    font-weight: 700;
}

.entry-content code {
    font-family: var(--font-mono);
    font-size: .9em;
    background: var(--site-surface-alt);
    padding: 2px 6px;
    border-radius: 6px;
    color: var(--site-primary-dark);
}

.entry-content pre {
    margin: var(--site-space-6) 0;
    padding: var(--site-space-5);
    background: #0c2b18;
    color: #e7f5ec;
    border-radius: var(--site-radius);
    overflow-x: auto;
    font-size: 15px;
}

.entry-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.entry-content hr {
    margin: var(--site-space-8) 0;
    border-top: 2px dashed var(--site-border);
}

/* ============================================================
   17. RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
    .destinations-grid,
    .posts-list,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        gap: var(--site-space-10);
    }
}

@media (max-width: 980px) {
    .site-nav-desktop {
        display: none;
    }

    .site-nav-toggle {
        display: flex;
    }

    .travel-hero {
        padding: var(--site-space-12) 0;
        /* En móvil un hero enorme no cabe: se limita al 76% de la pantalla.
           Si el valor guardado es menor, manda el valor guardado. */
        min-height: min(var(--travel-hero-h, 500px), 76vh);
    }

    .travel-hero-logo {
        /* En móvil un logo enorme se come la pantalla: se limita al 30% del alto */
        max-height: min(var(--travel-hero-logo-h, 350px), 30vh);
    }

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

    .container {
        padding: 0 var(--site-space-5);
    }
}

@media (max-width: 720px) {
    :root {
        --header-h: 64px;
    }

    .site-title {
        font-size: 20px;
    }

    .tour-hero {
        min-height: 240px;
    }

    .tour-hero-title {
        font-size: clamp(22px, 6vw, 30px);
    }

    .site-shell {
        padding: var(--site-space-8) 0 var(--site-space-10);
    }

    .destinations-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--site-space-5);
    }

    .posts-list,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--site-space-10);
    }

    .site-footer-inner {
        padding: var(--site-space-12) var(--site-space-5) var(--site-space-10);
    }

    .post-single,
    .page-single,
    .page-header.card {
        padding: var(--site-space-5);
    }

    .category-header-image {
        margin: calc(var(--site-space-5) * -1) calc(var(--site-space-5) * -1) var(--site-space-5);
    }

    .post-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-header-inner {
        flex-direction: column;
        text-align: center;
    }

    .entry-content {
        font-size: 17px;
    }

    .entry-content img.alignleft,
    .entry-content img.alignright {
        float: none;
        max-width: 100%;
        margin: var(--site-space-4) 0;
    }
}

@media (max-width: 460px) {
    .post-nav-links {
        grid-template-columns: 1fr;
    }

    .post-nav-next {
        text-align: left;
    }

    .destination-name {
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   WIDGETS EN EL PIE
   Zonas «Pie · Columna Izquierda / Central / Derecha».
   ------------------------------------------------------------
   Los widgets que se pongan en esas zonas van «planos»: el pie tiene fondo
   oscuro y una tarjeta blanca (el estilo .widget normal) desentonaría. El título
   toma el tamaño de los títulos de columna del pie (.footer-col-title).
   ============================================================ */
.footer-col .widget {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    color: inherit;
}
.footer-col .widget + .widget { margin-top: var(--site-space-8); }
.footer-col .widget-title {
    margin: 0 0 var(--site-space-4);
    color: var(--site-text);
    font-size: 22px;
}
.footer-col .widget-content {
    color: var(--site-text-muted);
    font-size: 15.5px;
    line-height: 1.75;
}
.footer-col .widget a { color: var(--site-text); word-break: break-word; }
.footer-col .widget a:hover,
.footer-col .widget a:focus { color: var(--site-primary); }
.footer-col .widget-contact-list li { color: var(--site-text); font-size: 15.5px; }
.footer-col .widget-contact-list svg { color: var(--site-text); }

/* Pie de TRES columnas cuando además se usa «Pie · Columna Central» */
.footer-grid-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px; }
@media (max-width: 1100px) {
    .footer-grid-3 { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 900px) {
    .footer-grid-3 { grid-template-columns: minmax(0, 1fr); }
}
