/*
Theme Name: Cuyabeno Dolphin Lodge
Theme URI: https://cuyabenodolphinlodge.com
Author: Blue Nova Consulting
Author URI: https://bluenova.com.ec
Description: Tema a medida para Cuyabeno Dolphin Lodge (Reserva de Producción Faunística Cuyabeno, Amazonía ecuatoriana). Construido sobre la plantilla EpicTrips con paneles autoadministrables. Metodología Blue Nova.
Version: 0.1.0
Requires PHP: 7.4
Text Domain: cuyabeno-dolphin-lodge
*/

/*
 * Ajustes propios del tema. Los colores NUNCA van aquí en duro:
 * se inyectan como custom properties (--cdl-*) desde inc/enqueue.php
 * y aquí solo se usan con var(--cdl-primary), var(--cdl-accent), etc.
 */

/* ==========================================================================
   Correcciones de la revisión visual r1 (capturas 20-ago): header sólido,
   botones con fondo, galería de ficha, footer y contenido.
   ========================================================================== */

/* ==========================================================================
   Header "signature travel": barra selva con MENU a la izquierda, logo
   centrado y Book Now a la derecha; navegación en overlay a pantalla
   completa (referencia del cliente).
   ========================================================================== */
.cdl-header {
    position: sticky;
    top: 0;
    z-index: 995;
    background: rgba(11, 42, 23, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}
.cdl-header.cdl-scrolled {
    background: #0b2a17;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
.cdl-header-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 92px;
    gap: 24px;
}
.cdl-menu-toggle {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    padding: 8px 0;
}
.cdl-burger {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    width: 26px;
}
.cdl-burger i {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: width 0.25s ease;
}
.cdl-burger i:nth-child(2) {
    width: 70%;
}
.cdl-menu-toggle:hover .cdl-burger i {
    width: 100%;
}
.cdl-menu-etiqueta {
    font-family: "Barlow", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}
.cdl-header-logo {
    justify-self: center;
    display: block;
}
.cdl-header-logo img {
    max-height: 72px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}
.cdl-header-logo:hover img {
    transform: scale(1.05);
}
.cdl-header-right {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 18px;
}
.cdl-header-social {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.cdl-header-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    transition: all 0.25s ease;
}
.cdl-header-social a:hover {
    background: #fff;
    color: var(--cdl-secondary);
}
.cdl-header-cta {
    background: var(--cdl-accent);
    color: #3d1414;
    font-family: "Barlow", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 6px;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}
.cdl-header-cta:hover {
    background: #f7b2b2;
    color: #3d1414;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}
@media (max-width: 767px) {
    .cdl-header-bar {
        min-height: 72px;
    }
    .cdl-header-logo img {
        max-height: 56px;
    }
    .cdl-menu-etiqueta,
    .cdl-header-social {
        display: none;
    }
    .cdl-header-cta {
        padding: 11px 18px;
        font-size: 12px;
    }
}

/* --- El overlay de navegación. --- */
.cdl-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: linear-gradient(125deg, #0b2a17 0%, #14532b 100%);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.cdl-overlay.abierto {
    opacity: 1;
    visibility: visible;
}
body.cdl-overlay-abierto {
    overflow: hidden;
}
.cdl-overlay-cerrar {
    position: absolute;
    top: 34px;
    right: 44px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}
.cdl-overlay-cerrar:hover {
    background: var(--cdl-accent);
    border-color: var(--cdl-accent);
    color: #3d1414;
    transform: rotate(90deg);
}
.cdl-overlay-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 130px 44px 80px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr 1fr;
    gap: 72px;
    align-items: start;
}
.cdl-overlay-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cdl-overlay-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-family: "Barlow", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    transition: color 0.25s ease, padding-left 0.25s ease;
}
.cdl-overlay-nav a .flecha {
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.25s ease;
    color: var(--cdl-accent);
}
.cdl-overlay-nav a:hover,
.cdl-overlay-nav .activo a {
    color: var(--cdl-accent);
    padding-left: 10px;
}
.cdl-overlay-nav a:hover .flecha,
.cdl-overlay-nav .activo a .flecha {
    opacity: 1;
    transform: translateX(0);
}
.cdl-overlay-etiqueta {
    font-family: "Barlow", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 18px;
}
.cdl-overlay-tours ul {
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
}
.cdl-overlay-tours ul a {
    display: block;
    padding: 9px 0;
    font-family: "Fraunces", Georgia, serif;
    font-size: 21px;
    color: rgba(255, 255, 255, 0.82);
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.cdl-overlay-tours ul a:hover {
    color: #fff;
    padding-left: 8px;
}
.cdl-overlay-vertodos {
    display: inline-block;
    border: 1px solid var(--cdl-accent);
    color: var(--cdl-accent);
    font-family: "Barlow", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 13px 24px;
    transition: all 0.25s ease;
}
.cdl-overlay-vertodos:hover {
    background: var(--cdl-accent);
    color: #3d1414;
}
.cdl-overlay-foto {
    margin: 0;
    position: relative;
}
.cdl-overlay-foto img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}
.cdl-overlay-foto figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-family: "Barlow", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 16px 18px;
}
.cdl-overlay-foto .punto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--cdl-accent);
    color: #3d1414;
    flex: 0 0 auto;
}
@media (max-width: 991px) {
    .cdl-overlay-inner {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 110px 24px 60px;
    }
    .cdl-overlay-foto {
        display: none;
    }
    .cdl-overlay-cerrar {
        top: 18px;
        right: 20px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .cdl-overlay {
        transition: none;
    }
}

/* --- Botones: la base .tf-btn de la plantilla es solo texto; nuestros
   contextos necesitan botón de verdad. --- */
.tour-grid .tf-btn.style-small,
.wg-booking-content .tf-btn,
.cdl-form-fallback .tf-btn,
.section-default .tf-btn,
.section-about .tf-btn {
    background: var(--cdl-button);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    text-align: center;
    font-weight: 600;
}
.tour-grid .tf-btn.style-small:hover,
.wg-booking-content .tf-btn:hover,
.cdl-form-fallback .tf-btn:hover,
.section-about .tf-btn:hover {
    background: var(--cdl-button-hover);
    color: #fff;
}
.wg-booking-content .tf-btn.style-2 {
    background: #fff;
    color: var(--cdl-button);
    border: 1px solid var(--cdl-button);
}
.wg-booking-content .tf-btn.style-2:hover {
    background: var(--cdl-button);
    color: #fff;
}
.wg-booking-content .tf-btn.style-boder {
    background: #fff;
    color: var(--On-Surface);
    border: 1px solid var(--Line);
}
.section-cta .tf-btn {
    background: #fff;
    color: var(--cdl-secondary);
    padding: 12px 28px;
    border-radius: 8px;
    display: inline-block;
    font-weight: 600;
}
.tour-grid .bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

/* Botón de Fluent Forms al verde de marca (viene azul del plugin). */
.fluentform .ff-btn-submit,
.fluentform .ff_btn_style {
    background-color: var(--cdl-button) !important;
    border-color: var(--cdl-button) !important;
    color: #fff !important;
    border-radius: 8px !important;
}
.fluentform .ff-btn-submit:hover {
    background-color: var(--cdl-button-hover) !important;
}

/* --- Galería de la ficha de tour: mosaico 1 grande + 2 apiladas, con las
   fotos llenando su celda (object-fit) y el botón como overlay. --- */
.wg-gallery.style-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-auto-rows: 280px;
    gap: 16px;
    margin-bottom: 32px;
}
.wg-gallery.style-2 .gallery-item-1 {
    grid-row: span 2;
}
.wg-gallery.style-2 .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}
.wg-gallery.style-2 .image,
.wg-gallery.style-2 .image a {
    display: block;
    width: 100%;
    height: 100%;
}
.wg-gallery.style-2 .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.wg-gallery.style-2 .gallery-content {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.wg-gallery.style-2 .btn-gallery .tf-btn {
    background: #fff;
    color: var(--On-Surface);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
}
@media (max-width: 767px) {
    .wg-gallery.style-2 {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }
    .wg-gallery.style-2 .gallery-item-1 {
        grid-row: auto;
    }
}

/* --- Hero de la portada: puntos del slider centrados abajo. --- */
.page-title-home {
    position: relative;
}
.page-title-home .pagination-page-title-home {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 8px;
}

/* --- Precio de la cabecera de la ficha. --- */
.wg-price .price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.wg-price .price h5 {
    margin: 0;
    color: var(--cdl-primary);
}

/* --- "Not Included": las X en rojo apagado, no en verde. --- */
.wg-not-included .services-item i {
    color: #b3403c;
}

/* --- Footer: la selva al final del río. --- */
.footer {
    background: var(--cdl-secondary);
    color: rgba(255, 255, 255, 0.72);
    padding: 40px 0 0;
}
.footer .tf-container {
    padding-left: 24px;
    padding-right: 24px;
}
.cdl-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr;
    gap: 48px;
    padding-bottom: 44px;
}
@media (max-width: 991px) {
    .cdl-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}
