/* ==========================================================
   SETROF SEGURIDAD — styles.css
   Paleta azul: Navy #0a2540 | Blue #1d4ed8 | Light #60a5fa | BG #eff6ff
   Tipografía: Manrope (títulos) + Inter (cuerpo)
========================================================== */

/* ---- Custom Properties ---- */
:root {
  /* Paleta azul */
  --navy:        #0a2540;
  --navy-soft:   #11335a;
  --blue:        #1d4ed8;
  --blue-dark:   #1e40af;
  --blue-light:  #3b82f6;
  --blue-accent: #60a5fa;
  --blue-bg:     #eff6ff;
  --blue-bg-2:   #dbeafe;
  --blue-alpha:  rgba(29, 78, 216, 0.10);
  --blue-shadow: 0 4px 20px rgba(29, 78, 216, .28);

  /* Neutros */
  --white:       #ffffff;
  --gray-light:  #f5f7fb;
  --gray-mid:    #5b6473;
  --gray-dark:   #1f2937;
  --border:      #e5e9f0;

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

  /* Tipografía */
  --ff-title: 'Manrope', sans-serif;
  --ff-body:  'Inter', sans-serif;

  /* Sombras / radios */
  --sh-sm:  0 2px 10px rgba(10, 37, 64, .06);
  --sh-md:  0 6px 24px rgba(10, 37, 64, .10);
  --sh-lg:  0 12px 40px rgba(10, 37, 64, .14);

  --ease:   all 0.3s ease;
  --ease-f: all 0.18s ease;
  --r:      10px;
  --r-lg:   18px;
  --r-xl:   24px;

  --w: 1200px;
  --gap: 88px;
  --hh: 88px;
}

/* ---- 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.65;
  color: var(--gray-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
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; }

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

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

/* ---- Tipografía compartida ---- */
.section-label {
  display: inline-block;
  font-family: var(--ff-title);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-label--light { color: var(--blue-accent); }

.section-title {
  font-family: var(--ff-title);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.18;
  margin-bottom: 14px;
  letter-spacing: -.01em;
}
.section-title--light { color: var(--white); }
.section-title--inline { margin-bottom: 0; }
.text-accent { color: var(--blue); }
.text-accent-light { color: var(--blue-accent); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-mid);
  max-width: 600px;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header .section-subtitle { margin: 0 auto; }

/* ---- Botones ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--r);
  font-family: var(--ff-title);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: var(--ease);
}
.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--blue-shadow);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(29, 78, 216, .42);
}
.btn--whatsapp {
  background: var(--wa);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37, 211, 102, .30);
}
.btn--whatsapp:hover,
.btn--whatsapp:focus-visible {
  background: var(--wa-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, .42);
}
.btn--full { width: 100%; justify-content: center; }

/* ---- Fade-in ---- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-in--visible { opacity: 1; transform: translateY(0); }


/* ==========================================================
   HEADER
========================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--hh);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.header--scrolled {
  background: rgba(255, 255, 255, .95);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 22px rgba(10, 37, 64, .08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav__logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  transition: transform .3s ease;
}
.nav__logo:hover .nav__logo-img { transform: scale(1.04); }
.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  font-family: var(--ff-title);
  font-size: .88rem;
  font-weight: 600;
  color: var(--gray-dark);
  padding: 9px 14px;
  border-radius: var(--r);
  transition: var(--ease-f);
}
.nav__link:hover,
.nav__link--active {
  color: var(--blue);
  background: var(--blue-bg);
}
.nav__link--cta {
  background: var(--blue);
  color: var(--white) !important;
  margin-left: 12px;
  padding: 11px 22px;
  box-shadow: var(--blue-shadow);
}
.nav__link--cta:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}
.nav__toggle {
  display: none;
  color: var(--navy);
  font-size: 1.4rem;
  padding: 8px;
  border-radius: var(--r);
}


/* ==========================================================
   HERO — diseño rico con anillos, glow, tags y patrones
========================================================== */
.hero {
  position: relative;
  padding: calc(var(--hh) + 70px) 0 90px;
  background:
    linear-gradient(160deg, #f4f8ff 0%, #ffffff 60%, #eef4ff 100%);
  overflow: hidden;
  isolation: isolate;
}

/* Capa de fondo decorativa */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero__grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29, 78, 216, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 78, 216, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 50%, transparent 100%);
  opacity: .9;
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
}
.hero__blob--1 {
  top: -120px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--blue-bg-2) 0%, transparent 70%);
}
.hero__blob--2 {
  bottom: -180px; left: -100px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(96, 165, 250, .35) 0%, transparent 70%);
}

