/* ============================================================
   Solquim Chemicals — Hoja de estilos
   Paleta basada en el logo: navy #24243C + celeste #249CFC
   Enfoque: recuperación y tratamiento de agua
   ============================================================ */

:root {
  /* Marca */
  --navy:        #1d1d34;
  --navy-2:      #24243c;
  --navy-3:      #2e2e54;
  --blue:        #249cfc;
  --blue-deep:   #0e72d6;
  --blue-bright: #46b1ff;
  --cyan:        #34d6e6;
  --aqua:        #66e3d4;
  --ink:         #1b2233;
  --slate:       #5a6783;
  --mist:        #8a96b0;
  --ice:         #eef6ff;
  --ice-2:       #e2effb;
  --paper:       #f6fafe;
  --white:       #ffffff;
  --line:        #dbe8f5;

  --grad-deep:   linear-gradient(135deg, #1a1a30 0%, #1f2a52 48%, #1d3f7d 100%);
  --grad-water:  linear-gradient(135deg, #249cfc 0%, #34d6e6 100%);
  --grad-aqua:   linear-gradient(120deg, #46b1ff 0%, #34d6e6 55%, #66e3d4 100%);

  --shadow-sm:   0 2px 8px rgba(24, 50, 90, .07);
  --shadow:      0 14px 40px -18px rgba(20, 50, 100, .35);
  --shadow-lg:   0 40px 90px -40px rgba(15, 60, 130, .55);
  --shadow-blue: 0 18px 40px -16px rgba(36, 156, 252, .55);

  --r-sm: 10px;
  --r:    18px;
  --r-lg: 28px;
  --r-xl: 40px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --maxw: 1240px;
  --pad:  clamp(20px, 5vw, 60px);

  --font-display: "Sora", system-ui, sans-serif;
  --font-body:    "Manrope", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.02em; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--blue); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-deep);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--grad-water);
}
.eyebrow.on-dark { color: var(--cyan); }
.eyebrow.center { justify-content: center; }

.section-title {
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 700;
  color: var(--navy);
  margin-top: 16px;
}
.section-title .accent { color: var(--blue); }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--slate); max-width: 60ch; }