@media (max-width: 575px) {
    .cdl-footer-grid {
        grid-template-columns: 1fr;
    }
}
.cdl-footer-logo img {
    max-height: 96px;
    width: auto;
    display: block;
    margin-bottom: 14px;
}
.cdl-footer-tagline {
    font-family: "Fraunces", Georgia, serif;
    font-size: 19px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
}
.cdl-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.85);
    transition: background 0.25s ease, border-color 0.25s ease;
}
.cdl-rating:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--cdl-accent);
    color: #fff;
}
.cdl-rating .estrella {
    color: #ffcf5c;
}
.cdl-rating strong {
    color: #fff;
}
.cdl-rating .detalle {
    font-size: 13px;
}
.cdl-footer-titulo {
    font-family: "Barlow", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cdl-accent);
    margin-bottom: 18px;
}
.cdl-footer-lista {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cdl-footer-lista li {
    margin-bottom: 11px;
}
.cdl-footer-lista a {
    color: rgba(255, 255, 255, 0.72);
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.cdl-footer-lista a:hover {
    color: #fff;
    padding-left: 4px;
}
/* El ítem activo del pie, en blanco: el verde de marca no contrasta aquí. */
.cdl-footer-lista .current-menu-item a,
.cdl-footer-lista .current_page_item a {
    color: #fff;
    font-weight: 600;
}
.cdl-footer-contacto li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    overflow-wrap: anywhere;
}
.cdl-footer-contacto i {
    color: var(--cdl-accent);
    font-size: 16px;
    margin-top: 3px;
}
.footer .social {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}
.footer .social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.25s ease;
}
.footer .social a:hover {
    background: var(--cdl-accent);
    border-color: var(--cdl-accent);
    color: #3d1414;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 0;
}
.footer-bottom .caption-1 {
    color: rgba(255, 255, 255, 0.55);
}
/* La onda que precede al footer se apoya directo sobre él. */
.cdl-wave.into-selva + .footer {
    margin-top: -1px;
}
/* En la portada el CTA ya es selva: dos verdes con una franja blanca de
   onda entre medio se ven rotos — ahí la onda del footer no va. */