/* Layout principal */
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

/* ----- Texto izquierdo ----- */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-title);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 22px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--blue-bg-2);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(29, 78, 216, .08);
  backdrop-filter: blur(6px);
}
.hero__badge i { color: var(--blue); }

.hero__title {
  font-family: var(--ff-title);
  font-size: clamp(2.4rem, 5.2vw, 3.8rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.08;
  margin-bottom: 22px;
  letter-spacing: -.025em;
}
.hero__title-accent {
  color: var(--blue);
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  font-size: clamp(1rem, 1.55vw, 1.12rem);
  color: var(--gray-mid);
  max-width: 540px;
  margin-bottom: 34px;
  line-height: 1.7;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 38px;
}

/* Trust strip */
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding-top: 28px;
  border-top: 1px solid rgba(10, 37, 64, .08);
}
.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-title);
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
}
.hero__trust li i {
  color: var(--blue);
  font-size: .92rem;
}

/* ----- Visual derecho ----- */
.hero__visual {
  position: relative;
  height: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Anillos concéntricos */
.hero__ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}
.hero__ring--lg {
  width: 580px; height: 580px;
  border: 1.5px dashed rgba(29, 78, 216, .22);
  animation: spinSlow 50s linear infinite;
}
.hero__ring--md {
  width: 440px; height: 440px;
  border: 1.5px solid rgba(29, 78, 216, .14);
}
.hero__ring--sm {
  width: 320px; height: 320px;
  background: linear-gradient(140deg, rgba(219, 234, 254, .9) 0%, rgba(239, 246, 255, .6) 100%);
  box-shadow:
    inset 0 0 60px rgba(255, 255, 255, .8),
    0 30px 60px rgba(29, 78, 216, .14);
}
@keyframes spinSlow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Glow detrás de la cámara */
.hero__glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, .55) 0%, transparent 65%);
  filter: blur(20px);
  z-index: 0;
}

/* Cámara */
.hero__camera {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  height: auto;
  filter: drop-shadow(0 25px 45px rgba(10, 37, 64, .35));
  animation: floatCam 6s ease-in-out infinite;
}
@keyframes floatCam {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(-1deg); }
}

/* Tags flotantes */
.hero__tag {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--white);
  border-radius: 999px;
  font-family: var(--ff-title);
  font-size: .78rem;
  font-weight: 700;
  color: var(--navy);
  box-shadow: 0 10px 30px rgba(10, 37, 64, .12);
  border: 1px solid rgba(29, 78, 216, .08);
  animation: floatTag 5s ease-in-out infinite;
}
.hero__tag i { color: var(--blue); font-size: .82rem; }
.hero__tag--1 { top: 8%;  left: -6%;  animation-delay: 0s;   }
.hero__tag--2 { top: 42%; right: -8%; animation-delay: 1.2s; }
.hero__tag--3 { bottom: 12%; left: 2%; animation-delay: 2.4s; }
@keyframes floatTag {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}


