/**
 * Rediseño claro inspirado en orangenationperu.com, con el rojo de marca de Local Expedition.
 * Se carga después de style.css y solo sobrescribe estilos visuales (colores, tipografía,
 * tarjetas y secciones). Para revertir el rediseño basta con dejar de encolar este archivo.
 */

:root,
[data-theme="light"] {
    --rd-red: #B50D00;
    --rd-red-dark: #8F0A00;
    --rd-red-soft: #FBEAE8;
    --rd-ink: #16202A;
    --rd-text: #4A5560;
    --rd-muted: #7A848E;
    --rd-cream: #FBF6F1;
    --rd-line: #ECE6E0;
    --rd-dark: #1B2229;
    --rd-yellow: #F8D637;
    --rd-radius: 10px;
    --rd-shadow: 0 4px 18px rgba(22, 32, 42, 0.07);
    --rd-shadow-hover: 0 12px 30px rgba(22, 32, 42, 0.13);

    --font-primary: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --text-primary: var(--rd-ink);
    --text-secondary: var(--rd-text);
    --brand-navy: var(--rd-ink);
    --bg-body: #FFFFFF;
}

body {
    background: #FFFFFF;
    color: var(--rd-text);
    font-family: var(--font-primary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--rd-ink);
    letter-spacing: -0.01em;
}

/* ==========================================================================
   1. ENCABEZADOS DE SECCIÓN (centrados, con línea de acento como la referencia)
   ========================================================================== */

.tours-header-row,
.categories-header,
.why-us-header,
.faq-header,
.blog-header-row,
.ta-header-intro {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.tours-header-row,
.blog-header-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.tours-header-text,
.blog-header-text {
    max-width: 760px;
}

.tours-pretitle,
.categories-pretitle,
.faq-pretitle,
.blog-eyebrow,
.ta-eyebrow,
.block-eyebrow {
    display: inline-flex;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--rd-red);
}

.pretitle-dash {
    display: none;
}

.tours-main-title,
.categories-title,
.why-us-title,
.faq-main-title,
.blog-main-title,
.ta-main-title,
.intro-statement-title {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 2.4vw, 2.3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--rd-ink);
    letter-spacing: -0.015em;
}

.why-us-title {
    text-transform: none;
}

.tours-main-title::after,
.categories-title::after,
.why-us-title::after,
.faq-main-title::after,
.blog-main-title::after,
.ta-main-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin: 0.9rem auto 0;
    border-radius: 3px;
    background: var(--rd-red);
}

.tours-subtitle,
.categories-subtitle,
.why-us-description,
.faq-subtitle,
.blog-main-subtitle,
.ta-main-subtitle {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--rd-text);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.text-accent {
    color: var(--rd-red);
}

/* Botones secundarios "ver todos" */
.btn-view-all-tours,
.btn-blog-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    border: 1.5px solid var(--rd-ink);
    border-radius: 6px;
    color: var(--rd-ink);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    background: transparent;
}

.btn-view-all-tours:hover,
.btn-blog-view-all:hover {
    background: var(--rd-ink);
    border-color: var(--rd-ink);
    color: #FFFFFF;
}

/* Fondos alternos blancos / crema por sección */
.company-intro-section,
.why-choose-us-section,
.faq-section,
.home-blog-section {
    background: #FFFFFF;
}

.featured-tours-section,
.tour-categories-section,
.tripadvisor-section {
    background: var(--rd-cream);
}

/* ==========================================================================
   2. ENCABEZADO DEL SITIO
   ========================================================================== */

.site-header {
    background: #FFFFFF;
    box-shadow: 0 1px 0 var(--rd-line), 0 4px 14px rgba(22, 32, 42, 0.04);
}

.site-header-nav-bar {
    background: #FFFFFF;
    border-top: 1px solid var(--rd-line);
}

.primary-menu > li > a,
.nav-link-megamenu {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--rd-ink);
}

.primary-menu > li > a:hover,
.nav-link-megamenu:hover {
    color: var(--rd-red);
}

/* Menú de escritorio: que entre completo junto al botón "Reservar ahora" */
@media (min-width: 1025px) {
    .primary-menu {
        gap: 0.8rem;
    }

    .primary-menu > li > a,
    .nav-link-megamenu {
        letter-spacing: 0.15px;
    }

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

@media (min-width: 1025px) and (max-width: 1279px) {
    .primary-menu {
        gap: 0.55rem;
    }

    .primary-menu > li > a,
    .nav-link-megamenu {
        font-size: 0.72rem;
    }
}

.btn-book-now {
    background: var(--rd-red);
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    box-shadow: none;
}

.btn-book-now:hover {
    background: var(--rd-red-dark);
}

/* Submenús con tours reales: títulos de grupo y versión de 2 columnas */
/* (li.sub-menu-group gana a ".primary-menu .sub-menu li { padding: 0 }" de style.css) */
.primary-menu .sub-menu li.sub-menu-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.35rem 0 0;
    padding: 0.85rem 1.15rem 0.3rem;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rd-red);
    list-style: none;
    border-top: 1px solid var(--rd-line);
}

.primary-menu .sub-menu li.sub-menu-group:first-child {
    margin-top: 0;
    padding-top: 0.55rem;
    border-top: 0;
}

.primary-menu .sub-menu li.sub-menu-group::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rd-red);
    flex-shrink: 0;
}

/* Submenú a todo el ancho de la barra (de su borde izquierdo hasta antes de "Reservar ahora"),
   con una columna por destino. */
.sub-menu-columns-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem 1.5rem;
}

.sub-menu-column-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.4rem;
    padding: 0 0.6rem 0.55rem;
    border-bottom: 1px solid var(--rd-line);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rd-red);
}

.sub-menu-column-title::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rd-red);
    flex-shrink: 0;
}

.sub-menu-column-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu .sub-menu.sub-menu-columns .sub-menu-link {
    padding: 0.55rem 0.6rem;
    border-radius: 8px;
}

.primary-menu .sub-menu.sub-menu-columns .sub-menu-footer {
    margin-top: 0.6rem;
    padding: 0.7rem 0.6rem 0.2rem;
    border-top: 1px solid var(--rd-line);
}

@media (min-width: 1025px) {
    .site-header-nav-container {
        position: relative;
    }

    .main-navigation,
    .primary-menu,
    .primary-menu > li.menu-item-has-children:has(> .sub-menu-columns) {
        position: static;
    }

    .primary-menu > li.menu-item-has-children .sub-menu.sub-menu-columns {
        left: 24px;
        right: 210px;
        width: auto;
        min-width: 0;
        max-width: none;
        padding: 1.15rem 1.25rem 0.75rem;
    }
}

@media (max-width: 1024px) {
    .sub-menu-columns-grid {
        grid-template-columns: 1fr;
    }

    .sub-menu-column-title {
        border-bottom: 0;
        padding-bottom: 0.2rem;
        margin-top: 0.5rem;
    }
}

/* Selector de idioma (Polylang) */
.lang-selector-box {
    position: relative;
}

.lang-selector-box summary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--rd-ink);
}

