/* ═══════════════════════════════════════════
   BT1082-W185 · Constructora · Slate Modern
   Secciones a viewport · Trait: A escala
   ═══════════════════════════════════════════ */

/* ── RESET & ROOT ─────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html,body{overflow-x:clip}
html{scroll-behavior:smooth;scroll-padding-top:72px}
body{font-family:'Inter',system-ui,-apple-system,sans-serif;font-size:1rem;line-height:1.6;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
ul,ol{list-style:none}
button{cursor:pointer;font:inherit;border:0;background:none}
[hidden]{display:none!important}
h1,h2,h3,h4{font-family:'Onest',system-ui,sans-serif;line-height:1.15;hyphens:none}
h1{font-size:clamp(2.25rem,5vw,3.5rem);font-weight:700}
h2{font-size:clamp(1.75rem,3.5vw,2.25rem);font-weight:600}
h3{font-size:clamp(1.25rem,2.5vw,1.5rem);font-weight:600}
h4{font-size:1.05rem;font-weight:600}

:root{
  --primary:#1E2A38;
  --accent:#F26430;
  --bg:#FAFBFC;
  --surface:#E8ECF1;
  --text:#0C1120;
  --muted:#4E5A6A;
  --white:#FFFFFF;
  --scrim-dark:rgba(12,17,32,.62);
  --scrim-light:rgba(30,42,56,.55);
  --radius:12px;
  --shadow:0 2px 12px rgba(12,17,32,.08);
  --shadow-lg:0 8px 32px rgba(12,17,32,.12);
}

/* ── FOCUS / A11Y ────────────────────── */
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}
.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}

/* ── NAV ─────────────────────────────── */
.nav{position:fixed;top:0;left:0;right:0;z-index:1000;background:rgba(30,42,56,.94);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);padding:0 clamp(1rem,4vw,3rem);height:68px;display:flex;align-items:center;justify-content:space-between}
.nav-brand{display:flex;align-items:center;gap:10px;flex-shrink:1;min-width:0}
.biz-logo{height:42px;width:auto;max-width:180px;object-fit:contain}
.nav-wordmark{font-family:'Onest',system-ui,sans-serif;font-size:1.15rem;font-weight:700;color:var(--white);overflow-wrap:anywhere;hyphens:none;white-space:normal}
.nav-links{display:flex;align-items:center;gap:clamp(.5rem,2vw,1.5rem)}
.nav-links a{color:rgba(255,255,255,.82);font-size:.88rem;font-weight:500;transition:color .2s;overflow-wrap:anywhere;hyphens:none}
.nav-links a:hover{color:var(--white)}
.nav-cta{display:inline-flex;align-items:center;gap:6px;background:var(--accent);color:var(--white)!important;padding:8px 18px;border-radius:8px;font-weight:600;transition:background .2s}
.nav-cta:hover{background:#d45328}
.nav-toggle{display:none;flex-direction:column;gap:5px;padding:8px;z-index:1001}
.nav-toggle span{display:block;width:24px;height:2px;background:var(--white);border-radius:1px;transition:transform .25s,opacity .25s}
.nav-toggle.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-toggle.open span:nth-child(2){opacity:0}
.nav-toggle.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

@media(max-width:860px){
  .nav-links{display:none;position:fixed;top:68px;left:0;right:0;bottom:0;background:rgba(30,42,56,.98);flex-direction:column;align-items:flex-start;padding:2rem clamp(1rem,4vw,3rem);gap:1.25rem;overflow-y:auto}
  .nav-links.open{display:flex}
  .nav-links a{font-size:1.1rem}
  .nav-toggle{display:flex}
}

/* ── FULLBLEED SECTION BASE ──────────── */
.fb-section{position:relative;min-height:100vh;display:flex;align-items:center;justify-content:center;overflow:hidden}
.fb-section .section-inner{position:relative;z-index:2;width:100%;max-width:1200px;margin:0 auto;padding:clamp(2rem,6vh,5rem) clamp(1rem,4vw,3rem)}
.fb-bg{position:absolute;inset:0;z-index:0}
.fb-bg img{width:100%;height:100%;object-fit:cover}
.fb-scrim{position:absolute;inset:0;background:linear-gradient(180deg,var(--scrim-dark) 0%,rgba(30,42,56,.45) 40%,var(--scrim-dark) 100%);z-index:1}

/* ── HERO ────────────────────────────── */
.hero{min-height:100vh;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
.hero .fb-bg{z-index:0}
.hero .fb-scrim{z-index:1}
#vanta-bg{position:absolute;inset:0;z-index:1;opacity:.38;pointer-events:none}
.hero .section-inner{position:relative;z-index:2;text-align:left;max-width:680px;margin-left:clamp(1rem,8vw,6rem)}
.hero h1{color:var(--white);margin-bottom:1rem;overflow-wrap:anywhere;hyphens:none}
.hero .hero-sub{font-size:clamp(1rem,1.8vw,1.2rem);color:rgba(255,255,255,.78);margin-bottom:2rem;line-height:1.5}
.hero .hero-cta{display:inline-flex;align-items:center;gap:8px;background:var(--accent);color:var(--white);padding:14px 32px;border-radius:10px;font-weight:700;font-size:1.05rem;transition:background .2s,transform .2s}
.hero .hero-cta:hover{background:#d45328;transform:translateY(-2px)}

/* ── HERO CURVE (design move) ────────── */
.hero-curve{position:absolute;bottom:-1px;left:0;right:0;z-index:3;pointer-events:none}
.hero-curve svg{display:block;width:100%;height:auto}

/* ── SECTIONS GENERAL ────────────────── */
.section-pad{padding:clamp(3rem,8vh,6rem) clamp(1rem,4vw,3rem)}
.section-title{text-align:center;margin-bottom:3rem;color:var(--primary);overflow-wrap:anywhere;hyphens:none}
.section-title.light{color:var(--white)}

/* ── SERVICES ────────────────────────── */
.services-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(280px,100%),1fr));gap:1.5rem}
/* auto-fill gives 3 columns at 1440, so a 4-card pool renders 3 + one lone card (design-standards
   §3c: grids are built for 4/8/12 so the last row never dangles). 4 cards lay out 2x2. */
