/* ============================================================
   GLOBAL — Sistema de diseño Terraza de Montaña
   Paleta: bordó #771a1c · salmón #fbd5b2
   ============================================================ */

:root {
    --bordo: #771a1c;
    --bordo-dark: #5c1416;
    --bordo-light: #9e2224;
    --salmon: #fbd5b2;
    --salmon-soft: #fdeadb;
    --cream: #fdf8f3;
    --ink: #2b2320;
    --muted: #7a6f68;
    --line: #ece2d8;
    --white: #ffffff;
    --lime: #fbd5b2; /* alias legacy usado en el footer */

    --shadow: 0 18px 45px rgba(70, 30, 20, 0.10);
    --shadow-sm: 0 8px 24px rgba(70, 30, 20, 0.08);
    --radius: 18px;
    --nav-h: 66px;
    /* Altura estándar del hero de páginas internas (nosotros, la zona, contacto).
       La portada usa 100vh aparte. */
    --hero-h: clamp(360px, 52vh, 520px);
    /* Ancho estándar del contenido: navbar, secciones y footer se alinean a este eje */
    --content-w: min(1100px, 88%);
    /* Sangría lateral del texto sobre el hero: deliberadamente más al borde que el contenido */
    --hero-pad-x: 8%;
    /* Ritmo vertical de las secciones de contenido */
    --section-y: clamp(3.5rem, 8vw, 6.5rem);

    --font-body: 'MontserratCustom', system-ui, sans-serif;
    --font-head: Georgia, 'Times New Roman', serif;
}

@font-face {
    font-family: 'MontserratCustom';
    src: url('../assets/fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    background-color: var(--cream);
    color: var(--ink);
    line-height: 1.65;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0.3px;
    margin: 0;
}

a { color: var(--bordo); }

.content-wrap {
    flex: 1;
    padding-top: var(--nav-h);
}

.container {
    width: var(--content-w);
    margin-inline: auto;
}

/* Utilidad de "eyebrow" reutilizable */
.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--bordo);
    margin-bottom: 0.9rem;
}

/* Botón base reutilizable */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bordo);
    color: var(--salmon);
    padding: 0.9rem 2.2rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(119, 26, 28, 0.22);
    transition: transform 0.25s ease, background 0.25s ease;
}
.btn:hover { background: var(--bordo-dark); transform: translateY(-3px); color: var(--salmon); }
.btn svg { width: 18px; height: 18px; }

.btn-outline {
    background: transparent;
    color: var(--bordo);
    border: 2px solid var(--bordo);
    box-shadow: none;
}
.btn-outline:hover { background: var(--bordo); color: var(--salmon); }

/* ── RESEÑAS ─────────────────────────────────────────────── */
/* Cinco estrellas dibujadas con una máscara: el color sale de background-color,
   así hereda la paleta sin necesidad de un ícono por estrella. */
.stars {
    --star-size: 15px;
    display: block;
    width: calc(var(--star-size) * 5);
    height: var(--star-size);
    margin: 0 0 0.9rem;
    background-color: var(--bordo);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.4 6.9.7-5.2 4.7 1.5 6.9L12 17.3 5.9 20.7l1.5-6.9L2.2 9.1l6.9-.7z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.4 6.9.7-5.2 4.7 1.5 6.9L12 17.3 5.9 20.7l1.5-6.9L2.2 9.1l6.9-.7z'/%3E%3C/svg%3E");
    -webkit-mask-size: var(--star-size) var(--star-size);
    mask-size: var(--star-size) var(--star-size);
    -webkit-mask-repeat: repeat-x;
    mask-repeat: repeat-x;
}

.review {
    margin: 0;
}

.review-text {
    font-size: 0.98rem;
    line-height: 1.85;
    color: var(--muted);
    margin: 0 0 0.9rem;
}

.review-author {
    font-family: var(--font-head);
    font-size: 1.1rem;
    color: var(--bordo);
    line-height: 1.3;
    margin: 0;
}

.review-author span {
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
    margin-top: 0.25rem;
}

/* Reveal on scroll (JS agrega .in) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar {
    background: var(--bordo);
    color: #fff;
    height: var(--nav-h);
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}
.navbar.scrolled {
    box-shadow: none;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.navbar .logo img {
    height: 40px;
    display: block;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.navbar .nav-links a {
    color: var(--salmon);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    position: relative;
    padding: 4px 0;
    transition: color 0.2s;
}
.navbar .nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--salmon);
    transition: width 0.25s ease;
}
.navbar .nav-links a:hover::after,
.navbar .nav-links a.active::after { width: 100%; }
.navbar .nav-links a:hover { color: #fff; }

/* Hamburguesa */
.menu-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 0.25rem;
    cursor: pointer;
    z-index: 20;
}

.hamburger {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--salmon);
    position: relative;
    border-radius: 999px;
    transition: background-color 0.3s ease;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--salmon);
    border-radius: 999px;
    transition: transform 0.3s ease, top 0.3s ease;
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.menu-toggle.active .hamburger { background-color: transparent; }
.menu-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.menu-toggle.active .hamburger::after { top: 0; transform: rotate(-45deg); }

/* ── WHATSAPP FLOTANTE ───────────────────────────────────── */
.wa-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 900;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float img { width: 28px; height: 28px; }

/* ── FOOTER ──────────────────────────────────────────────── */
/* Acotado al footer del sitio: como selector de elemento suelto pintaba
   cualquier <footer> anidado en el contenido. */
body > footer {
    background: var(--bordo);
    color: var(--salmon);
    padding: 3.5rem 0 1.5rem;
    margin-top: auto;
}

.footer-top {
    width: var(--content-w);
    margin-inline: auto;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.footer-top .footer-links  { flex: 1; }
.footer-top .footer-social { flex: 1; justify-content: center; }
.footer-top .powered-by    { flex: 1; justify-content: flex-end; }

.footer-links {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    color: var(--salmon);
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-links-title {
    color: #fff !important;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin: 0 0 0.5rem !important;
    line-height: 1 !important;
}

.footer-links-group a {
    color: var(--salmon) !important;
    font-size: 0.9rem;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.footer-links-group a:hover { opacity: 1; text-decoration: none; }

.footer-social {
    display: flex;
    gap: 0.7rem;
    justify-content: center;
}

.social-btn {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.social-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}
.footer-social img { width: 20px; height: 20px; object-fit: contain; }

.powered-by {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    color: var(--salmon);
    font-size: 0.8rem;
    opacity: 0.85;
}
.powered-by img { width: 110px; }

.footer-bottom {
    width: var(--content-w);
    margin: 2.5rem auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(251, 213, 178, 0.25);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--salmon);
    text-align: center;
    line-height: 1.8;
    opacity: 0.8;
}

/* ── MOBILE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    :root {
        --hero-h: clamp(300px, 45vh, 400px);
        --content-w: 90%;
        --hero-pad-x: 6%;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .navbar .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--bordo);
        padding: 1.5rem 0;
        margin: 0;
        gap: 1.2rem;
        text-align: center;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    }
    .navbar .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .navbar .nav-links a::after { display: none; }

    footer { padding: 3rem 0 1.5rem; }

    .footer-top {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        text-align: center;
    }
    .footer-links { justify-content: center; gap: 3rem; }
    .footer-social { display: flex; }
    .powered-by { justify-content: center; }
}
