/* ==========================================================
   SETROF SEGURIDAD — styles.css  ·  REDISEÑO "TECH PREMIUM"
   HECHO POR: BENJAMIN FORTES CARRASCO — SETROF
   Base oscura cinematográfica · glassmorphism · acentos azules
   Tipografía: Fraunces (display) · Manrope (UI) · Inter (cuerpo)

      ___    ____
     | _ |==| () |==[ S E T R O F · VIGILANDO 24/7 ]
     |___|  |____|
========================================================== */

/* ---- Custom Properties ---- */
:root {
  /* Fondos claros (tema blanco) */
  --bg:        #ffffff;
  --bg-1:      #f6f9fd;
  --bg-2:      #eaf1f9;
  --panel:     #ffffff;

  /* Vidrio / bordes (tinte oscuro sobre blanco) */
  --glass:     rgba(16, 35, 70, .035);
  --glass-2:   rgba(16, 35, 70, .065);
  --border:    rgba(16, 35, 70, .12);
  --border-2:  rgba(16, 35, 70, .20);

  /* Azules de marca (intensos para fondo claro) */
  --blue:        #2563eb;
  --blue-deep:   #1d4ed8;
  --blue-light:  #2563eb;
  --blue-accent: #1e40af;
  --blue-glow:   rgba(37, 99, 235, .30);
  --blue-soft:   rgba(37, 99, 235, .09);

  /* Texto (oscuro sobre blanco) */
  --text:      #0f1b2e;
  --text-soft: #45536b;
  --text-dim:  #6b7890;
  --white:     #0c1626;   /* texto de énfasis (títulos) sobre fondo claro */

  /* WhatsApp */
  --wa:        #25D366;
  --wa-dark:   #1da851;

  /* Tipografía */
  --ff-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --ff-title:   'Manrope', sans-serif;
  --ff-body:    'Inter', sans-serif;

  /* Sombras / glows / radios (suaves sobre blanco) */
  --sh-sm:   0 4px 18px rgba(16, 35, 70, .08);
  --sh-md:   0 14px 40px rgba(16, 35, 70, .10);
  --sh-lg:   0 26px 60px rgba(16, 35, 70, .14);
  --glow:    0 0 0 1px rgba(37,99,235,.18), 0 18px 50px rgba(37, 99, 235, .18);

  --r:    12px;
  --r-lg: 20px;
  --r-xl: 28px;

  --ease:   all .35s cubic-bezier(.2, .7, .2, 1);
  --ease-f: all .2s ease;

  --w: 1240px;
  --section: clamp(84px, 11vw, 150px);
  --hh: 84px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hh); }
body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Glows ambientales en capa fija (compositada por GPU; sin jank en móvil) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(60% 50% at 80% -5%, rgba(59,130,246,.16) 0%, transparent 60%),
    radial-gradient(55% 45% at -10% 30%, rgba(29,78,216,.14) 0%, transparent 60%),
    radial-gradient(50% 50% at 50% 110%, rgba(96,165,250,.10) 0%, transparent 60%);
}
img { max-width: 100%; height: auto; display: block; }
ul  { list-style: none; }
a   { text-decoration: none; color: inherit; transition: var(--ease-f); }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }

/* ---- Focus visible ---- */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- Layout ---- */
.container { max-width: var(--w); margin: 0 auto; padding: 0 28px; }

/* ---- Tipografía compartida ---- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-title);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 18px;
}
.section-label::before { display: none; }
.section-label--light { color: var(--blue-accent); }

.section-title {
  font-family: var(--ff-display);
  font-optical-sizing: auto;
  font-size: clamp(2.2rem, 4.6vw, 3.9rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -.015em;
  margin-bottom: 18px;
}
.section-title--light { color: var(--white); }
.section-title--inline { margin-bottom: 0; }
.text-accent {
  font-style: italic;
  background: linear-gradient(120deg, var(--blue-light), var(--blue-accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-accent-light {
  font-style: italic;
  color: var(--blue-accent);
}

.section-subtitle {
  font-size: 1.06rem;
  color: var(--text-dim);
  max-width: 620px;
  line-height: 1.7;
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .section-subtitle { margin: 0 auto; }

/* ---- Botones ---- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--ff-title);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: var(--ease);
  overflow: hidden;
}
/* Brillo "premium" que cruza el botón al pasar el mouse */
.btn::before {
  content: ''; position: absolute; top: 0; left: -75%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent);
  transform: skewX(-22deg);
  transition: left .65s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.btn:hover::before { left: 135%; }
.btn--primary {
  background: linear-gradient(125deg, #0f2557 0%, #1d4ed8 52%, #2563eb 100%);
  color: #fff;
  box-shadow:
    0 14px 32px rgba(15, 37, 87, .42),
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 0 0 1px rgba(255,255,255,.07);
}
.btn--primary:hover, .btn--primary:focus-visible {
  transform: translateY(-3px);
  box-shadow:
    0 20px 46px rgba(29, 78, 216, .5),
    inset 0 1px 0 rgba(255,255,255,.34),
    inset 0 0 0 1px rgba(255,255,255,.12);
}
.btn--whatsapp {
  background: linear-gradient(125deg, #0c7a45 0%, #1faf5a 52%, #25d366 100%);
  color: #fff;
  box-shadow:
    0 14px 32px rgba(12, 122, 69, .4),
    inset 0 1px 0 rgba(255,255,255,.3),
    inset 0 0 0 1px rgba(255,255,255,.08);
}
.btn--whatsapp:hover, .btn--whatsapp:focus-visible {
  transform: translateY(-3px);
  box-shadow:
    0 20px 46px rgba(37, 211, 102, .45),
    inset 0 1px 0 rgba(255,255,255,.36),
    inset 0 0 0 1px rgba(255,255,255,.14);
}
.btn--full { width: 100%; justify-content: center; }

/* ---- Fade-in (gateado por .anim-ready: ver nota en JS) ---- */
.anim-ready .fade-in {
  opacity: 0;
  transform: translateY(34px);
  will-change: opacity, transform;
}
.fade-in--visible { opacity: 1; transform: none; }

/* Estados iniciales del HERO (revelados por GSAP / tras el intro) */
.anim-ready .hero__geo,
.anim-ready .hero__subtitle,
.anim-ready .hero__ctas,
.anim-ready .hero__trust { opacity: 0; transform: translateY(26px); }
.anim-ready .hero__title  { opacity: 0; transform: translateY(38px); }
.anim-ready .hero__visual { opacity: 0; transform: scale(.92); }


/* ==========================================================
   INTRO CINEMATOGRÁFICO
   Solo visible si <html> tiene .intro-play (lo añade el script
   del <head> si no hay reduced-motion y no se ha visto en la sesión).
========================================================== */
.intro { display: none; }
html.intro-play body { overflow: hidden; }
html.intro-play .intro {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 5000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 3vh, 34px);
  background: radial-gradient(circle at 50% 42%, #0b1730 0%, #05070d 72%);
  overflow: hidden;
}
.intro__bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(96,165,250,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,165,250,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 40%, transparent 100%);
  pointer-events: none;
}
.intro__glow {
  position: absolute;
  top: 38%; left: 50%;
  width: min(70vw, 620px); height: min(70vw, 620px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 62%);
  filter: blur(30px);
  pointer-events: none;
}
.intro__rings { position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.intro__ring {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(96, 165, 250, .22);
}
.intro__ring:nth-child(1) { width: 340px; height: 340px; }
.intro__ring:nth-child(2) { width: 500px; height: 500px; border-style: dashed; }
.intro__ring:nth-child(3) { width: 680px; height: 680px; border-color: rgba(96,165,250,.12); }
.intro__camera {
  position: relative; z-index: 3;
  width: min(56vw, 380px);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .65));
  will-change: transform;
}
.intro__brand { position: relative; z-index: 4; text-align: center; }
.intro__name {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(3.4rem, 16vw, 11rem);
  line-height: .92;
  letter-spacing: .04em;
  color: #ffffff;   /* intro permanece oscuro: texto blanco */
  display: flex;
  justify-content: center;
  overflow: hidden;            /* máscara para el reveal letra por letra */
  padding: 0 .08em;
}
.intro__char { display: inline-block; will-change: transform; }
.intro__sub {
  font-family: var(--ff-title);
  font-weight: 700;
  font-size: clamp(.9rem, 2.4vw, 1.4rem);
  letter-spacing: .55em;
  text-indent: .55em;
  color: var(--blue-light);
  margin-top: 14px;
}
.intro__tag {
  font-family: var(--ff-body);
  font-size: clamp(.78rem, 1.6vw, .98rem);
  letter-spacing: .1em;
  color: var(--text-dim);
  margin-top: 12px;
  text-transform: uppercase;
}
.intro__skip {
  position: absolute;
  bottom: 30px; right: 32px;
  z-index: 6;
  font-family: var(--ff-title);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(6px);
  transition: var(--ease-f);
}
.intro__skip { color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.05); }
.intro__skip:hover { color: #ffffff; border-color: rgba(255,255,255,.4); }

/* Pre-ocultar los elementos animados del intro para evitar parpadeo
   antes de que GSAP tome control (se revelan con fromTo en el JS). */
html.intro-play .intro__ring,
html.intro-play .intro__glow,
html.intro-play .intro__camera,
html.intro-play .intro__char,
html.intro-play .intro__sub,
html.intro-play .intro__tag,
html.intro-play .intro__skip { opacity: 0; }


/* ==========================================================
   HEADER / NAV
========================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--hh);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s ease, box-shadow .4s ease, border-color .4s ease, height .4s ease, backdrop-filter .4s ease;
}
.header--scrolled {
  height: 70px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px rgba(16, 35, 70, .10);
}
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav__search {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(8px);
  color: var(--blue);
  font-size: 1rem;
  transition: var(--ease);
}
.nav__search:hover {
  background: linear-gradient(125deg, #1d4ed8, #2563eb);
  color: #fff; border-color: var(--blue-deep);
  transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37,99,235,.42);
}
.nav__logo-img {
  height: 56px; width: auto; object-fit: contain;
  /* logo navy original sobre fondo claro */
  filter: none;
  transition: transform .4s ease, height .4s ease, filter .4s ease;
}
.header--scrolled .nav__logo-img { height: 46px; }
.nav__logo:hover .nav__logo-img { transform: scale(1.05); }
.nav__menu {
  display: flex; align-items: center; gap: 2px;
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.nav__link {
  position: relative;
  font-family: var(--ff-title);
  font-size: .86rem;
  font-weight: 600;
  color: var(--text-soft);
  padding: 10px 13px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color .25s ease;
}
.nav__link:not(.nav__link--cta)::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-light), var(--blue-accent));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
.nav__link:not(.nav__link--cta):hover { color: var(--white); }
.nav__link--active { color: var(--white); }
.nav__link--active::after,
.nav__link:not(.nav__link--cta):hover::after { transform: scaleX(1); }
.nav__link--cta {
  background: linear-gradient(125deg, #0f2557 0%, #1d4ed8 52%, #2563eb 100%);
  color: #fff !important;
  margin-left: 14px;
  padding: 12px 24px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 800;
  font-size: .76rem;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(15, 37, 87, .42), inset 0 1px 0 rgba(255,255,255,.26);
}
.nav__link--cta::before {
  content: ''; position: absolute; top: 0; left: -75%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-22deg);
  transition: left .65s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.nav__link--cta:hover::before { left: 135%; }
.nav__link--cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(29, 78, 216, .5), inset 0 1px 0 rgba(255,255,255,.32);
}
.nav__toggle { display: none; color: var(--white); font-size: 1.4rem; padding: 8px; border-radius: var(--r); }

