/* =============================================================
   KC SERVICE · estilos
   1. Tokens  2. Base  3. Utilidades  4. Botones  5. Nav
   6. Hero  7. Confianza  8. Secciones  9. Tarjetas  10. Diagnóstico
   11. Pasos  12. Zona  13. Galería  14. FAQ  15. Contacto/Footer
   16. WhatsApp flotante  17. Animaciones  18. Responsive  19. Reduced motion
   ============================================================= */

/* 1. Tokens */
:root {
  --navy: #061226;
  --navy-2: #0a1b36;
  --navy-3: #0f2647;
  --azul: #1677FF;
  --celeste: #4FC3FF;
  --plata: #C9D3DF;
  --blanco: #ffffff;
  --texto: #dfe7f1;
  --texto-2: #9fb0c6;
  --wa: #25D366;
  --wa-ink: #04260f;
  --alerta: #FFC94D;
  --linea: rgba(79, 195, 255, .16);
  --glow: 0 0 0 1px rgba(79,195,255,.18), 0 10px 40px -10px rgba(22,119,255,.55);
  --radio: 18px;
  --f-display: "Montserrat", "Poppins", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--navy);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--celeste); }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--celeste); outline-offset: 3px; border-radius: 6px; }

/* 3. Utilidades */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 820px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blanco); color: var(--navy); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.ico { width: 22px; height: 22px; flex: none; }
.ico-sm { width: 16px; height: 16px; }
.display {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 1.05;
  color: var(--blanco);
}
.hl {
  color: var(--celeste);
  text-shadow: 0 0 24px rgba(79,195,255,.45);
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 700; font-size: .78rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--celeste);
}
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }

/* 4. Botones */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-family: var(--f-display); font-weight: 800; font-size: .95rem;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  transition: transform .2s ease, box-shadow .25s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  color: var(--blanco);
  background: linear-gradient(180deg, #2a86ff, var(--azul) 55%, #0d5fd6);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 12px 30px -8px rgba(22,119,255,.75);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 16px 40px -8px rgba(22,119,255,.95); }
.btn-ghost { color: var(--blanco); border: 1.5px solid rgba(201,211,223,.35); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--celeste); background: rgba(79,195,255,.08); }
.btn-wa { color: var(--wa-ink); background: var(--wa); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: .8rem; }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: 1.02rem; }
.btn-card {
  min-height: 44px; padding: 0 18px; font-size: .8rem; margin-top: auto;
  color: var(--blanco); border: 1.5px solid rgba(79,195,255,.45); background: rgba(22,119,255,.12);
}
.btn-card:hover { background: var(--azul); border-color: var(--azul); }

/* Brillo que recorre los botones */
.shine::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); pointer-events: none;
  animation: shine 4.5s ease-in-out infinite;
}
.shine:hover::after { animation-duration: 1.1s; }

/* 5. Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6,18,38,.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--linea); background: rgba(6,18,38,.9); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blanco); font-family: var(--f-display); font-weight: 800; letter-spacing: .04em; }
.nav-brand img { width: 44px; height: 44px; filter: drop-shadow(0 0 10px rgba(22,119,255,.6)); }
.nav-brand b { color: var(--celeste); font-weight: 800; }
.nav-links { display: none; gap: 26px; }
.nav-links a { color: var(--plata); text-decoration: none; font-size: .92rem; font-weight: 500; }
.nav-links a:hover { color: var(--blanco); }

/* 6. Hero */
.hero { position: relative; overflow: hidden; padding: 36px 0 56px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-glow {
  position: absolute; inset: -20% -30% auto auto; width: 120vw; height: 120vw; max-width: 1100px; max-height: 1100px;
  background: radial-gradient(closest-side, rgba(22,119,255,.35), rgba(22,119,255,.08) 55%, transparent 72%);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px; z-index: -1;
  background: linear-gradient(90deg, transparent, var(--azul), var(--celeste), var(--azul), transparent);
  opacity: .6;
}
.copo { position: absolute; color: var(--celeste); opacity: .14; animation: flotar 14s ease-in-out infinite; }
.c1 { width: 70px; height: 70px; top: 9%; right: 6%; }
.c2 { width: 38px; height: 38px; top: 42%; left: 4%; animation-delay: -4s; opacity: .1; }
.c3 { width: 110px; height: 110px; bottom: 6%; right: 32%; animation-delay: -8s; opacity: .07; }
.c4 { width: 28px; height: 28px; top: 18%; left: 46%; animation-delay: -2s; opacity: .12; }
.c5 { width: 54px; height: 54px; bottom: 22%; left: 30%; animation-delay: -10s; opacity: .08; }

.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
  font-size: .8rem; font-weight: 600; color: var(--plata);
  border: 1px solid var(--linea); background: rgba(22,119,255,.08);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px rgba(37,211,102,.18); }
