/* =========================================================
   Vidrios Zapopán — hoja de estilos v2
   Fondos grandes, video, parallax, scrollytelling, 3D tilt.
   Paleta tomada del logotipo: azul marino, blanco, gris.
   ========================================================= */

:root{
  --navy-900:#071322;
  --navy-800:#0E2A45;
  --navy-700:#173A5C;
  --blue-accent:#5FB4EA;
  --blue-accent-dark:#2F86BE;
  --silver:#C9D1D8;
  --silver-line:#DCE1E4;
  --paper:#F3F5F6;
  --paper-alt:#E9EDEF;
  --ink:#141A20;
  --ink-soft:#4C555D;
  --white:#FFFFFF;
  --glass-bg:rgba(255,255,255,0.10);
  --glass-border:rgba(255,255,255,0.28);

  --font-display:'Fraunces', Georgia, serif;
  --font-body:'Work Sans', Arial, sans-serif;

  --maxw:1220px;
  --edge:clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--paper);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul, ol{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--font-display); font-weight:600; line-height:1.12; margin:0; color:var(--navy-900); }
p{ margin:0; }
.container{ max-width:var(--maxw); margin:0 auto; padding-left:var(--edge); padding-right:var(--edge); position:relative; }
.eyebrow-label{ font-family:var(--font-body); font-weight:600; font-size:0.95rem; color:var(--blue-accent-dark); }
.section-heading{ max-width:640px; margin-bottom:2.75rem; }
.section-heading h2{ font-size:clamp(1.7rem, 3vw, 2.5rem); }
.section-heading p{ margin-top:0.9rem; color:var(--ink-soft); font-size:1.05rem; max-width:52ch; }
:focus-visible{ outline:2px solid var(--blue-accent-dark); outline-offset:3px; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; }
  [data-parallax]{ transform:none !important; }
}

/* ---------- light photographic sections (no more flat white) ---------- */
.light-photo-section{ position:relative; overflow:hidden; }
.light-photo-section .lp-media{ position:absolute; inset:-12% -3%; z-index:0; will-change:transform; }
.light-photo-section .lp-media img{ width:100%; height:100%; object-fit:cover; display:block; }
.light-photo-section .lp-scrim{ position:absolute; inset:0; z-index:1; }
.light-photo-section > .container{ position:relative; z-index:2; }

.tone-cool .lp-scrim{ background:linear-gradient(155deg, rgba(236,240,242,0.94) 0%, rgba(210,222,230,0.90) 55%, rgba(226,233,237,0.94) 100%); }
.tone-green .lp-scrim{ background:linear-gradient(155deg, rgba(234,239,236,0.93) 0%, rgba(204,224,215,0.88) 55%, rgba(228,236,231,0.93) 100%); }
.tone-warm .lp-scrim{ background:linear-gradient(155deg, rgba(245,238,230,0.94) 0%, rgba(238,220,197,0.86) 55%, rgba(244,234,220,0.93) 100%); }

.ken-pan-left{ animation:pan-left-move 34s ease-in-out infinite alternate; transform-origin:center; }
@keyframes pan-left-move{
  from{ transform:scale(1.1) translate(1%, -1%); }
  to{ transform:scale(1.1) translate(-4%, 2%); }
}
.ken-pan-right{ animation:pan-right-move 30s ease-in-out infinite alternate; transform-origin:center; }
@keyframes pan-right-move{
  from{ transform:scale(1.12) translate(-2%, 1%); }
  to{ transform:scale(1.12) translate(3%, -2%); }
}

/* ---------- reveal on scroll ---------- */
[data-reveal]{
  opacity:0;
  transform:translateY(22px);
  transition:opacity 560ms cubic-bezier(.16,.8,.3,1), transform 560ms cubic-bezier(.16,.8,.3,1);
  transition-delay:var(--reveal-delay, 0ms);
}
[data-reveal].is-visible{ opacity:1; transform:translateY(0); }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:0.55rem;
  font-family:var(--font-body); font-weight:600; font-size:1rem;
  padding:0.95rem 1.7rem; border-radius:3px; border:1.5px solid transparent;
  cursor:pointer; position:relative; overflow:hidden;
  transition:transform 220ms cubic-bezier(.2,.9,.3,1.3), box-shadow 220ms ease, border-color 160ms ease, background-color 160ms ease;
}
.btn:hover{ transform:translateY(-2px); }
.btn:active{ transform:translateY(0); }