/*  */
.nav__badge-new {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(125deg, #1d4ed8, #2563eb);
  color: #fff;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: 2px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .35);
}

/* Botón destacado "Contáctanos" (WhatsApp) en la navbar */
.nav__link--wa {
  display: inline-flex; align-items: center; gap: 7px;
  margin-left: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(37, 211, 102, .10);
  border: 1px solid rgba(37, 211, 102, .38);
  color: var(--wa-dark) !important;
  font-weight: 700;
}
.nav__link--wa i { color: var(--wa); }
.nav__link--wa::after { display: none !important; }
.nav__link--wa:hover {
  background: rgba(37, 211, 102, .18);
  border-color: rgba(37, 211, 102, .55);
  transform: translateY(-1px);
}


/* ==========================================================
   HERO
========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--hh) + 10px) 0 22px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero__grid-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(96, 165, 250, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, .045) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 45%, transparent 100%);
}
.hero__blob { position: absolute; border-radius: 50%; filter: blur(70px); }
.hero__blob--1 {
  top: -140px; right: -80px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(59,130,246,.4) 0%, transparent 70%);
}
.hero__blob--2 {
  bottom: -200px; left: -120px; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(29,78,216,.34) 0%, transparent 70%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

/* Encabezado centrado */
.hero__head { display: flex; flex-direction: column; align-items: center; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin-bottom: 14px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(8px);
  font-family: var(--ff-title);
  font-size: .68rem; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-soft);
}
.hero__eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue-glow);
  animation: geoPing 1.8s ease-in-out infinite;
}
.hero__rule {
  width: 56px; height: 3px; border-radius: 3px;
  margin-top: 16px;
  background: linear-gradient(90deg, var(--blue), var(--blue-accent));
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ff-title);
  font-size: .76rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 26px;
  padding: 9px 16px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.hero__badge i { color: var(--blue-light); }
.hero__title {
  font-family: var(--ff-display);
  font-optical-sizing: auto;
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: .015em;
}
.hero__title-accent {
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__subtitle {
  font-family: var(--ff-title);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text-soft);
  max-width: 620px;
  margin-bottom: 0;
}
.hero__cta-main { margin-bottom: 4px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 42px; justify-content: center; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 26px; justify-content: center;
  margin-top: clamp(14px, 2.2vh, 26px);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.hero__trust li {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ff-title);
  font-size: .82rem; font-weight: 600;
  color: var(--text-soft);
}
.hero__trust li i { color: var(--blue-light); font-size: .95rem; }

/* Escena del hero — carrusel giratorio de servicios alrededor del NVR */
.hero__visual { position: relative; }
.hero__stage {
  position: relative;
  width: 100%;
  margin-top: clamp(8px, 1.4vh, 16px);
  display: grid;
  grid-template-columns: auto minmax(110px, .9fr) minmax(0, 1.3fr) minmax(110px, .9fr) auto;
  align-items: center;
  gap: clamp(8px, 1.4vw, 22px);
  perspective: 1000px;
}

/* Órbita elíptica detrás del NVR (el "sol") — muy sutil, difuminada en los bordes */
.hero__orbit {
  position: absolute; top: 50%; left: 50%;
  width: min(90%, 960px); height: min(60%, 480px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, .12);
  z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, transparent 62%, #000 78%, #000 92%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, transparent 62%, #000 78%, #000 92%, transparent 100%);
}

/* Planetas "fantasma" — servicios que orbitan al fondo (borrosos, simétricos) */
.hero__svc-ghost {
  position: absolute; top: 10%;
  transform: translate(-50%, 0);
  width: clamp(80px, 9vw, 122px); height: auto;
  filter: blur(4px) saturate(.9) drop-shadow(0 12px 20px rgba(16,35,70,.18));
  opacity: .5; z-index: 0; pointer-events: none;
  animation: ghostFloat 7s ease-in-out infinite;
}
.hero__svc-ghost--left  { left: 24%; }
.hero__svc-ghost--right { left: 76%; animation-delay: -3.5s; }
@keyframes ghostFloat {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, -10px); }
}

/* Flechas del carrusel — minimalistas (contorno + chevron fino) */
.hero__arrow {
  position: relative; z-index: 4;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1.5px solid var(--border-2);
  color: var(--text-soft); font-size: 1.35rem;
  cursor: pointer; justify-self: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: var(--ease);
}
.hero__arrow:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
  transform: scale(1.06);
}
.hero__arrow:active { transform: scale(.94); }

/* Planetas (servicios) — figuras sin círculo, orbitando el NVR */
.hero__svc-slot {
  position: relative; z-index: 2;
  width: 100%; max-width: 220px; aspect-ratio: 1; justify-self: center;
  display: flex; align-items: center; justify-content: center;
  transition: transform .35s ease;
}
.hero__svc-slot:hover { transform: translateY(-7px) scale(1.05); }
.hero__svc-slot::after {                 /* sombra de piso bajo el planeta */
  content: ''; position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%);
  width: 56%; height: 12px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(16,35,70,.24), transparent 70%);
  filter: blur(5px); z-index: 0;
}
.hero__svc-slot img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: contain;
  animation: none !important;
  filter: drop-shadow(0 14px 22px rgba(16,35,70,.30));
}
/* Transición orbital: el planeta viaja por el costado de la órbita (vertical)
   y el nuevo entra desde el lado opuesto — no gira sobre sí mismo. */