.lang-selector-box summary::-webkit-details-marker {
    display: none;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1200;
    min-width: 150px;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    background: #FFFFFF;
    border: 1px solid var(--rd-line);
    border-radius: 8px;
    box-shadow: var(--rd-shadow-hover);
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    border-radius: 6px;
    color: var(--rd-ink);
    font-size: 0.85rem;
    text-decoration: none;
}

.lang-dropdown a:hover,
.lang-dropdown a[aria-current="true"] {
    background: var(--rd-red-soft);
    color: var(--rd-red);
}

.lang-switch-mobile {
    display: none;
}

@media (max-width: 1024px) {
    .lang-switch-mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        height: 40px;
        border: 1.5px solid var(--rd-line);
        border-radius: 6px;
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 0.8rem;
        color: var(--rd-ink);
        text-decoration: none;
    }
}

/* ==========================================================================
   3. HERO DE PORTADA (texto alineado a la izquierda como la referencia)
   ========================================================================== */

.hero-content {
    text-align: left;
    align-items: flex-start;
    max-width: 680px;
    margin-left: 0;
    margin-right: auto;
}

.hero-vignette-overlay,
.hero-video-overlay {
    background: linear-gradient(90deg, rgba(10, 14, 18, 0.78) 0%, rgba(10, 14, 18, 0.45) 45%, rgba(10, 14, 18, 0.1) 100%);
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    line-height: 1.12;
    text-align: left;
    color: #FFFFFF;
}

.hero-title::before {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin-bottom: 1.1rem;
    background: var(--rd-red);
    border-radius: 3px;
}

.hero-subtitle {
    text-align: left;
    margin-left: 0;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.88);
}

.hero-cta-group {
    justify-content: flex-start;
}

.btn-hero-primary {
    background: var(--rd-red);
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 22px rgba(181, 13, 0, 0.35);
}

.btn-hero-primary:hover {
    background: var(--rd-red-dark);
}

.btn-hero-secondary {
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 600;
}

.hero-search-wrapper {
    border-radius: var(--rd-radius);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}

.hero-search-wrapper .search-label {
    color: var(--rd-muted);
}

.hero-search-wrapper .search-select {
    color: var(--rd-ink);
}

.btn-search-submit {
    background: var(--rd-red);
    border-radius: 6px;
}

/* ==========================================================================
   4. INTRO DE EMPRESA (texto + foto, sin tarjeta oscura)
   ========================================================================== */

.intro-text-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0.5rem 0;
}

.intro-badge {
    background: var(--rd-red-soft);
    color: var(--rd-red);
    border: 0;
}

.intro-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--rd-ink);
}

.intro-slogan {
    color: var(--rd-red);
    font-weight: 600;
}

.intro-paragraph {
    color: var(--rd-text);
}

.intro-value-item {
    background: #FFFFFF;
    border: 1px solid var(--rd-line);
    border-radius: var(--rd-radius);
}

.intro-value-item .value-icon {
    background: var(--rd-red-soft);
    color: var(--rd-red);
    border-radius: 50%;
}

.btn-intro-cta {
    background: var(--rd-dark);
    color: #FFFFFF;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
}

.btn-intro-cta:hover {
    background: var(--rd-red);
    color: #FFFFFF;
}

.intro-image-card {
    border-radius: 14px;
    box-shadow: var(--rd-shadow);
}

/* ==========================================================================
   5. TARJETAS DE TOUR (portada) — foto + duración + título + precio + botón
   ========================================================================== */

.tours-grid {
    gap: 1.6rem;
}

.tour-card,
.archive-tour-card {
    background: #FFFFFF;
    border: 1px solid var(--rd-line);
    border-radius: var(--rd-radius);
    box-shadow: var(--rd-shadow);
}

.tour-card:hover,
.archive-tour-card:hover {
    transform: translateY(-4px);
    border-color: var(--rd-line);
    box-shadow: var(--rd-shadow-hover);
}

.tour-card-image-wrap {
    aspect-ratio: 16 / 11;
}

.tour-badge-pill,
.archive-pill {
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.tour-badge-pill.badge-primary,
.archive-pill.pill-gold {
    background: var(--rd-yellow);
    color: var(--rd-ink);
}

.tour-badge-pill.badge-gold {
    background: var(--rd-red);
    color: #FFFFFF;
}

.tour-card-body {
    padding: 1.2rem 1.25rem 0.5rem;
}

.tour-duration-badge {
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--rd-muted);
    font-weight: 600;
}

.tour-feature-badge {
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--rd-red);
    font-weight: 600;
}

.tour-title,
.archive-tour-title {
    font-family: var(--font-heading);
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--rd-ink);
    letter-spacing: -0.005em;
}

.tour-title a:hover,
.archive-tour-title a:hover {
    color: var(--rd-red);
}

.tour-excerpt {
    color: var(--rd-text);
    font-size: 0.88rem;
}

.tour-card-footer,
.archive-tour-footer {
    background: transparent;
    border-top: 1px solid var(--rd-line);
    padding: 0.95rem 1.25rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.price-type-label,
.archive-tour-price-block .price-prefix {
    color: var(--rd-muted);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.tour-card-footer .price-prefix {
    color: var(--rd-muted);
}

.tour-card-footer .price-amount,
.archive-tour-price-block .price-amount strong {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--rd-red);
}

.tour-card-footer .price-suffix,
.archive-tour-price-block .price-amount small {
    color: var(--rd-muted);
}

.btn-tour-details,
.btn-archive-details {
    background: var(--rd-red);
    color: #FFFFFF;
    border: 0;
    border-radius: 6px;
    padding: 0.7rem 1.15rem;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    box-shadow: none;
}

.btn-tour-details:hover,
.btn-archive-details:hover {
    background: var(--rd-red-dark);
    color: #FFFFFF;
}

/* ==========================================================================
   6. ¿POR QUÉ ELEGIRNOS? (tarjetas centradas con icono circular)
   ========================================================================== */

.why-us-grid {
    gap: 1.4rem;
}

.why-card {
    background: #FFFFFF;
    border: 1px solid var(--rd-line);
    border-radius: var(--rd-radius);
    box-shadow: var(--rd-shadow);
    text-align: center;
    align-items: center;
    padding: 2rem 1.5rem 1.5rem;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rd-shadow-hover);
    border-color: var(--rd-line);
}

.why-card-topbar {
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    justify-content: center;
}

.why-card-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--rd-red-soft);
    color: var(--rd-red);
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.why-card-tag {
    order: 3;
    background: var(--rd-red-soft);
    color: var(--rd-red);
    border: 0;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
}

.why-card-heading {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rd-ink);
}

.why-card-text {
    color: var(--rd-text);
}

.why-card-footer {
    justify-content: center;
    border-top: 1px solid var(--rd-line);
    color: var(--rd-muted);
    width: 100%;
}

.why-info-icon {
    color: var(--rd-red);
}

/* ==========================================================================
   7. NUESTROS DESTINOS (fotos grandes con título y flecha)
   ========================================================================== */

.categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.category-card {
    border-radius: var(--rd-radius);
    min-height: 340px;
    box-shadow: var(--rd-shadow);
    border: 0;
}

.category-gradient-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.78) 100%);
}

.category-icon-pill {
    background: rgba(255, 255, 255, 0.95);
    color: var(--rd-red);
    border: 0;
}

