/* ============================================================
   CABAÑAS LAS GRULLAS · Hoja de estilos
   Paleta:
     - Verde oscuro  #4F583D
     - Beige suave   #F5EACF
     - Terracota     #8A584C
   Tipografías:
     - Títulos:  Playfair Display
     - Cuerpo:   Lato
     - Detalles: Rancho, Amatic SC, Kalam
   ============================================================ */

:root {
    --verde: #4F583D;
    --verde-claro: #6e7a55;
    --verde-oscuro: #3a4230;
    --beige: #F5EACF;
    --beige-oscuro: #ebd9b0;
    --terracota: #8A584C;
    --terracota-claro: #a87062;
    --terracota-oscuro: #6d443a;
    --blanco: #fffaf0;
    --negro: #2b2b2b;
    --sombra: 0 8px 30px rgba(40, 50, 30, 0.12);
    --sombra-hover: 0 18px 45px rgba(40, 50, 30, 0.22);
    --transicion: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1200px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Lato', system-ui, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--verde-oscuro);
    background: var(--beige);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============== SCROLL PROGRAMÁTICO (para capturas headless) ============== */
body.scroll-y-1000  { transform: translateY(-1000px);  }
body.scroll-y-2000  { transform: translateY(-2000px);  }
body.scroll-y-3000  { transform: translateY(-3000px);  }
body.scroll-y-4000  { transform: translateY(-4000px);  }
body.scroll-y-5000  { transform: translateY(-5000px);  }
body.scroll-y-6000  { transform: translateY(-6000px);  }
body.scroll-y-7000  { transform: translateY(-7000px);  }
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--verde);
    line-height: 1.15;
    font-weight: 600;
}

.rancho { font-family: 'Rancho', cursive; }
.amatic { font-family: 'Amatic SC', cursive; }
.kalam  { font-family: 'Kalam', cursive; }

/* ============== BOTONES ============== */
.btn {
    display: inline-block;
    padding: 0.95rem 2.2rem;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all var(--transicion);
    cursor: pointer;
}

.btn-primary {
    background: var(--terracota);
    color: var(--beige);
    box-shadow: 0 4px 20px rgba(138, 88, 76, 0.4);
}
.btn-primary:hover {
    background: var(--terracota-oscuro);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(138, 88, 76, 0.55);
}

.btn-lg { padding: 1.15rem 2.8rem; font-size: 1.05rem; }

/* ============== HEADER / NAV ============== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.2rem 0;
    transition: all var(--transicion);
    background: transparent;
}
.site-header.scrolled {
    background: rgba(245, 234, 207, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(40, 50, 30, 0.08);
    padding: 0.7rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.logo-img {
    height: 70px;
    width: auto;
    transition: all var(--transicion);
}
.logo-white { display: block; }
.logo-green { display: none; }
.site-header.scrolled .logo-white { display: none; }
.site-header.scrolled .logo-green { display: block; }
.site-header.scrolled .logo-img { height: 55px; }

.nav-menu {
    display: flex;
    gap: 2.4rem;
    align-items: center;
}

.nav-link {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--blanco);
    position: relative;
    padding: 0.4rem 0;
    transition: color var(--transicion);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--terracota);
    transition: width var(--transicion);
}
.nav-link:hover::after { width: 100%; }
.site-header.scrolled .nav-link { color: var(--verde); }
.site-header.scrolled .nav-link:hover { color: var(--terracota); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 110;
}
.nav-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--blanco);
    border-radius: 2px;
    transition: all var(--transicion);
}
.site-header.scrolled .nav-toggle span { background: var(--verde); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--verde); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--verde); }

/* ============== HERO ============== */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-top: 130px;
    padding-bottom: 60px;
    color: var(--blanco);
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1.05);
    animation: heroZoom 12s ease-in-out infinite alternate;
}
.hero-slide.active {
    opacity: 1;
}
@keyframes heroZoom {
    from { transform: scale(1.05); }
    to   { transform: scale(1.15); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center 60%, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0) 100%),
        linear-gradient(180deg, rgba(20,30,15,0.45) 0%, rgba(20,30,15,0.15) 40%, rgba(20,30,15,0.6) 100%);
    z-index: 1;
}

.hero-content {
    margin: auto;
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1.5rem;
    max-width: 800px;
    animation: fadeUp 1.4s ease-out;
    text-shadow: 0 2px 30px rgba(0,0,0,0.9), 0 0 60px rgba(0,0,0,0.5);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-logo {
    width: clamp(220px, 28vw, 360px);
    height: auto;
    margin: 0 auto 1.8rem;
    filter: drop-shadow(0 4px 30px rgba(0,0,0,0.7));
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 4.4rem);
    color: var(--blanco);
    font-weight: 500;
    margin-bottom: 1rem;
    text-shadow: 0 2px 25px rgba(0,0,0,0.5);
    line-height: 1.05;
}
.hero-title em {
    font-style: italic;
    font-weight: 400;
    color: #fffaf0;
}

