/* ==========================================================================
   TOKENS
   ========================================================================== */
:root {
  --navy: #151F30;
  --navy-2: #1E2C45;
  --cream: #F4F0E8;
  --gold: #A9825A;
  --white: #FFFFFF;
  --ink: #1A1A1A;
  --whatsapp: #25D366;
  --whatsapp-ink: #0B3B22;
  --gold-ink: #7A5B3A;
  /* Montserrat: geometric sans with full Spanish-accent support. Reserved
     for h1/h2 only; h3 and body stay in the sans for legibility at small
     sizes and to keep a clear type hierarchy. */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'General Sans', sans-serif;
  --container: 1200px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
h1, h2 { font-family: var(--font-heading); font-weight: 500; margin: 0 0 0.5em; line-height: 1.12; letter-spacing: 0; }
h3 { font-family: var(--font-body); font-weight: 600; margin: 0 0 0.5em; line-height: 1.3; }
.accent { display: inline-block; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: 760px; }
.section { padding: 4rem 0; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: var(--white); }

/* ==========================================================================
   BUTTONS & LINKS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.3s var(--ease-out-expo);
}
.btn:active { transform: scale(0.98); }
/* Primary CTA — ivory (the site's own --cream token) with a navy edge. Every
   placement sits on a navy or dark-photo background, where ivory pops (14.4:1);
   the navy border keeps it defined on the rare light-background instance (the
   scrolled header's small nav button). Hover inverts to solid navy. WhatsApp
   green is reserved for the circular floating button only. */
.btn--primary { background: var(--cream); color: var(--navy); border: 1.5px solid var(--navy); }
.btn--primary:hover { background: var(--navy); color: var(--cream); }
.btn--outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn--outline-navy { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn--outline-navy:hover { background: var(--navy); color: var(--white); }

.text-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--navy);
  border-bottom: 1px solid var(--navy); padding-bottom: 0.3rem;
}
.text-link::after { content: "\2192"; text-transform: none; transition: transform 0.3s var(--ease-out-expo); display: inline-block; }
.text-link:hover::after { transform: translateX(4px); }

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

/* ==========================================================================
   HEADER — transparent over the hero, solid + blurred and slightly shorter
   once the page scrolls.
   ========================================================================== */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background-color 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo), backdrop-filter 0.35s var(--ease-out-expo);
}
#site-header.is-scrolled {
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(21,31,48,0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.25rem; gap: 1.5rem;
  transition: padding 0.35s var(--ease-out-expo);
}
#site-header.is-scrolled .header-inner { padding: 0.7rem 1.25rem; }
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo { height: 42px; width: auto; transition: height 0.35s var(--ease-out-expo); }
#site-header.is-scrolled .logo { height: 34px; }
.logo--navy { display: none; }
#site-header.is-scrolled .logo--white { display: none; }
#site-header.is-scrolled .logo--navy { display: block; }

.nav { display: none; }
.btn--small { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
#nav-toggle {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0;
  background: none; border: none; cursor: pointer;
}
#nav-toggle span { width: 22px; height: 2px; background: var(--white); transition: background-color 0.25s ease; }
#site-header.is-scrolled #nav-toggle span { background: var(--navy); }

.nav.is-open {
  display: flex; flex-direction: column; align-items: stretch; gap: 0.25rem;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--white); color: var(--navy);
  padding: 1rem 1.25rem; box-shadow: 0 12px 24px rgba(21,31,48,0.12);
}
.nav.is-open a:not(.btn) { display: flex; align-items: center; min-height: 44px; }
.nav.is-open .btn--primary { align-self: stretch; justify-content: center; margin-top: 0.5rem; }

@media (min-width: 768px) {
  .nav { display: flex; align-items: center; gap: 1.75rem; color: var(--white); font-weight: 500; }
  .nav a:not(.btn) { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; }
  #site-header.is-scrolled .nav { color: var(--navy); }
  .nav.is-open {
    position: static; flex-direction: row; padding: 0; box-shadow: none; background: transparent; color: inherit;
  }
  #nav-toggle { display: none; }
}

/* ==========================================================================
   HERO — parallax background, line-by-line title reveal, credential line.
   ========================================================================== */
#hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,31,48,0.45) 0%, rgba(21,31,48,0.28) 22%, rgba(21,31,48,0.55) 60%, rgba(21,31,48,0.88) 100%);
}
.hero-content { position: relative; padding: 6rem 1.25rem 4rem; }
.hero-title { font-size: clamp(2.5rem, 6.5vw, 4.25rem); max-width: 15ch; letter-spacing: -0.005em; margin: 0; overflow: hidden; }
.hero-line { display: block; overflow: hidden; }
/* Each line is its own clipped box; the text inside rises from below it on load,
   giving the "reveal by line" effect without any layout shift. */
.hero-title .hero-line { position: relative; }
.hero-subhead { font-size: 1.1rem; max-width: 42ch; margin: 1.5rem 0 2rem; color: rgba(255,255,255,0.88); }
.hero-ctas { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
@media (min-width: 480px) { .hero-ctas { flex-direction: row; align-items: center; } }

/* Trust strip (sibling of #hero, not nested — keeps hero's own viewport-height layout intact) */
.trust-strip { position: relative; background: var(--navy-2); color: var(--white); }
.trust-strip-inner {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  padding: 1.25rem; text-align: center; font-size: 0.95rem;
}
.trust-strip-badge { height: 26px; width: auto; }
@media (min-width: 768px) {
  .trust-strip-inner { flex-direction: row; justify-content: center; gap: 1.25rem; }
}

/* Shared section label — used sparingly.
   --gold-ink (darker) is the default for light backgrounds (WCAG AA needs
   4.5:1; --gold on cream only reaches 3.07:1). --gold itself stays reserved
   for dark backgrounds, where it reaches 4.74:1 and --gold-ink would fail. */
.eyebrow { color: var(--gold-ink); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; margin-bottom: 0.5rem; }
.section--navy .eyebrow { color: var(--gold); }

/* ==========================================================================
   NOSOTROS
   ========================================================================== */
.nosotros-grid h2 { max-width: 12ch; font-size: clamp(2rem, 4vw, 2.85rem); }
.nosotros-grid { display: grid; gap: 2rem; }
.nosotros-grid .text-link { margin-top: 1.5rem; }
@media (min-width: 768px) { .nosotros-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }

/* ==========================================================================
   BENEFICIOS — plain typographic grid, no icons, no card chrome
   ========================================================================== */
#beneficios h2 { max-width: 22ch; margin-bottom: 3rem; font-size: clamp(2rem, 4vw, 2.85rem); }
.benefit-grid { display: grid; gap: 2.5rem 2rem; grid-template-columns: 1fr; }
@media (min-width: 480px) { .benefit-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .benefit-grid { grid-template-columns: repeat(3, 1fr); } }
.benefit { padding-top: 1.25rem; border-top: 1px solid rgba(21,31,48,0.12); }
.benefit h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.benefit p { color: #4a4a4a; font-size: 0.95rem; }

.section-cta {
  margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid rgba(21,31,48,0.12);
  display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
}
.section-cta p { font-weight: 600; font-size: 1.05rem; margin: 0; }
@media (min-width: 640px) { .section-cta { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ==========================================================================
   SISTEMAS — text cards with a top accent bar, "ideal para" line, hover lift.
   ========================================================================== */
#sistemas h2 { font-size: clamp(2rem, 4vw, 2.85rem); }
.section-lead { color: #4a4a4a; margin-bottom: 2.5rem; font-size: 1.05rem; }
.solutions-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .solutions-grid { grid-template-columns: repeat(3, 1fr); } }
.solution-card {
  background: var(--white); border-radius: 12px; overflow: hidden;
  border-top: 3px solid var(--navy);
  box-shadow: 0 1px 3px rgba(21,31,48,0.06);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}
.solution-card:hover { transform: translateY(-6px); box-shadow: 0 20px 32px rgba(21,31,48,0.14); }
.solution-card-body { padding: 1.75rem; }
.solution-card h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 0; }
.solution-card p { color: #4a4a4a; font-size: 0.95rem; margin: 0.75rem 0 0; }
.solution-card p strong { color: var(--navy); font-weight: 600; }
.solution-card-ideal { font-size: 0.88rem; color: var(--navy); margin-top: 0.85rem; }

.chip-list { margin-top: 3rem; margin-bottom: 3rem; }
.chip-list-label { font-weight: 600; margin-bottom: 0.75rem; }
.chip-list ul { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 0; }
.chip-list li { background: var(--white); border-radius: 999px; padding: 0.4rem 1rem; font-size: 0.9rem; color: var(--navy); }

/* ==========================================================================
   MOVIMIENTO — asymmetric split + custom line-art SVG icons that demonstrate
   the opening motion on scroll-reveal and again on hover.
   ========================================================================== */
.movimiento-section { background: var(--white); }
.movimiento-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .movimiento-grid { grid-template-columns: 5fr 7fr; gap: 3rem; align-items: center; }
}
.movimiento-media { border-radius: 12px; overflow: hidden; aspect-ratio: 4/5; }
.movimiento-media img { width: 100%; height: 100%; object-fit: cover; }
.movimiento-content h2 { font-size: clamp(2rem, 4vw, 2.85rem); max-width: 16ch; }
.movimiento-content > p { color: #4a4a4a; font-size: 1.05rem; max-width: 55ch; margin-bottom: 2rem; }
.movimiento-list { display: grid; gap: 1.75rem; grid-template-columns: 1fr; margin-bottom: 2.5rem; }
@media (min-width: 480px) {
  .movimiento-list { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .movimiento-item:last-child { grid-column: 1 / -1; }
}
.movimiento-item h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.movimiento-item p { color: #4a4a4a; font-size: 0.92rem; margin: 0; }
.movimiento-icon { display: block; width: 44px; height: 44px; color: var(--navy); margin-bottom: 0.75rem; }
.movimiento-icon svg { width: 100%; height: 100%; }

/* Corrediza: the inner pane slides right on demo/hover. */
.icon-sash--slide { transition: transform 0.8s var(--ease-out-expo); transform: translateX(0); }
.movimiento-item:hover .icon-sash--slide,
.movimiento-item.icon-demo .icon-sash--slide { transform: translateX(18px); }

/* Oscilobatiente / Proyectante: crossfade between a closed-sash state and an
   open-sash state — clearer than faking a 2D hinge rotation. */
.icon-sash--closed { transition: opacity 0.5s var(--ease-out-expo); opacity: 1; }
.icon-sash--open { transition: opacity 0.5s var(--ease-out-expo); opacity: 0; }
.movimiento-item:hover .icon-sash--closed,
.movimiento-item.icon-demo .icon-sash--closed { opacity: 0; }
.movimiento-item:hover .icon-sash--open,
.movimiento-item.icon-demo .icon-sash--open { opacity: 1; }

/* Fija: no moving sash — a soft diagonal glint sweeps across the glass instead. */
.icon-shine { transition: opacity 0.3s ease, transform 1.1s var(--ease-out-expo); transform: translateX(-14px); }
.movimiento-item:hover .icon-shine,
.movimiento-item.icon-demo .icon-shine { opacity: 0.55; transform: translateX(14px); }

/* ==========================================================================
   PROYECTOS — mini-casos with a large main photo, project meta, and a strip of
   supporting thumbnails; all open the shared case-lightbox with prev/next nav.
   ========================================================================== */
#proyectos h2 { max-width: 32ch; margin-bottom: 2.5rem; font-size: clamp(2rem, 4vw, 2.85rem); }
.cases-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .cases-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }

.case-main { position: relative; display: block; width: 100%; padding: 0; border: none; cursor: pointer; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; }
.case-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out-expo); }
.case-main:hover img { transform: scale(1.04); }
.case-main-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1.25rem;
  background: linear-gradient(180deg, transparent 55%, rgba(21,31,48,0.75) 100%);
  opacity: 0; transition: opacity 0.4s var(--ease-out-expo);
}
.case-main:hover .case-main-overlay { opacity: 1; }
.case-main-name { color: var(--white); font-family: var(--font-heading); font-weight: 500; font-size: 1.3rem; }

.case-meta { margin-top: 1rem; }
.case-meta h3 { font-size: 1.1rem; margin-bottom: 0; }

.case-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-top: 1rem; }
.case-thumbs:has(> :nth-child(4)) { grid-template-columns: repeat(4, 1fr); }
.case-thumb { padding: 0; border: none; cursor: pointer; border-radius: 8px; overflow: hidden; aspect-ratio: 1/1; }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.case-thumb:hover img { transform: scale(1.08); }

/* Lightboxes share this base: full-screen dark overlay, centered media, close/esc/backdrop-click. */
.lightbox { position: fixed; inset: 0; background: rgba(21,31,48,0.95); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 2rem; }
.lightbox[hidden] { display: none; }
.lightbox img, .lightbox video { max-width: 100%; max-height: 90vh; border-radius: 4px; }
.lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; color: var(--white); font-size: 2rem; line-height: 1; cursor: pointer; z-index: 2; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: none;
  color: var(--white); font-size: 2.5rem; line-height: 1; width: 52px; height: 52px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background-color 0.2s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-counter { position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.75); font-size: 0.85rem; }