/* ==========================================================
   QUICK SERVICES — fila de tarjetas blancas
========================================================== */
.quick-services {
  padding: 30px 0 60px;
  background: var(--white);
}
.quick-services__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.qs-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 20px;
  text-align: left;
  transition: var(--ease);
}
.qs-card:hover {
  border-color: var(--blue-light);
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}
.qs-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r);
  background: var(--blue-bg);
  color: var(--blue);
  font-size: 1.5rem;
  transition: var(--ease);
}
.qs-card:hover .qs-card__icon {
  background: var(--blue);
  color: var(--white);
}
.qs-card__title {
  font-family: var(--ff-title);
  font-size: .82rem;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
  line-height: 1.3;
}
.qs-card__text {
  font-size: .82rem;
  color: var(--gray-mid);
  line-height: 1.5;
}


/* ==========================================================
   ABOUT
========================================================== */
.about { padding: var(--gap) 0; }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about__para {
  color: var(--gray-mid);
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
.about__para:last-of-type { margin-bottom: 28px; }
.about__para strong { color: var(--navy); 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: 10px;
  padding: 26px 12px;
  background: var(--blue-bg);
  border-radius: var(--r-lg);
  border: 2px solid transparent;
  transition: var(--ease);
}
.about__icon-cell:hover {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: var(--sh-md);
  transform: translateY(-4px);
}
.about__icon-cell i {
  font-size: 1.9rem;
  color: var(--blue);
}
.about__icon-cell span {
  font-family: var(--ff-title);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--navy);
}


/* ==========================================================
   POR QUÉ ELEGIRNOS — Foto + Card azul + Stats
========================================================== */
.why { padding: 30px 0 var(--gap); }
.why__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 0.8fr;
  gap: 0;
  align-items: stretch;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-md);
  min-height: 320px;
}

/* Foto izquierda */
.why__photo {
  background: var(--gray-light);
  min-height: 320px;
}
.why__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card azul central */
.why__card {
  background: var(--blue);
  color: var(--white);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.why__title {
  font-family: var(--ff-title);
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 22px;
  letter-spacing: .02em;
  line-height: 1.2;
}
.why__title span { color: var(--white); display: block; }
.why__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.why__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .94rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .94);
}
.why__list li i {
  color: var(--white);
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Estadísticas derecha */
.why__stats {
  background: var(--blue-dark);
  color: var(--white);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.why__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.why__stat-num {
  font-family: var(--ff-title);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--white);
}
.why__stat-label {
  font-family: var(--ff-title);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .72);
  line-height: 1.4;
}
.why__stat-divider {
  height: 1px;
  background: rgba(255, 255, 255, .18);
  margin: 4px 0;
}


/* ==========================================================
   SECTORES
========================================================== */
.sectors {
  padding: var(--gap) 0;
  background: var(--gray-light);
}
.sectors .section-header { margin-bottom: 40px; }
.sectors__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
}
.sector-card {
  text-align: center;
  padding: 18px 12px;
  border-radius: var(--r-lg);
  transition: var(--ease);
  cursor: default;
}
.sector-card:hover {
  background: var(--blue-bg);
  transform: translateY(-4px);
}
.sector-card__icon {
  width: 70px; height: 70px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--blue-bg);
  display: flex; align-items: center; justify-content: center;
  transition: var(--ease);
}
.sector-card__icon i {
  font-size: 1.9rem;
  color: var(--blue);
  transition: var(--ease);
}
.sector-card:hover .sector-card__icon {
  background: var(--blue);
}
.sector-card:hover .sector-card__icon i { color: var(--white); }
.sector-card__title {
  font-family: var(--ff-title);
  font-size: .78rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: .06em;
}


