/* ===================================================================
   Cabaña Pasoré — landing page
   Marca: verde #37802e (principal) · negro (secundario)
   Estilo: natural / rústico · serif Fraunces + Nunito Sans
   =================================================================== */

:root {
    /* Paleta derivada del verde de marca */
    --color-accent: #37802e;
    --color-accent-hover: #2b6323;
    --color-accent-dark: #1f4a1c;
    --color-accent-soft: #eef3ea;

    --color-bg: #f8f6ef; /* fondo claro cálido */
    --color-surface: #ffffff; /* tarjetas */
    --color-ink: #1e241b; /* texto principal (casi negro) */
    --color-ink-soft: #55604e; /* texto secundario */
    --color-line: #e2ddd0;

    --font-title: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --maxw: 1140px;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(31, 74, 28, 0.10);
    --shadow-sm: 0 4px 14px rgba(31, 74, 28, 0.08);

    --space-section: clamp(3.5rem, 8vw, 6rem);
}

/* ---------- Reset básico ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-ink);
    background: var(--color-bg);
    line-height: 1.65;
    font-size: 1rem;
    overflow-x: hidden;
}

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

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

a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    font-family: var(--font-title);
    font-weight: 500;
    line-height: 1.15;
    color: var(--color-ink);
    letter-spacing: -0.01em;
}

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

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

/* ---------- Botones ---------- */
.btn {
    display: inline-block;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.98rem;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

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

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

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .7);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .14);
}

.btn-light {
    background: #fff;
    color: var(--color-accent-dark);
}

.btn-light:hover {
    background: var(--color-accent-soft);
}

.btn-block {
    width: 100%;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(248, 246, 239, 0.3);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
}

.brand-logo {
    height: 44px;
    width: auto;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    padding: 2px;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 0;
}

.nav-menu a {
    color: var(--color-ink);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.nav-menu .nav-cta {
    background: var(--color-accent);
    color: #fff;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
}

.nav-menu .nav-cta:hover {
    background: var(--color-accent-hover);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 0;
    cursor: pointer;
    position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
    content: "";
    position: absolute;
    left: 10px;
    width: 24px;
    height: 2px;
    background: var(--color-ink);
    transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle-bar {
    top: 21px;
}

/* ::before/::after son hijos de .nav-toggle-bar, así que su left es relativo
   a la barra (ya desplazada 10px); lo reseteamos para alinear las tres líneas. */
.nav-toggle-bar::before {
    top: -7px;
    left: 0;
}

.nav-toggle-bar::after {
    top: 7px;
    left: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    color: #fff;
    padding: 7rem 0 4rem;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    background-image: url("../img/instagram/485038089.jpg");
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 40, 18, .45) 0%, rgba(20, 40, 18, .55) 55%, rgba(20, 40, 18, .78) 100%);
}

.hero-content {
    position: relative;
    max-width: 640px;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #e9f0e4;
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.8rem, 8vw, 4.6rem);
    font-weight: 600;
}

.hero-subtitle {
    font-family: var(--font-title);
    font-size: clamp(1.3rem, 3.5vw, 1.9rem);
    font-style: italic;
    margin-top: .5rem;
    color: #f3f7f0;
}

.hero-text {
    margin-top: 1.2rem;
    font-size: 1.05rem;
    color: #eef2ea;
    max-width: 34rem;
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
}

/* ---------- Secciones ---------- */
.section {
    padding: var(--space-section) 0;
}

.section-alt {
    background: var(--color-surface);
}

/* Compensar el header fijo al saltar a un ancla */
section[id], footer[id] {
    scroll-margin-top: 78px;
}

.section-head {
    max-width: 40rem;
    margin: 0 auto 3rem;
    text-align: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .78rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: .6rem;
}

.section h2 {
    font-size: clamp(1.8rem, 4.5vw, 2.6rem);
}

.section-head h2 {
    margin-top: .2rem;
}
.section-head p {
    margin-top: .8rem;
    color: var(--color-ink-soft);
}

/* ---------- Sobre nosotros ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.about-text h2 {
    margin: .3rem 0 1.1rem;
}

.about-text p {
    color: var(--color-ink-soft);
    margin-bottom: 1rem;
}

.about-text .btn {
    margin-top: .6rem;
}

.about-media {
    display: flex;
    justify-content: center;
}

/* La imagen es el logo/emblema (fondo blanco, ~1:1): se muestra completo
   dentro de una tarjeta, sin recortar, y sin agrandarse más que su tamaño real. */
.about-media img {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Grillas de tarjetas ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card {
    background: var(--color-bg);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    padding: 2rem 1.6rem;
    transition: transform .2s ease, box-shadow .2s ease;
}

.section-alt .card {
    background: var(--color-surface);
}

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

.card-icon, .benefit-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: .8rem;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: .5rem;
}

.card p {
    color: var(--color-ink-soft);
    font-size: .97rem;
}

/* ---------- Beneficios ---------- */
.benefits-grid {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.benefit {
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    padding: 1.8rem 1.5rem;
}

.benefit h3 {
    font-size: 1.15rem;
    margin-bottom: .4rem;
}

.benefit p {
    color: var(--color-ink-soft);
    font-size: .95rem;
}

/* ---------- Galería ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    background: none;
    font: inherit;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform .4s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
    transform: scale(1.05);
}

/* Indicador de "ampliar" */
.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(30, 36, 27, 0) center / 34px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3Cline x1='16' y1='16' x2='21' y2='21'/%3E%3C/svg%3E");
    opacity: 0;
    transition: opacity .25s ease, background-color .25s ease;
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
    opacity: 1;
    background-color: rgba(30, 36, 27, .28);
}