.hero__svc-slot.orbit-down { animation: orbitDown .55s cubic-bezier(.5, 0, .5, 1); }
.hero__svc-slot.orbit-up   { animation: orbitUp   .55s cubic-bezier(.5, 0, .5, 1); }
@keyframes orbitDown {
  0%   { transform: translate(0, 0)       scale(1);   opacity: 1; }
  46%  { transform: translate(10px, 62px)  scale(.7);  opacity: 0; }
  47%  { transform: translate(-10px, -62px) scale(.7); opacity: 0; }
  100% { transform: translate(0, 0)       scale(1);   opacity: 1; }
}
@keyframes orbitUp {
  0%   { transform: translate(0, 0)        scale(1);   opacity: 1; }
  46%  { transform: translate(-10px, -62px) scale(.7);  opacity: 0; }
  47%  { transform: translate(10px, 62px)   scale(.7);  opacity: 0; }
  100% { transform: translate(0, 0)        scale(1);   opacity: 1; }
}

/* Acciones (botones) bajo la escena */
.hero__actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
  margin-top: clamp(16px, 2.6vh, 30px);
}

/* Botones "de marca" — menos genéricos: ícono en cápsula + texto */
.btn--brand { gap: 12px; padding: 11px 26px 11px 11px; }
.btn--brand .btn__ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
  font-size: 1.05rem;
}
.btn--brand .btn__tx {
  text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .82rem;
}

/* Monitor de vigilancia (centro) — monitor físico realista con bezel */
.hero__monitor {
  position: relative; z-index: 1;
  width: 100%; max-width: 480px; margin: 0 auto;
  padding: 11px 11px 0;                 /* marco (bezel) */
  border-radius: 18px;
  background: linear-gradient(180deg, #2b313d 0%, #181b22 58%, #0e1115 100%);
  box-shadow:
    0 28px 60px rgba(16,35,70,.30),
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -2px 0 rgba(0,0,0,.6),
    inset 0 0 0 1px rgba(0,0,0,.5);
  isolation: isolate;
}
.hero__monitor .hero__glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 130%; height: 130%; border-radius: 50%;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 65%);
  filter: blur(46px); z-index: -1; pointer-events: none;
}
/* Pantalla recesada dentro del marco */
.hero__monitor-screen {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, #11192b, #0a0f1c);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.75), inset 0 0 24px rgba(0,0,0,.65);
}
.hero__monitor-screen::after {           /* reflejo de vidrio + scanlines */
  content: ''; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background:
    linear-gradient(125deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 24%),
    repeating-linear-gradient(180deg, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.16) 2px 4px);
  mix-blend-mode: screen; opacity: .55;
}
/* Barbilla inferior del monitor */
.hero__monitor-chin {
  position: relative; height: 24px;
  display: flex; align-items: center; justify-content: center;
}
.hero__monitor-brand {
  font-family: var(--ff-title);
  font-size: .58rem; font-weight: 800; letter-spacing: .34em;
  color: rgba(255,255,255,.5);
}
.hero__monitor-power {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,.95);
}
/* Barra superior (software CCTV) */
.hero__monitor-top {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 13px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}
.hero__monitor-name {
  font-family: var(--ff-title);
  font-size: .68rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: #c7d2e6;
  display: inline-flex; align-items: center; gap: 8px;
}
.hero__monitor-name i { color: var(--blue-light); }
.hero__monitor-net {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--ff-title);
  font-size: .55rem; font-weight: 800; letter-spacing: .16em; color: #86efac;
}
.hero__monitor-net i {
  width: 6px; height: 6px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,.9);
  animation: recBlink 1.8s steps(2, jump-none) infinite;
}
.hero__monitor-top .hero__rec { margin-left: auto; }
.hero__feeds {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: rgba(0,0,0,.55);
}
.hero__feed { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #060a12; }
.hero__feed img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.85) contrast(1.06) brightness(.9);
  transition: transform 7s ease;
}
.hero__monitor:hover .hero__feed img { transform: scale(1.08); }
.hero__feed-cam, .hero__feed-live {
  position: absolute; z-index: 3;
  font-family: var(--ff-title);
  font-size: .54rem; font-weight: 800; letter-spacing: .08em;
  padding: 3px 6px; border-radius: 5px;
  background: rgba(6,10,18,.72); backdrop-filter: blur(4px);
}
.hero__feed-cam  { top: 6px; left: 6px; color: #c7d2e6; }
.hero__feed-live { top: 6px; right: 6px; color: #86efac; display: inline-flex; align-items: center; gap: 5px; }
.hero__feed-live i {
  width: 6px; height: 6px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,.9);
  animation: recBlink 1.6s steps(2, jump-none) infinite;
}
.hero__monitor-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 15px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  font-family: var(--ff-title);
  font-size: .66rem; font-weight: 700; letter-spacing: .06em;
  color: #9fb0cc;
}
.hero__monitor-loc i { color: var(--blue-light); margin-right: 6px; }
.hero__monitor-ts { color: var(--blue-accent); font-variant-numeric: tabular-nums; }
/* REC */
.hero__rec {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px;
  background: rgba(239,68,68,.14);
  border: 1px solid rgba(239,68,68,.4);
  border-radius: 999px;
  font-family: var(--ff-title);
  font-size: .58rem; font-weight: 800; letter-spacing: .2em;
  color: #fca5a5;
}
.hero__rec-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ef4444; box-shadow: 0 0 12px rgba(239,68,68,.95);
  animation: recBlink 1.4s steps(2, jump-none) infinite;
}
@keyframes recBlink { 50% { opacity: .12; } }

/* Cerco eléctrico SETROF (recorte sin fondo) como botón "Solicitar cotización" */
.hero__cerco-cta {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; max-width: 250px;
  transition: var(--ease);
}
.hero__cerco-cta:hover { transform: translateY(-6px); }
.hero__cerco-img {
  position: relative; z-index: 2;
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 22px 38px rgba(16, 35, 70, .28));
}
.hero__cerco-pulse {
  position: absolute; top: 50%; left: 50%;
  width: 72%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(37,99,235,.28), transparent 60%);
  z-index: 0;
  animation: camPulse 2.6s ease-out infinite;
}
.hero__cerco-badge {
  position: absolute; right: 4%; bottom: 8%; z-index: 3;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(120deg, var(--blue), var(--blue-deep));
  color: #fff; font-size: 1.2rem;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .5);
  border: 2px solid #fff;
}

/* Cámara de seguridad que enlaza a WhatsApp */
.hero__cam-wa {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; max-width: 240px;
  transition: var(--ease);
}
.hero__cam-wa:hover { transform: translateY(-6px); }
.hero__camera {
  position: relative; z-index: 2;
  width: 100%; height: auto;
  filter: drop-shadow(0 22px 38px rgba(16, 35, 70, .28));
  animation: floatCam 6s ease-in-out infinite;
  will-change: transform;
}
@keyframes floatCam {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-12px) rotate(-1.5deg); }
}
.hero__cam-pulse {
  position: absolute; top: 50%; left: 50%;
  width: 72%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(37,211,102,.32), transparent 60%);
  z-index: 0;
  animation: camPulse 2.6s ease-out infinite;
}
@keyframes camPulse {
  0%   { opacity: .8; transform: translate(-50%, -50%) scale(.7); }
  100% { opacity: 0;  transform: translate(-50%, -50%) scale(1.5); }
}
.hero__cam-badge {
  position: absolute; z-index: 3;
  right: 4%; bottom: 6%;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(120deg, #2bdd6e, var(--wa-dark));
  color: #fff; font-size: 1.35rem;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .5);
  border: 2px solid #fff;
}


/* ==========================================================
   QUICK SERVICES
========================================================== */
.quick-services { padding: 20px 0 var(--section); }
.quick-services__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.qs-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 22px;
  backdrop-filter: blur(10px);
  transition: var(--ease);
}
.qs-card:hover {
  border-color: rgba(96,165,250,.4);
  background: var(--glass-2);
  transform: translateY(-6px);
  box-shadow: var(--glow);
}
.qs-card__icon {
  width: 52px; height: 52px;
  margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r);
  background: var(--blue-soft);
  border: 1px solid rgba(96,165,250,.2);
  color: var(--blue-light);
  font-size: 1.5rem;
  transition: var(--ease);
}
.qs-card:hover .qs-card__icon {
  background: linear-gradient(120deg, var(--blue), var(--blue-deep));
  color: #fff;
  box-shadow: 0 10px 26px rgba(59,130,246,.5);
}
.qs-card__title {
  font-family: var(--ff-title);
  font-size: .84rem; font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px; line-height: 1.3;
}
.qs-card__text { font-size: .84rem; color: var(--text-dim); line-height: 1.55; }