.section { position: relative; padding: clamp(72px, 10vw, 130px) 0; }
.section.tight { padding-block: clamp(56px, 7vw, 92px); }
.head { max-width: 760px; margin-bottom: 56px; }
.head.center { margin-inline: auto; text-align: center; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 15.5px;
  padding: 15px 28px; border-radius: 100px; border: none; cursor: pointer;
  background: var(--bg); color: #fff; position: relative; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  box-shadow: var(--shadow-blue);
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -16px rgba(36,156,252,.7); }
.btn:hover svg { transform: translateX(4px); }
.btn.solid { background: var(--grad-water); }
.btn.ghost {
  background: transparent; color: var(--navy); box-shadow: none;
  border: 1.5px solid var(--line);
}
.btn.ghost:hover { border-color: var(--blue); color: var(--blue-deep); box-shadow: none; }
.btn.on-dark.ghost { color: #fff; border-color: rgba(255,255,255,.32); }
.btn.on-dark.ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn.lg { padding: 18px 34px; font-size: 16.5px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s, backdrop-filter .4s;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 50px; width: auto; transition: height .4s var(--ease); }
.nav__logo .light { display: block; }
.nav__logo .dark  { display: none; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  font-family: var(--font-display); font-weight: 500; font-size: 14.5px;
  color: rgba(255,255,255,.85); padding: 9px 15px; border-radius: 100px;
  position: relative; transition: color .25s, background .25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 2px;
  background: var(--cyan); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { margin-left: 10px; }
.nav__cta .btn { padding: 11px 22px; font-size: 14.5px; }

.nav__burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__burger span { display: block; width: 26px; height: 2.4px; background: #fff; border-radius: 3px; margin: 5px 0; transition: .35s var(--ease); }

/* scrolled state */
.nav.scrolled {
  background: rgba(255,255,255,.86); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 10px 30px -18px rgba(20,50,100,.4);
  padding-top: 12px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(219,232,245,.7);
}
.nav.scrolled .nav__logo .light { display: none; }
.nav.scrolled .nav__logo .dark  { display: block; }
.nav.scrolled .nav__logo img { height: 42px; }
.nav.scrolled .nav__links a { color: var(--slate); }
.nav.scrolled .nav__links a:hover { color: var(--navy); background: var(--ice); }
.nav.scrolled .nav__links a::after { background: var(--blue); }
.nav.scrolled .nav__burger span { background: var(--navy); }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 70; background: var(--grad-deep);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 40px; transform: translateX(100%); transition: transform .5s var(--ease);
}
.drawer.open { transform: translateX(0); }
.drawer a {
  font-family: var(--font-display); font-size: clamp(26px, 7vw, 40px); font-weight: 600;
  color: #fff; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1);
  opacity: 0; transform: translateY(18px); transition: .5s var(--ease);
}
.drawer.open a { opacity: 1; transform: none; }
.drawer.open a:nth-child(1){transition-delay:.08s}
.drawer.open a:nth-child(2){transition-delay:.13s}
.drawer.open a:nth-child(3){transition-delay:.18s}
.drawer.open a:nth-child(4){transition-delay:.23s}
.drawer.open a:nth-child(5){transition-delay:.28s}
.drawer.open a:nth-child(6){transition-delay:.33s}
.drawer.open a:nth-child(7){transition-delay:.38s}
.drawer__close { position: absolute; top: 28px; right: 28px; background: none; border: none; color: #fff; font-size: 34px; cursor: pointer; line-height: 1; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: var(--grad-deep); color: #fff; overflow: hidden;
  padding-top: 110px; padding-bottom: 90px;
}
.hero__glow {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none;
}
.hero__glow.a { width: 540px; height: 540px; background: radial-gradient(circle, #2a7fff, transparent 70%); top: -120px; right: -80px; }
.hero__glow.b { width: 460px; height: 460px; background: radial-gradient(circle, #34d6e6, transparent 70%); bottom: -160px; left: -120px; opacity: .35; }

.bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.bubble {
  position: absolute; bottom: -60px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), rgba(70,177,255,.18) 60%, transparent 72%);
  border: 1px solid rgba(255,255,255,.18);
  animation: rise linear infinite;
}
@keyframes rise {
  0%   { transform: translateY(0) translateX(0) scale(.7); opacity: 0; }
  10%  { opacity: .9; }
  50%  { transform: translateY(-52vh) translateX(22px) scale(1); }
  90%  { opacity: .7; }
  100% { transform: translateY(-104vh) translateX(-14px) scale(1.15); opacity: 0; }
}

.hero .wrap { position: relative; z-index: 3; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  padding: 8px 16px 8px 10px; border-radius: 100px; backdrop-filter: blur(6px);
  font-family: var(--font-display); font-size: 13px; font-weight: 500; letter-spacing: .02em;
}
.hero__kicker .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(52,214,230,.7); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(52,214,230,.6)} 70%{box-shadow:0 0 0 12px rgba(52,214,230,0)} 100%{box-shadow:0 0 0 0 rgba(52,214,230,0)} }

.hero h1 {
  font-size: clamp(40px, 6.4vw, 78px); font-weight: 700; margin: 26px 0 22px;
}
.hero h1 .grad {
  background: linear-gradient(110deg, #46b1ff, #34d6e6 50%, #66e3d4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub { font-size: clamp(16px, 1.7vw, 20px); color: rgba(255,255,255,.8); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__stats { display: flex; gap: 34px; margin-top: 46px; flex-wrap: wrap; }
.hero__stat .n { font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; color: #fff; }
.hero__stat .n .u { color: var(--cyan); }
.hero__stat .l { font-size: 13.5px; color: rgba(255,255,255,.62); letter-spacing: .02em; }

/* hero visual */
.hero__visual { position: relative; }
.hero__card {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.14);
  aspect-ratio: 4 / 5;
}
.hero__card image-slot { width: 100%; height: 100%; }
.hero__floating {
  position: absolute; background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px; color: var(--navy);
}
.hero__floating .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--grad-water); display: grid; place-items: center; color: #fff; flex: none; }
.hero__floating .ic svg { width: 22px; height: 22px; }
.hero__floating .t { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.1; }
.hero__floating .s { font-size: 12px; color: var(--slate); }
.hero__floating.f1 { top: 6%; left: -34px; animation: float 5s ease-in-out infinite; }
.hero__floating.f2 { bottom: 9%; right: -28px; animation: float 6s ease-in-out infinite .8s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }

/* hero: en escritorio, alargar la imagen para alinearla con el titular */
@media (min-width: 901px) {
  .hero .wrap { align-items: stretch; }
  .hero__visual { display: flex; min-width: 0; }
  .hero__card { aspect-ratio: auto; height: 100%; min-height: 540px; min-width: 0; flex: 1; }
  /* laboratorio: la imagen llena toda la altura de la sección */
  .lab__copy { min-width: 0; }
  .lab__media { align-self: stretch; display: flex; min-width: 0; }
  .lab__media .frame { aspect-ratio: auto; height: 100%; min-height: 460px; min-width: 0; flex: 1; }
}

/* wave divider */
.wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; z-index: 2; }
.wave svg { width: 100%; height: clamp(60px, 9vw, 130px); display: block; }
.wave.flip { top: -1px; bottom: auto; transform: rotate(180deg); }

/* ============================================================
   STRIP / confianza
   ============================================================ */
.strip { background: var(--white); border-bottom: 1px solid var(--line); }
.strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 26px; flex-wrap: wrap; }
.strip .label { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.strip .items { display: flex; gap: clamp(22px, 4vw, 52px); flex-wrap: wrap; align-items: center; }
.strip .items b { font-family: var(--font-display); color: var(--navy-3); font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 9px; }
.strip .items b svg { width: 19px; height: 19px; color: var(--blue); }

/* ============================================================
   NOSOTROS
   ============================================================ */
.about { background: var(--white); }
.about__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.about__media { position: relative; }
.about__media .frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5/6; }
.about__media image-slot { width: 100%; height: 100%; }
.about__badge {
  position: absolute; right: -22px; bottom: -22px; background: var(--grad-deep); color: #fff;
  border-radius: var(--r); padding: 22px 26px; box-shadow: var(--shadow-lg); text-align: center;
  border: 1px solid rgba(255,255,255,.1);
}
.about__badge .y { font-family: var(--font-display); font-size: 40px; font-weight: 800; line-height: 1; background: linear-gradient(110deg,#46b1ff,#66e3d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about__badge .x { font-size: 12.5px; color: rgba(255,255,255,.7); margin-top: 4px; letter-spacing: .04em; }

.about p.body { margin: 18px 0; color: var(--slate); font-size: 16.5px; }
.mvv { display: grid; gap: 14px; margin-top: 30px; }
.mvv__item { display: flex; gap: 16px; padding: 18px 20px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); transition: .4s var(--ease); }
.mvv__item:hover { transform: translateX(6px); border-color: var(--blue); box-shadow: var(--shadow-sm); }
.mvv__item .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--grad-water); display: grid; place-items: center; color: #fff; flex: none; }
.mvv__item .ic svg { width: 24px; height: 24px; }
.mvv__item h4 { font-size: 17px; color: var(--navy); }
.mvv__item p { font-size: 14.5px; color: var(--slate); margin-top: 2px; }

/* ============================================================
   SERVICIOS
   ============================================================ */
.services { background: var(--paper); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 32px 30px; position: relative; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.svc::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s;
  background: linear-gradient(160deg, rgba(36,156,252,.06), rgba(52,214,230,.02));
}
.svc:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.svc:hover::before { opacity: 1; }
.svc__ic {
  width: 60px; height: 60px; border-radius: 17px; display: grid; place-items: center;
  background: var(--ice); color: var(--blue-deep); position: relative; z-index: 1;
  transition: .5s var(--ease);
}
.svc__ic svg { width: 30px; height: 30px; }
.svc:hover .svc__ic { background: var(--grad-water); color: #fff; transform: rotate(-6deg) scale(1.05); box-shadow: var(--shadow-blue); }
.svc h3 { font-size: 20px; color: var(--navy); margin: 22px 0 10px; position: relative; z-index: 1; }
.svc p { font-size: 15px; color: var(--slate); position: relative; z-index: 1; }
.svc .more { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--blue-deep); position: relative; z-index: 1; }
.svc .more svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.svc:hover .more svg { transform: translateX(5px); }
.svc__num { position: absolute; top: 22px; right: 26px; font-family: var(--font-display); font-weight: 800; font-size: 50px; color: var(--ice-2); z-index: 0; line-height: 1; }

/* ============================================================
   PROCESO
   ============================================================ */
.process { background: var(--white); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 34px; left: 8%; right: 8%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; }
.step__n {
  width: 70px; height: 70px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--line); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--blue);
  transition: .5s var(--ease); box-shadow: var(--shadow-sm);
}
.step:hover .step__n { border-color: var(--blue); background: var(--grad-water); color: #fff; transform: translateY(-6px); box-shadow: var(--shadow-blue); }
.step h4 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--slate); }