/* ==========================================================
   SERVICIOS DETALLADOS
========================================================== */
.services { padding: var(--gap) 0; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.svc-card {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 38px 30px;
  overflow: hidden;
  transition: var(--ease);
}
.svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.svc-card:hover {
  border-color: transparent;
  box-shadow: var(--sh-lg);
  transform: translateY(-6px);
}
.svc-card:hover::before { transform: scaleX(1); }

.svc-card__num {
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--ff-title);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--blue);
  opacity: .12;
  line-height: 1;
  user-select: none;
}
.svc-card__icon {
  width: 58px; height: 58px;
  border-radius: var(--r);
  background: var(--blue-bg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: var(--ease);
}
.svc-card__icon i { font-size: 1.6rem; color: var(--blue); transition: var(--ease); }
.svc-card:hover .svc-card__icon { background: var(--blue); }
.svc-card:hover .svc-card__icon i { color: var(--white); }

.svc-card__title {
  font-family: var(--ff-title);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}
.svc-card__sub {
  font-size: .76rem;
  font-weight: 700;
  font-family: var(--ff-title);
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--blue);
  margin-bottom: 16px;
}
.svc-card__list { display: flex; flex-direction: column; gap: 8px; }
.svc-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .88rem;
  color: var(--gray-mid);
  line-height: 1.55;
}
.svc-card__list li::before {
  content: '\2713';
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
}


/* ==========================================================
   GALERÍA
========================================================== */
.gallery { padding: var(--gap) 0; background: var(--gray-light); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
}
.gallery__cell {
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .3s ease;
}
.gallery__cell:hover { transform: scale(1.025); }
.gallery__cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.gallery__ph {
  width: 100%; height: 100%;
  background: var(--white);
  border: 2px dashed #c0d0e8;
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #94a3b8;
  transition: var(--ease);
}
.gallery__ph:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-bg);
}
.gallery__ph i { font-size: 2.2rem; }
.gallery__ph span {
  font-family: var(--ff-title);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}


/* ==========================================================
   PISCINAS — sección destacada
========================================================== */
.pools {
  position: relative;
  padding: var(--gap) 0;
  background:
    linear-gradient(135deg, var(--navy) 0%, var(--blue-dark) 100%);
  color: var(--white);
  overflow: hidden;
}
.pools::before {
  content: '';
  position: absolute;
  top: -150px; right: -150px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, .18) 0%, transparent 70%);
  pointer-events: none;
}
.pools::after {
  content: '';
  position: absolute;
  bottom: -200px; left: -150px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, .12) 0%, transparent 70%);
  pointer-events: none;
}
.pools__hero {
  position: relative;
  text-align: center;
  margin-bottom: 56px;
  z-index: 1;
}
.pools__subtitle {
  margin: 14px auto 0;
  max-width: 640px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .78);
  line-height: 1.7;
}

.pools__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 44px;
  align-items: start;
}

/* Lista de features */
.pools__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.pool-feat {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  backdrop-filter: blur(8px);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  transition: var(--ease);
}
.pool-feat:hover {
  background: rgba(255, 255, 255, .10);
  border-color: var(--blue-accent);
  transform: translateY(-4px);
}
.pool-feat__icon {
  width: 44px; height: 44px;
  border-radius: var(--r);
  background: rgba(96, 165, 250, .18);
  color: var(--blue-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.pool-feat__title {
  font-family: var(--ff-title);
  font-size: .95rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.3;
}
.pool-feat__text {
  font-size: .82rem;
  color: rgba(255, 255, 255, .72);
  line-height: 1.55;
}

/* Galería de piscinas */
.pools__gallery {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 240px;
  gap: 14px;
  height: 100%;
}
.pools__gallery-cell {
  border-radius: var(--r-lg);
  overflow: hidden;
}
.pools__gallery-cell--lg {
  grid-column: 1 / -1;
}
.pools__ph {
  width: 100%; height: 100%;
  min-height: 160px;
  background: rgba(255, 255, 255, .05);
  border: 2px dashed rgba(255, 255, 255, .25);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, .55);
  transition: var(--ease);
}
.pools__ph:hover {
  background: rgba(255, 255, 255, .08);
  border-color: var(--blue-accent);
  color: var(--blue-accent);
}
.pools__ph i { font-size: 2rem; }
.pools__ph span {
  font-family: var(--ff-title);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.pools__gallery-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* CTA piscinas */
.pools__cta {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  text-align: center;
  padding: 36px 28px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-xl);
  backdrop-filter: blur(10px);
}
.pools__cta-text {
  font-family: var(--ff-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
}
.pools__cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ==========================================================
   CONTACTO
========================================================== */
.contact { padding: var(--gap) 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.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 24px;
}
.contact__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
  border-radius: var(--r);
  margin-bottom: 12px;
  background: var(--gray-light);
  border: 2px solid transparent;
  transition: var(--ease);
}
.contact__item:hover {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: var(--sh-sm);
  transform: translateX(4px);
}
.contact__item--wa { background: rgba(37, 211, 102, .08); }
.contact__item--wa:hover { border-color: var(--wa); background: rgba(37, 211, 102, .12); }

.contact__item-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact__item-icon--wa { background: var(--wa); }
.contact__item-icon i { font-size: 1.1rem; color: var(--white); }

.contact__item-label {
  display: block;
  font-family: var(--ff-title);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gray-mid);
}
.contact__item-value {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy);
}
.contact__badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: var(--blue-bg);
  border-radius: var(--r);
  font-size: .85rem;
  color: var(--blue-dark);
}
.contact__badge i { flex-shrink: 0; }
.contact__wa-btn { width: 100%; justify-content: center; }