.category-tours-count {
    background: var(--rd-yellow);
    color: var(--rd-ink);
    border: 0;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.category-card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFFFFF;
}

.category-card-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
}

.category-cta-link {
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 600;
}

.category-cta-link .cta-arrow {
    width: 30px;
    height: 30px;
    padding: 7px;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--rd-red);
}

/* ==========================================================================
   8. PREGUNTAS FRECUENTES
   ========================================================================== */

.faq-item {
    background: #FFFFFF;
    border: 1px solid var(--rd-line);
    border-radius: var(--rd-radius);
    box-shadow: none;
}

.faq-item[open] {
    border-color: rgba(181, 13, 0, 0.35);
    box-shadow: var(--rd-shadow);
}

.faq-item-number {
    background: var(--rd-red-soft);
    color: var(--rd-red);
    border: 0;
}

.faq-question-text {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--rd-ink);
}

.faq-support-callout {
    background: var(--rd-dark);
    border: 0;
    border-radius: 14px;
}

.faq-support-callout .callout-title {
    color: #FFFFFF;
}

.faq-support-callout .callout-desc {
    color: rgba(255, 255, 255, 0.78);
}

/* ==========================================================================
   9. RESEÑAS Y BLOG
   ========================================================================== */

.ta-summary-card,
.ta-review-card,
.blog-card {
    background: #FFFFFF;
    border: 1px solid var(--rd-line);
    border-radius: var(--rd-radius);
    box-shadow: var(--rd-shadow);
}

.ta-review-title,
.blog-card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--rd-ink);
}

.blog-category-badge {
    background: var(--rd-yellow);
    color: var(--rd-ink);
    border-radius: 4px;
}

.blog-read-more {
    color: var(--rd-red);
}

/* ==========================================================================
   10. PIE DE PÁGINA OSCURO (contraste como la referencia)
   ========================================================================== */

.site-footer {
    background: var(--rd-dark);
    color: rgba(255, 255, 255, 0.75);
    border-top: 4px solid var(--rd-red);
}

.site-footer .footer-heading,
.site-footer .footer-subheading {
    color: #FFFFFF;
    font-family: var(--font-heading);
}

.site-footer a,
.site-footer .contact-link,
.site-footer .contact-text,
.site-footer .hours-text,
.site-footer .footer-links-list a,
.site-footer .footer-company-details,
.site-footer .footer-company-details * {
    color: rgba(255, 255, 255, 0.75);
}

.site-footer a:hover,
.site-footer .footer-links-list a:hover {
    color: #FFFFFF;
}

.site-footer .contact-icon,
.site-footer .hours-icon,
.site-footer .nav-chevron {
    color: var(--rd-red);
}

.footer-card-secure,
.footer-complaints-box {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.footer-card-secure .card-secure-title,
.footer-complaints-box .complaints-title {
    color: #FFFFFF;
}

.footer-card-secure .card-secure-desc {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-bar {
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-bar,
.footer-bottom-bar * {
    color: rgba(255, 255, 255, 0.6);
}

.site-footer .social-circle-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.15);
}

.site-footer .social-circle-btn:hover {
    background: var(--rd-red);
    border-color: var(--rd-red);
}

.footer-logo-link img,
.footer-custom-logo {
    filter: brightness(0) invert(1);
}

/* Búho de Tripadvisor (versión del cliente): verde azulado sobre blanco */
.ta-owl-badge .ta-owl-logo,
.recommended-badge-ta .ta-owl-logo,
.ta-owl-mini-mark .ta-owl-logo {
    color: #0A7F87;
}

.ta-owl-badge .ta-owl-logo {
    box-sizing: content-box;
    padding: 12px 9px;
    background: #FFFFFF;
    border: 2px solid #0A7F87;
    border-radius: 50%;
}

.site-footer .recommended-badge-ta {
    background: #FFFFFF;
    border-color: #FFFFFF;
}

/* Bloque Código ESNNA (Protégeme – MINCETUR) */
.footer-esnna-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--rd-radius);
    padding: 0.9rem 1rem;
}

.esnna-posters {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.esnna-poster-link {
    flex: 1;
    border-radius: 6px;
    overflow: hidden;
    background: #FFFFFF;
}

.esnna-poster-img {
    display: block;
    width: 100%;
    height: auto;
}

.site-footer .esnna-text {
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 0.45rem;
}

.site-footer .esnna-hotlines {
    font-size: 0.8rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
}

.site-footer .esnna-hotlines strong {
    color: #FFFFFF;
}

/* ---------- Pie reorganizado: CTA · 4 columnas · franja de confianza · legal ---------- */

.site-footer.rd-footer {
    padding: 0 0 1.5rem;
    border-top: 0 !important;
    font-size: 0.9rem;
}

/* 1. Franja de llamada a la acción con foto */
.rd-footer-cta {
    position: relative;
    background-color: var(--rd-red);
    background-image: linear-gradient(90deg, rgba(143, 10, 0, 0.94) 0%, rgba(181, 13, 0, 0.82) 50%, rgba(27, 34, 41, 0.55) 100%), var(--footer-cta-image, none);
    background-size: cover;
    background-position: center 35%;
    margin-bottom: 3.5rem;
}

.rd-footer-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-top: 2.6rem;
    padding-bottom: 2.6rem;
}

.site-footer .rd-footer-cta-title {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
    margin: 0 0 0.4rem;
}

.site-footer .rd-footer-cta-sub {
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    font-size: 0.98rem;
}

.rd-footer-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    flex-shrink: 0;
}

.site-footer .rd-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.35rem;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.site-footer .rd-footer-btn-wa {
    background: #FFFFFF;
    color: #128C4A;
}

.site-footer .rd-footer-btn-wa:hover {
    background: #25D366;
    color: #FFFFFF;
}

.site-footer .rd-footer-btn-ghost {
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    color: #FFFFFF;
}

.site-footer .rd-footer-btn-ghost:hover {
    background: #FFFFFF;
    color: var(--rd-red);
}

/* 2. Cuatro columnas */
.rd-footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1.25fr;
    gap: 2.5rem;
    padding-bottom: 2.75rem;
}

.rd-footer-col .footer-heading {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
    color: #FFFFFF;
    margin: 0 0 1.1rem;
    padding-bottom: 0.6rem;
    position: relative;
}

.rd-footer-col .footer-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: var(--rd-red);
}

.rd-footer-col .rd-footer-subheading {
    margin-top: 1.6rem;
}

.rd-footer-brand .footer-logo-link {
    display: inline-block;
    margin-bottom: 1rem;
}

.rd-footer-brand .footer-custom-logo {
    width: 150px;
    height: auto;
}

.site-footer .rd-footer-about {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.65;
    margin: 0 0 1.25rem;
    max-width: 340px;
}

.rd-footer-brand .footer-social-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.rd-footer-recommended {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.rd-footer-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
}

.site-footer .recommended-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.site-footer .recommended-badge-google {
    background: #FFFFFF;
}

.rd-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.site-footer .rd-footer-links a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.site-footer .rd-footer-links a:hover {
    color: #FFFFFF;
    padding-left: 4px;
}