/* ============================================================
   LABORATORIO
   ============================================================ */
.lab { background: var(--grad-deep); color: #fff; position: relative; overflow: hidden; }
.lab .hero__glow.a { top: -100px; left: -60px; right: auto; }
.lab__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 84px); align-items: start; position: relative; z-index: 2; }
.lab__media { position: relative; }
.lab__media .frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; border: 1px solid rgba(255,255,255,.12); }
.lab__media image-slot { width: 100%; height: 100%; }
.lab h2 { color: #fff; }
.lab .lead { color: rgba(255,255,255,.78); }
.lab__list { display: grid; gap: 16px; margin-top: 30px; }
.lab__li { display: flex; gap: 14px; align-items: flex-start; }
.lab__li .ck { width: 28px; height: 28px; border-radius: 9px; background: rgba(52,214,230,.16); display: grid; place-items: center; flex: none; }
.lab__li .ck svg { width: 16px; height: 16px; color: var(--cyan); }
.lab__li b { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 16px; }
.lab__li span { display: block; font-size: 14px; color: rgba(255,255,255,.65); }
.lab__chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.lab__chips span { font-family: var(--font-display); font-size: 13px; font-weight: 500; padding: 8px 16px; border-radius: 100px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }

/* ============================================================
   ESTADÍSTICAS
   ============================================================ */
.stats { background: var(--white); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat {
  text-align: center; padding: 40px 24px; border-radius: var(--r-lg);
  background: var(--paper); border: 1px solid var(--line); transition: .5s var(--ease);
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; background: #fff; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 5vw, 60px); line-height: 1; background: var(--grad-water); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .num .suf { -webkit-text-fill-color: var(--cyan); }
.stat .cap { margin-top: 12px; font-size: 15px; color: var(--slate); font-weight: 500; }

/* ============================================================
   PRODUCTOS
   ============================================================ */
.products { background: var(--paper); }
.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.prod {
  display: flex; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px 24px; transition: .4s var(--ease);
}
.prod:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.prod .ic { width: 54px; height: 54px; border-radius: 15px; background: var(--ice); color: var(--blue-deep); display: grid; place-items: center; flex: none; transition: .4s var(--ease); }
.prod:hover .ic { background: var(--grad-water); color: #fff; }
.prod .ic svg { width: 27px; height: 27px; }
.prod h4 { font-size: 17px; color: var(--navy); }
.prod p { font-size: 14px; color: var(--slate); margin-top: 2px; }

/* ============================================================
   CLIENTES (marquee)
   ============================================================ */
.clients { background: var(--white); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 60px; width: max-content; animation: scroll 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee__item { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--mist); white-space: nowrap; display: flex; align-items: center; gap: 12px; transition: color .3s; }
.marquee__item:hover { color: var(--navy); }
.marquee__item .d { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); opacity: .5; }

/* ============================================================
   GALERÍA
   ============================================================ */
.gallery { background: var(--paper); }
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 178px; gap: 16px; }
.gal { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; cursor: zoom-in; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.gal::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(20,40,80,.45));
  opacity: 0; transition: opacity .4s var(--ease); pointer-events: none;
}
.gal .zoom-ic {
  position: absolute; right: 14px; bottom: 14px; width: 38px; height: 38px; border-radius: 11px;
  background: rgba(255,255,255,.92); color: var(--blue-deep); display: grid; place-items: center;
  opacity: 0; transform: translateY(8px) scale(.9); transition: .4s var(--ease); z-index: 2; backdrop-filter: blur(4px);
}
.gal .zoom-ic svg { width: 19px; height: 19px; }
.gal .media-img { transition: transform .6s var(--ease); }
.gal:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gal:hover::after { opacity: 1; }
.gal:hover .zoom-ic { opacity: 1; transform: none; }
.gal:hover .media-img { transform: scale(1.07); }
.gal.lab:hover .media-img { transform: scale(1.04); }
.gal image-slot { width: 100%; height: 100%; }
.media-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal.tall { grid-row: span 2; }
.gal.wide { grid-column: span 2; }
.gal.water { grid-column: span 2; }
.gal.lab { grid-row: span 2; background: var(--ice); }
.gal.lab .media-img { object-fit: contain; padding: 10px; }

/* ============================================================
   CTA banda
   ============================================================ */
.cta-band { background: var(--white); }
.cta-band__inner {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: var(--grad-deep); color: #fff; padding: clamp(44px, 6vw, 78px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center;
  box-shadow: var(--shadow-lg);
}
.cta-band__inner .hero__glow.a { top: -120px; right: 10%; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 4vw, 46px); position: relative; z-index: 2; }
.cta-band p { color: rgba(255,255,255,.78); margin-top: 14px; position: relative; z-index: 2; }
.cta-band__actions { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 2; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact { background: var(--white); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 5vw, 70px); }
.info-card { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-card:last-of-type { border-bottom: none; }
.info-card .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--ice); color: var(--blue-deep); display: grid; place-items: center; flex: none; }
.info-card .ic svg { width: 24px; height: 24px; }
.info-card .k { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mist); }
.info-card .v { font-size: 16.5px; color: var(--navy); font-weight: 500; }
.info-card .v a:hover { color: var(--blue-deep); }
.phone-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.phone-row:last-child { margin-bottom: 0; }
.phone-row .tag { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mist); }
.wsp-ic {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: #25d366; color: #fff; flex: none; transition: transform .3s var(--ease), box-shadow .3s;
  box-shadow: 0 6px 14px -6px rgba(37,211,102,.7);
}
.wsp-ic:hover { transform: translateY(-2px) scale(1.06); }
.wsp-ic svg { width: 17px; height: 17px; }
.footer .wsp-ic { width: 26px; height: 26px; border-radius: 8px; }
.footer .wsp-ic svg { width: 15px; height: 15px; }
.footer .phone-li { display: flex; align-items: center; gap: 9px; }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 3vw, 38px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 7px; letter-spacing: .01em; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--ink);
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color .3s, box-shadow .3s; resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(36,156,252,.13); }
.form .btn { width: 100%; margin-top: 6px; }
.form__note { font-size: 13px; color: var(--mist); margin-top: 14px; text-align: center; }
.form__ok { display: none; text-align: center; padding: 30px 10px; }
.form__ok.show { display: block; }
.form__ok .ico { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--grad-water); display: grid; place-items: center; color: #fff; }
.form__ok h3 { color: var(--navy); font-size: 22px; }
.form__ok p { color: var(--slate); margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form__err { display: none; margin-top: 16px; padding: 14px 18px; border-radius: 12px; background: #fff2f0; border: 1px solid #ffd0c9; color: #a3372a; font-size: 14.5px; line-height: 1.5; }
.form__err a { color: #a3372a; font-weight: 600; text-decoration: underline; }

.map { margin-top: 26px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); height: 220px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.2) saturate(1.1); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy); color: rgba(255,255,255,.72); padding-top: 70px; position: relative; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer__logo img { height: 52px; margin-bottom: 18px; }
.footer p.desc { font-size: 14.5px; max-width: 34ch; }
.footer h5 { font-family: var(--font-display); color: #fff; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer ul a { font-size: 14.5px; transition: color .25s, padding .25s; }
.footer ul a:hover { color: var(--cyan); padding-left: 5px; }
.footer__soc { display: flex; gap: 10px; margin-top: 18px; }
.footer__soc a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #fff; transition: .35s var(--ease); }
.footer__soc a:hover { background: var(--grad-water); transform: translateY(-3px); }
.footer__soc svg { width: 19px; height: 19px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13.5px; }
.footer__bottom .made { color: rgba(255,255,255,.55); }
.footer__bottom .made b { color: var(--cyan); font-weight: 600; }

/* ============================================================
   Floating WhatsApp + back to top
   ============================================================ */
.fab-wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 50; width: 58px; height: 58px;
  border-radius: 50%; background: #25d366; display: grid; place-items: center; color: #fff;
  box-shadow: 0 14px 30px -10px rgba(37,211,102,.6); transition: transform .35s var(--ease);
}
.fab-wa:hover { transform: scale(1.08) translateY(-2px); }
.fab-wa svg { width: 30px; height: 30px; }
.fab-wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0%{transform:scale(1);opacity:.7} 100%{transform:scale(1.7);opacity:0} }

