/* =========================================================
   Fontanería Llambrich · Benidorm
   ========================================================= */
:root {
  --navy-900: #061a33;
  --navy: #0b2545;
  --navy-700: #13315c;
  --blue: #1f6fe0;
  --cyan: #22b8f0;
  --aqua: #6fdcff;
  --ink: #0e1a2b;
  --text: #33445c;
  --muted: #64748b;
  --line: #e3eaf3;
  --bg: #ffffff;
  --soft: #f3f7fc;
  --wa: #1fb855;
  --wa-dark: #169a46;

  --grad: linear-gradient(135deg, var(--blue), var(--cyan));
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(11, 37, 69, .06);
  --shadow: 0 18px 40px -18px rgba(11, 37, 69, .28);
  --shadow-lg: 0 30px 70px -25px rgba(6, 26, 51, .55);

  --font-head: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 999; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(860px, 100% - 32px); }

/* ---------- Botones ---------- */
.btn {
  --bg-btn: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.35em; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  color: #fff; background: var(--bg-btn);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s;
  position: relative; overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateX(120%); }
.btn--primary { background: var(--grad); box-shadow: 0 10px 24px -10px rgba(31, 111, 224, .8); }
.btn--primary:hover { box-shadow: 0 16px 30px -10px rgba(34, 184, 240, .85); }
.btn--wa { background: var(--wa); box-shadow: 0 10px 24px -10px rgba(31, 184, 85, .8); }
.btn--wa:hover { background: var(--wa-dark); }
.btn--lg { padding: 1em 1.7em; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Cabecera ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s, box-shadow .35s, height .35s;
}
/* El fondo desenfocado va en una capa aparte: si backdrop-filter estuviera en .header,
   el menú móvil (position: fixed) quedaría encerrado dentro de la cabecera. */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: rgba(6, 26, 51, .82);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 10px 30px -15px rgba(0,0,0,.5);
  transition: opacity .35s;
}
.header.is-scrolled { --header-h: 64px; }
.header.is-scrolled::before { opacity: 1; }
.nav-open { overflow: hidden; }
.nav-backdrop {
  position: fixed; inset: 0; z-index: -2; background: rgba(6, 26, 51, .55);
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.brand__logo { width: 52px; height: 41px; color: #fff; transition: transform .5s var(--ease); }
.brand:hover .brand__logo { transform: rotate(-6deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-family: var(--font-head); font-size: 1.45rem; font-weight: 800; letter-spacing: .01em; }
.brand__text small { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  color: rgba(255,255,255,.85); font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 8px; position: relative;
  transition: color .2s;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--aqua); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover, .nav a.is-active { color: #fff; }
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav__cta { margin-left: 10px; padding: .6em 1.1em; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: rgba(255,255,255,.08); border-radius: 12px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #cfe0f5;
  background: radial-gradient(1200px 600px at 80% -10%, #164a8a 0%, transparent 60%),
              linear-gradient(160deg, var(--navy-900) 0%, var(--navy) 55%, #0d3566 100%);
  padding: calc(var(--header-h) + 64px) 0 150px;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.hero__glow--1 { width: 480px; height: 480px; background: #1f6fe0; top: -120px; left: -160px; animation: float 14s ease-in-out infinite; }
.hero__glow--2 { width: 380px; height: 380px; background: #22b8f0; bottom: -60px; right: 8%; opacity: .35; animation: float 18s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(40px, 30px) scale(1.08); } }

.bubbles span {
  position: absolute; bottom: -40px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), rgba(111,220,255,.12) 60%, transparent 70%);
  border: 1px solid rgba(111,220,255,.25);
  animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(18px, -50vh); }
  100% { transform: translate(-12px, -105vh); opacity: 0; }
}

.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 7px 14px 7px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; letter-spacing: .02em; color: #dff3ff;
  background: rgba(111,220,255,.1); border: 1px solid rgba(111,220,255,.25);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3ee08a; box-shadow: 0 0 0 0 rgba(62,224,138,.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(62,224,138,0); } 100% { box-shadow: 0 0 0 0 rgba(62,224,138,0); } }

.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.04; margin-bottom: 22px; }
.grad {
  background: linear-gradient(90deg, #6fdcff, #3f9bff, #6fdcff); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }
.hero__lead { font-size: 1.15rem; max-width: 560px; color: #c2d5ee; }
.hero__lead strong { color: #fff; font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 28px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .93rem; color: #dbe8f8; }
.hero__badges li { display: flex; align-items: center; gap: 8px; }
.hero__badges svg { width: 18px; height: 18px; color: #3ee08a; }

/* Escáner animado */
.hero__visual { position: relative; }
.scanner {
  position: relative; aspect-ratio: 1; max-width: 460px; margin-inline: auto;
  border-radius: 28px; padding: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter: blur(6px);
}
.pipes { width: 100%; height: 100%; overflow: visible; }
.grid-lines path { stroke: rgba(111,220,255,.07); stroke-width: 1; fill: none; }
.pipe-base path { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.pipe-flow path {
  fill: none; stroke: url(#gPipe); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 14 18; animation: flow 1.6s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -64; } }
.joints circle { fill: var(--navy); stroke: #6fdcff; stroke-width: 3; }
.leak__halo { animation: halo 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes halo { 50% { opacity: .45; transform: scale(.8); } }
.leak__ring { fill: none; stroke: #6fdcff; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 2.4s ease-out infinite; }
.leak__ring--2 { animation-delay: 1.2s; }
@keyframes ring { from { transform: scale(1); opacity: 1; } to { transform: scale(4.5); opacity: 0; } }
.leak__core { fill: #fff; filter: drop-shadow(0 0 8px #6fdcff); }
.scanline { stroke: #6fdcff; stroke-width: 2; opacity: .55; filter: drop-shadow(0 0 6px #6fdcff); animation: scan 4.5s ease-in-out infinite; }
@keyframes scan { 0%, 100% { transform: translateY(20px); } 50% { transform: translateY(400px); } }

.scanner__tag {
  position: absolute; left: -26px; bottom: 34px;
  display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px;
  background: #fff; color: var(--ink); border-radius: 16px; box-shadow: var(--shadow-lg);
  animation: bob 5s ease-in-out infinite;
}
.scanner__tag strong { display: block; font-family: var(--font-head); font-size: .98rem; }
.scanner__tag small { color: var(--muted); font-size: .8rem; }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(34,184,240,.6); animation: ping 1.8s infinite; }
.scanner__chip {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 9px 14px;
  border-radius: 999px; font-size: .85rem; font-weight: 600; color: #fff;
  background: rgba(13, 53, 102, .85); border: 1px solid rgba(111,220,255,.3); backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
.scanner__chip svg { width: 18px; height: 18px; color: var(--aqua); }
.scanner__chip--a { top: 26px; right: -22px; animation: bob 6s ease-in-out infinite .6s; }
.scanner__chip--b { top: 46%; right: -36px; animation: bob 7s ease-in-out infinite 1.4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.waves { position: absolute; left: -60px; bottom: -1px; width: calc(100% + 120px); max-width: none; height: 110px; }
.wave { animation: wave 9s ease-in-out infinite alternate; transform-origin: center bottom; }
.wave--1 { fill: rgba(255,255,255,.12); }
.wave--2 { fill: #fff; animation-duration: 7s; animation-direction: alternate-reverse; }
@keyframes wave { to { transform: translateX(-40px) scaleY(1.15); } }

/* ---------- Cinta ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: #fff; padding: 16px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker span { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--navy-700); padding: 0 28px; display: flex; align-items: center; gap: 28px; white-space: nowrap; }
.ticker span::after { content: ""; width: 8px; height: 10px; background: var(--grad); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; clip-path: polygon(50% 0, 100% 60%, 85% 100%, 15% 100%, 0 60%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section--soft { background: var(--soft); }
.section--dark {
  background: radial-gradient(900px 500px at 10% 0%, #16457f 0%, transparent 60%), linear-gradient(170deg, var(--navy-900), var(--navy));
  color: #c2d5ee;
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__head--left { text-align: left; margin-inline: 0; }
.section__head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; letter-spacing: -.02em; }
.section__head p:last-child { font-size: 1.08rem; color: var(--muted); }
.section--dark .section__head p:last-child { color: #a9c0de; }
.kicker {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.section--dark .kicker { color: var(--aqua); }

/* Tarjetas de servicio */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card {
  --mx: 50%; --my: 0%;
  position: relative; padding: 30px 26px 26px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  overflow: hidden; isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(34,184,240,.13), transparent 45%);
}
.card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #cfe2f7; }
.card:hover::before { opacity: 1; }
.card:hover::after { transform: scaleX(1); }
.card__icon {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, #e6f1ff, #dff6ff); color: var(--blue);
  transition: transform .5s var(--ease), background .4s, color .4s;
}
.card__icon svg { width: 27px; height: 27px; }
.card:hover .card__icon { background: var(--grad); color: #fff; transform: rotate(-8deg) scale(1.06); }
.card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: .96rem; color: var(--muted); margin: 0; }

/* Fugas */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.tech { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tech li {
  display: flex; gap: 14px; padding: 18px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.tech li:hover { background: rgba(111,220,255,.08); border-color: rgba(111,220,255,.3); transform: translateY(-3px); }
.tech svg { width: 30px; height: 30px; flex: none; color: var(--aqua); margin-top: 2px; }
.tech strong { display: block; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.04rem; margin-bottom: 3px; }
.tech span { font-size: .9rem; line-height: 1.5; color: #a9c0de; }

.signs {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: #fff; color: var(--text); border-radius: 22px; padding: 34px 32px; box-shadow: var(--shadow-lg);
}
.signs h3 { color: var(--ink) !important; font-size: 1.45rem; }
.signs__intro { color: var(--muted); font-size: .97rem; }
.signs__list { counter-reset: s; margin-bottom: 26px; }
.signs__list li { counter-increment: s; position: relative; padding: 10px 0 10px 42px; border-bottom: 1px dashed var(--line); font-size: .97rem; }
.signs__list li:last-child { border-bottom: 0; }
.signs__list li::before {
  content: counter(s); position: absolute; left: 0; top: 9px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font: 600 .82rem var(--font-head); color: #fff; background: var(--grad);
}

.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 80px; }
.steps__line { position: absolute; left: 4%; right: 4%; top: 27px; height: 2px; background: rgba(255,255,255,.1); }
.steps__line span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--aqua)); box-shadow: 0 0 12px var(--aqua); transition: width 1.8s var(--ease); }
.steps.is-in .steps__line span { width: 100%; }
.step { position: relative; text-align: center; padding: 0 8px; }
.step__n {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
  font: 700 1.05rem var(--font-head); color: #fff; background: var(--navy-700); border: 2px solid var(--aqua);
  box-shadow: 0 0 0 6px rgba(111,220,255,.08);
}
.step h4 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { font-size: .93rem; color: #a9c0de; margin: 0; }

/* Obra nueva / reparaciones */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.duo__panel {
  position: relative; border-radius: 24px; padding: 40px 38px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.duo__panel:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.duo__panel::before {
  content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -140px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(34,184,240,.16), transparent 70%);
}
.duo__panel--fix { background: linear-gradient(160deg, var(--navy), var(--navy-700)); color: #c2d5ee; border-color: transparent; }
.duo__panel--fix h3 { color: #fff; }
.duo__badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
  font: 600 .85rem var(--font-head); color: var(--blue); background: #e8f2ff;
}
.duo__panel--fix .duo__badge { color: var(--aqua); background: rgba(111,220,255,.12); }
.duo__badge svg { width: 18px; height: 18px; }
.duo__panel h3 { font-size: 1.6rem; font-weight: 700; }
.ticks li { position: relative; padding: 7px 0 7px 32px; font-size: .97rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 20px; height: 20px; border-radius: 50%;
  background: #e1f6ec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231fb855' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.duo__panel--fix .ticks li::before { background-color: rgba(62,224,138,.15); }

/* Por qué */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why__item { padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.why__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why__ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--aqua); margin-bottom: 18px; }
.why__ic svg { width: 25px; height: 25px; }
.why__item h3 { font-size: 1.18rem; font-weight: 600; margin-bottom: 6px; }
.why__item p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Zonas */
.zones { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.zones h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 700; }
.zones__copy > p { color: var(--muted); font-size: 1.05rem; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pill { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 500; font-size: .93rem; color: var(--navy-700); transition: all .25s; }
.pill:hover { border-color: var(--cyan); color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pill--main { background: var(--grad); color: #fff; border-color: transparent; font-weight: 600; }
.pill--main:hover { color: #fff; }

.map { border-radius: 26px; background: linear-gradient(170deg, #f1f6fc, #e7f0fa); border: 1px solid var(--line); padding: 16px; box-shadow: var(--shadow); }
.map svg { width: 100%; height: auto; }
.map__sea { fill: rgba(34,184,240,.14); }
.map__coast { fill: none; stroke: #8ec9ec; stroke-width: 2.5; stroke-dasharray: 6 6; animation: flow 3s linear infinite; }
.map__ring circle { fill: none; stroke: rgba(31,111,224,.18); stroke-width: 1.5; stroke-dasharray: 4 6; }
.map__ring circle:nth-child(1) { animation: spin 60s linear infinite; transform-origin: 190px 205px; }
@keyframes spin { to { transform: rotate(360deg); } }
.town circle { fill: var(--navy-700); }
.town text { font: 600 13px var(--font-head); fill: var(--navy); }
.town--main circle { fill: var(--blue); }
.town--main text { font-size: 16px; font-weight: 700; }
.town__pulse { fill: none !important; stroke: var(--blue); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 2.4s ease-out infinite; }
.map__label { font: italic 500 13px var(--font-body); fill: #4b8fc0; letter-spacing: .1em; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: #cfe2f7; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; position: relative;
  font: 600 1.06rem var(--font-head); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background: #eef5fd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6fe0' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .35s var(--ease), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(135deg); background-color: #dcecff; }
.faq details > div { padding: 0 24px 4px; color: var(--muted); overflow: hidden; }
.faq details > div p { margin-bottom: 18px; }

/* Contacto */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 700; }
.contact__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.ccard {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; min-width: 0;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.ccard--wide { grid-column: 1 / -1; order: 3; }
a.ccard:hover { background: rgba(111,220,255,.1); border-color: rgba(111,220,255,.35); transform: translateY(-3px); }
.ccard > span:last-child { min-width: 0; }
.ccard small { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #8fb0d6; }
.ccard strong { display: block; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; overflow-wrap: anywhere; line-height: 1.3; }
.ccard__ic { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.ccard__ic--wa { background: var(--wa); }
.ccard__ic svg { width: 22px; height: 22px; }

.form { background: #fff; color: var(--text); border-radius: 24px; padding: 36px; box-shadow: var(--shadow-lg); }
.form h3 { color: var(--ink) !important; font-size: 1.5rem; margin-bottom: 4px; }
.form__hint { font-size: .9rem; color: var(--muted); margin-bottom: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--soft);
  transition: border-color .2s, box-shadow .2s, background .2s; outline: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); background: #fff; box-shadow: 0 0 0 4px rgba(34,184,240,.15); }
.field .is-invalid { border-color: #e5484d; background: #fff5f5; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--muted); margin: 4px 0 20px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.check a { color: var(--blue); text-decoration: underline; }
.form__error { color: #c62828; font-size: .9rem; margin: 12px 0 0; }

/* Pie */
.footer { background: var(--navy-900); color: #8fa8c8; padding: 70px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer h4 { color: #fff; font-size: 1rem; letter-spacing: .04em; margin-bottom: 16px; }
.footer li { margin-bottom: 9px; font-size: .95rem; }
.footer a:hover { color: var(--aqua); }
.footer__claim { margin-top: 18px; max-width: 380px; font-size: .95rem; }
.footer__credit a { color: #fff; font-weight: 600; letter-spacing: .04em; }
.footer__credit a:hover { color: var(--aqua); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }

/* WhatsApp flotante y barra móvil */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 12px 30px -8px rgba(31,184,85,.7);
  transform: scale(0); transition: transform .4s var(--ease);
}
.wa-float.is-visible { transform: scale(1); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.6s ease-out infinite; }
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { background: var(--wa-dark); }
.mobilebar { display: none; }

/* ---------- Animaciones de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 64px; }
  .hero__visual { max-width: 440px; width: 100%; margin-inline: auto; }
  .split, .zones, .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .signs { position: static; }
  .why { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); flex-direction: column; align-items: stretch; gap: 2px;
    padding: calc(var(--header-h) + 16px) 22px 22px; background: var(--navy-900);
    box-shadow: -20px 0 50px rgba(0,0,0,.4); transform: translateX(105%); transition: transform .45s var(--ease);
  }
  .nav.is-open { transform: none; }
  .nav a:not(.btn) { padding: 13px 10px; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.06); border-radius: 0; }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin: 18px 0 0; }
  .burger { z-index: 2; }
  .duo, .steps { grid-template-columns: 1fr 1fr; }
  .steps__line { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .hero { padding: calc(var(--header-h) + 36px) 0 120px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .brand__logo { width: 44px; height: 35px; }
  .brand__text strong { font-size: 1.25rem; }
  .scanner__tag { left: 8px; bottom: 12px; }
  .scanner__chip--a { right: 6px; top: 10px; }
  .scanner__chip--b { right: 6px; }
  .tech, .duo, .steps, .why, .contact__cards, .form__row { grid-template-columns: 1fr; }
  .duo__panel, .form, .signs { padding: 28px 22px; }
  .steps { gap: 30px; margin-top: 56px; }
  .footer__grid { grid-template-columns: 1fr; }
  .wa-float { display: none; }
  .mobilebar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset: auto 0 0; z-index: 60;
    box-shadow: 0 -8px 24px rgba(6,26,51,.2);
  }
  .mobilebar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 60px; font: 600 1.05rem var(--font-head); color: #fff; }
  .mobilebar svg { width: 20px; height: 20px; }
  .mobilebar__call { background: var(--grad); }
  .mobilebar__wa { background: var(--wa); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .bubbles { display: none; }
}

/* ---------- Página legal ---------- */
.legal-page .header { background: var(--navy-900); }
.legal { padding: calc(var(--header-h) + 56px) 0 90px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.4em; }
.legal ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.legal a { color: var(--blue); text-decoration: underline; }
.legal__h1-2 { margin-top: 2.2em; }
.legal__date { margin-top: 2.5em; color: var(--muted); font-size: .9rem; }
.sprite { position: absolute; }

/* ---------- 404 ---------- */
.page-404 { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; color: #c2d5ee; background: linear-gradient(160deg, var(--navy-900), var(--navy) 60%, #0d3566); }
.page-404 img { width: 110px; margin: 0 auto 24px; }
.page-404 h1 { color: #fff; font-size: clamp(2rem, 6vw, 3rem); }
.page-404 a { display: inline-block; margin: 24px 6px 0; padding: 14px 26px; border-radius: 999px; color: #fff; font-weight: 600; background: var(--grad); }
.page-404 a.is-wa { background: var(--wa); }
.legal__back { display: inline-flex; margin-bottom: 26px; color: var(--blue); font-weight: 600; }