/* Form */
.contact__form-wrap {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 44px 40px;
  box-shadow: var(--sh-sm);
}
.contact__form-title {
  font-family: var(--ff-title);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--blue);
}
.form__group { margin-bottom: 20px; }
.form__label {
  display: block;
  font-family: var(--ff-title);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--gray-dark);
  margin-bottom: 7px;
}
.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-family: var(--ff-body);
  font-size: .92rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
  outline: none;
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}
.form__input::placeholder,
.form__textarea::placeholder { color: #b6c0d0; }
.form__textarea { resize: vertical; min-height: 110px; }
.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='%231d4ed8' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}
.form__note {
  font-size: .8rem;
  color: var(--gray-mid);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}


/* ==========================================================
   FOOTER — barra azul horizontal
========================================================== */
.footer { background: var(--white); }
.footer__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--r-xl);
  padding: 18px 28px;
  margin: 0 auto 24px;
  box-shadow: var(--blue-shadow);
}
.footer__brand { display: flex; align-items: center; }
.footer__logo {
  height: 56px;
  width: auto;
  background: var(--white);
  padding: 8px 14px;
  border-radius: var(--r);
}
.footer__contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 26px;
}
.footer__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .94);
  transition: color .2s ease;
}
.footer__item:hover { color: var(--white); }
.footer__item i {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
}
.footer__social {
  display: flex;
  gap: 10px;
  align-items: center;
}
.footer__social-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  transition: var(--ease);
}
.footer__social-link:hover {
  background: var(--white);
  color: var(--blue);
  transform: translateY(-2px);
}
.footer__copy-bar {
  background: var(--gray-light);
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.footer__copy-bar p {
  font-size: .78rem;
  color: var(--gray-mid);
  text-align: center;
}


/* ==========================================================
   WHATSAPP FLOTANTE
========================================================== */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 998;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--wa);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px 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: .55; }
  100% { transform: scale(1.45); opacity: 0;  }
}
.wa-float:hover {
  background: var(--wa-dark);
  transform: scale(1.10) translateY(-3px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, .60);
}
.wa-float i { font-size: 1.9rem; color: var(--white); }
.wa-float__tip {
  position: absolute;
  right: 74px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--ff-title);
  font-size: .74rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--r);
  white-space: nowrap;
  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(--navy);
}
.wa-float:hover .wa-float__tip { opacity: 1; }