.services-grid:has(> :last-child:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr));max-width:820px;margin-inline:auto}
.services-grid:has(> :last-child:nth-child(2)){grid-template-columns:repeat(2,minmax(0,1fr));max-width:820px;margin-inline:auto}
.service-card{background:rgba(255,255,255,.92);border-radius:var(--radius);padding:clamp(1.25rem,3vh,2rem);box-shadow:var(--shadow);transition:box-shadow .3s,transform .3s}
.service-card:hover{box-shadow:var(--shadow-lg);transform:translateY(-3px)}
.service-card h3{font-size:1.1rem;color:var(--primary);margin-bottom:.5rem;overflow-wrap:anywhere;hyphens:none}
.service-card p{font-size:.9rem;color:var(--muted);line-height:1.5}
.service-card .svc-price{font-size:.85rem;font-weight:600;color:var(--accent);margin-top:.5rem}
.service-card .svc-book{display:inline-block;margin-top:.75rem;padding:6px 16px;background:var(--accent);color:var(--white);border-radius:6px;font-size:.82rem;font-weight:600}
/* entrance stagger — START VISIBLE */
.js-anim .service-card{opacity:1;transform:none}
@media(prefers-reduced-motion:no-preference){
  .js-anim .service-card{opacity:0;transform:translateY(28px)}
  .js-anim .service-card.revealed{animation:cardIn .5s ease-out forwards}
  @keyframes cardIn{to{opacity:1;transform:translateY(0)}}
}

/* ── ABOUT ───────────────────────────── */
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,4rem);align-items:center}
.about-content h2{color:var(--white);margin-bottom:1.25rem;overflow-wrap:anywhere;hyphens:none}
.about-content p{color:rgba(255,255,255,.85);font-size:1.05rem;line-height:1.7}
.about-img img{width:100%;border-radius:var(--radius);box-shadow:var(--shadow-lg);transition:box-shadow .3s,transform .3s}
.about-img img:hover{box-shadow:0 12px 40px rgba(0,0,0,.25);transform:translateY(-3px)}
@media(max-width:720px){.about-grid{grid-template-columns:1fr}}

/* ── TRUST BAR ───────────────────────── */
.trust{background:var(--white);padding:clamp(2rem,5vh,3.5rem) clamp(1rem,4vw,3rem)}
.trust-grid{display:flex;flex-wrap:wrap;gap:2rem;justify-content:center;align-items:center;text-align:center}
.trust-item{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:.92rem}
.trust-item svg{width:20px;height:20px;color:var(--accent);flex-shrink:0}