.hero-subtitle {
    font-family: 'Kalam', cursive;
    font-size: clamp(1.2rem, 2.4vw, 1.65rem);
    color: #fffaf0;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.95), 0 0 40px rgba(0,0,0,0.6);
    font-weight: 400;
}

.hero-cta {
    animation: fadeUp 1.4s ease-out 0.3s both;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 250, 240, 0.7);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    transition: all var(--transicion);
}
.hero-scroll span {
    width: 4px;
    height: 8px;
    background: rgba(255, 250, 240, 0.9);
    border-radius: 2px;
    animation: scrollDown 1.8s ease-in-out infinite;
}
.hero-scroll:hover { border-color: var(--beige); transform: translateX(-50%) translateY(4px); }
@keyframes scrollDown {
    0%   { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

@media (max-height: 650px) {
    .hero-scroll {
        display: none !important;
    }
}

/* ============== SECCIONES ============== */
.section {
    padding: 7rem 0;
    position: relative;
}
.section-cabanias { background: var(--beige); }
.section-complejo { background: var(--blanco); }
.section-ubicacion { background: var(--beige); }
.section-contacto {
    background: linear-gradient(135deg, var(--verde) 0%, var(--verde-oscuro) 100%);
    color: var(--beige);
}
.section-contacto h2,
.section-contacto h3 { color: var(--beige); }
.section-contacto .section-lead { color: rgba(245, 234, 207, 0.9); }
.section-contacto .section-eyebrow { color: var(--beige-oscuro); }

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 4rem;
}

.section-eyebrow {
    display: inline-block;
    font-size: 1.8rem;
    color: var(--terracota);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--terracota);
    border-radius: 2px;
}

.section-lead {
    font-size: 1.15rem;
    margin-top: 1.5rem;
    color: var(--verde-oscuro);
    line-height: 1.7;
}

/* ============== INTRO TEXT ============== */
.intro-text {
    max-width: 900px;
    margin: 0 auto 5rem;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--verde-oscuro);
}
.intro-text p { margin-bottom: 1.4rem; }
.intro-text strong { color: var(--verde); font-weight: 700; }
.intro-text em { color: var(--terracota); font-style: italic; font-weight: 600; }

/* ============== CABAÑA CARD ============== */
.cabana-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 7rem;
}
.cabana-card:last-child { margin-bottom: 0; }
.cabana-card.reverse {
    grid-template-columns: 1fr 1.1fr;
    direction: rtl;
}
.cabana-card.reverse > * { direction: ltr; }

.cabana-info { padding: 1rem 0; }
.cabana-tag {
    display: inline-block;
    font-size: 1.6rem;
    background: var(--terracota);
    color: var(--beige);
    padding: 0.3rem 1.2rem;
    border-radius: 30px;
    margin-bottom: 1rem;
    line-height: 1;
}
.cabana-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}
.cabana-subtitle {
    font-size: 1.1rem;
    color: var(--verde-oscuro);
    margin-bottom: 1.8rem;
    line-height: 1.7;
    font-style: italic;
}
.cabana-features {
    list-style: none;
    margin-bottom: 2rem;
}
.cabana-features li {
    position: relative;
    padding: 0.55rem 0 0.55rem 2rem;
    border-bottom: 1px dashed rgba(79, 88, 61, 0.18);
    color: var(--verde-oscuro);
}
.cabana-features li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--terracota);
    font-size: 1rem;
}
.cabana-detail {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(58, 66, 48, 0.85);
    padding-top: 0.5rem;
}

/* ============== GALERÍA DE CABAÑA ============== */
.cabana-gallery {
    border-radius: 16px;
    overflow: hidden;
    background: var(--verde-oscuro);
    box-shadow: var(--sombra);
}
.gallery-main {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #000;
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transicion);
    opacity: 0;
}
.gallery-main img.loaded { opacity: 1; }

.gallery-prev, .gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(245, 234, 207, 0.92);
    color: var(--verde);
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    z-index: 2;
    transition: all var(--transicion);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.gallery-prev:hover, .gallery-next:hover {
    background: var(--terracota);
    color: var(--beige);
}
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    padding: 4px;
    background: var(--verde-oscuro);
}
.gallery-thumbs img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transicion);
}
.gallery-thumbs img:hover,
.gallery-thumbs img.active { opacity: 1; }