.site-footer .rd-footer-links .rd-footer-link-all {
    color: #FFFFFF;
    font-weight: 600;
}

.rd-footer-contact .footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.rd-footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.rd-footer-contact .contact-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.rd-footer-contact .contact-emails-group {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
    word-break: break-word;
}

.rd-footer-hours {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.72);
}

.rd-footer-hours span {
    display: block;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.82rem;
}

/* 3. Franja de confianza */
.rd-footer-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rd-trust-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--rd-radius);
    padding: 1.1rem 1.15rem;
}

.site-footer .rd-trust-title {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 0.7rem;
}

.site-footer .rd-trust-text {
    font-size: 0.8rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.68);
    margin: 0.6rem 0 0;
}

.site-footer .rd-trust-text strong {
    color: #FFFFFF;
}

.rd-trust-item .payment-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.rd-trust-item .pay-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 30px;
    padding: 0 0.5rem;
    border-radius: 5px;
    background: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    font-style: italic;
}

.site-footer .rd-trust-item .complaints-badge-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.85rem;
    border-radius: 6px;
    background: #FFFFFF;
    color: var(--rd-ink);
    font-weight: 600;
    text-decoration: none;
}

.site-footer .rd-trust-item .complaints-badge-link .complaints-icon {
    color: var(--rd-red);
    display: inline-flex;
}

.site-footer .rd-trust-item .complaints-badge-link:hover {
    background: var(--rd-red);
    color: #FFFFFF;
}

.site-footer .rd-trust-item .complaints-badge-link:hover .complaints-icon {
    color: #FFFFFF;
}

.rd-trust-esnna .esnna-posters {
    margin-bottom: 0;
}

.rd-company-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.72);
}

/* 4. Barra legal */
.rd-footer .footer-bottom-bar {
    background: transparent;
    border-top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1.25rem 0 0;
}

.rd-footer .footer-copyright {
    margin: 0;
    font-size: 0.8rem;
}

.rd-footer .footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.8rem;
}

@media (max-width: 1024px) {
    .rd-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .rd-footer-trust {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .rd-footer-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .rd-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.25rem;
    }

    .rd-footer-brand,
    .rd-footer-contact {
        grid-column: 1 / -1;
    }

    .rd-footer-trust {
        grid-template-columns: 1fr;
    }

    .rd-footer .footer-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   11. CATÁLOGO /tours/
   ========================================================================== */

.tour-archive-hero.has-hero-image {
    position: relative;
    background-color: var(--rd-dark);
    background-image: linear-gradient(90deg, rgba(10, 14, 18, 0.82) 0%, rgba(10, 14, 18, 0.5) 55%, rgba(10, 14, 18, 0.2) 100%), var(--hero-image);
    background-size: cover;
    background-position: center 40%;
    padding: 4.5rem 0 4rem;
    border-bottom: 0;
}

.tour-archive-hero.has-hero-image .tour-hero-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #FFFFFF;
}

.tour-archive-hero.has-hero-image .tour-hero-subtitle {
    color: rgba(255, 255, 255, 0.86);
}

.tour-archive-hero.has-hero-image .tour-hero-badge {
    background: var(--rd-red);
    color: #FFFFFF;
    border: 0;
    border-radius: 4px;
}

.tour-archive-hero.has-hero-image .hero-trust-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.tour-archive-hero.has-hero-image .hero-trust-label {
    color: rgba(255, 255, 255, 0.7);
}

.tour-archive-hero.has-hero-image .hero-trust-value,
.tour-archive-hero.has-hero-image .hero-trust-value strong {
    color: #FFFFFF;
}

.tour-control-card,
.sidebar-filters-card {
    background: #FFFFFF;
    border: 1px solid var(--rd-line);
    border-radius: var(--rd-radius);
    box-shadow: var(--rd-shadow);
}

.tour-archive-body-section,
.tour-control-bar-section {
    background: var(--rd-cream);
}

.filter-group-title,
.filter-group-label,
.sidebar-title {
    font-family: var(--font-heading);
    color: var(--rd-ink);
}

.duration-pill-btn.active {
    background: var(--rd-red);
    border-color: var(--rd-red);
    color: #FFFFFF;
}

.btn-sidebar-apply {
    background: var(--rd-red);
    border-radius: 6px;
}

.archive-tour-media {
    border-radius: var(--rd-radius) var(--rd-radius) 0 0;
}

.archive-pill.pill-dark {
    background: rgba(255, 255, 255, 0.95);
    color: var(--rd-ink);
}

.archive-tour-body {
    padding: 1.15rem 1.25rem 0.4rem;
}

.tour-bullet-item {
    color: var(--rd-text);
}

.tour-bullet-item .bullet-icon {
    color: var(--rd-red);
}

.tour-archive-guarantees-section {
    background: #FFFFFF;
}

.guarantee-card {
    background: var(--rd-cream);
    border: 1px solid var(--rd-line);
    border-radius: var(--rd-radius);
}

.guarantee-icon-wrap {
    background: var(--rd-red-soft);
    color: var(--rd-red);
}

/* ==========================================================================
   12. DETALLE DE TOUR
   ========================================================================== */

.single-tour-page {
    background: #FFFFFF;
}

/* header.php ya abre un <main class="site-main">: evitar el doble espaciado superior */
.site-main:has(> .single-tour-page),
.site-main:has(> .tour-archive-page),
.single-tour-page,
.tour-archive-page {
    padding-top: 0;
}

.tour-top-bar {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 0;
}

.tour-main-content-section {
    background: var(--rd-cream);
}

.tour-single-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--rd-ink);
}

.tour-pill {
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
}

.tour-pill.pill-gold {
    background: var(--rd-yellow);
    color: var(--rd-ink);
    border: 0;
}

.tour-pill.pill-navy {
    background: var(--rd-red-soft);
    color: var(--rd-red);
    border: 0;
}

.spec-card {
    background: #FFFFFF;
    border: 1px solid var(--rd-line);
    border-radius: var(--rd-radius);
    box-shadow: none;
}

.spec-icon {
    background: var(--rd-red-soft);
    color: var(--rd-red);
    border-radius: 50%;
}

.gallery-photo-card {
    border-radius: var(--rd-radius);
}