/* ==========================================================================
   RESPALDO ALCO — logo + counters replacing the plain seal, asymmetric split.
   ========================================================================== */
.respaldo-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .respaldo-grid { grid-template-columns: 7fr 5fr; gap: 3rem; } }
.respaldo-content h2 { font-size: clamp(2rem, 4vw, 2.85rem); max-width: 16ch; }
.respaldo-content p:not(.eyebrow) { color: rgba(255,255,255,0.85); max-width: 55ch; }
.respaldo-content .btn { margin-top: 1.5rem; }

.respaldo-proof { text-align: center; }
.respaldo-logo { height: 56px; width: auto; margin: 0 auto 1rem; }
.respaldo-logo-caption { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.65); margin: 0 0 2.5rem; }
.respaldo-counters { display: flex; justify-content: center; gap: 3rem; }
.respaldo-counter { display: flex; flex-direction: column; align-items: center; }
.counter-number { font-family: var(--font-heading); font-weight: 500; font-size: clamp(2.5rem, 4vw, 3.25rem); color: var(--white); line-height: 1; }
.counter-number::before { content: "+"; }
.counter-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.65); margin-top: 0.5rem; }

/* ==========================================================================
   VIDEO — planta de producción. Full-bleed autoplay/muted/loop background,
   dark overlay, serif title, and a play button that opens the same footage
   with sound in a lightbox.
   ========================================================================== */