/* ==========================================================
   ABOUT
========================================================== */
.about { padding: var(--section) 0; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about__para { color: var(--text-soft); font-size: 1.05rem; line-height: 1.85; margin-bottom: 18px; }
.about__para:last-of-type { margin-bottom: 30px; }
.about__para strong { color: var(--white); font-weight: 600; }
.about__icon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.about__icon-cell {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 10px 8px;
  transition: var(--ease);
}
.about__icon-cell img {
  width: 100%; height: 112px; object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(16, 35, 70, .26));
  transition: var(--ease);
}
.about__icon-cell:hover img { transform: scale(1.08) translateY(-3px); }
.about__icon-cell i { font-size: 2rem; color: var(--blue-light); transition: var(--ease); }
.about__icon-cell:hover i { transform: scale(1.12); }
.about__icon-cell span {
  font-family: var(--ff-title);
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-soft);
}


/* ==========================================================
   POR QUÉ ELEGIRNOS
========================================================== */
.why { padding: var(--section) 0; }
.why__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr .85fr;
  align-items: stretch;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--sh-lg);
  min-height: 360px;
}
.why__photo { position: relative; min-height: 360px; background: var(--bg-2); }
.why__img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; }
.why__photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(10,17,32,.5));
}
.why__card {
  background: linear-gradient(150deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  padding: 46px 40px;
  display: flex; flex-direction: column; justify-content: center;
}
.why__title {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 500; margin-bottom: 26px; line-height: 1.15;
  color: #fff;
}
.why__title span { color: #cfe0ff; font-style: italic; display: block; }
.why__list { display: flex; flex-direction: column; gap: 16px; }
.why__list li {
  display: flex; align-items: flex-start; gap: 13px;
  font-size: .96rem; line-height: 1.55; color: rgba(255, 255, 255, .92);
}
.why__list li i { color: #bfe0ff; font-size: 1.05rem; margin-top: 3px; flex-shrink: 0; }
.why__stats {
  background: var(--bg-1);
  color: var(--text);
  padding: 46px 34px;
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  border-left: 1px solid var(--border);
}
.why__stat { display: flex; flex-direction: column; gap: 6px; }
.why__stat-num {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 600; line-height: 1;
  background: linear-gradient(120deg, var(--blue-light), var(--blue-accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.why__stat-label {
  font-family: var(--ff-title);
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-dim); line-height: 1.4;
}
.why__stat-divider { height: 1px; background: var(--border); }


/* ==========================================================
   SECTORES
========================================================== */
.sectors { padding: var(--section) 0; }
.sectors .section-header { margin-bottom: 48px; }
.sectors__grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  padding: 36px 28px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  backdrop-filter: blur(10px);
}
.sector-card {
  text-align: center; padding: 22px 14px;
  border-radius: var(--r-lg);
  border: 1px solid transparent;
  transition: var(--ease); cursor: default;
}
.sector-card:hover { background: var(--glass-2); border-color: var(--border); transform: translateY(-6px); }
.sector-card__icon {
  width: 74px; height: 74px; margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--blue-soft);
  border: 1px solid rgba(96,165,250,.2);
  display: flex; align-items: center; justify-content: center;
  transition: var(--ease);
}
.sector-card__icon i { font-size: 1.9rem; color: var(--blue-light); transition: var(--ease); }
.sector-card:hover .sector-card__icon {
  background: linear-gradient(120deg, var(--blue), var(--blue-deep));
  box-shadow: 0 10px 28px rgba(59,130,246,.5);
}
.sector-card:hover .sector-card__icon i { color: #fff; }
.sector-card__title {
  font-family: var(--ff-title);
  font-size: .78rem; font-weight: 800;
  color: var(--white); letter-spacing: .08em;
}


/* ==========================================================
   SERVICIOS DETALLADOS
========================================================== */
.services { padding: var(--section) 0; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 42px 32px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: var(--ease);
}
.svc-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue-light), var(--blue-accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.svc-card:hover {
  border-color: rgba(96,165,250,.4);
  background: var(--glass-2);
  transform: translateY(-8px);
  box-shadow: var(--glow);
}
.svc-card:hover::before { transform: scaleX(1); }
.svc-card__num {
  position: absolute; top: 20px; right: 26px;
  font-family: var(--ff-display);
  font-size: 3rem; font-weight: 600;
  color: var(--blue-light); opacity: .14; line-height: 1; user-select: none;
}
.svc-card__icon {
  width: 62px; height: 62px; border-radius: var(--r);
  background: var(--blue-soft);
  border: 1px solid rgba(96,165,250,.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px; transition: var(--ease);
}
.svc-card__icon i { font-size: 1.6rem; color: var(--blue-light); transition: var(--ease); }
.svc-card:hover .svc-card__icon {
  background: linear-gradient(120deg, var(--blue), var(--blue-deep));
  box-shadow: 0 10px 26px rgba(59,130,246,.5);
}
.svc-card:hover .svc-card__icon i { color: #fff; }
.svc-card__title {
  font-family: var(--ff-title);
  font-size: 1.15rem; font-weight: 800; color: var(--white); margin-bottom: 4px;
}
.svc-card__sub {
  font-size: .74rem; font-weight: 700; font-family: var(--ff-title);
  text-transform: uppercase; letter-spacing: .1em; color: var(--blue-light); margin-bottom: 18px;
}
.svc-card__list { display: flex; flex-direction: column; gap: 9px; }
.svc-card__list li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: .88rem; color: var(--text-soft); line-height: 1.55;
}
.svc-card__list li::before { content: '\2713'; color: var(--blue-light); font-weight: 700; flex-shrink: 0; }


/* ==========================================================
   GALERÍA — mosaico
========================================================== */
.gallery { padding: var(--section) 0; }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; gap: 16px; }
.gallery__cell {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.gallery__cell::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5,7,13,.55));
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
.gallery__cell:hover::after { opacity: 1; }
.gallery__cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }


/* ==========================================================
   PISCINAS
========================================================== */
.pools { position: relative; padding: var(--section) 0; }
.pools::before {
  content: ''; position: absolute; top: -160px; right: -160px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(96,165,250,.2) 0%, transparent 70%);
  pointer-events: none;
}
.pools::after {
  content: ''; position: absolute; bottom: -220px; left: -160px;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.16) 0%, transparent 70%);
  pointer-events: none;
}
.pools__hero { position: relative; text-align: center; margin-bottom: 40px; z-index: 1; }
.pools__subtitle { margin: 16px auto 0; max-width: 660px; font-size: 1.06rem; color: var(--text-dim); line-height: 1.7; }
.pools__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.pools__features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 64px; }
.pool-feat {
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  transition: var(--ease);
}
.pool-feat:hover {
  background: var(--glass-2);
  border-color: rgba(96,165,250,.4);
  transform: translateY(-6px);
  box-shadow: var(--glow);
}
.pool-feat__icon {
  width: 48px; height: 48px; border-radius: var(--r);
  background: var(--blue-soft);
  border: 1px solid rgba(96,165,250,.2);
  color: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; margin-bottom: 16px; transition: var(--ease);
}
.pool-feat:hover .pool-feat__icon {
  background: linear-gradient(120deg, var(--blue), var(--blue-deep));
  color: #fff; box-shadow: 0 10px 24px rgba(59,130,246,.5);
}
.pool-feat__title { font-family: var(--ff-title); font-size: 1rem; font-weight: 800; color: var(--white); margin-bottom: 7px; line-height: 1.3; }
.pool-feat__text { font-size: .84rem; color: var(--text-dim); line-height: 1.6; }
.pools__gallery { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 250px; gap: 14px; height: 100%; }
.pools__gallery-cell {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: zoom-in;
}
.pools__gallery-cell--lg { grid-column: 1 / -1; }
.pools__gallery-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.pools__cta {
  position: relative; z-index: 1; margin-top: 64px; text-align: center;
  padding: 44px 32px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  backdrop-filter: blur(12px);
}
.pools__cta-text { font-family: var(--ff-display); font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 500; color: var(--white); margin-bottom: 22px; }
.pools__cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }


/* ==========================================================
   CONTACTO
========================================================== */
.contact { padding: var(--section) 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.contact__info-title { font-family: var(--ff-title); font-size: 1.15rem; font-weight: 800; color: var(--white); margin-bottom: 26px; }
.contact__item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: var(--r); margin-bottom: 12px;
  background: var(--glass);
  border: 1px solid var(--border);
  transition: var(--ease);
}
.contact__item:hover { border-color: rgba(96,165,250,.4); background: var(--glass-2); transform: translateX(6px); }
.contact__item--wa:hover { border-color: rgba(37,211,102,.5); }
.contact__item-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(120deg, var(--blue), var(--blue-deep));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(59,130,246,.4);
}
.contact__item-icon--wa { background: linear-gradient(120deg, #2bdd6e, var(--wa-dark)); box-shadow: 0 8px 20px rgba(37,211,102,.4); }
.contact__item-icon i { font-size: 1.1rem; color: #fff; }
.contact__item-label { display: block; font-family: var(--ff-title); font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); }
.contact__item-value { display: block; font-weight: 600; font-size: .96rem; color: var(--white); }
.contact__badge {
  display: flex; align-items: center; gap: 11px;
  margin: 22px 0; padding: 15px 20px;
  background: var(--blue-soft);
  border: 1px solid rgba(96,165,250,.22);
  border-radius: var(--r);
  font-size: .86rem; color: var(--blue-accent);
}
.contact__badge i { flex-shrink: 0; }
.contact__wa-btn { width: 100%; justify-content: center; }
.contact__form-wrap {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 48px 42px;
  backdrop-filter: blur(12px);
  box-shadow: var(--sh-md);
}
.contact__form-title {
  font-family: var(--ff-display);
  font-size: 1.5rem; font-weight: 500; color: var(--white);
  margin-bottom: 30px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.form__group { margin-bottom: 20px; }
.form__label { display: block; font-family: var(--ff-title); font-size: .76rem; font-weight: 700; letter-spacing: .04em; color: var(--text-soft); margin-bottom: 8px; }
.form__input, .form__select, .form__textarea {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-family: var(--ff-body); font-size: .92rem;
  color: var(--white);
  background: rgba(255,255,255,.03);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  outline: none;
}
.form__input:focus, .form__select:focus, .form__textarea:focus {
  border-color: var(--blue);
  background: rgba(59,130,246,.06);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .18);
}
.form__input::placeholder, .form__textarea::placeholder { color: var(--text-dim); }
.form__textarea { resize: vertical; min-height: 120px; }
.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2360a5fa' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 44px; cursor: pointer;
}
.form__select option { background: var(--panel); color: var(--white); }
.form__note { font-size: .8rem; color: var(--text-dim); text-align: center; margin-top: 16px; line-height: 1.5; }


/* ==========================================================
   FOOTER
========================================================== */
.footer { background: transparent; padding-top: 30px; }
.footer__bar {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 32px;
  background: linear-gradient(120deg, var(--blue), var(--blue-deep));
  border: 1px solid var(--blue-deep);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 22px 32px; margin: 0 auto 28px;
  box-shadow: 0 18px 44px rgba(37, 99, 235, .28);
}
.footer__bar .footer__item { color: rgba(255,255,255,.88); }
.footer__bar .footer__item:hover { color: #fff; }
.footer__bar .footer__item i { color: #fff; }
.footer__brand { display: flex; align-items: center; }
.footer__logo { height: 52px; width: auto; filter: brightness(0) invert(1); }
.footer__contacts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px; }
.footer__item { display: inline-flex; align-items: center; gap: 11px; font-size: .92rem; font-weight: 500; color: var(--text-soft); transition: color .2s ease; }
.footer__item:hover { color: var(--white); }
.footer__item i {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.1); display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; color: var(--blue-light);
}
.footer__social { display: flex; gap: 11px; align-items: center; }
.footer__social-link {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem; transition: var(--ease);
}
.footer__social-link:hover { background: linear-gradient(120deg, var(--blue), var(--blue-deep)); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(59,130,246,.5); }
.footer__copy-bar { padding: 18px 0; border-top: 1px solid var(--border); }
.footer__copy-bar p { font-size: .78rem; color: var(--text-dim); text-align: center; }


/* ==========================================================
   WHATSAPP FLOTANTE
========================================================== */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 998;
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(120deg, #2bdd6e, var(--wa-dark));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 34px rgba(37, 211, 102, .55);
  transition: var(--ease);
}
.wa-float::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: var(--wa); z-index: -1; animation: waPulse 2s infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: .5; }
  100% { transform: scale(1.5); opacity: 0; }
}
.wa-float:hover { transform: scale(1.1) translateY(-3px); box-shadow: 0 14px 40px rgba(37, 211, 102, .65); }
.wa-float i { font-size: 1.9rem; color: #fff; }
.wa-float__tip {
  position: absolute; right: 74px;
  background: var(--panel); color: var(--text);
  font-family: var(--ff-title); font-size: .74rem; font-weight: 700;
  padding: 7px 13px; border-radius: var(--r); white-space: nowrap;
  border: 1px solid var(--border);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.wa-float__tip::after {
  content: ''; position: absolute; right: -5px; top: 50%; transform: translateY(-50%);
  border: 5px solid transparent; border-right: none; border-left-color: var(--panel);
}
.wa-float:hover .wa-float__tip { opacity: 1; }


/* ==========================================================
   MODAL LIGHTBOX (PISCINAS)
========================================================== */
.pool-modal {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(5, 7, 13, .9);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .4s ease;
  backdrop-filter: blur(10px);
}
.pool-modal--open { opacity: 1; pointer-events: all; }
.pool-modal__close {
  position: absolute; top: 24px; right: 28px; font-size: 2.6rem; color: #fff; line-height: 1; z-index: 10;
  transition: transform .3s ease, color .3s ease;
}
.pool-modal__close:hover { transform: scale(1.1); color: var(--blue-accent); }
.pool-modal__content {
  max-width: 920px; width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--sh-lg);
  transform: translateY(30px) scale(.98);
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.pool-modal--open .pool-modal__content { transform: translateY(0) scale(1); }
.pool-modal__content img { width: 100%; max-height: 70vh; object-fit: cover; display: block; }
.pool-modal__info { padding: 28px 32px; }
.pool-modal__info p { font-family: var(--ff-title); font-size: 1.05rem; font-weight: 600; color: var(--white); line-height: 1.6; text-align: center; }


/* ==========================================================
   MICRO-INTERACCIONES 3D (solo dispositivos con hover real)
========================================================== */
@media (hover: hover) and (pointer: fine) {
  .qs-card, .svc-card, .pool-feat { transform-style: preserve-3d; }
  .qs-card:hover, .svc-card:hover { transform: translateY(-8px) perspective(1000px) rotateX(3deg); }
  .pool-feat:hover { transform: translateY(-6px) perspective(1000px) rotateX(2.5deg); }
  .gallery__cell:hover img { transform: scale(1.09); }
  .pools__gallery-cell:hover img { transform: scale(1.07); }
}


/* ==========================================================
   RESPONSIVE — Tablet (≤ 1024px)
========================================================== */
@media (max-width: 1024px) {
  :root { --section: clamp(72px, 9vw, 110px); }

  .hero__stage { gap: clamp(8px, 1.4vw, 18px); }
  .hero__svc-slot { max-width: 170px; }
  .hero__orbit { width: 92%; }

  .quick-services__grid { grid-template-columns: repeat(3, 1fr); }
  .services__grid       { grid-template-columns: repeat(2, 1fr); }
  .sectors__grid        { grid-template-columns: repeat(3, 1fr); }
  .about__grid          { gap: 48px; }

  .why__grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .why__photo { grid-column: 1 / -1; min-height: 300px; }
  .why__card  { grid-column: 1 / 2; }
  .why__stats { grid-column: 2 / 3; }

  .pools__grid { grid-template-columns: 1fr; }
  .pools__gallery { min-height: 380px; }
}


/* ==========================================================
   RESPONSIVE — Mobile (≤ 768px)
========================================================== */
@media (max-width: 768px) {
  :root { --section: 64px; --hh: 64px; }

  .nav__menu {
    position: fixed; top: var(--hh); left: 0; right: 0;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(16px);
    flex-direction: column; align-items: stretch;
    padding: 16px 22px 26px; gap: 4px;
    transform: translateY(-115%); opacity: 0; pointer-events: none;
    transition: transform .35s ease, opacity .35s ease;
    box-shadow: 0 20px 40px rgba(16, 35, 70, .12);
    border-bottom: 1px solid var(--border);
  }
  .nav__menu--open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav__link { padding: 13px 16px; width: 100%; text-align: center; }
  .nav__link::after { display: none; }
  .nav__link--wa { margin-left: 0; margin-top: 10px; width: 100%; justify-content: center; }
  .nav__search { width: 42px; height: 42px; font-size: .95rem; }
  .nav__toggle { display: flex; }
  .nav__logo-img { height: 44px; }

  .hero { padding: calc(var(--hh) + 40px) 0 66px; min-height: auto; }
  /* Móvil: órbita y planetas de fondo fuera; monitor arriba + 2 planetas y flechas debajo */
  .hero__orbit, .hero__svc-ghost { display: none; }
  .hero__stage {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "mon mon"
      "sl sr";
    gap: 18px 20px;
    margin-top: 24px;
    justify-items: center;
  }
  .hero__monitor { grid-area: mon; max-width: 100%; }
  .hero__svc-slot--left  { grid-area: sl; }
  .hero__svc-slot--right { grid-area: sr; }
  .hero__svc-slot { max-width: 130px; transition: opacity .25s ease; will-change: transform, opacity; }
  .hero__monitor { will-change: transform; }
  .hero__arrow { display: none; }   /* sin flechas en móvil */

  .quick-services__grid { grid-template-columns: 1fr 1fr; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }

  .why__grid { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .why__photo, .why__card, .why__stats { grid-column: 1 / -1; border-left: none; }
  .why__card, .why__stats { border-top: 1px solid var(--border); padding: 34px 26px; }

  /* Servicios (lente): tarjetas apiladas en móvil */
  .svc-lens-wrap { grid-template-columns: 1fr !important; gap: 16px; }
  .svc-lens { text-align: center; }
  .svc-lens__icon { margin-left: auto; margin-right: auto; }
  .svc-lens__list { align-items: center; }

  .sectors__grid { grid-template-columns: repeat(2, 1fr); padding: 26px 18px; }
  .services__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }

  .pools__features { grid-template-columns: 1fr; }
  .pools__gallery { grid-template-columns: 1fr; grid-template-rows: repeat(3, 210px); min-height: auto; }
  .pools__gallery-cell--lg { grid-column: auto; }
  .pools__cta-btns { flex-direction: column; }
  .pools__cta-btns .btn { width: 100%; justify-content: center; }

  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .contact__form-wrap { padding: 30px 22px; }

  .footer__bar { grid-template-columns: 1fr; gap: 20px; text-align: center; padding: 24px; }
  .footer__brand { justify-content: center; }
  .footer__contacts { flex-direction: column; gap: 14px; }
  .footer__social { justify-content: center; }

  .wa-float { bottom: 20px; right: 20px; width: 56px; height: 56px; }
  .wa-float i { font-size: 1.7rem; }

  .intro__camera { width: min(76vw, 340px); }
  .intro__ring:nth-child(1) { width: 250px; height: 250px; }
  .intro__ring:nth-child(2) { width: 360px; height: 360px; }
  .intro__ring:nth-child(3) { width: 480px; height: 480px; }
  .intro__skip { bottom: 22px; right: 20px; }
}


/* ==========================================================
   RESPONSIVE — Mobile S (≤ 480px)
========================================================== */
@media (max-width: 480px) {
  .quick-services__grid { grid-template-columns: 1fr; }
  .sectors__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .about__icon-grid { grid-template-columns: repeat(2, 1fr); }
  .contact__form-wrap { padding: 26px 18px; }
  .pool-modal__content { max-width: 100%; }
  .pool-modal__info { padding: 20px; }
  .pool-modal__info p { font-size: .92rem; }
}


/* ==========================================================
   PREFERS-REDUCED-MOTION — accesibilidad
   Sin .anim-ready ni .intro-play (no se añaden en este modo),
   el contenido queda visible y el intro se omite. Aquí además
   apagamos las animaciones continuas y transiciones largas.
========================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto !important; }
}


/* ==========================================================
   UTILIDADES
========================================================== */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}


/* ==========================================================
   HUD DEL VISOR — superposición tipo lente de cámara
   Fijo, sin capturar clicks (pointer-events:none).
========================================================== */
.hud {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s ease;
}
.hud.is-on { opacity: 1; }

/* Brackets de enfoque en las 4 esquinas */
.hud__corner {
  position: absolute;
  width: 40px; height: 40px;
  border: 2px solid rgba(37, 99, 235, .55);
  transition: inset .6s cubic-bezier(.2,.7,.2,1), border-color .6s ease, opacity .6s ease;
}
.hud__corner--tl { top: 96px;  left: 24px;  border-right: 0; border-bottom: 0; border-top-left-radius: 4px; }
.hud__corner--tr { top: 96px;  right: 24px; border-left: 0;  border-bottom: 0; border-top-right-radius: 4px; }
.hud__corner--bl { bottom: 30px; left: 24px;  border-right: 0; border-top: 0; border-bottom-left-radius: 4px; }
.hud__corner--br { bottom: 30px; right: 24px; border-left: 0;  border-top: 0; border-bottom-right-radius: 4px; }
/* "reenfoque": al entrar en modo focus, los brackets se cierran un poco */
.hud--focus .hud__corner { border-color: rgba(37, 99, 235, .9); }
.hud--focus .hud__corner--tl { top: 110px;  left: 40px; }
.hud--focus .hud__corner--tr { top: 110px;  right: 40px; }
.hud--focus .hud__corner--bl { bottom: 46px; left: 40px; }
.hud--focus .hud__corner--br { bottom: 46px; right: 40px; }

/* Indicador REC */
.hud__rec {
  position: absolute;
  top: 100px; right: 70px;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ff-title);
  font-size: .64rem; font-weight: 800;
  letter-spacing: .24em;
  color: var(--text-soft);
}
.hud__rec-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #ff3b3b; box-shadow: 0 0 10px rgba(255, 59, 59, .9);
  animation: recBlink 1.3s steps(1, end) infinite;
}
@keyframes recBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .15; } }