/* Barra de secciones del tour: pestañas con icono, la activa como píldora roja */
.tour-subnav.rd-subnav {
    position: sticky;
    top: calc(var(--le-header-h, 80px) + 10px);
    z-index: 20;
    display: flex;
    gap: 0.35rem;
    padding: 0.45rem;
    margin-bottom: 1.75rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--rd-line);
    border-radius: 14px;
    box-shadow: 0 8px 26px rgba(22, 32, 42, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

.tour-subnav.rd-subnav::-webkit-scrollbar {
    display: none;
}

.rd-subnav .subnav-link {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    background: transparent;
    color: var(--rd-text);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    scroll-snap-align: start;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.rd-subnav .subnav-icon {
    flex-shrink: 0;
    color: var(--rd-red);
    transition: color 0.2s ease;
}

.rd-subnav .subnav-link:hover {
    background: var(--rd-red-soft);
    color: var(--rd-red);
}

.rd-subnav .subnav-link.active {
    background: var(--rd-red);
    color: #FFFFFF;
    box-shadow: 0 6px 16px rgba(181, 13, 0, 0.28);
}

.rd-subnav .subnav-link.active .subnav-icon {
    color: #FFFFFF;
}

.rd-subnav .subnav-link:focus-visible {
    outline: 2px solid var(--rd-red);
    outline-offset: 2px;
}

/* Al saltar a una sección, que el título no quede tapado por el encabezado y la barra */
.tour-content-block {
    scroll-margin-top: calc(var(--le-header-h, 80px) + 96px);
}

@media (max-width: 640px) {
    .tour-subnav.rd-subnav {
        top: calc(var(--le-header-h, 71px) + 6px);
        margin-left: -4px;
        margin-right: -4px;
        border-radius: 12px;
    }

    .rd-subnav .subnav-link {
        flex: 0 0 auto;
        padding: 0.6rem 0.85rem;
        font-size: 0.84rem;
    }
}

.tour-content-block {
    background: #FFFFFF;
    border: 1px solid var(--rd-line);
    border-radius: var(--rd-radius);
    box-shadow: var(--rd-shadow);
}

.block-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--rd-ink);
}

.highlights-card {
    background: var(--rd-cream);
    border-color: var(--rd-line);
}

.highlight-item .check-icon {
    background: var(--rd-red);
    color: #FFFFFF;
}

.timeline-day-card {
    background: #FFFFFF;
    border: 1px solid var(--rd-line);
    border-radius: var(--rd-radius);
}

.timeline-day-card[open] {
    border-color: rgba(181, 13, 0, 0.35);
}

.day-number {
    background: var(--rd-red);
    color: #FFFFFF;
    border-radius: 6px;
    font-family: var(--font-heading);
}

.day-title {
    font-family: var(--font-heading);
    color: var(--rd-ink);
}

.day-pill {
    background: var(--rd-cream);
    border-color: var(--rd-line);
    color: var(--rd-text);
}

.inclusion-column {
    border-radius: var(--rd-radius);
    border-color: var(--rd-line);
}

.upgrade-card-item,
.tour-faq-card {
    background: #FFFFFF;
    border: 1px solid var(--rd-line);
    border-radius: var(--rd-radius);
}

.upgrade-price-badge {
    background: var(--rd-red-soft);
    color: var(--rd-red);
}

/* Tarjeta de reserva: cabecera clara con precio en rojo */
.sticky-booking-card {
    background: #FFFFFF;
    border: 1px solid var(--rd-line);
    border-radius: 12px;
    box-shadow: 0 10px 34px rgba(22, 32, 42, 0.12);
    overflow: hidden;
}

.booking-price-header {
    background: var(--rd-dark);
    color: #FFFFFF;
    border-bottom: 0;
}

.booking-price-header .price-lead {
    color: rgba(255, 255, 255, 0.7);
}

.booking-price-header .price-currency,
.booking-price-header .price-number {
    font-family: var(--font-heading);
    color: #FFFFFF;
}

.booking-price-header .price-usd {
    color: rgba(255, 255, 255, 0.7);
}

.btn-booking-primary {
    background: var(--rd-red);
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 8px 20px rgba(181, 13, 0, 0.28);
}

.btn-booking-primary:hover {
    background: var(--rd-red-dark);
}

.btn-booking-whatsapp {
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
}

.counter-btn {
    border-radius: 6px;
}

/* ==========================================================================
   12b. PORTADA DEL TOUR: GALERÍA CON TÍTULO (reemplaza el mosaico tipo Airbnb)
   ========================================================================== */

.rd-tour-hero {
    background: #FFFFFF;
    padding: 0.75rem 0.75rem 0;
}

.rd-gallery {
    position: relative;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 8px;
    height: clamp(380px, 62vh, 600px);
    max-width: 1680px;
    margin: 0 auto;
}

.rd-gallery--1 {
    grid-template-columns: 1fr;
}

.rd-gallery-item {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    cursor: zoom-in;
    background: #E9E4DF;
    min-height: 0;
}

.rd-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.rd-gallery-item:hover img {
    transform: scale(1.04);
}

.rd-gallery-side {
    display: grid;
    grid-template-rows: 1.15fr 1fr;
    gap: 8px;
    min-height: 0;
}

.rd-gallery--2 .rd-gallery-side {
    grid-template-rows: 1fr;
}

.rd-gallery-bottom {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 8px;
    min-height: 0;
}

.rd-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.72) 100%);
    pointer-events: none;
}

.rd-hero-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem 2.25rem;
    color: #FFFFFF;
    cursor: default;
}

.rd-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.rd-hero-badge {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.rd-hero-badge.is-primary {
    background: var(--rd-red);
    border-color: var(--rd-red);
}

.rd-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 700;
    line-height: 1.12;
    color: #FFFFFF;
    margin: 0 0 1rem;
    max-width: 760px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.rd-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

.rd-hero-meta li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.92);
}

.rd-hero-meta svg {
    color: var(--rd-yellow);
}

.rd-hero-price strong {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--rd-yellow);
}

.rd-gallery-all {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.95rem;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--rd-ink);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.rd-gallery-all:hover {
    background: #FFFFFF;
    color: var(--rd-red);
}

/* Resumen bajo la portada */
.rd-tour-intro {
    background: #FFFFFF;
    padding: 1.75rem 0 2rem;
    border-bottom: 0;
}

.rd-tour-intro .tour-single-subtitle {
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--rd-text);
    max-width: 900px;
    margin: 0 0 1.4rem;
}

/* Visor a pantalla completa */
.rd-lightbox {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(10, 12, 14, 0.94);
    color: #FFFFFF;
}

.rd-lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rd-lightbox::backdrop {
    background: rgba(10, 12, 14, 0.94);
}

.rd-lightbox-figure {
    margin: 0;
    max-width: min(1200px, 86vw);
    text-align: center;
}

.rd-lightbox-figure img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.rd-lightbox-figure figcaption {
    margin-top: 0.9rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.rd-lightbox-close,
.rd-lightbox-nav {
    position: absolute;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    cursor: pointer;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rd-lightbox-close {
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
}

.rd-lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    font-size: 2rem;
    line-height: 1;
}

.rd-lightbox-prev { left: 1.25rem; }
.rd-lightbox-next { right: 1.25rem; }

.rd-lightbox-close:hover,
.rd-lightbox-nav:hover {
    background: var(--rd-red);
}

/* Barra fija inferior de reserva */
.rd-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    background: #FFFFFF;
    border-top: 1px solid var(--rd-line);
    box-shadow: 0 -6px 22px rgba(22, 32, 42, 0.1);
    transform: translateY(110%);
    transition: transform 0.3s ease;
}

.rd-sticky-bar.is-visible {
    transform: translateY(0);
}