/* ============== SERVICIOS ============== */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.servicio-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--beige);
    border-radius: 16px;
    transition: all var(--transicion);
    border: 1px solid transparent;
}
.servicio-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--bg-img, none);
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.7s ease;
    z-index: -2;
}
.servicio-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,30,15,0) 0%, rgba(20,30,15,0.22) 100%);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}
.servicio-card > * { position: relative; z-index: 1; }
.servicio-card:hover {
    transform: translateY(-8px);
    border-color: var(--terracota);
    box-shadow: var(--sombra-hover);
}
.servicio-card:hover::before { opacity: 1; transform: scale(1.08); }
.servicio-card:hover::after  { opacity: 1; }
.servicio-card:hover h3 { color: var(--blanco); text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.servicio-card:hover p  { color: rgba(255, 250, 240, 0.92); text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.servicio-card:nth-child(1) { --bg-img: url('img/fichas/imagen1.webp'); }
.servicio-card:nth-child(2) { --bg-img: url('img/fichas/imagen2.webp'); }
.servicio-card:nth-child(3) { --bg-img: url('img/fichas/imagen3.webp'); }
.servicio-card:nth-child(4) { --bg-img: url('img/fichas/imagen4.webp'); }
.servicio-card:nth-child(5) { --bg-img: url('img/fichas/imagen5.webp'); }

.servicio-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.2rem;
    background: var(--verde);
    color: var(--beige);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transicion);
}
.servicio-icon svg {
    width: 44px;
    height: 44px;
}
.servicio-card:hover .servicio-icon {
    background: var(--terracota);
    transform: rotate(-5deg) scale(1.05);
}

.servicio-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.6rem;
    color: var(--verde);
}
.servicio-card p {
    font-size: 0.95rem;
    color: var(--verde-oscuro);
    line-height: 1.6;
}

/* ============== COVERFLOW COMPLEJO ============== */
.coverflow {
    position: relative;
    width: 100%;
    height: 480px;
    perspective: 1600px;
    margin: 0 auto 4.5rem;
    overflow: hidden;
    --cw-w: 480px;
    --cw-h: 360px;
    --cw-step-x: 270px;
    --cw-step-z: 240px;
    --cw-rot: 40deg;
    --cw-step-scale: 0.18;
    --cw-step-op: 0.35;
    --cw-max-vis: 2;
}
.coverflow-stage {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
}
.coverflow-track {
    position: relative;
    width: 100%;
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    transform-style: preserve-3d;
}
.coverflow-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--cw-w);
    height: var(--cw-h);
    margin-top: calc(var(--cw-h) / -2);
    margin-left: calc(var(--cw-w) / -2);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transform-style: preserve-3d;
    background: var(--verde-oscuro);
    transition: transform 0.75s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.6s ease,
                box-shadow 0.5s ease;
    will-change: transform, opacity;
}
.coverflow-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}
.coverflow-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 65%, rgba(0, 0, 0, 0.25) 100%);
    pointer-events: none;
    opacity: 0.6;
}
.coverflow-item:hover {
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.55);
}
.coverflow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: rgba(255, 250, 240, 0.95);
    color: var(--verde);
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
    transition: all 0.3s;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
}
.coverflow-arrow:hover {
    background: var(--terracota);
    color: var(--beige);
    transform: translateY(-50%) scale(1.1);
}
.coverflow-prev { left: 18px; }
.coverflow-next { right: 18px; }
.coverflow-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}
.coverflow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(79, 88, 61, 0.35);
    cursor: pointer;
    padding: 0;
    border: none;
    transition: all 0.35s;
}
.coverflow-dot.active {
    background: var(--terracota);
    width: 32px;
    border-radius: 5px;
}
.coverflow-hint {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--verde-oscuro);
    opacity: 0.6;
    font-style: italic;
}

/* ============== UBICACIÓN ============== */
.ubicacion-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.mapa-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--sombra);
    min-height: 500px;
    background: var(--verde-oscuro);
}
.mapa-wrapper iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.referencias {
    background: var(--blanco);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--sombra);
}
.referencias-title {
    font-size: 1.6rem;
    color: var(--verde);
    margin-bottom: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--terracota);
}
.referencias-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.referencias-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.ref-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--terracota);
    color: var(--beige);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ref-icon svg { width: 24px; height: 24px; }
.referencias-list strong {
    display: block;
    color: var(--verde);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}
.referencias-list span {
    font-size: 0.92rem;
    color: var(--verde-oscuro);
    line-height: 1.5;
}