/* Lectura inferior: timestamp + estado */
.hud__readout {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--ff-title);
  font-size: .62rem; font-weight: 700;
  letter-spacing: .18em;
  color: var(--text-dim);
  white-space: nowrap;
}
.hud__readout span { display: inline-flex; align-items: center; gap: 7px; }
.hud__readout i { color: var(--blue); font-size: .7rem; }
.hud__sep { width: 1px; height: 12px; background: rgba(16, 35, 70, .2); }

/* Scanlines + viñeta sutil (textura "video") */
.hud__scan {
  position: absolute;
  left: 0; right: 0; top: -100%;
  height: 300%;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.022) 0 1px, transparent 1px 3px);
  animation: scanMove 9s linear infinite;
  opacity: .6;
}
@keyframes scanMove { from { transform: translateY(0); } to { transform: translateY(33.333%); } }
.hud__vignette {
  position: absolute; inset: 0;
  box-shadow: inset 0 0 90px 0 rgba(16, 35, 70, .07);
  -webkit-mask-image: none;
}

@media (max-width: 768px) {
  .hud__corner { width: 26px; height: 26px; }
  .hud__corner--tl, .hud__corner--tr { top: 78px; }
  .hud__corner--tl { left: 14px; } .hud__corner--tr { right: 14px; }
  .hud__corner--bl, .hud__corner--br { bottom: 18px; }
  .hud__corner--bl { left: 14px; } .hud__corner--br { right: 14px; }
  .hud__rec { top: 80px; right: 46px; font-size: .56rem; }
  .hud__readout { font-size: .54rem; gap: 10px; bottom: 22px; }
  .hud--focus .hud__corner--tl { top: 88px; left: 24px; } .hud--focus .hud__corner--tr { top: 88px; right: 24px; }
  .hud--focus .hud__corner--bl { bottom: 28px; left: 24px; } .hud--focus .hud__corner--br { bottom: 28px; right: 24px; }
  .hud__vignette { box-shadow: inset 0 0 70px 0 rgba(16, 35, 70, .06); }
}


/* ==========================================================
   HERO — kicker de ubicación (Región de Coquimbo)
   (reemplaza la antigua pastilla .hero__badge)
========================================================== */
.hero__geo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 8px 15px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
@media (max-width: 560px) {
  .hero__geo-coords { font-size: .62rem; letter-spacing: .1em; }
}
.hero__geo-pin {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--blue-light);
  font-size: .78rem;
}
.hero__geo-coords {
  font-family: var(--ff-title);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  min-height: 1em;
}
.hero__geo-coords b {
  font-weight: 700;
  color: var(--text-soft);
}