.hero h1 { font-size: clamp(2.35rem, 10.5vw, 4.6rem); }
.hero h1 .hl { display: inline-block; }
.lead { margin-top: 16px; font-size: clamp(1.05rem, 3.8vw, 1.25rem); color: var(--texto); max-width: 34ch; }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.hero-phone { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; color: var(--plata); font-size: .95rem; }
.hero-phone .ico { width: 18px; height: 18px; color: var(--celeste); }
.hero-phone a { color: var(--blanco); font-weight: 700; text-decoration: none; }
.hero-phone .sep { color: var(--texto-2); margin: 0 2px; }

.hero-visual { display: grid; place-items: center; order: -1; }
.orbit { position: relative; width: min(50vw, 240px); aspect-ratio: 1; margin: 6px 0; }
.hero-logo {
  position: absolute; inset: 8%; width: 84%; height: 84%;
  border-radius: 50%;
  filter: drop-shadow(0 0 30px rgba(22,119,255,.65));
}
.ring { position: absolute; inset: 0; border-radius: 50%; }
.ring.r1 {
  background: conic-gradient(from 0deg, transparent 0 60%, var(--celeste) 75%, transparent 90%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: girar 7s linear infinite;
}
.ring.r2 { inset: -9%; border: 1px dashed rgba(79,195,255,.22); animation: girar 40s linear infinite reverse; }
.chip-ico {
  position: absolute; display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 16px;
  color: var(--celeste);
  background: linear-gradient(160deg, var(--navy-3), var(--navy-2));
  box-shadow: var(--glow);
  animation: flotar 6s ease-in-out infinite;
}
.chip-ico svg { width: 30px; height: 30px; }
.ch1 { top: -4%; left: -6%; }
.ch2 { top: 6%; right: -10%; animation-delay: -1.5s; }
.ch3 { bottom: 2%; left: -10%; animation-delay: -3s; }
.ch4 { bottom: -6%; right: -2%; animation-delay: -4.5s; }

/* 7. Barra de confianza */
.trust { background: linear-gradient(180deg, var(--navy-2), var(--navy)); border-bottom: 1px solid var(--linea); }
.trust-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 22px; padding-bottom: 22px; }
.trust-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border-radius: 14px;
  font-weight: 600; font-size: .9rem; line-height: 1.3; color: var(--blanco);
  background: rgba(22,119,255,.06); border: 1px solid var(--linea);
}
.trust-list .ico { width: 28px; height: 28px; color: var(--celeste); }

/* 8. Secciones */
.section { padding: 72px 0; position: relative; }
.section-head { margin-bottom: 34px; max-width: 680px; }
.section-head h2 { font-size: clamp(1.85rem, 7.5vw, 3rem); margin-top: 10px; }
.sub { margin-top: 12px; color: var(--texto-2); font-size: 1.04rem; }

/* 9. Tarjetas de equipos */
.cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 22px; border-radius: var(--radio);
  background: linear-gradient(165deg, rgba(15,38,71,.9), rgba(10,27,54,.9));
  border: 1px solid var(--linea);
  transition: transform .25s ease, box-shadow .3s ease, border-color .3s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 80%) var(--my, 0%), rgba(79,195,255,.14), transparent 45%);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: rgba(79,195,255,.4); }
.card-ico {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px;
  color: var(--celeste); background: rgba(22,119,255,.12);
  box-shadow: inset 0 0 0 1px rgba(79,195,255,.25), 0 0 24px -6px rgba(22,119,255,.7);
}
.card-ico svg { width: 34px; height: 34px; }
.card h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.08rem; text-transform: uppercase; color: var(--blanco); letter-spacing: .01em; }
.card p { color: var(--texto-2); font-size: .95rem; margin-bottom: 6px; }