/* ============== CONTACTO ============== */
.contacto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.contacto-card {
    background: rgba(255, 250, 240, 0.06);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(245, 234, 207, 0.18);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all var(--transicion);
    color: var(--beige);
}
.contacto-card:hover {
    background: rgba(255, 250, 240, 0.12);
    border-color: var(--terracota-claro);
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}
.contacto-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--terracota);
    color: var(--beige);
    border-radius: 50%;
    margin-bottom: 1rem;
    transition: all var(--transicion);
}
.contacto-icon svg { width: 32px; height: 32px; }
.contacto-card:hover .contacto-icon { transform: scale(1.08) rotate(-5deg); }

.contacto-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}
.contacto-card p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    word-break: break-word;
}
.contacto-cta {
    display: inline-block;
    font-family: 'Rancho', cursive;
    font-size: 1.2rem;
    color: var(--beige-oscuro);
}

.contacto-cta-wrap {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(245, 234, 207, 0.2);
}
.contacto-cta-wrap p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--beige);
}

/* ============== FOOTER ============== */
.site-footer {
    background: var(--verde-oscuro);
    color: var(--beige);
    padding: 3rem 0 1.5rem;
    text-align: center;
}
.footer-logo {
    height: 55px;
    margin: 0 auto 1rem;
    opacity: 0.9;
}
.site-footer p {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: rgba(245, 234, 207, 0.7);
}
.footer-copy { font-size: 0.8rem !important; margin-top: 1rem; opacity: 0.6; }

/* ============== BOTÓN FLOTANTE WHATSAPP ============== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transicion);
}
.whatsapp-float svg { width: 36px; height: 36px; }
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}
.whatsapp-float-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    z-index: -1;
    animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ============== LIGHTBOX ============== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(20, 30, 15, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.lightbox.active { display: flex; }
.lightbox img {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    color: var(--beige);
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(138, 88, 76, 0.5);
    transition: all var(--transicion);
    line-height: 1;
    font-weight: 300;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev  { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: var(--terracota);
    transform: scale(1.1);
}
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.1); }

/* ============== REVEAL ANIMATION ============== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 968px) {
    .cabana-card,
    .cabana-card.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 2.5rem;
    }
    .ubicacion-grid {
        grid-template-columns: 1fr;
    }
    .mapa-wrapper { min-height: 380px; }
    .mapa-wrapper iframe { min-height: 380px; }
    .coverflow {
        height: 280px;
        perspective: 900px;
        --cw-w: 230px;
        --cw-h: 172px;
        --cw-step-x: 130px;
        --cw-step-z: 80px;
        --cw-rot: 22deg;
        --cw-step-scale: 0.22;
        --cw-step-op: 0.55;
        --cw-max-vis: 1;
    }
    .coverflow-item { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25); }
    .coverflow-arrow { width: 40px; height: 40px; font-size: 1.3rem; }
    .coverflow-prev { left: 6px; }
    .coverflow-next { right: 6px; }
    .coverflow-dots { bottom: 4px; gap: 8px; }
    .coverflow-dot { width: 8px; height: 8px; }
    .coverflow-dot.active { width: 24px; }
    .coverflow-hint { font-size: 0.78rem; }

    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 78%;
        max-width: 340px;
        height: 100vh;
        background: var(--beige);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem;
        transition: right var(--transicion);
        box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    }
    .nav-menu.active { right: 0; }
    .nav-menu .nav-link {
        color: var(--verde);
        font-size: 1rem;
        padding: 0.8rem 0;
    }
    .nav-menu .nav-link::after { background: var(--terracota); }
    body.menu-open { overflow: hidden; }

    .logo-img { height: 55px; }
    .site-header.scrolled .logo-img { height: 45px; }
}

@media (max-width: 768px) {
    html { scroll-padding-top: 70px; }
    .section { padding: 5rem 0; }
    .section-header { margin-bottom: 3rem; }
    .intro-text { margin-bottom: 3rem; font-size: 1rem; }
    .cabana-card { margin-bottom: 4rem; }

    .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
    .servicios-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.1rem; }
    .hero-cta { padding: 0.85rem 1.8rem; font-size: 0.85rem; }
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 18px;
        right: 18px;
    }
    .whatsapp-float svg { width: 30px; height: 30px; }
    .servicios-grid { grid-template-columns: 1fr; }
    .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
    .gallery-prev, .gallery-next { width: 38px; height: 38px; font-size: 1.3rem; }
    .referencias { padding: 1.8rem 1.2rem; }
    .referencias-list li { gap: 0.8rem; }
    .ref-icon { width: 40px; height: 40px; }
    .ref-icon svg { width: 20px; height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