.to-top {
  position: fixed; right: 24px; bottom: 92px; z-index: 49; width: 46px; height: 46px;
  border-radius: 50%; background: var(--navy); color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center; opacity: 0; transform: translateY(16px) scale(.8);
  pointer-events: none; transition: .4s var(--ease); box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* ============================================================
   Scroll reveal  (animation-based — robust against stuck transitions)
   ============================================================ */
.reveal { opacity: 0; }
.reveal.in { animation: revealIn .8s var(--ease) both; }
@keyframes revealIn {
  from { opacity: 0; transform: translateY(34px); }
  to   { opacity: 1; transform: none; }
}
.reveal.d1.in { animation-delay: .08s; }
.reveal.d2.in { animation-delay: .16s; }
.reveal.d3.in { animation-delay: .24s; }
.reveal.d4.in { animation-delay: .32s; }
.reveal.d5.in { animation-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  .bubble, .marquee__track, .hero__floating, .fab-wa::after, .hero__kicker .dot { animation: none !important; }
}

/* ============================================================
   LIGHTBOX (galería)
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  background: rgba(16, 28, 52, .88); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__img {
  display: block;
  max-width: calc(100vw - 160px);
  max-height: calc(100vh - 120px);
  width: auto; height: auto;
  border-radius: var(--r); box-shadow: var(--shadow-lg);
  transform: scale(.92); transition: transform .45s var(--ease);
  object-fit: contain;
}
.lightbox.open .lightbox__img { transform: scale(1); }
.lightbox__close {
  position: absolute; top: 18px; right: 20px; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center;
  transition: .3s var(--ease); z-index: 3;
}
.lightbox__close:hover { background: rgba(255,255,255,.28); transform: rotate(90deg); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; cursor: pointer;
  display: grid; place-items: center; transition: .3s var(--ease); z-index: 3; flex: none;
}
.lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__nav svg { width: 26px; height: 26px; }
.lightbox__nav.prev { left: 20px; }
.lightbox__nav.next { right: 20px; }
.lightbox__cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.85); font-family: var(--font-display); font-size: 14px; letter-spacing: .02em; pointer-events: none; }
@media (max-width: 640px) {
  .lightbox__img { max-width: calc(100vw - 100px); max-height: calc(100vh - 100px); }
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav.prev { left: 10px; }
  .lightbox__nav.next { right: 10px; }
  .lightbox__close { top: 12px; right: 12px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .prod-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .hero { padding-top: 96px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero__visual { max-width: 440px; margin-inline: auto; width: 100%; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 460px; }
  .lab__grid { grid-template-columns: 1fr; }
  .lab__media { order: -1; }
  .contact__grid { grid-template-columns: 1fr; }
  .cta-band__inner { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Teléfonos ---------- */
@media (max-width: 640px) {
  :root { --pad: 20px; }

  /* Inputs a 16px para que iOS no haga zoom al enfocar */
  .field input, .field textarea, .field select { font-size: 16px; }

  /* Tipografía y aire de secciones */
  .section { padding-block: 60px; }
  .section.tight { padding-block: 48px; }
  .head { margin-bottom: 38px; }

  /* HERO */
  .hero { padding-top: 88px; padding-bottom: 70px; min-height: 0; }
  .hero h1 { margin: 18px 0 16px; }
  .hero__kicker { font-size: 12px; padding: 7px 13px 7px 9px; }
  .hero__actions { gap: 11px; margin-top: 28px; }
  .hero__actions .btn { width: 100%; }
  .hero__stats { gap: 22px 30px; margin-top: 34px; }
  .hero__card { aspect-ratio: 4 / 3; }
  .hero__floating { display: none; }

  /* Grids a una columna */
  .svc-grid, .stat-grid, .steps, .prod-grid, .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }

  /* Tarjetas más compactas */
  .svc { padding: 26px 22px; }
  .stat { padding: 30px 20px; }
  .mvv__item:hover { transform: none; }

  /* Galería: una sola columna, sin recortes raros */
  .gal-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .gal { aspect-ratio: 3 / 2; }
  .gal.water, .gal.lab { grid-column: auto; grid-row: auto; }
  .gal.lab { aspect-ratio: 4 / 5; }

  /* Badge de "2025" centrado bajo la imagen */
  .about__media { max-width: 100%; }
  .about__badge { right: 16px; bottom: -18px; padding: 16px 20px; }
  .about__badge .y { font-size: 32px; }

  /* Strip de confianza en columna */
  .strip .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  .strip .items { gap: 14px 22px; }

  /* Marquee un poco más chico */
  .marquee__item { font-size: 20px; }
  .marquee__track { gap: 40px; }

  /* CTA en columna, botones a ancho completo */
  .cta-band__inner { padding: 38px 26px; }
  .cta-band__actions .btn { width: 100%; }

  /* Mapa un poco más alto para que se aprecie */
  .map { height: 240px; }

  /* Flotantes algo más chicos y separados del borde */
  .fab-wa { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .fab-wa svg { width: 27px; height: 27px; }
  .to-top { right: 18px; bottom: 80px; width: 42px; height: 42px; }

  /* Formulario de contacto con menos padding */
  .form { padding: 24px 20px; }
}

/* ---------- Teléfonos muy angostos ---------- */
@media (max-width: 380px) {
  .hero__stats { gap: 18px 24px; }
  .hero__stat .l { font-size: 12.5px; }
  .nav__logo img { height: 42px; }
}