body.home .cdl-wave-footer {
    display: none;
}

/* --- Contenido de páginas interiores: viñetas y jerarquía legible. --- */
.section-default .content h2 {
    font-size: 30px;
    margin: 1.3em 0 0.4em;
    color: var(--cdl-secondary);
}
.section-default .content p {
    margin-bottom: 1em;
}
.section-default .content ul {
    list-style: disc;
    padding-left: 1.5em;
    margin: 0 0 1.2em;
}
.section-default .content li {
    margin-bottom: 0.4em;
}

/* Cabecera de las páginas interiores (template-interior.php). */
.cdl-page-hero {
    padding: 60px 0 30px;
}
.cdl-page-hero.has-image {
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    position: relative;
}
.cdl-page-hero.has-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}
.cdl-page-hero.has-image .tf-container {
    position: relative;
}
.cdl-page-hero.has-image .title,
.cdl-page-hero.has-image .sub-title {
    color: var(--White);
}

/* Botones a lo ancho en las tarjetas de reserva y el plan B del formulario. */
.wg-booking-content .tf-btn,
.cdl-form-fallback .tf-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
}

/* Tarifario por tamaño de grupo (sidebar de la ficha de tour). */
.cdl-tarifas {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}
.cdl-tarifas li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--Line);
}

/* Utilidades que la plantilla no trae. */
.pt-30 {
    padding-top: 30px;
}

/* Precio anterior tachado. */
.wg-price s,
.wg-booking-content s {
    color: var(--Secondary);
    margin-right: 6px;
}