.rd-sticky-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.rd-sticky-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rd-sticky-info strong {
    font-family: var(--font-heading);
    color: var(--rd-ink);
    font-size: 0.98rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rd-sticky-info span {
    color: var(--rd-red);
    font-weight: 700;
    font-size: 0.88rem;
}

.rd-sticky-actions {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
}

.rd-sticky-book,
.rd-sticky-ask {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.3rem;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.rd-sticky-book {
    background: var(--rd-red);
    color: #FFFFFF;
}

.rd-sticky-book:hover {
    background: var(--rd-red-dark);
    color: #FFFFFF;
}

.rd-sticky-ask {
    border: 1.5px solid var(--rd-ink);
    color: var(--rd-ink);
}

.rd-sticky-ask:hover {
    background: var(--rd-ink);
    color: #FFFFFF;
}

/* Blog sin artículos publicados aún */
.rd-blog-empty {
    max-width: 640px;
    margin: 2.5rem auto 3.5rem;
    padding: 2.5rem 2rem;
    text-align: center;
    background: var(--rd-cream);
    border: 1px solid var(--rd-line);
    border-radius: 14px;
}

.rd-blog-empty h2 {
    margin: 0 0 0.6rem;
    font-size: 1.5rem;
}

.rd-blog-empty p {
    margin: 0 0 1.4rem;
    color: var(--rd-text);
}

.rd-blog-empty-btn {
    display: inline-flex;
    padding: 0.75rem 1.4rem;
    border-radius: 6px;
    background: var(--rd-red);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
}

.rd-blog-empty-btn:hover {
    background: var(--rd-red-dark);
    color: #FFFFFF;
}

/* ==========================================================================
   12c. BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */

.rd-wa-float {
    --wa-green: #25D366;
    --wa-green-dark: #128C4A;
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 950;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    transition: bottom 0.3s ease;
    font-family: var(--font-primary);
}

/* Sube cuando aparece la barra fija de reserva del detalle de tour */
body.rd-sticky-visible .rd-wa-float {
    bottom: 92px;
}

.rd-wa-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0;
    height: 62px;
    min-width: 62px;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2BE36F 0%, var(--wa-green) 45%, var(--wa-green-dark) 100%);
    color: #FFFFFF;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(18, 140, 74, 0.45), 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease, gap 0.3s ease, padding 0.3s ease;
    animation: rdWaEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) both 0.8s;
}

.rd-wa-button:hover,
.rd-wa-button:focus-visible {
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(18, 140, 74, 0.55), 0 3px 8px rgba(0, 0, 0, 0.18);
    gap: 10px;
    padding-right: 22px;
}

.rd-wa-button:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.45);
    outline-offset: 3px;
}

.rd-wa-icon {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* Etiqueta que se despliega al pasar el mouse (escritorio) */
.rd-wa-label {
    position: relative;
    z-index: 1;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    opacity: 0;
    transition: max-width 0.35s ease, opacity 0.25s ease;
}

.rd-wa-button:hover .rd-wa-label,
.rd-wa-button:focus-visible .rd-wa-label {
    max-width: 140px;
    opacity: 1;
}

/* Halo pulsante */
.rd-wa-pulse {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--wa-green);
    opacity: 0.5;
    animation: rdWaPulse 2.4s ease-out infinite;
    z-index: 0;
}

/* Contador de "mensaje nuevo" */
.rd-wa-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    z-index: 2;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    border-radius: 999px;
    border: 2px solid #FFFFFF;
    background: var(--rd-red);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}

/* Burbuja tipo chat */
.rd-wa-bubble {
    position: relative;
    width: min(300px, calc(100vw - 44px));
    background: #FFFFFF;
    border-radius: 16px 16px 4px 16px;
    box-shadow: 0 18px 44px rgba(22, 32, 42, 0.2);
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px) scale(0.97);
    transform-origin: bottom right;
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.rd-wa-bubble.is-visible {
    opacity: 1;
    transform: none;
}

.rd-wa-bubble-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 2.4rem 0.85rem 0.95rem;
    background: linear-gradient(135deg, #128C4A 0%, #075E54 100%);
    color: #FFFFFF;
}

.rd-wa-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.rd-wa-name {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    line-height: 1.2;
}

.rd-wa-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
}

.rd-wa-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ADE80;
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.3);
}

.rd-wa-bubble-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
    font-size: 0.8rem;
    cursor: pointer;
}

.rd-wa-bubble-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.rd-wa-bubble-text {
    margin: 0;
    padding: 0.9rem 1rem 0.4rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--rd-ink);
    background: #F0F7F2;
}

.rd-wa-bubble-cta {
    display: block;
    margin: 0;
    padding: 0.85rem 1rem;
    background: #F0F7F2;
    color: var(--wa-green-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}

.rd-wa-bubble-cta::after {
    content: " →";
}

.rd-wa-bubble-cta:hover {
    color: #075E54;
    text-decoration: underline;
}

@keyframes rdWaPulse {
    0% { transform: scale(1); opacity: 0.45; }
    70% { transform: scale(1.45); opacity: 0; }
    100% { transform: scale(1.45); opacity: 0; }
}

@keyframes rdWaEnter {
    from { transform: translateY(24px) scale(0.6); opacity: 0; }
    to { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .rd-wa-pulse,
    .rd-wa-button {
        animation: none;
    }
}

@media (max-width: 640px) {
    .rd-wa-float {
        right: 16px;
        bottom: 16px;
    }

    body.rd-sticky-visible .rd-wa-float {
        bottom: 84px;
    }

    .rd-wa-button {
        height: 56px;
        min-width: 56px;
        padding: 0 13px;
    }
}

/* ==========================================================================
   13. RESPONSIVE
   ========================================================================== */

/* Encabezado compacto en una sola fila (logo a la izquierda, reservar + menú a la derecha) */
@media (max-width: 1024px) {
    .site-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0 16px;
    }

    .site-header-top,
    .site-header-nav-bar {
        background: transparent;
        border: 0;
        padding: 0;
    }

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

    .site-header-top-container,
    .site-header-nav-container {
        width: auto;
        max-width: none;
        margin: 0;
        padding: 0.4rem 0;
    }

    .site-header-top-right {
        display: none;
    }

    .site-header .custom-logo {
        height: 44px;
        width: auto;
    }

    /* El menú desplegable se ancla al encabezado completo, no a la barra de acciones */
    .site-header-nav-bar {
        position: static;
        flex: 0 0 auto;
    }

    .nav-bar-actions .btn-book-now {
        padding: 0.6rem 0.9rem;
        font-size: 0.78rem;
    }
}

@media (max-width: 900px) {
    .rd-gallery {
        grid-template-columns: 1fr;
        height: auto;
    }

    .rd-gallery-main {
        aspect-ratio: 4 / 3;
    }

    .rd-gallery-side {
        display: none;
    }

    .rd-hero-caption {
        padding: 1.25rem;
    }

    .rd-gallery-all {
        top: 0.75rem;
        right: 0.75rem;
    }
}

@media (max-width: 560px) {
    .rd-gallery-main {
        aspect-ratio: 3 / 4;
    }

    .rd-sticky-info span {
        display: none;
    }

    .rd-sticky-book,
    .rd-sticky-ask {
        padding: 0.6rem 0.9rem;
    }
}

@media (max-width: 1100px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: 260px;
    }

    .hero-content {
        max-width: 100%;
    }

    .tour-card-footer,
    .archive-tour-footer {
        flex-wrap: wrap;
    }

    .tour-archive-hero.has-hero-image {
        padding: 3rem 0 2.5rem;
    }

    .tour-hero-trust-cards {
        flex-wrap: wrap;
    }

    .tour-control-card {
        flex-direction: column;
        align-items: stretch;
    }

    .tour-search-field-wrap,
    .tour-sort-and-view {
        width: 100%;
        min-width: 0;
    }

    .tour-sort-and-view {
        flex-wrap: wrap;
    }
}