/* ── AMENITIES (checklist columns) ───── */
.amenities{background:var(--primary);padding:clamp(3rem,8vh,6rem) clamp(1rem,4vw,3rem)}
.amenities-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem 3rem;max-width:900px;margin:0 auto}
.amenity-row{display:flex;align-items:center;gap:12px;padding:.65rem 0;border-bottom:1px solid rgba(255,255,255,.1);color:rgba(255,255,255,.88);font-size:.95rem}
.amenity-row svg{width:22px;height:22px;flex-shrink:0;color:var(--accent)}
@media(max-width:640px){.amenities-grid{grid-template-columns:1fr}}

/* ── EXPERIENCE / STORY ──────────────── */
.exp-section,.story-section{background:var(--surface);padding:clamp(3rem,8vh,6rem) clamp(1rem,4vw,3rem)}
.exp-section .section-inner,.story-section .section-inner{max-width:800px;margin:0 auto}
.exp-section h2,.story-section h2{color:var(--primary);margin-bottom:1.25rem;overflow-wrap:anywhere;hyphens:none}
.exp-section p,.story-section p{color:var(--muted);font-size:1.02rem;line-height:1.7}

/* ── GALLERY ─────────────────────────── */
.gallery{background:var(--white);padding:clamp(3rem,8vh,6rem) clamp(1rem,4vw,3rem)}
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr));gap:1.25rem}
.gallery-item{cursor:pointer;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:box-shadow .3s,transform .3s}
.gallery-item:hover{box-shadow:var(--shadow-lg);transform:translateY(-3px)}
.gallery-item img{width:100%;aspect-ratio:3/4;object-fit:cover}
.gallery-item .gallery-cap{padding:.65rem .9rem;font-size:.85rem;color:var(--muted);background:var(--white)}

/* Lightbox */
.lightbox{position:fixed;inset:0;z-index:9999;background:rgba(12,17,32,.94);display:flex;align-items:center;justify-content:center;padding:2rem}
.lightbox img{max-width:90vw;max-height:85vh;object-fit:contain;border-radius:6px}
.lightbox-close{position:absolute;top:1.5rem;right:1.5rem;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.15);color:var(--white);font-size:1.5rem;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .2s}
.lightbox-close:hover{background:rgba(255,255,255,.25)}