/* ==========================================================
   PISCINAS — secuencia "proceso de construcción" (pinned)
========================================================== */
.pools__process {
  position: relative;
  width: 100%;
  margin: 0;
}
.pools__stage {
  position: relative;
  overflow: hidden;
  background: #05070d;
}
/* Estado base / fallback (sin JS · reduced-motion · móvil): pasos en flujo */
.pools__step {
  position: relative;
  opacity: 1;
  height: 58vh;
  min-height: 320px;
  overflow: hidden;
}
.pools__step img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  will-change: transform;
}
.pools__step::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,7,13,.25) 0%, rgba(5,7,13,.35) 45%, rgba(5,7,13,.8) 100%),
    linear-gradient(90deg, rgba(5,7,13,.55) 0%, transparent 45%);
  pointer-events: none;
}

/* Lectura del paso (estilo HUD) */
.pools__readout {
  position: absolute;
  left: clamp(24px, 6vw, 90px);
  bottom: clamp(60px, 12vh, 120px);
  max-width: 560px;
  z-index: 5;
}
.pools__readout-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-title);
  font-size: .66rem; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 16px;
}
.pools__readout-tag::before { display: none; }
.pools__readout-num {
  font-family: var(--ff-display);
  font-size: clamp(3.4rem, 9vw, 7rem);
  font-weight: 600; line-height: .9;
  color: #fff;
  display: block; margin-bottom: 6px;
}
.pools__readout-num small {
  font-size: .3em; color: rgba(255,255,255,.6); font-weight: 500; letter-spacing: .1em;
}
.pools__readout-title {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 500; color: #fff;
  line-height: 1.1; margin-bottom: 12px;
}
.pools__readout-desc {
  font-size: 1rem; color: rgba(255,255,255,.85); line-height: 1.65; max-width: 480px;
}
.pools__readout-fx { will-change: transform, opacity; }

/* Barra de progreso de pasos */
.pools__progress {
  position: absolute;
  right: clamp(24px, 6vw, 90px);
  bottom: clamp(60px, 12vh, 120px);
  z-index: 5;
  display: flex; flex-direction: column; gap: 12px;
  align-items: flex-end;
}
.pools__progress-item {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--ff-title); font-size: .64rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
  transition: color .4s ease;
}
.pools__progress-item span { width: 22px; height: 2px; background: rgba(255,255,255,.2); border-radius: 2px; transition: background .4s ease, width .4s ease; }
.pools__progress-item.is-active { color: #fff; }
.pools__progress-item.is-active span { background: var(--blue-light); width: 40px; box-shadow: 0 0 10px var(--blue-glow); }

/* Caption (visible en fallback y en móvil; cada imagen lleva su texto) */
.pools__step-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 24px 22px; }
.pools__step-cap .n { font-family: var(--ff-display); font-size: 2.4rem; font-weight: 600; color: #93c5fd; line-height: 1; display: block; margin-bottom: 6px; }
.pools__step-cap h3 { font-family: var(--ff-title); font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.pools__step-cap p { font-size: .88rem; color: rgba(255,255,255,.85); line-height: 1.5; max-width: 560px; }
.pools__readout, .pools__progress { display: none; }

/* Modo cine: solo desktop/tablet con animaciones activas (html.anim-ready) */
@media (min-width: 769px) {
  html.anim-ready .pools__stage { height: 100vh; min-height: 560px; }
  html.anim-ready .pools__step {
    position: absolute; inset: 0;
    height: auto; min-height: 0;
    opacity: 0; pointer-events: none;
    will-change: opacity;
  }
  html.anim-ready .pools__step.is-active { pointer-events: auto; }
  html.anim-ready .pools__step-cap { display: none; }
  html.anim-ready .pools__readout { display: block; }
  html.anim-ready .pools__progress { display: flex; }
}

/* Paso 05 = OTRO proyecto: sello distintivo + acento verde */
.pools__seal {
  position: absolute;
  top: clamp(80px, 12vh, 120px);
  left: clamp(24px, 6vw, 90px);
  z-index: 6;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 18px; border-radius: 999px;
  background: rgba(74, 222, 128, .14);
  border: 1px solid rgba(74, 222, 128, .5);
  color: #bbf7d0;
  font-family: var(--ff-title); font-size: .7rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.pools__seal i { color: #4ade80; }
.pools__step--other::after {
  background:
    linear-gradient(180deg, rgba(5,7,13,.3) 0%, rgba(6,20,14,.4) 45%, rgba(5,7,13,.82) 100%),
    linear-gradient(90deg, rgba(5,20,13,.5) 0%, transparent 45%);
}
.pools__progress-item--other { color: var(--blue-accent); }
.pools__progress-item--other.is-active { color: #86efac; }
.pools__progress-item--other.is-active span { background: #4ade80; box-shadow: 0 0 10px rgba(74, 222, 128, .6); }
/* En el fallback en flujo, el sello se ubica relativo a la imagen */
.pools__step--other { position: relative; }

/* HUD: "tirón" extra de autofocus al bloquear un servicio/paso */
.hud--snap .hud__corner { border-color: rgba(255, 255, 255, .95); }


/* ==========================================================
   SERVICIOS — "LENTE DE CÁMARA" que enfoca
   Fallback (sin JS / reduced-motion / móvil): 5 tarjetas visibles.
   Modo cine (html.anim-ready + desktop): escena anclada con lente
   que rota/enfoca y revela un servicio por bloqueo de foco.
========================================================== */
.lens-scene { position: relative; }
.lens { display: none; }
.lens__readout, .lens__progress { display: none; }

/* --- Fallback: tarjetas --- */
.svc-lens-wrap {
  max-width: var(--w); margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.svc-lens {
  position: relative;
  padding: 12px 10px;
}
.svc-lens__num {
  font-family: var(--ff-display); font-size: 2.6rem; font-weight: 600;
  color: var(--blue-light); opacity: .25; line-height: 1; display: block; margin-bottom: 10px;
}
.svc-lens__icon {
  position: relative;
  width: 116px; height: 116px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.svc-lens__icon::after {                 /* sombra de piso bajo la foto */
  content: ''; position: absolute; bottom: 4px; left: 50%;
  transform: translateX(-50%);
  width: 70%; height: 12px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(16,35,70,.24), transparent 70%);
  filter: blur(4px); z-index: -1;
}
.svc-lens__icon img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(16,35,70,.28));
}
.svc-lens__title { font-family: var(--ff-title); font-size: 1.3rem; font-weight: 800; color: var(--white); margin-bottom: 4px; }
.svc-lens__sub {
  font-size: .74rem; font-weight: 700; font-family: var(--ff-title);
  text-transform: uppercase; letter-spacing: .1em; color: var(--blue-light); margin-bottom: 18px;
}
.svc-lens__list { display: flex; flex-direction: column; gap: 9px; }
.svc-lens__list li { display: flex; align-items: flex-start; gap: 9px; font-size: .9rem; color: var(--text-soft); line-height: 1.55; }
.svc-lens__list li::before { content: '\2713'; color: var(--blue-light); font-weight: 700; flex-shrink: 0; }

/* --- El lente (visual de cámara) --- */
.lens__ring { position: absolute; border-radius: 50%; }
.lens__ring--1 { inset: 12%; border: 1px dashed rgba(96, 165, 250, .5); }
.lens__ring--2 { inset: 2%;  border: 1px solid rgba(96, 165, 250, .22); }
.lens__ring--3 { inset: -8%; border: 1px solid rgba(96, 165, 250, .1); }

/* Barril metálico con marcas tipo escala de enfoque */
.lens__barrel {
  position: absolute; inset: 4%; border-radius: 50%;
  background: conic-gradient(from 90deg, #283450, #0b1322 18%, #313e5e 38%, #0a1120 60%, #2a3654 82%, #0b1322 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.05),
    inset 0 6px 26px rgba(0,0,0,.7),
    0 0 0 1px rgba(0,0,0,.5),
    0 18px 50px rgba(0,0,0,.5);
}
.lens__barrel::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(147,197,253,.45) 0 0.5deg, transparent 0.5deg 9deg);
  -webkit-mask: radial-gradient(circle, transparent 78%, #000 79%, #000 86%, transparent 87%);
  mask: radial-gradient(circle, transparent 78%, #000 79%, #000 86%, transparent 87%);
}

/* Palas del diafragma (iris) */
.lens__iris {
  position: absolute; inset: 17%; border-radius: 50%;
  background:
    conic-gradient(from 4deg,
      #1c2742 0 16deg, #0b1322 16deg 36deg,
      #1c2742 36deg 52deg, #0b1322 52deg 72deg,
      #1c2742 72deg 88deg, #0b1322 88deg 108deg,
      #1c2742 108deg 124deg, #0b1322 124deg 144deg,
      #1c2742 144deg 160deg, #0b1322 160deg 180deg,
      #1c2742 180deg 196deg, #0b1322 196deg 216deg,
      #1c2742 216deg 232deg, #0b1322 232deg 252deg,
      #1c2742 252deg 268deg, #0b1322 268deg 288deg,
      #1c2742 288deg 304deg, #0b1322 304deg 324deg,
      #1c2742 324deg 340deg, #0b1322 340deg 360deg);
  box-shadow: inset 0 0 44px rgba(0,0,0,.92), inset 0 0 0 1px rgba(96,165,250,.12);
}

/* Vidrio central con reflejo (óptica coated) */
.lens__glass {
  position: absolute; inset: 23%; border-radius: 50%;
  background:
    radial-gradient(circle at 38% 30%, rgba(155,200,255,.72) 0%, rgba(45,85,150,.5) 13%, rgba(9,15,30,.98) 52%),
    radial-gradient(circle at 70% 80%, rgba(140,95,225,.42), transparent 38%),
    radial-gradient(circle at 60% 66%, rgba(56,205,185,.34), transparent 34%);
  box-shadow:
    inset 0 0 52px rgba(0,0,0,.94),
    inset 0 0 0 2px rgba(96,165,250,.34),
    inset 0 0 0 8px rgba(0,0,0,.5),
    0 0 40px rgba(59,130,246,.42);
}
.lens__glass::before {
  content: ''; position: absolute; top: 13%; left: 18%;
  width: 36%; height: 24%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.75), transparent 70%);
  filter: blur(3px);
}

/* Anillo de foco que se contrae al "bloquear" (lo anima el JS) */
.lens__focus {
  position: absolute; inset: 13%; border-radius: 50%;
  border: 2px solid var(--blue-light);
  box-shadow: 0 0 26px var(--blue-glow), inset 0 0 26px rgba(96, 165, 250, .22);
  will-change: transform, opacity;
}

/* Retícula del visor (cruz central) */
.lens__reticle { position: absolute; inset: 30%; pointer-events: none; }
.lens__reticle::before, .lens__reticle::after { content: ''; position: absolute; background: rgba(147, 197, 253, .35); }
.lens__reticle::before { left: 50%; top: -8%; bottom: -8%; width: 1px; transform: translateX(-50%); }
.lens__reticle::after { top: 50%; left: -8%; right: -8%; height: 1px; transform: translateY(-50%); }

/* Destello al bloquear el foco */
.lens__glint {
  position: absolute; inset: 28%; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.95), rgba(96,165,250,.45) 42%, transparent 72%);
  opacity: 0; pointer-events: none; mix-blend-mode: screen; will-change: opacity;
}

/* Indicador REC con punto verde parpadeante (está grabando) */
.lens__rec {
  position: absolute; top: 6%; left: 50%; transform: translateX(-50%);
  z-index: 5;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(5,7,13,.72); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  font-family: var(--ff-title); font-size: .6rem; font-weight: 800;
  letter-spacing: .24em; color: rgba(234,240,251,.88);
}
.lens__rec-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #34d058; box-shadow: 0 0 10px rgba(52,208,88,.95);
  animation: recBlinkGreen 1.2s steps(1, end) infinite;
}
@keyframes recBlinkGreen { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .15; } }

/* Etiqueta inferior tipo cámara */
.lens__label {
  position: absolute; bottom: 6%; left: 50%; transform: translateX(-50%);
  z-index: 5;
  font-family: var(--ff-title); font-size: .58rem; font-weight: 700;
  letter-spacing: .26em; color: rgba(147,197,253,.6);
}

/* --- Readout + progreso del lente (HUD) --- */
.lens__readout-tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ff-title); font-size: .64rem; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase; color: var(--blue-accent);
}
.lens__readout-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue-light); box-shadow: 0 0 10px var(--blue-glow);
  animation: geoPing 1.6s ease-in-out infinite;
}
.lens__readout-name { font-family: var(--ff-display); font-size: clamp(1.1rem, 2.2vw, 1.6rem); font-weight: 500; color: var(--white); }
.lens__progress-item {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--ff-title); font-size: .64rem; font-weight: 700;
  letter-spacing: .12em; color: var(--text-dim); transition: color .3s ease;
}
.lens__progress-item span { width: 18px; height: 2px; background: rgba(16,35,70,.18); border-radius: 2px; transition: background .3s ease, width .3s ease; }
.lens__progress-item.is-active { color: var(--white); }
.lens__progress-item.is-active span { width: 34px; background: var(--blue-light); box-shadow: 0 0 8px var(--blue-glow); }