/* 10. Diagnóstico */
.diag-section { background: radial-gradient(900px 500px at 50% 0%, rgba(22,119,255,.14), transparent 70%); }
.diag {
  position: relative; border-radius: 24px; padding: 20px 16px 22px;
  background: linear-gradient(170deg, rgba(15,38,71,.95), rgba(8,22,44,.95));
  border: 1px solid rgba(79,195,255,.28);
  box-shadow: 0 30px 80px -30px rgba(22,119,255,.55), inset 0 1px 0 rgba(255,255,255,.05);
}
.diag-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.diag-progress li {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 600; color: var(--texto-2); text-align: center;
}
.diag-progress span {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  font-family: var(--f-display); font-weight: 800; font-size: .85rem;
  border: 1.5px solid rgba(201,211,223,.25); color: var(--texto-2);
  transition: all .3s ease;
}
.diag-progress li.is-active { color: var(--blanco); }
.diag-progress li.is-active span { border-color: var(--celeste); color: var(--blanco); background: var(--azul); box-shadow: 0 0 18px rgba(22,119,255,.8); }
.diag-progress li.is-done span { border-color: var(--celeste); color: var(--celeste); background: rgba(79,195,255,.1); }
.diag-bar { height: 4px; border-radius: 4px; background: rgba(201,211,223,.12); margin: 14px 0 22px; overflow: hidden; }
.diag-bar i { display: block; height: 100%; width: 25%; border-radius: inherit; background: linear-gradient(90deg, var(--azul), var(--celeste)); transition: width .5s cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 12px var(--celeste); }

.diag-stage { min-height: 300px; }
.diag-step { animation: pasoEntra .45s cubic-bezier(.2,.8,.2,1) both; }
.diag-step h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.25rem, 5vw, 1.6rem); text-transform: uppercase; color: var(--blanco); line-height: 1.15; }
.diag-step h3:focus { outline: none; }
.diag-step .hint { color: var(--texto-2); font-size: .95rem; margin-top: 6px; }
.diag-equipos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.diag-equipo {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 116px; padding: 14px 8px; border-radius: 16px;
  font-weight: 700; font-size: .9rem; line-height: 1.2; text-align: center; color: var(--blanco);
  background: rgba(22,119,255,.07); border: 1.5px solid var(--linea);
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .25s ease;
}
.diag-equipo svg { width: 46px; height: 46px; color: var(--celeste); transition: transform .3s ease; }
.diag-equipo:hover, .diag-equipo:focus-visible { border-color: var(--celeste); background: rgba(22,119,255,.16); box-shadow: var(--glow); transform: translateY(-2px); }
.diag-equipo:hover svg { transform: scale(1.08); }
.diag-equipo[aria-pressed="true"] { border-color: var(--celeste); background: rgba(22,119,255,.22); }

.diag-chosen { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 6px 12px 6px 8px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--celeste); background: rgba(79,195,255,.1); border: 1px solid var(--linea); }
.diag-chosen svg { width: 22px; height: 22px; }
.diag-sintomas { display: grid; gap: 10px; margin-top: 18px; }
.diag-op {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 54px; padding: 12px 16px; border-radius: 14px; text-align: left;
  font-weight: 600; color: var(--blanco);
  background: rgba(255,255,255,.03); border: 1.5px solid rgba(201,211,223,.18);
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.diag-op svg { width: 18px; height: 18px; color: var(--celeste); flex: none; }
.diag-op:hover, .diag-op:focus-visible { border-color: var(--celeste); background: rgba(22,119,255,.12); transform: translateX(3px); }

.diag-field { margin-top: 18px; }
.diag-field label, .diag-field legend { display: block; font-weight: 700; color: var(--blanco); margin-bottom: 8px; font-size: .95rem; }
.diag-field .opt { font-weight: 500; color: var(--texto-2); font-size: .85rem; }
.diag-field input[type="text"] {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px;
  font: inherit; color: var(--blanco); background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(201,211,223,.25);
}
.diag-field input[type="text"]::placeholder { color: #7f91aa; }
.diag-field input[type="text"]:focus { outline: none; border-color: var(--celeste); box-shadow: 0 0 0 4px rgba(79,195,255,.18); }
.diag-field fieldset { border: 0; }
.diag-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.diag-chips label { margin: 0; font-weight: 600; font-size: .88rem; }
.diag-chips input { position: absolute; opacity: 0; pointer-events: none; }
.diag-chips span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid rgba(201,211,223,.25); color: var(--plata); cursor: pointer;
  transition: all .2s ease;
}
.diag-chips input:checked + span { border-color: var(--celeste); background: var(--azul); color: var(--blanco); box-shadow: 0 0 16px rgba(22,119,255,.6); }
.diag-chips input:focus-visible + span { outline: 3px solid var(--celeste); outline-offset: 2px; }

.diag-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 22px; }
.diag-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px; color: var(--plata); font-weight: 600; font-size: .92rem; }
.diag-back svg { width: 18px; height: 18px; }
.diag-back:hover { color: var(--blanco); }