.btn-whatsapp{ background:#1E8449; color:#fff; box-shadow:0 10px 24px -10px rgba(30,132,73,0.55); }
.btn-whatsapp:hover{ background:#1c9950; box-shadow:0 16px 30px -10px rgba(30,132,73,0.65); }

.btn-outline-light{ background:rgba(255,255,255,0.06); border-color:rgba(255,255,255,0.55); color:#fff; backdrop-filter:blur(6px); }
.btn-outline-light:hover{ border-color:#fff; background:rgba(255,255,255,0.16); }

.btn-outline-dark{ background:transparent; border-color:var(--navy-800); color:var(--navy-900); }
.btn-outline-dark:hover{ background:var(--navy-900); color:#fff; }

.icon-whatsapp{ width:18px; height:18px; flex:none; }

/* ---------- glass card ---------- */
.glass-card{
  background:var(--glass-bg);
  border:1px solid var(--glass-border);
  backdrop-filter:blur(18px) saturate(140%);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
  box-shadow:0 24px 60px -20px rgba(4,12,22,0.55);
}

/* ---------- framed media pane ---------- */
.pane{ position:relative; border:1px solid var(--navy-800); background:var(--navy-900); padding:10px; }
.pane img{ width:100%; height:100%; object-fit:cover; display:block; }
.pane::before, .pane::after{
  content:""; position:absolute; width:22px; height:22px; border:2.5px solid var(--blue-accent); pointer-events:none;
}
.pane::before{ top:-2.5px; left:-2.5px; border-right:none; border-bottom:none; }
.pane::after{ bottom:-2.5px; right:-2.5px; border-left:none; border-top:none; }

[data-tilt]{ transform-style:preserve-3d; will-change:transform; transition:transform 300ms cubic-bezier(.2,.7,.2,1); }

/* ---------- header ---------- */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:60;
  background:rgba(7,19,34,0);
  border-bottom:1px solid rgba(255,255,255,0);
  transition:background-color 320ms ease, border-color 320ms ease, backdrop-filter 320ms ease, padding 220ms ease;
  padding-top:0.4rem;
}
.site-header.is-scrolled{
  background:rgba(7,19,34,0.86);
  backdrop-filter:blur(14px) saturate(140%);
  border-bottom:1px solid rgba(255,255,255,0.12);
  padding-top:0;
}
.nav-inner{ display:flex; align-items:center; justify-content:space-between; gap:1.5rem; padding-top:0.85rem; padding-bottom:0.85rem; }
.brand{ display:flex; align-items:center; gap:0.65rem; flex:none; }
.brand img{ height:36px; width:auto; filter:drop-shadow(0 2px 6px rgba(0,0,0,0.25)); }
.brand-name{ font-family:var(--font-display); font-weight:600; font-size:1.12rem; color:#fff; line-height:1.1; transition:color 320ms ease; }
.brand-name span{ display:block; font-family:var(--font-body); font-weight:500; font-size:0.68rem; color:var(--silver); letter-spacing:0.02em; }

.site-nav{ display:flex; align-items:center; gap:1.55rem; }
.site-nav a{
  font-size:0.92rem; font-weight:500; color:rgba(255,255,255,0.88); padding:0.3rem 0;
  white-space:nowrap; position:relative;
}
.site-nav a::after{
  content:""; position:absolute; left:0; right:100%; bottom:-2px; height:1.5px; background:var(--blue-accent);
  transition:right 220ms cubic-bezier(.2,.8,.3,1);
}
.site-nav a:hover::after{ right:0; }

.header-actions{ display:flex; align-items:center; gap:1.1rem; flex:none; }
.header-phone{ font-size:0.92rem; font-weight:600; color:#fff; white-space:nowrap; }
.header-phone span{ display:block; font-weight:400; font-size:0.72rem; color:var(--silver); }

.nav-toggle{ display:none; flex-direction:column; gap:4px; background:none; border:none; cursor:pointer; padding:0.4rem; }
.nav-toggle span{ width:22px; height:2px; background:#fff; transition:transform 200ms ease, opacity 200ms ease; }

.mobile-nav{ display:none; flex-direction:column; background:rgba(7,19,34,0.97); backdrop-filter:blur(14px); padding:0.5rem var(--edge) 1.25rem; }
.mobile-nav.is-open{ display:flex; }
.mobile-nav a{ padding:0.75rem 0; border-bottom:1px solid rgba(255,255,255,0.12); font-weight:500; color:#fff; }
.mobile-nav .header-phone{ display:block; margin-top:0.9rem; color:#fff; }

/* ---------- hero (full bleed video) ---------- */
.hero{
  position:relative;
  min-height:100svh;
  display:flex;
  align-items:center;
  overflow:hidden;
  background:var(--navy-900);
}
.hero-media{
  position:absolute; inset:-8% -2% -8% -2%;
  z-index:0;
  will-change:transform;
}
.hero-media video, .hero-media img{
  width:100%; height:100%; object-fit:cover; display:block;
}
.ken-burns{
  animation:ken-burns-move 24s ease-in-out infinite alternate;
  transform-origin:52% 40%;
}
@keyframes ken-burns-move{
  from{ transform:scale(1); }
  to{ transform:scale(1.13); }
}
.hero-scrim{
  position:absolute; inset:0; z-index:1;
  background:
    linear-gradient(180deg, rgba(7,19,34,0.72) 0%, rgba(7,19,34,0.45) 38%, rgba(7,19,34,0.55) 68%, rgba(7,19,34,0.92) 100%),
    linear-gradient(90deg, rgba(7,19,34,0.55) 0%, rgba(7,19,34,0.08) 55%);
}
.hero-inner{ position:relative; z-index:2; width:100%; padding-top:6.5rem; padding-bottom:7rem; }
.hero-copy{ max-width:700px; }
.hero-copy .eyebrow-label{ display:inline-block; margin-bottom:1.1rem; color:var(--blue-accent); }
.hero h1{ font-size:clamp(2.5rem, 5.4vw, 4.1rem); color:#fff; letter-spacing:-0.01em; }
.hero-sub{ margin-top:1.4rem; font-size:1.15rem; color:var(--silver); max-width:46ch; }
.hero-ctas{ margin-top:2.2rem; display:flex; flex-wrap:wrap; gap:0.9rem; }

.scroll-cue{
  position:absolute; left:50%; bottom:2.1rem; transform:translateX(-50%);
  z-index:2; display:flex; flex-direction:column; align-items:center; gap:0.5rem;
  color:var(--silver); font-size:0.78rem; letter-spacing:0.02em;
}
.scroll-cue .chevrons{ display:flex; flex-direction:column; gap:2px; }
.scroll-cue svg{ width:16px; height:9px; animation:cue-bounce 1.8s ease-in-out infinite; opacity:0.85; }
.scroll-cue svg:nth-child(2){ animation-delay:0.18s; opacity:0.5; }
@keyframes cue-bounce{
  0%,100%{ transform:translateY(0); opacity:0.35; }
  50%{ transform:translateY(5px); opacity:0.95; }
}

/* glass stat bar overlapping hero, own solid tint so it always reads well
   regardless of what part of the hero photo sits behind it */
.stats-wrap{ position:relative; z-index:3; margin-top:-4.5rem; }
.stats-row{
  display:grid; grid-template-columns:repeat(3, 1fr);
  border-radius:4px; padding:0.4rem;
  background:rgba(7,19,34,0.72);
  border-color:rgba(255,255,255,0.16);
}
.stat{ padding:1.5rem 1.6rem; border-left:1px solid rgba(255,255,255,0.18); text-align:left; }
.stat:first-child{ border-left:none; }
.stat .stat-number{
  font-family:var(--font-display); font-size:clamp(1.7rem, 3vw, 2.3rem); font-weight:600;
  color:#fff; display:block;
  text-shadow:0 2px 10px rgba(0,0,0,0.55);
}
.stat .stat-label{
  margin-top:0.35rem; font-size:0.88rem; color:var(--silver); max-width:26ch;
  text-shadow:0 1px 6px rgba(0,0,0,0.4);
}

/* ---------- marquee, editorial atmosphere ---------- */
.marquee-section{ padding:clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem); background:var(--paper-alt); }
.marquee-heading{ max-width:620px; margin-bottom:2.25rem; }
.marquee-heading h2{ font-size:clamp(1.5rem, 2.6vw, 2.1rem); margin-top:0.6rem; }
.marquee-viewport{ position:relative; z-index:2; overflow:hidden; -webkit-mask-image:linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image:linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track{
  display:flex; gap:1.1rem; width:max-content; padding:0 var(--edge);
  animation:marquee-scroll 42s linear infinite;
}
.marquee-track:hover{ animation-play-state:paused; }
.marquee-item{ width:min(72vw, 300px); flex:none; }
.marquee-item .pane{ aspect-ratio:3/4; padding:0; }
.marquee-item .pane::before, .marquee-item .pane::after{ display:none; }
.marquee-item figcaption{ margin-top:0.75rem; font-size:0.92rem; color:var(--ink-soft); font-family:var(--font-display); font-style:italic; }
@keyframes marquee-scroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}
@media (max-width: 640px){
  .marquee-item{ width:min(70vw, 240px); }
}

/* ---------- services strip (shine sweep) ---------- */
.services-strip{
  position:relative; background:var(--navy-900); color:#fff; padding:5.5rem 0 1.5rem;
  overflow:hidden;
}
.services-strip::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(100deg, transparent 30%, rgba(95,180,234,0.14) 48%, transparent 66%);
  background-size:220% 100%;
  animation:shine-sweep 9s linear infinite;
  pointer-events:none;
}
@keyframes shine-sweep{
  0%{ background-position:120% 0; }
  100%{ background-position:-20% 0; }
}
.strip-inner{ display:flex; flex-wrap:wrap; position:relative; z-index:1; }
.strip-item{ padding:0.5rem 1.5rem; border-left:1px solid rgba(255,255,255,0.18); font-size:0.95rem; font-weight:500; color:var(--silver); }
.strip-item:first-child{ border-left:none; padding-left:0; }
.strip-item.is-promo{ color:#fff; font-weight:600; }
.strip-item.is-promo em{ font-style:normal; color:var(--blue-accent); }

/* ---------- services detail ---------- */
.services{ padding:clamp(3.5rem, 7vw, 6rem) 0; }
.service-row{
  display:grid; grid-template-columns:0.9fr 1.1fr; gap:clamp(2rem, 5vw, 3.5rem);
  align-items:center; padding:clamp(2.5rem, 5vw, 3.5rem) 0; border-top:1px solid var(--silver-line);
}
.services .service-row:last-child{ border-bottom:1px solid var(--silver-line); }
.service-row.reverse{ grid-template-columns:1.1fr 0.9fr; }
.service-row.reverse .service-media{ order:2; }
.service-row.reverse .service-copy{ order:1; }
.service-media .pane{ aspect-ratio:5/4; perspective:900px; }
.service-media.two-up{ display:grid; grid-template-columns:1fr 1fr; gap:0.6rem; }
.service-media.two-up .pane{ aspect-ratio:3/4; padding:6px; }
.service-media.two-up .pane::before, .service-media.two-up .pane::after{ width:16px; height:16px; }
.service-copy h3{ font-size:clamp(1.35rem, 2.4vw, 1.7rem); margin-bottom:0.9rem; }
.service-copy p{ color:var(--ink-soft); font-size:1.02rem; max-width:48ch; }
.service-copy .service-link{
  display:inline-flex; align-items:center; gap:0.5rem; margin-top:1.3rem; font-weight:600; font-size:0.98rem;
  color:var(--navy-900); border-bottom:1.5px solid var(--blue-accent-dark); padding-bottom:0.2rem;
}
.service-copy .service-link .arrow{ transition:transform 220ms ease; }
.service-copy .service-link:hover{ color:var(--blue-accent-dark); }
.service-copy .service-link:hover .arrow{ transform:translateX(5px); }
.service-copy.no-media{ max-width:760px; }
.service-row.text-only{ grid-template-columns:1fr; }
.service-row.text-only .service-copy{ max-width:820px; }
.service-row.text-only .service-list{ margin-top:1.3rem; display:grid; grid-template-columns:repeat(3, auto); gap:0.6rem 2rem; }
.service-row.text-only .service-list li{ font-weight:500; font-size:0.98rem; color:var(--navy-800); position:relative; padding-left:1.1rem; }
.service-row.text-only .service-list li::before{ content:""; position:absolute; left:0; top:0.5em; width:6px; height:6px; background:var(--blue-accent-dark); }

/* ---------- full bleed parallax break ---------- */
.parallax-break{
  position:relative; min-height:78vh; display:flex; align-items:center; overflow:hidden; color:#fff;
}
.parallax-break .pb-media{ position:absolute; inset:-10% -2%; z-index:0; will-change:transform; }
.parallax-break .pb-media img{ width:100%; height:100%; object-fit:cover; }
.parallax-break .pb-scrim{ position:absolute; inset:0; z-index:1; background:linear-gradient(180deg, rgba(7,19,34,0.86) 0%, rgba(7,19,34,0.55) 45%, rgba(7,19,34,0.88) 100%); }
.parallax-break .container{ position:relative; z-index:2; padding-top:5rem; padding-bottom:5rem; }
.pb-heading{ max-width:640px; margin-bottom:2.5rem; }
.pb-heading h2{ color:#fff; font-size:clamp(1.9rem, 3.6vw, 2.8rem); }
.pb-heading p{ margin-top:1rem; color:var(--silver); font-size:1.05rem; max-width:50ch; }

.why-list{ display:grid; gap:0.9rem; max-width:760px; }
.why-list li{
  position:relative; padding:1.2rem 1.4rem 1.2rem 2.4rem;
  border-radius:3px; overflow:hidden; cursor:default;
  transition:transform 340ms cubic-bezier(.2,.8,.2,1), background-color 340ms ease, box-shadow 340ms ease;
}
.why-list li::after{
  content:"";
  position:absolute; inset:7px;
  border:1.5px solid var(--blue-accent);
  border-radius:2px;
  opacity:0; transform:scale(0.94);
  transition:opacity 360ms cubic-bezier(.2,.8,.2,1), transform 360ms cubic-bezier(.2,.8,.2,1);
  pointer-events:none;
}
.why-list li:hover{
  background-color:rgba(255,255,255,0.17);
  box-shadow:0 20px 34px -18px rgba(0,0,0,0.55);
}
.why-list li:hover::after{ opacity:1; transform:scale(1); }
.why-list li::before{
  content:""; position:absolute; left:1.3rem; top:1.55rem; width:9px; height:9px; border:2px solid var(--blue-accent); transform:rotate(45deg);
  transition:transform 420ms cubic-bezier(.3,1.4,.4,1), border-color 340ms ease;
}
.why-list li:hover::before{ transform:rotate(225deg) scale(1.2); border-color:#fff; }
.why-list strong{ font-family:var(--font-display); font-weight:600; display:block; color:#fff; margin-bottom:0.2rem; transition:color 300ms ease; }
.why-list li:hover strong{ color:var(--blue-accent); }
.why-list li p{ color:var(--silver); font-size:0.96rem; }

/* ---------- process, scrollytelling line ---------- */
.process{ padding:clamp(3.5rem, 7vw, 6rem) 0; position:relative; }
.process-layout{ display:grid; grid-template-columns:1.5fr 0.85fr; gap:clamp(2.5rem, 5vw, 4rem); align-items:start; }
.process-photo{ position:sticky; top:6.5rem; }
.process-photo .pane{ aspect-ratio:3/4; }
.process-photo-caption{ margin-top:0.9rem; font-size:0.92rem; color:var(--ink-soft); text-align:center; }
.process-track{ position:relative; }
.process-line{ position:absolute; left:0; top:1px; width:100%; height:2px; overflow:visible; }
.process-line svg{ width:100%; height:2px; overflow:visible; display:block; }
.process-line path{ stroke:var(--navy-900); stroke-width:2; fill:none; stroke-dasharray:1000; stroke-dashoffset:1000; transition:stroke-dashoffset 120ms linear; }
.process-steps{ display:grid; grid-template-columns:repeat(3, 1fr); gap:clamp(1.5rem, 4vw, 2.5rem); counter-reset:step; position:relative; }
.process-steps li{ counter-increment:step; padding-top:1.6rem; }
.process-steps li::before{
  content:counter(step, decimal-leading-zero); display:block; font-family:var(--font-display); font-size:1.6rem; font-weight:600; color:var(--blue-accent-dark); margin-bottom:0.6rem;
}
.process-steps h3{ font-size:1.15rem; margin-bottom:0.5rem; }
.process-steps p{ color:var(--ink-soft); font-size:0.98rem; }

/* ---------- social proof ---------- */
.proof{ position:relative; background:var(--navy-900); color:#fff; padding:clamp(3.5rem, 7vw, 6rem) 0; overflow:hidden; }
.proof-grid-bg{
  position:absolute; inset:0; z-index:0; opacity:0.5;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 90px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 90px);
  animation:grid-drift 26s linear infinite;
}
@keyframes grid-drift{
  0%{ background-position:0 0, 0 0; }
  100%{ background-position:90px 90px, 90px 90px; }
}
.proof .container{ position:relative; z-index:1; }
.proof .section-heading h2{ color:#fff; }
.proof .section-heading p{ color:var(--silver); }
.proof-top{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1.5rem;
  padding-bottom:2.2rem; margin-bottom:2.2rem; border-bottom:1px solid rgba(255,255,255,0.16);
}
.fb-proof{ display:flex; align-items:center; gap:1rem; }
.fb-proof .fb-number{ font-family:var(--font-display); font-size:2.4rem; font-weight:600; }
.fb-proof .fb-copy{ font-size:0.95rem; color:var(--silver); max-width:32ch; }
.fb-proof .fb-copy a{ color:#fff; border-bottom:1px solid var(--blue-accent); }
.testimonial-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:1.5rem; }
.testimonial{ padding:1.75rem; border-radius:4px; transition:transform 260ms cubic-bezier(.2,.8,.2,1); }
.testimonial p{ font-size:1rem; line-height:1.65; }
.testimonial cite{ display:block; margin-top:1.2rem; font-style:normal; font-size:0.88rem; color:var(--blue-accent); font-weight:600; }

/* ---------- gallery ---------- */
.gallery{ padding:clamp(3.5rem, 7vw, 6rem) 0; position:relative; overflow:hidden; }
.gallery-living-bg{
  position:absolute; inset:-25%; z-index:0;
  background:
    radial-gradient(circle at 18% 24%, rgba(95,180,234,0.22), transparent 42%),
    radial-gradient(circle at 82% 20%, rgba(201,209,216,0.4), transparent 46%),
    radial-gradient(circle at 60% 85%, rgba(47,134,190,0.16), transparent 50%),
    var(--paper);
  animation:gradient-drift 22s ease-in-out infinite alternate;
}
@keyframes gradient-drift{
  from{ transform:translate(0,0) scale(1); }
  to{ transform:translate(-5%,4%) scale(1.12); }
}
.gallery > .container{ position:relative; z-index:1; }
.gallery-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:0.9rem; }
.gallery-item{ cursor:pointer; }
.gallery-item .pane{ aspect-ratio:1/1; padding:0; border-width:1px; position:relative; overflow:hidden; }
.gallery-item .pane::before, .gallery-item .pane::after{ display:none; }
.gallery-item img{ transition:transform 400ms cubic-bezier(.2,.8,.2,1), filter 400ms ease; }
.gallery-item .cap-overlay{
  position:absolute; left:0; right:0; bottom:0; padding:0.9rem 1rem;
  background:linear-gradient(0deg, rgba(7,19,34,0.88), transparent);
  color:#fff; font-size:0.85rem; font-weight:500;
  transform:translateY(100%); transition:transform 320ms cubic-bezier(.2,.8,.2,1);
}
.gallery-item:hover img{ transform:scale(1.06); filter:brightness(0.88); }
.gallery-item:hover .cap-overlay{ transform:translateY(0); }

.lightbox{ position:fixed; inset:0; background:rgba(4,9,16,0.94); display:none; align-items:center; justify-content:center; z-index:100; padding:2rem; }
.lightbox.is-open{ display:flex; }
.lightbox img{ max-width:min(900px, 100%); max-height:85vh; border:1px solid rgba(255,255,255,0.25); }
.lightbox-close{ position:absolute; top:1.5rem; right:1.75rem; background:none; border:1px solid rgba(255,255,255,0.4); color:#fff; width:42px; height:42px; cursor:pointer; font-size:1.3rem; line-height:1; }

/* ---------- final cta (full bleed) ---------- */
.cta-final{ position:relative; min-height:82vh; display:flex; align-items:center; overflow:hidden; color:#fff; }
.cta-final .pb-media{ position:absolute; inset:-10% -2%; z-index:0; will-change:transform; }
.cta-final .pb-media img{ width:100%; height:100%; object-fit:cover; }
.cta-final .pb-scrim{ position:absolute; inset:0; z-index:1; background:linear-gradient(125deg, rgba(7,13,22,0.93) 0%, rgba(9,26,45,0.82) 55%, rgba(7,13,22,0.7) 100%); }
.cta-final .container{ position:relative; z-index:2; padding-top:5rem; padding-bottom:5rem; }
.cta-final-inner{ display:grid; grid-template-columns:1.15fr 0.85fr; gap:clamp(2.5rem, 5vw, 4rem); align-items:start; }
.cta-final h2{ color:#fff; font-size:clamp(1.9rem, 3.6vw, 2.7rem); max-width:16ch; }
.cta-final .hero-sub{ color:var(--silver); margin-top:1.1rem; }
.cta-final .hero-ctas{ margin-top:1.8rem; }
.contact-info{ display:grid; gap:1.2rem; padding:1.75rem; border-radius:4px; }
.contact-info .info-block{ border-top:1px solid rgba(255,255,255,0.18); padding-top:1.05rem; }
.contact-info .info-block:first-child{ border-top:none; padding-top:0; }
.contact-info .info-label{ font-size:0.8rem; color:var(--silver); margin-bottom:0.3rem; }
.contact-info .info-value{ font-size:1.04rem; font-weight:600; }
.contact-info .info-value a{ border-bottom:1px solid var(--blue-accent); }
.map-embed{
  margin-top:0.9rem; border-radius:3px; overflow:hidden;
  border:1px solid rgba(255,255,255,0.28);
  box-shadow:0 14px 30px -14px rgba(0,0,0,0.5);
}
.map-embed iframe{ width:100%; height:190px; display:block; border:0; }

/* ---------- footer ---------- */
.site-footer{
  position:relative; background:var(--navy-900); color:var(--silver); padding:2.75rem 0 1.75rem; overflow:hidden;
}
.site-footer::before{
  content:""; position:absolute; inset:0;
  background-image:url('../img/mood/footer-noche.jpg');
  background-size:cover; background-position:center;
  opacity:0.16; filter:saturate(70%);
}
.site-footer::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, var(--navy-900) 0%, rgba(7,19,34,0.85) 40%, var(--navy-900) 100%);
}
.site-footer .container{ position:relative; z-index:1; }
.footer-top{ display:grid; grid-template-columns:1.2fr 0.6fr 0.6fr 0.9fr; gap:2.5rem; padding-bottom:2.25rem; }
.footer-brand{ display:flex; align-items:flex-start; gap:0.7rem; }
.footer-brand img{ height:34px; }
.footer-brand .brand-name{ color:#fff; }
.footer-brand p{ margin-top:0.6rem; font-size:0.92rem; color:var(--silver); max-width:32ch; }
.footer-col h4{ font-family:var(--font-body); font-weight:600; font-size:0.85rem; color:#fff; margin-bottom:0.9rem; }
.footer-col li{ margin-bottom:0.55rem; font-size:0.92rem; color:var(--silver); }
.footer-col a:hover{ color:#fff; }
.footer-bottom{ position:relative; z-index:1; display:flex; flex-wrap:wrap; justify-content:space-between; gap:0.75rem; padding-top:1.5rem; border-top:1px solid rgba(255,255,255,0.14); font-size:0.82rem; color:var(--silver); max-width:var(--maxw); margin:0 auto; padding-left:var(--edge); padding-right:var(--edge); }

/* ---------- floating whatsapp ---------- */
.whatsapp-float{
  position:fixed; right:1.25rem; bottom:1.25rem; z-index:70;
  display:flex; align-items:center;
  height:60px; padding:5px; border-radius:999px;
  background:#1E8449;
  box-shadow:0 14px 30px -8px rgba(10,29,48,0.6), 0 0 0 1px rgba(255,255,255,0.08) inset;
  transition:transform 200ms ease, box-shadow 200ms ease;
  animation:wa-attention 5s ease-in-out infinite;
}
.whatsapp-float:hover{ transform:scale(1.05); box-shadow:0 18px 36px -8px rgba(10,29,48,0.7); }

.wa-icon-wrap{
  position:relative; flex:none;
  width:50px; height:50px; border-radius:50%;
  background:rgba(255,255,255,0.14);
  display:flex; align-items:center; justify-content:center;
}
.wa-icon-wrap svg{ width:27px; height:27px; position:relative; z-index:1; }
.wa-icon-wrap::before{
  content:""; position:absolute; inset:0; border-radius:50%;
  border:2px solid rgba(255,255,255,0.65);
  animation:wa-ping 2.2s cubic-bezier(.2,.7,.3,1) infinite;
}
@keyframes wa-ping{
  0%{ transform:scale(1); opacity:0.75; }
  80%{ transform:scale(1.85); opacity:0; }
  100%{ opacity:0; }
}
@keyframes wa-attention{
  0%, 78%, 100%{ transform:translateY(0) rotate(0); }
  81%{ transform:translateY(-7px) rotate(-4deg); }
  84%{ transform:translateY(0) rotate(3deg); }
  87%{ transform:translateY(-3px) rotate(0); }
  90%{ transform:translateY(0); }
}

.wa-label{
  max-width:0; opacity:0; overflow:hidden; white-space:nowrap;
  color:#fff; font-weight:700; font-size:0.94rem;
  transition:max-width 320ms ease, opacity 220ms ease, margin 320ms ease, padding 320ms ease;
}
@media (min-width: 700px){
  .wa-label{ max-width:210px; opacity:1; margin:0 0.9rem 0 0.15rem; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px){
  .site-nav{ display:none; }
  .nav-toggle{ display:flex; }
  .header-phone{ display:none; }
  .header-actions{ gap:0.6rem; }

  .stats-row{ grid-template-columns:1fr; }
  .stat{ border-left:none; border-top:1px solid rgba(255,255,255,0.18); padding-left:1rem; }
  .stat:first-child{ border-top:none; }

  .service-row, .service-row.reverse{ grid-template-columns:1fr; }
  .service-row .service-media, .service-row.reverse .service-media{ order:-1; max-width:460px; margin:0 auto; }
  .service-row .service-copy, .service-row.reverse .service-copy{ order:0; }
  .service-row.text-only .service-list{ grid-template-columns:repeat(2, auto); }

  .process-steps{ grid-template-columns:1fr; gap:2.4rem; }
  .process-line{ display:none; }
  .process-layout{ grid-template-columns:1fr; }
  .process-photo{ position:static; max-width:360px; margin:0 auto; order:-1; }

  .proof-top{ flex-direction:column; align-items:flex-start; }
  .testimonial-grid{ grid-template-columns:1fr; }

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

  .cta-final-inner{ grid-template-columns:1fr; }

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

@media (max-width: 560px){
  .service-row.text-only .service-list{ grid-template-columns:1fr 1fr; }
  .footer-top{ grid-template-columns:1fr; }
  .gallery-grid{ grid-template-columns:repeat(2, 1fr); }
  .brand-name{ font-size:0.92rem; }
  .brand-name span{ display:none; }
  .btn-header-wa{ padding:0.65rem; border-radius:50%; }
  .btn-header-wa .btn-label{ display:none; }
  .btn-header-wa .icon-whatsapp{ margin:0; }
  .hero h1{ font-size:2.1rem; }
  .why-list li{ padding-left:2rem; }
}