/* ==========================================================================
   Capa de diseño r2 — "El río y el delfín".
   Verde selva disciplinado + el rosado del delfín como acento vivo (es SU
   marca: ningún otro lodge lo tiene). Fraunces para los titulares, ondas
   del río como separadores, movimiento sobrio al hacer scroll.
   ========================================================================== */

/* --- Tipografía display: Fraunces en los titulares. --- */
h1,
h2,
h3,
.heading-section .title,
.section-tours-details .heading-section .title,
.wg-info .title,
.wg-what-included .title,
.wg-not-included .title,
.wg-booking .title,
.details-content-2 > .title,
.cdl-page-hero .title,
.section-cta .title,
.testimonial-content .title,
.tour-grid-content .title {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.page-title-home-content .title {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 560;
    letter-spacing: -0.015em;
}
.page-title-home-content .title em {
    font-style: italic;
    font-weight: 480;
    color: var(--cdl-accent);
}
::selection {
    background: var(--cdl-accent);
    color: #3d1414;
}

/* --- Eyebrow: la etiqueta con el arco del delfín. --- */
.cdl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Barlow", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cdl-primary);
    margin-bottom: 14px;
}
.cdl-eyebrow::before {
    content: "";
    width: 26px;
    height: 11px;
    border: 2.5px solid var(--cdl-accent);
    border-bottom: none;
    border-left-color: transparent;
    border-right-color: transparent;
    border-radius: 26px 26px 0 0;
}
.cdl-eyebrow.is-light {
    color: #fff;
}

/* --- Hero: capa de fondo con Ken Burns + velo selva + cue de scroll. --- */
.cdl-hero-slide {
    position: relative;
    overflow: hidden;
    min-height: 82vh;
    display: flex;
    align-items: center;
}
.cdl-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    animation: cdl-kenburns 18s ease-in-out infinite alternate;
    will-change: transform;
}
@keyframes cdl-kenburns {
    from { transform: scale(1) translateX(0); }
    to   { transform: scale(1.09) translateX(-1.5%); }
}
.cdl-hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(8, 32, 18, 0.78) 0%, rgba(8, 32, 18, 0.35) 52%, rgba(8, 32, 18, 0.06) 100%);
}
.cdl-hero-slide .tf-container {
    position: relative;
    z-index: 2;
}
.page-title-home-content .sub-title {
    max-width: 46ch;
}
.page-title-home-content .tf-btn {
    background: var(--cdl-accent);
    color: #3d1414;
    font-weight: 700;
    padding: 14px 30px;
    border-radius: 999px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.page-title-home-content .tf-btn:hover {
    background: #f7b2b2;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}
.cdl-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 5;
    width: 34px;
    height: 54px;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}
.cdl-scroll-cue::after {
    content: "";
    width: 5px;
    height: 10px;
    border-radius: 999px;
    background: var(--cdl-accent);
    animation: cdl-cue 1.8s ease-in-out infinite;
}
@keyframes cdl-cue {
    0%, 100% { transform: translateY(0); opacity: 1; }
    60%      { transform: translateY(16px); opacity: 0.2; }
}

/* --- Ondas del río: separadores orgánicos entre secciones. --- */
.cdl-wave {
    display: block;
    width: 100%;
    height: 70px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
}
.cdl-wave.into-selva {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,44 C220,78 440,6 720,30 C1000,54 1220,14 1440,46 L1440,80 L0,80 Z' fill='%2314532B'/%3E%3C/svg%3E");
}
.cdl-wave.out-of-selva {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,44 C220,78 440,6 720,30 C1000,54 1220,14 1440,46 L1440,0 L0,0 Z' fill='%2314532B'/%3E%3C/svg%3E");
}

/* --- Cifras reales de la reserva. --- */
.cdl-stats {
    background:
        radial-gradient(ellipse at 85% 10%, rgba(240, 152, 152, 0.14), transparent 45%),
        var(--cdl-secondary);
    color: #fff;
    padding: 64px 0 72px;
}
.cdl-stats .row {
    row-gap: 36px;
}
.cdl-stat {
    text-align: center;
    padding: 0 18px;
}
.cdl-stat .numero {
    font-family: "Fraunces", Georgia, serif;
    font-size: 56px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
}
.cdl-stat .numero .sufijo {
    color: var(--cdl-accent);
    font-size: 0.6em;
    font-weight: 500;
    margin-left: 2px;
}
.cdl-stat .texto {
    margin-top: 10px;
    font-size: 14px;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    font-weight: 600;
}

/* --- Tarjetas de tour: vida al pasar el cursor. --- */
.tour-grid {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(13, 40, 24, 0.07);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    margin-bottom: 30px;
}
.tour-grid:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 44px rgba(13, 40, 24, 0.16);
}
.tour-grid .image {
    overflow: hidden;
    position: relative;
}
.tour-grid .image img {
    transition: transform 0.6s ease;
    width: 100%;
    display: block;
}
.tour-grid:hover .image img {
    transform: scale(1.06);
}
.tour-grid .image .tf-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    backdrop-filter: blur(4px);
}
.tour-grid-content {
    padding: 20px 22px 22px;
}
.tour-grid-content .title {
    font-size: 22px;
    display: block;
    transition: color 0.25s ease;
}
.tour-grid-content .title:hover {
    color: var(--cdl-primary);
}
.tour-grid .tf-btn.style-small::after {
    content: " →";
    display: inline-block;
    transition: transform 0.25s ease;
}
.tour-grid:hover .tf-btn.style-small::after {
    transform: translateX(4px);
}