.diag-result-head { display: flex; align-items: center; gap: 12px; }
.diag-result-head .badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; flex: none; color: var(--celeste); background: rgba(22,119,255,.14); box-shadow: var(--glow); }
.diag-result-head .badge svg { width: 32px; height: 32px; }
.diag-resumen { color: var(--texto-2); font-size: .92rem; margin-top: 2px; }
.diag-causas { margin-top: 18px; display: grid; gap: 10px; counter-reset: causa; }
.diag-causas li {
  position: relative; padding: 14px 14px 14px 52px; border-radius: 14px;
  background: rgba(255,255,255,.035); border: 1px solid var(--linea); color: var(--texto);
  animation: pasoEntra .5s cubic-bezier(.2,.8,.2,1) both;
}
.diag-causas li:nth-child(2) { animation-delay: .1s; }
.diag-causas li:nth-child(3) { animation-delay: .2s; }
.diag-causas li::before {
  counter-increment: causa; content: counter(causa);
  position: absolute; left: 14px; top: 13px; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  font-family: var(--f-display); font-weight: 800; font-size: .8rem; color: var(--navy); background: var(--celeste);
}
.diag-aviso, .diag-seguridad { display: flex; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; font-size: .92rem; }
.diag-aviso svg, .diag-seguridad svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.diag-aviso { color: var(--plata); background: rgba(79,195,255,.06); border: 1px dashed rgba(79,195,255,.35); }
.diag-aviso svg { color: var(--celeste); }
.diag-seguridad { color: #ffe9b0; background: rgba(255,201,77,.09); border: 1px solid rgba(255,201,77,.4); }
.diag-seguridad svg { color: var(--alerta); }
.diag-seguridad strong { color: var(--alerta); }
.diag-final { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.diag-final .btn { width: 100%; }
.diag-reset { color: var(--plata); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.diag-reset:hover { color: var(--blanco); }
.diag-noscript { padding: 20px; color: var(--plata); }

/* 11. Pasos */
.steps { display: grid; gap: 14px; counter-reset: paso; }
.step {
  position: relative; padding: 22px 22px 22px 22px; border-radius: var(--radio);
  background: linear-gradient(165deg, rgba(15,38,71,.7), rgba(10,27,54,.7));
  border: 1px solid var(--linea);
}
.step .ico { width: 40px; height: 40px; color: var(--celeste); margin-bottom: 12px; filter: drop-shadow(0 0 10px rgba(22,119,255,.6)); }
.step-n { position: absolute; top: 16px; right: 18px; font-family: var(--f-display); font-weight: 800; font-size: 2.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px rgba(79,195,255,.4); }
.step h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 1.05rem; color: var(--blanco); }
.step p { color: var(--texto-2); font-size: .95rem; margin-top: 6px; }

/* 12. Zona */
.zona-section { background: linear-gradient(180deg, transparent, rgba(10,27,54,.6) 30%, transparent); }
.zona-grid { display: grid; gap: 30px; align-items: center; }
.zona-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.zona-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--blanco); background: rgba(22,119,255,.1); border: 1px solid var(--linea); }
.zona-chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--celeste); box-shadow: 0 0 8px var(--celeste); }
.zona-note { margin-top: 18px; color: var(--texto-2); }
.zona-note a { font-weight: 700; }
.mapa { border-radius: 22px; overflow: hidden; background: linear-gradient(160deg, #0b1f3d, #071428); border: 1px solid var(--linea); box-shadow: var(--glow); }
.mapa svg { width: 100%; height: auto; }
.mapa figcaption { padding: 8px 14px 12px; font-size: .78rem; color: var(--texto-2); text-align: right; }
.map-water { font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: .3em; fill: #4FC3FF; fill-opacity: .45; }
.ruta { fill: none; stroke: var(--celeste); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 8 9; filter: drop-shadow(0 0 6px rgba(79,195,255,.8)); animation: ruta 1.6s linear infinite; }
.ruta2 { stroke-width: 2; stroke-opacity: .55; }
.pin circle { fill: var(--celeste); stroke: var(--navy); stroke-width: 2; }
.pin text { font-family: var(--f-body); font-weight: 700; font-size: 15px; fill: #fff; text-anchor: middle; paint-order: stroke; stroke: var(--navy); stroke-width: 4px; stroke-linejoin: round; }
.pin-main circle { fill: var(--azul); stroke: var(--celeste); stroke-width: 2.5; }
.pin-main text { font-family: var(--f-display); font-weight: 800; font-size: 18px; fill: var(--celeste); }
.pin .pulse { fill: rgba(79,195,255,.25); stroke: none; transform-origin: center; transform-box: fill-box; animation: pulso 2.4s ease-out infinite; }

/* 13. Galería */
.galeria { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g-item { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--linea); background: var(--navy-2); aspect-ratio: 1; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.g-item:hover img { transform: scale(1.04); }
.g-destacada { grid-column: 1 / -1; aspect-ratio: auto; }
.g-destacada img { height: auto; object-fit: contain; }
.g-destacada figcaption { display: none; }
.g-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px;
  font-size: .8rem; font-weight: 700; color: var(--blanco); line-height: 1.25;
  background: linear-gradient(transparent, rgba(6,18,38,.92));
}
.g-ilus {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(22,119,255,.35), transparent 60%),
    repeating-linear-gradient(135deg, rgba(79,195,255,.04) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #0f2a52, #071630);
}
.g-ilus .big { width: 46%; height: 46%; color: var(--celeste); filter: drop-shadow(0 0 16px rgba(79,195,255,.7)); }
.g-ilus .tool { position: absolute; right: 14%; bottom: 26%; width: 22%; height: 22%; color: var(--plata); transform: rotate(-20deg); opacity: .8; }
.g-ilus .mini { position: absolute; width: 18%; height: 18%; top: 10%; left: 10%; color: var(--celeste); opacity: .25; }
.g-nota { margin-top: 14px; font-size: .82rem; color: var(--texto-2); }

/* 14. FAQ */
.faqs { display: grid; gap: 10px; }
.faq { border-radius: 16px; background: rgba(15,38,71,.6); border: 1px solid var(--linea); transition: border-color .25s ease, box-shadow .25s ease; }
.faq[open] { border-color: rgba(79,195,255,.45); box-shadow: var(--glow); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  min-height: 58px; padding: 14px 18px; font-weight: 700; color: var(--blanco);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2.5px solid var(--celeste); border-bottom: 2.5px solid var(--celeste);
  transform: rotate(45deg) translateY(-3px); transition: transform .3s ease;
}
.faq[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq p { padding: 0 18px 18px; color: var(--texto-2); }

/* 15. Contacto y footer */
.cta-box {
  position: relative; overflow: hidden; display: grid; gap: 24px; align-items: center;
  padding: 30px 22px; border-radius: 26px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(79,195,255,.25), transparent 60%),
    linear-gradient(150deg, #0f3570, #0a2147 55%, #071630);
  border: 1px solid rgba(79,195,255,.35);
  box-shadow: 0 30px 80px -30px rgba(22,119,255,.7);
}
.cta-box h2 { font-size: clamp(1.8rem, 7.5vw, 2.8rem); }
.cta-copy > p { margin-top: 12px; color: var(--texto); max-width: 52ch; }
.contact-data { display: grid; gap: 10px; margin-top: 18px; }
.contact-data li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--blanco); }
.contact-data .ico { color: var(--celeste); }
.contact-data a { color: var(--blanco); text-decoration: none; font-size: 1.15rem; font-weight: 800; font-family: var(--f-display); }
.cta-box .btn { width: 100%; }

.footer { padding: 34px 0 110px; border-top: 1px solid var(--linea); background: #040d1c; }
.footer-inner { display: flex; flex-direction: column; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 56px; height: 56px; }
.footer-brand strong { display: block; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; color: var(--blanco); }
.footer-brand span { font-size: .88rem; color: var(--texto-2); }
.footer-legal { font-size: .88rem; color: var(--texto-2); }
.footer-legal .by { font-size: .74rem; opacity: .75; }

/* 16. WhatsApp flotante */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  color: #fff; background: var(--wa);
  box-shadow: 0 10px 30px -6px rgba(37,211,102,.7), 0 0 0 0 rgba(37,211,102,.5);
  animation: latido 2.8s ease-out infinite;
  transition: transform .2s ease;
}
.wa-float svg { width: 34px; height: 34px; }
.wa-float:hover { transform: scale(1.07); }

/* 17. Animaciones */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

@keyframes shine { 0%, 62% { left: -60%; } 100% { left: 130%; } }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes flotar { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(8deg); } }
@keyframes pasoEntra { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes ruta { to { stroke-dashoffset: -34; } }
@keyframes pulso { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes latido { 0% { box-shadow: 0 10px 30px -6px rgba(37,211,102,.7), 0 0 0 0 rgba(37,211,102,.45); } 70%, 100% { box-shadow: 0 10px 30px -6px rgba(37,211,102,.7), 0 0 0 16px rgba(37,211,102,0); } }

/* 18. Responsive */
@media (max-width: 639px) {
  .pin text { font-size: 22px; stroke-width: 5px; }
  .pin-main text { font-size: 26px; }
  .map-water { font-size: 17px; letter-spacing: .2em; }
  .btn-lg { font-size: .92rem; padding: 0 20px; }
}
@media (min-width: 420px) {
  .hero-ctas { flex-direction: row; flex-wrap: wrap; }
  .diag-equipos { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .trust-list { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .galeria { grid-template-columns: repeat(3, 1fr); }
  .diag { padding: 30px 30px 32px; }
  .diag-sintomas { grid-template-columns: 1fr 1fr; }
  .diag-final { flex-direction: row; align-items: center; }
  .diag-final .btn { width: auto; }
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .hero { padding: 70px 0 90px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 40px; }
  .hero-visual { order: 0; }
  .orbit { width: min(36vw, 420px); }
  .chip-ico { width: 68px; height: 68px; border-radius: 20px; }
  .chip-ico svg { width: 38px; height: 38px; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .zona-grid { grid-template-columns: .8fr 1.2fr; gap: 48px; }
  .galeria { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; }
  .g-destacada { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .g-destacada img { height: 100%; object-fit: cover; object-position: top; }
  .section { padding: 96px 0; }
  .diag { max-width: 920px; margin: 0 auto; padding: 36px 40px 40px; }
  .diag-section .section-head { max-width: 920px; margin-left: auto; margin-right: auto; }
  .diag-equipos { grid-template-columns: repeat(4, 1fr); }
  .cta-box { grid-template-columns: 1fr auto; padding: 48px; }
  .cta-box .btn { width: auto; }
  .footer { padding-bottom: 100px; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .wa-float { right: 24px; bottom: 24px; width: 64px; height: 64px; }
}

/* 19. Reduced motion: se apagan loops y movimientos; quedan fundidos suaves */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .copo, .chip-ico, .ring.r1, .ring.r2, .ruta, .pin .pulse, .wa-float, .shine::after { animation: none !important; }
  .shine::after { display: none; }
  .js .reveal { transform: none; transition: opacity .4s ease; }
  .diag-step, .diag-causas li { animation-name: fundido; animation-duration: .3s; }
  .btn:hover, .card:hover, .diag-op:hover { transform: none; }
}
@keyframes fundido { from { opacity: 0; } to { opacity: 1; } }