.section-video { position: relative; min-height: 78svh; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--white); }
.video-bg-wrap { position: absolute; inset: 0; }
.video-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-bg-overlay { position: absolute; inset: 0; background: rgba(21,31,48,0.55); }
.video-bg-content { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.75rem; }
.video-bg-content h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); max-width: 18ch; margin: 0; }
.video-play-btn {
  width: 84px; height: 84px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.12); backdrop-filter: blur(4px);
  color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform 0.4s var(--ease-out-expo), background-color 0.3s ease;
}
.video-play-btn:hover { transform: scale(1.08); background: rgba(255,255,255,0.22); }
.video-play-btn svg { margin-left: 4px; }
.video-bg-caption { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.7); margin: 0; }

/* Scroll-reveal entrance for the whole video section: scale up from 0.92 with
   soft rounded edges opening out, rather than a plain fade. */
.section-video.reveal { opacity: 0; transform: scale(0.92); border-radius: 24px; overflow: hidden; transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo), border-radius 0.9s var(--ease-out-expo); }
.section-video.reveal.is-visible { opacity: 1; transform: scale(1); border-radius: 0; }

/* ==========================================================================
   PROCESO — 4 steps with a connecting line that fills in as the section
   scrolls into view.
   ========================================================================== */
#proceso h2 { font-size: clamp(2rem, 4vw, 2.85rem); max-width: 20ch; }
.proceso-track { position: relative; display: grid; gap: 2.5rem; grid-template-columns: 1fr; margin: 3rem 0 2.5rem; }
@media (min-width: 900px) { .proceso-track { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.proceso-line { display: none; }
@media (min-width: 900px) {
  .proceso-line {
    display: block; position: absolute; top: 22px; left: 12.5%; right: 12.5%; height: 1px;
    background: rgba(21,31,48,0.12);
  }
  .proceso-line-fill {
    display: block; height: 100%; width: 0%; background: var(--gold);
    transition: width 1.2s var(--ease-out-expo);
  }
  .proceso-track.is-visible .proceso-line-fill { width: 100%; }
}
.proceso-step { position: relative; }
.proceso-number {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--navy);
  font-family: var(--font-heading); font-weight: 500; font-size: 1.1rem; margin-bottom: 1rem; background: var(--white); position: relative; z-index: 1;
}
.proceso-step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.proceso-step p { color: #4a4a4a; font-size: 0.92rem; margin: 0; }
.garantia-line { font-size: 0.95rem; color: var(--navy); border-top: 1px solid rgba(21,31,48,0.12); padding-top: 1.5rem; }

/* ==========================================================================
   FAQ — accordion using a grid-template-rows transition (not height), the
   pattern that animates smoothly without ever animating a layout property.
   ========================================================================== */
.faq-list { margin-top: 2.5rem; border-top: 1px solid rgba(21,31,48,0.12); }
.faq-item { border-bottom: 1px solid rgba(21,31,48,0.12); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: none; border: none; text-align: left; cursor: pointer;
  padding: 1.25rem 0; font-size: 1rem; font-weight: 500; color: var(--navy);
}
.faq-icon { font-size: 1.3rem; font-weight: 400; transition: transform 0.3s var(--ease-out-expo); flex-shrink: 0; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease-out-expo); }
.faq-question[aria-expanded="true"] + .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }
.faq-answer-inner p { color: #4a4a4a; font-size: 0.95rem; margin: 0 0 1.25rem; line-height: 1.6; }

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
#cta-final { position: relative; padding: 6rem 0; color: var(--white); overflow: hidden; }
.cta-final-media, .cta-final-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-final-overlay { position: absolute; inset: 0; background: rgba(21,31,48,0.8); }
.cta-final-content { position: relative; text-align: center; }
.cta-final-content p { color: rgba(255,255,255,0.85); margin: 0.75rem 0 1.75rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
#site-footer { background: var(--navy); color: rgba(255,255,255,0.78); }
.footer-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 4.5rem 1.25rem 2.5rem; gap: 1.75rem;
}
.footer-logo { height: 52px; }
.footer-tagline { max-width: 46ch; line-height: 1.7; margin: 0; }
.footer-nav, .footer-contact, .footer-social {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0.75rem 2rem; row-gap: 1rem;
}
.footer-nav a, .footer-contact a, .footer-social a {
  display: inline-flex; align-items: center; min-height: 44px;
  white-space: nowrap; color: var(--white); font-weight: 500;
}
.footer-nav a:hover, .footer-contact a:hover, .footer-social a:hover { text-decoration: underline; }
.footer-bottom {
  margin: 1rem 0 0; padding-top: 1.75rem; width: 100%; max-width: 480px;
  border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.85rem;
}

/* ==========================================================================
   SCROLL-REVEAL MOTION — fade + rise as content enters the viewport. Applied
   to section headings, copy blocks, cards and grid items via main.js's
   IntersectionObserver. Feedback/storytelling: confirms the page is alive and
   draws the eye to each new block in reading order, never decoration for its
   own sake. Collapses to instant under prefers-reduced-motion.
   ========================================================================== */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .section-video.reveal { transition: none !important; opacity: 1 !important; transform: none !important; border-radius: 0 !important; }
  html { scroll-behavior: auto; }
  #hero .hero-media, #hero .hero-content > * { animation: none !important; }
  .hero-media { transform: none !important; }
  .icon-sash--slide, .icon-sash--closed, .icon-sash--open, .icon-shine { transition: none; }
}