/* ── REVIEWS ─────────────────────────── */
.reviews{background:var(--surface);padding:clamp(3rem,8vh,6rem) clamp(1rem,4vw,3rem)}
.reviews-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr));gap:1.5rem;max-width:1100px;margin:0 auto}
.review-card{background:var(--white);padding:1.5rem;border-radius:var(--radius);box-shadow:var(--shadow)}
.review-card .review-author{font-weight:600;color:var(--primary)}
.review-card .review-stars{color:#e8a830;font-size:.9rem;margin:.3rem 0}
.review-card .review-text{font-size:.9rem;color:var(--muted);line-height:1.5;margin-top:.4rem}

/* ── FAQ ─────────────────────────────── */
.faq{background:var(--white);padding:clamp(3rem,8vh,6rem) clamp(1rem,4vw,3rem)}
.faq-list{max-width:800px;margin:0 auto}
.faq-item{border-bottom:1px solid var(--surface)}
.faq-q{width:100%;text-align:left;padding:1.1rem 0;font-size:1.02rem;font-weight:600;color:var(--primary);display:flex;justify-content:space-between;align-items:center;gap:1rem;cursor:pointer}
.faq-q::after{content:'+';font-size:1.4rem;font-weight:300;color:var(--accent);flex-shrink:0;transition:transform .25s}
.faq-item.open .faq-q::after{transform:rotate(45deg)}
.faq-a{max-height:0;overflow:hidden;transition:max-height .35s ease-out}
.faq-a p{padding:0 0 1.1rem 0;color:var(--muted);font-size:.95rem;line-height:1.6}
.faq-item.open .faq-a{max-height:500px}

/* ── PROMO (diagonal split, banner 3) ── */
.promo{overflow:hidden}
.promo-banner{position:relative;background:linear-gradient(135deg,var(--accent) 52%,#FFD166 52%);padding:clamp(2rem,5vh,3.5rem) clamp(1rem,4vw,3rem);text-align:center}
.promo-banner h3{color:var(--white);font-size:clamp(1.3rem,2.5vw,1.8rem);font-weight:800;margin-bottom:.4rem;overflow-wrap:anywhere;hyphens:none;text-shadow:0 2px 8px rgba(0,0,0,.15)}
.promo-banner p{color:rgba(255,255,255,.9);font-size:1.05rem}
.promo-banner .promo-tag{display:inline-block;background:var(--white);color:var(--accent);padding:4px 14px;border-radius:20px;font-weight:700;font-size:.82rem;margin-bottom:.75rem}

/* ── CONTACT (split panel, layout 3) ─── */
.contact{display:grid;grid-template-columns:1fr 1fr;min-height:70vh;overflow:hidden}
.contact-info{background:var(--primary);padding:clamp(2.5rem,6vh,5rem) clamp(1.5rem,5vw,4rem);display:flex;flex-direction:column;justify-content:center;color:var(--white)}
.contact-info h2{color:var(--white);margin-bottom:1.5rem;overflow-wrap:anywhere;hyphens:none}
.contact-info .ci-row{display:flex;align-items:flex-start;gap:12px;margin-bottom:1.1rem;font-size:.95rem;line-height:1.5}
.contact-info .ci-row svg{width:20px;height:20px;flex-shrink:0;color:var(--accent);margin-top:2px}
.contact-info .ci-cta{display:inline-flex;align-items:center;gap:8px;background:var(--accent);color:var(--white);padding:10px 22px;border-radius:8px;font-weight:600;font-size:.95rem;margin-top:1rem;align-self:flex-start}
.contact-map{background:var(--surface);position:relative}
.contact-map iframe{width:100%;height:100%;border:0;filter:grayscale(.3) saturate(.9) contrast(1.02)}
@media(max-width:720px){
  .contact{grid-template-columns:1fr;min-height:auto}
  .contact-map{min-height:350px}
}

/* ── CONTACT FORM (hidden) ───────────── */
.contact-form{display:none;background:var(--surface);padding:clamp(2.5rem,6vh,5rem) clamp(1.5rem,5vw,4rem)}
[data-contact="form"] .contact-map{display:none}
[data-contact="form"] .contact-form{display:block}
.contact-form h3{margin-bottom:1.5rem;color:var(--primary)}
.contact-form .form-group{margin-bottom:1rem}
.contact-form label{display:block;font-size:.88rem;font-weight:500;color:var(--text);margin-bottom:.3rem}
.contact-form input,.contact-form textarea{width:100%;padding:10px 14px;border:1px solid #ccd2d8;border-radius:8px;font:inherit;font-size:.95rem;background:var(--white);transition:border-color .2s}
.contact-form input:focus,.contact-form textarea:focus{border-color:var(--accent);outline:0}
.contact-form textarea{min-height:100px;resize:vertical}
.contact-form button{background:var(--accent);color:var(--white);padding:10px 28px;border-radius:8px;font-weight:600;font-size:.95rem}

/* ── HOURS ROW ───────────────────────── */
.hours-block{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid rgba(255,255,255,.15)}
.hours-block h4{color:rgba(255,255,255,.7);font-size:.85rem;margin-bottom:.6rem}
.hours-row{display:flex;justify-content:space-between;font-size:.88rem;color:rgba(255,255,255,.85);padding:.25rem 0}

/* ── COVERAGE / PAYMENTS ─────────────── */
.coverage-pay{display:flex;flex-wrap:wrap;gap:1.5rem;margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid rgba(255,255,255,.15);font-size:.88rem;color:rgba(255,255,255,.7)}
.coverage-pay span{display:flex;align-items:center;gap:6px}

/* ── SOCIAL ICONS ────────────────────── */
.social-row{display:flex;gap:10px;margin-top:1.5rem}
.social-row a{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;background:rgba(255,255,255,.1);color:rgba(255,255,255,.7);transition:background .2s,color .2s}
.social-row a:hover{background:var(--accent);color:var(--white)}
.social-row a svg{width:18px;height:18px}

/* ── FOOTER ──────────────────────────── */
.footer{background:var(--primary);color:rgba(255,255,255,.75);padding:clamp(2.5rem,6vh,4rem) clamp(1rem,4vw,3rem)}
/* the fixed WhatsApp pill is 43px tall at bottom:24px — without this the last footer line sits
   under it forever on a phone (QA 2026-07-30: the copyright was unreadable at 375) */
@media(max-width:600px){
  /* the pill spanned x=117..351 at 375 and buried the footer's last line under it. On a phone
     it collapses to the icon and hugs the right edge; the footer still keeps clearance. */
  .wa-float{padding:14px;border-radius:50%;gap:0}
  .wa-float .wa-float-label{display:none}
  .footer{padding-bottom:104px}
}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:2rem;max-width:1200px;margin:0 auto}
.footer-brand{display:flex;align-items:center;gap:10px;margin-bottom:.75rem}
.footer .biz-logo{height:48px}
.footer-wordmark{font-family:'Onest',system-ui,sans-serif;font-size:1.15rem;font-weight:700;color:var(--white);overflow-wrap:anywhere;hyphens:none}
.footer h4{color:var(--white);margin-bottom:.75rem;font-size:.9rem;text-transform:uppercase;letter-spacing:.04em}
.footer p,.footer a{font-size:.88rem;line-height:1.6}
.footer a:hover{color:var(--white)}
.footer-legal{margin-top:2rem;padding-top:1.5rem;border-top:1px solid rgba(255,255,255,.1);display:flex;flex-wrap:wrap;gap:1.5rem;justify-content:center;font-size:.82rem}
.footer-legal a{text-decoration:underline;text-underline-offset:2px}

/* ── WHATSAPP FLOAT ──────────────────── */
.wa-float{position:fixed;bottom:24px;right:24px;z-index:9995;display:flex;align-items:center;gap:8px;background:#25D366;color:#fff;padding:10px 18px;border-radius:50px;font-weight:600;font-size:.9rem;box-shadow:0 4px 18px rgba(0,0,0,.22);transition:transform .2s}
.wa-float:hover{transform:translateY(-2px)}
/* the notice is transient and MUST be dismissible: it outranks the FAB, and the FAB steps up out
   of the bar while it is showing (QA 2026-07-30 — the FAB swallowed every press on Entendido) */
body:has(#lb-cookie-notice:not([hidden])) .wa-float{bottom:104px}
.wa-float svg{width:22px;height:22px}

/* ── COOKIE NOTICE ───────────────────── */
#lb-cookie-notice{position:fixed;left:12px;right:12px;bottom:12px;z-index:9996;display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:rgba(12,17,32,.96);color:#f2f4f7;padding:14px 18px;border-radius:10px;box-shadow:0 4px 18px rgba(0,0,0,.25);font-size:.85rem;line-height:1.45}
#lb-cookie-notice[hidden]{display:none}
#lb-cookie-notice p{margin:0;flex:1 1 260px}
#lb-cookie-notice a{color:var(--accent);text-decoration:underline}
#lb-cookie-btn{flex:0 0 auto;min-height:44px;padding:10px 22px;border:0;border-radius:8px;background:var(--white);color:#0C1120;font-weight:600;cursor:pointer}

/* ── SECTION DIVIDER (wave-soft) ─────── */
.section-divider{position:relative;height:80px;overflow:hidden}
.section-divider svg{position:absolute;bottom:0;left:0;width:100%;height:100%}
.section-divider.primary-to-white{background:var(--primary)}
.section-divider.primary-to-white svg path{fill:var(--white)}
.section-divider.white-to-primary{background:var(--white)}
.section-divider.white-to-primary svg path{fill:var(--primary)}
.section-divider.white-to-surface{background:var(--white)}
.section-divider.white-to-surface svg path{fill:var(--surface)}
.section-divider.surface-to-white{background:var(--surface)}
.section-divider.surface-to-white svg path{fill:var(--white)}

/* ── RESPONSIVE ──────────────────────── */
@media(max-width:640px){
  .hero .section-inner{margin-left:0;text-align:center}
  .hero h1{font-size:clamp(1.75rem,7vw,2.5rem)}
  .hero .hero-sub{font-size:.95rem}
  .fb-section{min-height:auto;padding:3rem 0}
}

/* ── REDUCED MOTION ──────────────────── */
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:0.01ms!important;animation-iteration-count:1!important;transition-duration:0.01ms!important;scroll-behavior:auto!important}
  .js-anim .service-card{opacity:1;transform:none}
}

/* ── SVG SPRITE ICONS ────────────────── */
.svg-sprite{display:none}
svg:has(use[href^="#icon-"]){fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* ── HIGH-CONTRAST BAND ──────────────── */
.bg-primary{background:var(--primary);color:var(--white)}
.bg-surface{background:var(--surface)}

/* last-row fit for the ventajas grid — 7 chips in 2 columns left one alone (§3c) */
.amenities-grid:has(> :last-child:nth-child(5)){grid-template-columns:repeat(3,minmax(0,1fr))}
.amenities-grid:has(> :last-child:nth-child(7)){grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:900px){.amenities-grid:has(> :last-child:nth-child(n)){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.amenities-grid:has(> :last-child:nth-child(n)){grid-template-columns:1fr}}

/* ── AA contrast overrides (measured on the rendered page) ── */
#contacto > div.contact-info > a.ci-cta:not(:hover){background-color:#c85126 !important}