/* --- Modo cine: solo desktop/tablet con animaciones activas --- */
@media (min-width: 769px) {
  html.anim-ready .lens-stage {
    position: relative;
    height: 100vh; min-height: 600px;
    max-width: var(--w); margin: 0 auto; padding: 0 40px;
    display: grid; grid-template-columns: 0.92fr 1.08fr;
    align-items: center; gap: clamp(24px, 4vw, 64px);
  }
  html.anim-ready .lens {
    display: block; position: relative;
    width: 100%; max-width: 520px; aspect-ratio: 1 / 1; justify-self: center;
  }
  html.anim-ready .svc-lens-wrap {
    position: relative; display: block;
    max-width: none; margin: 0; padding: 0; min-height: 58vh;
  }
  html.anim-ready .svc-lens {
    position: absolute; inset: 0;
    background: none; border: none; backdrop-filter: none; padding: 0;
    display: flex; flex-direction: column; justify-content: center;
    opacity: 0; pointer-events: none;
    will-change: opacity, filter, transform;
  }
  html.anim-ready .svc-lens.is-active { pointer-events: auto; }
  html.anim-ready .svc-lens__icon::before { display: none; }
  html.anim-ready .lens__readout {
    display: inline-flex; flex-direction: column; gap: 6px;
    position: absolute; left: clamp(24px, 5vw, 60px); bottom: clamp(40px, 8vh, 84px); z-index: 6;
  }
  html.anim-ready .lens__progress {
    display: flex; gap: 10px;
    position: absolute; right: clamp(24px, 5vw, 60px); bottom: clamp(40px, 8vh, 84px); z-index: 6;
  }
}

@media (max-width: 768px) {
  .svc-lens-wrap { grid-template-columns: 1fr; padding: 0 22px; gap: 18px; }
}


/* ==========================================================
   ICONOS DE LÍNEA PROFESIONALES (reemplazan los glifos sólidos)
========================================================== */
.svc-lens__icon svg,
.qs-card__icon svg {
  width: 30px; height: 30px;
  color: var(--blue-light);
  display: block;
}
.qs-card:hover .qs-card__icon svg { color: #fff; }

/* Iconos de "Quiénes somos" */
.about__icon-cell svg { width: 32px; height: 32px; color: var(--blue-light); display: block; transition: var(--ease); }
.about__icon-cell:hover svg { transform: scale(1.12); }

/* Iconos de las tarjetas de Piscinas (heredan color del contenedor) */
.pool-feat__icon svg { width: 26px; height: 26px; display: block; }


/* ==========================================================
   PISCINAS — "Otro proyecto entregado" (fuera de la secuencia)
========================================================== */
.pools__other {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center;
  margin-top: 72px;
  padding: 26px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  backdrop-filter: blur(10px);
}
.pools__other-media { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.pools__other-media img {
  width: 100%; height: 360px; object-fit: cover; display: block;
  cursor: zoom-in; transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.pools__other-media:hover img { transform: scale(1.05); }
.pools__other-seal {
  position: absolute; top: 16px; left: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(22, 163, 74, .12);
  border: 1px solid rgba(22, 163, 74, .45);
  color: #15803d;
  font-family: var(--ff-title); font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.pools__other-seal i { color: #16a34a; }
.pools__other-title {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 500;
  color: var(--white); margin: 6px 0 12px; line-height: 1.1;
}
.pools__other-desc { color: var(--text-soft); line-height: 1.7; }

@media (max-width: 768px) {
  .pools__other { grid-template-columns: 1fr; gap: 22px; margin-top: 48px; padding: 16px; }
  .pools__other-media img { height: 240px; }
}