/* Subtle hero entrance: media and copy arrive on load, not on scroll (nothing to
   scroll yet). Honors reduced motion via the media query above. */
#hero .hero-media { animation: hero-media-in 1.4s var(--ease-out-expo) both; }
#hero .hero-content > * { opacity: 0; }
.hero-title .hero-line span { display: inline-block; animation: hero-line-in 0.9s var(--ease-out-expo) both; }
.hero-title .hero-line:nth-child(1) span { animation-delay: 0.15s; }
.hero-title .hero-line:nth-child(2) span { animation-delay: 0.32s; }
.hero-title { opacity: 1 !important; }
.hero-subhead { animation: hero-content-in 0.9s var(--ease-out-expo) both; animation-delay: 0.5s; }
.hero-ctas { animation: hero-content-in 0.9s var(--ease-out-expo) both; animation-delay: 0.62s; }
@keyframes hero-media-in { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1); } }
@keyframes hero-content-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-line-in { from { opacity: 0; transform: translateY(110%); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */
.whatsapp-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 150;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--whatsapp); color: var(--whatsapp-ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(21,31,48,0.3);
  opacity: 1; transition: opacity 0.2s ease, transform 0.2s ease;
}
/* Hidden while the final CTA banner (which has its own WhatsApp button) is in view,
   so the fixed float can never overlap it regardless of viewport size or scroll position. */
.whatsapp-float.is-hidden { opacity: 0; transform: scale(0.85); pointer-events: none; }