/* ==========================================================
   RESPONSIVE — Tablet (≤ 1024px)
========================================================== */
@media (max-width: 1024px) {
  :root { --gap: 72px; }

  .hero__inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero__text { display: flex; flex-direction: column; align-items: center; }
  .hero__trust { justify-content: center; }
  .hero__ctas { justify-content: center; }
  .hero__visual { min-height: 440px; }
  .hero__ring--lg { width: 480px; height: 480px; }
  .hero__ring--md { width: 380px; height: 380px; }
  .hero__ring--sm { width: 280px; height: 280px; }
  .hero__camera   { max-width: 420px; }

  .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: 40px; }

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

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


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

  /* Header siempre opaco en mobile */
  .header { background: var(--white); border-bottom: 1px solid var(--border); }
  .nav__menu {
    position: fixed;
    top: var(--hh);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 24px;
    gap: 4px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform .32s ease, opacity .32s ease;
    box-shadow: 0 12px 32px rgba(10, 37, 64, .14);
    border-bottom: 1px solid var(--border);
  }
  .nav__menu--open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav__link { padding: 13px 16px; width: 100%; }
  .nav__link--cta { margin-left: 0; margin-top: 10px; text-align: center; justify-content: center; }
  .nav__toggle { display: flex; }
  .nav__logo-img { height: 50px; }

  /* Hero */
  .hero { padding: calc(var(--hh) + 40px) 0 70px; }
  .hero__title { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero__visual { min-height: 380px; }
  .hero__ring--lg { width: 360px; height: 360px; }
  .hero__ring--md { width: 290px; height: 290px; }
  .hero__ring--sm { width: 220px; height: 220px; }
  .hero__glow     { width: 200px; height: 200px; }
  .hero__camera   { max-width: 300px; }
  .hero__ctas { flex-direction: column; width: 100%; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .hero__tag { font-size: .68rem; padding: 8px 12px; }
  .hero__tag--1 { top: 4%;  left: 4%;  }
  .hero__tag--2 { top: 50%; right: 2%; }
  .hero__tag--3 { bottom: 6%; left: 6%; }
  .hero__trust { gap: 14px; flex-direction: column; align-items: center; }

  /* Quick services */
  .quick-services__grid { grid-template-columns: 1fr 1fr; }

  /* About */
  .about__grid { grid-template-columns: 1fr; gap: 32px; }

  /* Why */
  .why__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .why__photo, .why__card, .why__stats { grid-column: 1 / -1; }

  /* Sectores */
  .sectors__grid { grid-template-columns: repeat(2, 1fr); padding: 24px 16px; }

  /* Servicios */
  .services__grid { grid-template-columns: 1fr; }

  /* Galería */
  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }

  /* Piscinas */
  .pools__features { grid-template-columns: 1fr; }
  .pools__gallery { grid-template-columns: 1fr; grid-template-rows: repeat(3, 200px); 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; }

  /* Contacto */
  .contact__grid { grid-template-columns: 1fr; gap: 36px; }
  .contact__form-wrap { padding: 28px 22px; }

  /* Footer */
  .footer__bar {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
    padding: 20px;
  }
  .footer__brand { justify-content: center; }
  .footer__contacts { flex-direction: column; gap: 12px; }
  .footer__social { justify-content: center; }

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


/* ==========================================================
   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: 190px; }
  .about__icon-grid { grid-template-columns: repeat(2, 1fr); }
  .contact__form-wrap { padding: 24px 16px; }
}


/* ==========================================================
   MODAL LIGHTBOX (PISCINAS)
========================================================== */
.pool-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 37, 64, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(8px);
}

.pool-modal--open {
  opacity: 1;
  pointer-events: all;
}

.pool-modal__close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 3rem;
  color: var(--white);
  line-height: 1;
  z-index: 10;
  transition: transform 0.3s ease;
}
.pool-modal__close:hover { transform: scale(1.1); color: var(--blue-accent); }

.pool-modal__content {
  max-width: 900px;
  width: 100%;
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transform: translateY(30px);
  transition: transform 0.4s ease;
}
.pool-modal--open .pool-modal__content {
  transform: translateY(0);
}

.pool-modal__content img {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  display: block;
}

.pool-modal__info {
  padding: 28px 32px;
  background: var(--white);
}

.pool-modal__info p {
  font-family: var(--ff-title);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 768px) {
  .pool-modal__content { max-width: 100%; }
  .pool-modal__info { padding: 20px; }
  .pool-modal__info p { font-size: .92rem; }
}