/* Pie de página: enlace a la página Pagos */
.rd-trust-item .pay-badge-diners {
    color: #0079BE;
    font-style: normal;
}

.site-footer .rd-trust-item .rd-pay-link {
    margin-top: 0.85rem;
}

/* Pie de página: logo Protégeme junto al texto ESNNA */
.rd-esnna-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.site-footer .rd-esnna-logo {
    flex: 0 0 74px;
    display: block;
    padding: 6px;
    border-radius: 8px;
    background: #FFFFFF;
}

.rd-esnna-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.rd-esnna-row .rd-trust-text {
    margin: 0;
}

/* ==========================================================================
   Calendario propio (assets/js/datepicker.js)
   ========================================================================== */

.le-dp {
    position: relative;
}

.le-dp-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #D9D2CB;
    border-radius: 10px;
    background: #FFFFFF;
    color: var(--rd-ink);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.le-dp-field:hover,
.le-dp.is-open .le-dp-field,
.le-dp-field:focus-visible {
    border-color: var(--rd-red);
    box-shadow: 0 0 0 3px var(--rd-red-soft);
    outline: none;
}

.le-dp-field.is-empty .le-dp-value {
    color: var(--rd-muted);
    font-weight: 500;
}

.le-dp-icon {
    flex: 0 0 auto;
    color: var(--rd-red);
}

.le-dp-pop {
    position: absolute;
    z-index: 60;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    min-width: 290px;
    max-width: 340px;
    padding: 1rem;
    border: 1px solid var(--rd-line);
    border-radius: 14px;
    background: #FFFFFF;
    box-shadow: 0 18px 40px rgba(22, 32, 42, 0.18);
}

.le-dp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.le-dp-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--rd-ink);
}

.le-dp-nav {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--rd-line);
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--rd-ink);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.le-dp-nav:hover:not(:disabled) {
    border-color: var(--rd-red);
    color: var(--rd-red);
}