/* --- Sección About: foto orgánica con marco rosado desplazado. --- */
.section-about .cdl-foto-organica {
    position: relative;
    display: inline-block;
}
.section-about .cdl-foto-organica img {
    border-radius: 46% 54% 52% 48% / 44% 46% 54% 56%;
    position: relative;
    z-index: 1;
}
.section-about .cdl-foto-organica::before {
    content: "";
    position: absolute;
    inset: 18px -18px -18px 18px;
    border-radius: 54% 46% 48% 52% / 56% 54% 46% 44%;
    background: rgba(240, 152, 152, 0.35);
    z-index: 0;
}

/* --- CTA final sobre selva con textura de ondas. --- */
.section-cta {
    position: relative;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='60' viewBox='0 0 260 60'%3E%3Cpath d='M0,30 C40,12 90,48 130,30 C170,12 220,48 260,30' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='2'/%3E%3C/svg%3E"),
        var(--cdl-secondary) !important;
    padding: 84px 0;
}
.section-cta .title {
    color: #fff;
    font-size: 42px;
}

/* --- Ficha de tour: acordeones y sidebar con vida. --- */
.tf-accordion .tf-accordion-item {
    border: 1px solid var(--Line);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.tf-accordion .tf-accordion-item:has(.btn-accordion:not(.collapsed)) {
    border-color: var(--cdl-primary);
    box-shadow: 0 8px 22px rgba(13, 40, 24, 0.08);
}
.tf-accordion .btn-accordion {
    width: 100%;
    text-align: left;
    padding: 16px 18px;
    font-weight: 600;
    background: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}
.tf-accordion .btn-accordion:not(.collapsed) {
    background: #f2faf4;
    color: var(--cdl-secondary);
}
.tf-accordion .btn-accordion:hover {
    color: var(--cdl-primary);
}
.tf-accordion .toggle-content-inner {
    padding: 4px 18px 18px;
}
.section-sidebar {
    position: sticky;
    top: 24px;
}
.wg-booking {
    border: 1px solid var(--Line);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 14px 34px rgba(13, 40, 24, 0.08);
}
.details-content .details-item .icon i {
    color: var(--cdl-primary);
    font-size: 22px;
}

/* --- Cabeceras interiores: overlay selva en vez de negro plano. --- */
.cdl-page-hero.has-image::before {
    background: linear-gradient(100deg, rgba(8, 32, 18, 0.78) 0%, rgba(8, 32, 18, 0.3) 70%);
}

/* --- Movimiento con juicio. --- */
html {
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
    .cdl-hero-bg,
    .cdl-scroll-cue::after {
        animation: none !important;
    }
    html {
        scroll-behavior: auto;
    }
    .tour-grid,
    .tour-grid .image img {
        transition: none;
    }
}

/* Marca de dato pendiente: visible solo para editores (ver cdl_value_or_pending). */
.cdl-pending {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: #fff3cd;
    color: #7a5b00;
    font-size: 0.8em;
    font-weight: 600;
}