.gallery-item:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.gallery-note {
    text-align: center;
    margin-top: 1.8rem;
    color: var(--color-ink-soft);
}

/* ---------- Lightbox de la galería ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 18, 10, .96);
}

.lightbox__figure {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: min(1000px, 92vw);
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .9rem;
}

.lightbox__figure img {
    max-width: 100%;
    max-height: 74vh;
    width: auto;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    object-fit: contain;
}

.lightbox__figure figcaption {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: .3rem .8rem;
    color: #fff;
    font-size: .95rem;
    text-align: center;
}

.lightbox__count {
    color: rgba(255, 255, 255, .6);
    font-size: .85rem;
}

.lightbox__btn {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.lightbox__btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.lightbox__close {
    top: 1.1rem;
    right: 1.1rem;
}

.lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__nav--prev {
    left: 1.1rem;
}

.lightbox__nav--next {
    right: 1.1rem;
}

.lightbox__nav:hover {
    transform: translateY(-50%) scale(1.08);
}

/* ---------- Testimonios ---------- */
.testimonials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial {
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius);
    padding: 1.8rem;
}

.testimonial p {
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-style: italic;
}

.testimonial footer {
    margin-top: 1rem;
    font-family: var(--font-body);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--color-accent);
}

/* ---------- Contacto ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.contact-intro h2 {
    margin: .3rem 0 1rem;
}

.contact-intro p {
    color: var(--color-ink-soft);
}

.contact-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    display: grid;
    gap: .8rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--color-ink-soft);
}

.contact-form {
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 1rem;
}

.contact-form label {
    display: grid;
    gap: .35rem;
    font-weight: 600;
    font-size: .9rem;
    color: var(--color-ink);
}

.contact-form input,
.contact-form textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: .7rem .85rem;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    background: var(--color-bg);
    color: var(--color-ink);
    width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 1px;
    border-color: var(--color-accent);
}

.contact-form textarea {
    resize: vertical;
}

.form-note {
    font-size: .82rem;
    color: var(--color-ink-soft);
    font-weight: 400;
    text-align: center;
}

/* ---------- Ubicación (mapa embebido) ---------- */
.map-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-line);
}
.map-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
@media (max-width: 900px) {
    .map-embed { aspect-ratio: 3 / 2; }
}
@media (max-width: 560px) {
    .map-embed { aspect-ratio: 4 / 5; }
}

/* ---------- CTA final ---------- */
.cta-final {
    background: var(--color-accent-dark);
    color: #fff;
    text-align: center;
    padding: var(--space-section) 0;
}

.cta-final h2 {
    color: #fff;
    font-size: clamp(1.8rem, 4.5vw, 2.6rem);
}

.cta-final p {
    margin: .8rem 0 1.8rem;
    color: #e6efe2;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #17210f;
    color: #cdd6c6;
    padding: 3.5rem 0 1.5rem;
    font-size: .95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
}

.footer-logo {
    height: 120px;
    width: auto;
    background: #fff;
    border-radius: 10px;
    padding: 6px;
    margin-bottom: .8rem;
}

.footer-brand p {
    max-width: 22rem;
}

.footer-col h3 {
    color: #fff;
    font-family: var(--font-body);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: .9rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: .5rem;
}

.footer-col a, .footer-brand a {
    color: #cdd6c6;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .8rem;
    font-size: .82rem;
    color: #9aa891;
}

.credit {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.credit a {
    display: inline-flex;
}

.credit img {
    height: 17px;
    width: auto;
}

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 90;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
    transition: transform .2s ease;
}

.wa-float:hover {
    transform: scale(1.08);
    text-decoration: none;
}

/* ---------- Animación de aparición ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-media {
        order: -1;
    }

    .about-media img {
        max-width: 300px;
    }

    .cards-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 66px;
        left: 0;
        right: 0;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-line);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .5rem 1.25rem 1.25rem;
        transform: translateY(-120%);
        transition: transform .3s ease;
        max-height: calc(100vh - 66px);
        overflow-y: auto;
    }

    .nav-menu.is-open {
        transform: translateY(0);
    }

    .nav-menu li {
        border-bottom: 1px solid var(--color-line);
    }

    .nav-menu li:last-child {
        border-bottom: 0;
    }

    .nav-menu a {
        display: block;
        padding: .9rem .2rem;
    }

    .nav-menu .nav-cta {
        text-align: center;
        margin-top: .8rem;
    }

    /* Dejar aire al final para que el botón flotante de WhatsApp no tape el crédito */
    .footer-bottom {
        padding-bottom: 76px;
    }
}

@media (max-width: 560px) {
    .cards-grid,
    .benefits-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

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

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

    .hero {
        min-height: 88vh;
    }

    .hero-actions .btn {
        flex: 1 1 100%;
    }

    .lightbox {
        padding: 1rem;
    }

    .lightbox__btn {
        width: 42px;
        height: 42px;
        font-size: 1.4rem;
    }

    .lightbox__close {
        top: .6rem;
        right: .6rem;
    }

    .lightbox__nav--prev {
        left: .4rem;
    }

    .lightbox__nav--next {
        right: .4rem;
    }

    .lightbox__figure img {
        max-height: 68vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