.le-dp-nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.le-dp-week,
.le-dp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.le-dp-week span {
    padding: 0.3rem 0;
    color: var(--rd-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.le-dp-day {
    aspect-ratio: 1;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--rd-ink);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.le-dp-day:hover:not(:disabled),
.le-dp-day:focus-visible {
    background: var(--rd-red-soft);
    color: var(--rd-red);
    outline: none;
}

.le-dp-day.is-today {
    box-shadow: inset 0 0 0 1.5px var(--rd-line);
}

.le-dp-day.is-selected,
.le-dp-day.is-selected:hover {
    background: var(--rd-red);
    color: #FFFFFF;
}

.le-dp-day:disabled {
    color: #C9C2BB;
    text-decoration: line-through;
    cursor: default;
}

/* ==========================================================================
   Tarjeta de reserva del tour: total por grupo y desglose
   ========================================================================== */

.price-group-total {
    margin: 0.35rem 0 0.6rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    font-weight: 600;
}

.summary-breakdown {
    margin: 0 0 0.75rem;
    padding: 0 0 0.75rem;
    list-style: none;
    border-bottom: 1px dashed #D9D2CB;
    font-size: 0.84rem;
    color: var(--rd-text);
}

.summary-breakdown li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.summary-breakdown li + li {
    margin-top: 0.35rem;
}

.summary-breakdown li span:last-child {
    white-space: nowrap;
    font-weight: 600;
    color: var(--rd-ink);
}

.summary-line.summary-total strong {
    font-size: 1.15rem;
}

@keyframes le-total-flash {
    0% { color: var(--rd-red); transform: scale(1.06); }
    100% { transform: scale(1); }
}

.price-group-total.is-updated,
#calc-total-price.is-updated {
    display: inline-block;
    animation: le-total-flash 0.45s ease-out;
}

.price-group-total.is-updated {
    display: block;
}

/* Tarjeta del tour: comisión por pago con tarjeta */
.summary-line.card-fee {
    font-size: 0.85rem;
}

.summary-line.card-charge strong {
    color: var(--rd-red);
}

/* ==========================================================================
   Referencia de precios en soles (inc/currency.php)
   ========================================================================== */

.le-pen {
    display: inline-block;
    color: var(--rd-muted);
    font-family: var(--font-primary);
    font-size: 0.8em;
    font-weight: 600;
    font-style: normal;
    letter-spacing: 0;
    white-space: nowrap;
}

/* Sobre fondos oscuros (portada del tour y cabecera de la tarjeta de reserva) */
.rd-hero-price .le-pen,
.booking-price-header .le-pen,
.price-group-total .le-pen {
    color: rgba(255, 255, 255, 0.78);
}

.le-pen-hero {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.95rem;
}

/* Tarjetas de tours: la referencia en soles va debajo del precio */
.tour-price-group .le-pen,
.archive-tour-price-block .le-pen,
.le-price-box .le-pen {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.78rem;
}

.upgrade-price-badge .le-pen {
    display: block;
    font-size: 0.75rem;
}

.summary-line .le-pen,
.rd-summary-total .le-pen,
.rd-summary-deposit .le-pen {
    margin-left: 0.25rem;
    font-size: 0.78rem;
}

.le-fx-note {
    margin: 0.75rem 0 0;
    color: var(--rd-muted);
    font-size: 0.75rem;
    line-height: 1.45;
}

/* ==========================================================================
   AUDITORÍA MÓVIL (2026-10): correcciones de desborde, carruseles y tamaños táctiles
   ========================================================================== */

/* Ningún elemento debe empujar la página más allá del ancho de la pantalla */
.single-tour-layout,
.single-tour-layout > *,
.tour-details-col > *,
.blog-filter-container,
.blog-filter-container > *,
.tour-hero-content > * {
    min-width: 0;
}

@media (max-width: 1024px) {
    .single-tour-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    /* Detalle del tour: migas de pan en varias líneas y título largo recortado */
    .tour-breadcrumbs {
        flex-wrap: wrap;
        row-gap: 0.25rem;
    }

    .tour-breadcrumbs .crumb-current {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .spec-label,
    .hero-trust-label,
    .price-prefix,
    .price-type-label {
        font-size: 0.75rem;
    }

    /* Catálogo: tarjetas de confianza del encabezado dentro de la pantalla */
    .tour-hero-trust-cards {
        width: 100%;
        max-width: 100%;
    }

    .tour-hero-trust-cards > * {
        flex: 1 1 140px;
        min-width: 0;
    }

    /* Blog: la franja "Edición especial" sobra en móvil y las categorías se deslizan */
    .blog-top-stats-desktop {
        display: none;
    }

    .blog-pills-bar {
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .blog-pills-bar::-webkit-scrollbar {
        display: none;
    }

    .blog-pill-btn {
        flex: 0 0 auto;
    }

    /* Tablas de artículos y páginas legales: se deslizan en lugar de desbordar */
    .rd-page-content table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .rd-page-content th,
    .rd-page-content td {
        min-width: 130px;
    }

    /* Portada: secciones largas convertidas en carruseles deslizables */
    .why-us-grid,
    .categories-grid,
    .tours-grid,
    .blog-posts-grid {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 14px;
        margin-left: -1rem;
        margin-right: -1rem;
        padding: 4px 1rem 18px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .why-us-grid::-webkit-scrollbar,
    .categories-grid::-webkit-scrollbar,
    .tours-grid::-webkit-scrollbar,
    .blog-posts-grid::-webkit-scrollbar {
        display: none;
    }

    .why-us-grid > *,
    .categories-grid > *,
    .tours-grid > *,
    .blog-posts-grid > * {
        flex: 0 0 84%;
        max-width: 340px;
        scroll-snap-align: start;
    }

    /* Selectores del buscador de la portada con altura táctil cómoda */
    .search-select {
        min-height: 44px;
    }

    /* Enlaces del pie de página más fáciles de tocar */
    .site-footer li > a {
        display: inline-block;
        padding: 0.3rem 0;
    }

    /* Botón y mensaje de WhatsApp más compactos */
    .rd-wa-float {
        right: 14px;
        bottom: 14px;
    }

    .rd-wa-bubble {
        width: min(260px, calc(100vw - 32px));
    }
}

/* Catálogo: filtros plegables en móvil y tablet */
.rd-filters-toggle {
    display: none;
}

@media (max-width: 992px) {
    .rd-filters-toggle {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.3rem 0.6rem;
        width: 100%;
        margin-bottom: 1rem;
        padding: 0.85rem 1.1rem;
        border: 1px solid var(--rd-line);
        border-radius: 12px;
        background: #FFFFFF;
        color: var(--rd-ink);
        font: inherit;
        font-weight: 700;
        text-align: left;
        cursor: pointer;
        box-shadow: var(--rd-shadow);
    }

    .rd-filters-toggle svg {
        color: var(--rd-red);
    }

    .rd-filters-toggle small {
        color: var(--rd-muted);
        font-weight: 500;
    }

    .rd-filters-toggle::after {
        content: '+';
        margin-left: auto;
        color: var(--rd-red);
        font-size: 1.3rem;
        line-height: 1;
    }

    .tour-filters-sidebar.is-open .rd-filters-toggle::after {
        content: '−';
    }

    .tour-filters-sidebar:not(.is-open) .sidebar-filters-card {
        display: none;
    }
}

@media (max-width: 992px) {
    .rd-filters-toggle {
        flex-wrap: nowrap;
    }

    .rd-filters-toggle small {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Enlaces de la barra superior repetidos al final del menú: solo cuando se usa el menú móvil */
.primary-menu > li.menu-item-mobile-extra {
    display: none;
}

@media (max-width: 1024px) {
    .primary-menu > li.menu-item-mobile-extra {
        display: block;
    }

    .primary-menu > li.menu-item-mobile-extra:first-of-type,
    .primary-menu > li.menu-item-has-children + li.menu-item-mobile-extra {
        margin-top: 0.5rem;
        border-top: 1px solid var(--rd-line);
    }
}

/* Menú móvil: el panel llega hasta el borde inferior y se desplaza por dentro (main.js fija su alto) */
@media (max-width: 1024px) {
    .main-navigation.is-open {
        max-height: none;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2.5rem;
    }

    body.le-menu-open {
        overflow: hidden;
    }

    body.le-menu-open .rd-wa-float,
    body.le-menu-open .rd-sticky-bar {
        display: none;
    }
}

/* Menú móvil: el mega menú "Destinos" se medía con el ancho de escritorio (790 px) y bloqueaba la pantalla */
@media (max-width: 1024px) {
    .megamenu-dropdown-container,
    .le-megamenu-panel,
    .le-megamenu-wrapper,
    .le-megamenu-grid {
        width: auto;
        max-width: 100%;
        box-sizing: border-box;
    }

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

    .le-megamenu-panel *,
    .le-megamenu-grid > * {
        min-width: 0;
    }

    .le-megamenu-panel img {
        max-width: 100%;
        height: auto;
    }

    .le-megamenu-topbar-right,
    .le-megamenu-panel .le-tour-title,
    .le-megamenu-panel h3,
    .le-megamenu-panel h4 {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 1024px) {
    /* Panel "Destinos" dentro del ítem del menú móvil */
    #menu-item-destinos > .megamenu-dropdown-container {
        position: static;
        margin: 0;
        padding: 0.25rem 0 0;
    }

    #menu-item-destinos > .megamenu-dropdown-container .le-megamenu-panel {
        margin-top: 0.5rem;
        padding: 1rem;
        border-radius: 12px;
    }
}

@media (max-width: 1024px) {
    #menu-item-destinos {
        flex-wrap: wrap;
    }

    #menu-item-destinos > .megamenu-dropdown-container {
        flex: 0 0 100%;
        width: 100%;
    }
}

/* WhatsApp flotante: el círculo es un botón que abre el mensaje; el chat se inicia desde "Iniciar chat" */
button.rd-wa-button {
    border: 0;
    font: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.rd-wa-float.is-open .rd-wa-pulse {
    display: none;
}

.rd-wa-float.is-open .rd-wa-button {
    box-shadow: 0 6px 18px rgba(18, 140, 74, 0.35), 0 0 0 4px rgba(37, 211, 102, 0.25);
}

.rd-wa-bubble-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 1rem 1rem;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: var(--wa-green);
    color: #FFFFFF;
    text-align: center;
    transition: background 0.2s ease;
}

.rd-wa-bubble-cta:hover,
.rd-wa-bubble-cta:focus-visible {
    background: var(--wa-green-dark);
    color: #FFFFFF;
}

.rd-wa-bubble-cta::after {
    content: none;
}

.rd-wa-avatar svg {
    display: block;
}

/* Tripadvisor: búho con el color oficial del SVG del cliente (#08808A) */
.ta-owl-badge .ta-owl-logo,
.recommended-badge-ta .ta-owl-logo,
.ta-owl-mini-mark .ta-owl-logo,
.header-social-nav a[aria-label="TripAdvisor"] .ta-owl-logo {
    color: #08808A;
}

.site-footer a.recommended-badge-ta {
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-footer a.recommended-badge-ta:hover,
.site-footer a.recommended-badge-ta:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(8, 128, 138, 0.35);
}

/* Tripadvisor: el búho usa los colores propios del SVG (relleno #08808A y línea blanca); no se repinta al pasar el mouse
   y conserva su proporción en el encabezado móvil. */
.social-circle-link .ta-owl-logo,
.social-circle-link:hover .ta-owl-logo {
    color: inherit;
    fill: #08808A;
    stroke: #FFFFFF;
}

@media (max-width: 768px) {
    .social-circle-link svg.ta-owl-logo {
        width: 16px;
        height: 10px;
    }
}

.header-social-nav a[aria-label="TripAdvisor"]:hover,
.header-social-nav a[aria-label="TripAdvisor"]:focus-visible {
    background-color: #FFFFFF;
    border-color: #08808A;
    box-shadow: 0 4px 12px rgba(8, 128, 138, 0.35);
}
