/* Seguridad Los Lagos · web pública. CSS propio, sin dependencias. */
@font-face {
  font-family: "Archivo";
  src: url(/web/fonts/archivo-var.woff2) format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --noche: #071b18;
  --noche-2: #0b2420;
  --mar: #123a35;
  --mar-2: #1d544c;
  --espuma: #7cc3b0;
  --espuma-clara: #b9e2d6;
  --hueso: #f4f2ec;
  --papel: #fbfaf6;
  --arena: #ebe7dc;
  --tinta: #0f1f1c;
  --gris: #4f5d59;
  --gris-claro: #a9bbb5;
  --linea: rgb(18 58 53 / .12);
  --linea-clara: rgb(233 244 240 / .12);
  --senal: #e5531a;
  --senal-btn: #c4430f;
  --senal-btn-h: #d84b13;
  --ambar: #f6c27d;

  --r-s: 10px; --r-m: 18px; --r-l: 28px; --r-full: 999px;
  --sombra: 0 30px 60px -24px rgb(7 27 24 / .35);
  --sombra-s: 0 10px 24px -12px rgb(7 27 24 / .28);
  --ease: cubic-bezier(.2,.7,.2,1);

  --fs-display: clamp(2.6rem, 1.5rem + 4.4vw, 4.6rem);
  --fs-h2: clamp(1.9rem, 1.25rem + 2.6vw, 3.4rem);
  --fs-h3: clamp(1.2rem, 1.1rem + .4vw, 1.45rem);
  --fs-cuerpo: clamp(1rem, .96rem + .2vw, 1.125rem);
  --fs-chico: .875rem;

  --margen: clamp(20px, 5vw, 48px);
  --sec: clamp(72px, 9vw, 148px);
  --cab-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--cab-h) + 12px); }
body {
  margin: 0; background: var(--hueso); color: var(--tinta);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-cuerpo); line-height: 1.6; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--senal); color: #fff; }
:focus-visible { outline: 3px solid var(--senal); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.saltar { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--senal-btn); color: #fff; padding: 10px 16px; border-radius: var(--r-s); text-decoration: none; font-weight: 600; }
.saltar:focus { top: 12px; }

.envoltura { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--margen); }

/* ---------- Tipografía base ---------- */
h2 { font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -.025em; font-stretch: 84%; font-weight: 700; }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.01em; font-weight: 650; }
.etiqueta {
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 650;
  color: var(--mar-2); margin-bottom: 18px; display: flex; align-items: center; gap: 10px;
}
.etiqueta::before { content: ""; width: 22px; height: 2px; background: var(--senal); }
.etiqueta-clara { color: var(--espuma-clara); }
.seccion-bajada { margin-top: 20px; max-width: 60ch; color: var(--gris); font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); line-height: 1.55; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: var(--r-full);
  font: inherit; font-weight: 650; font-size: 1rem; letter-spacing: .005em; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background-color .22s var(--ease), border-color .22s var(--ease);
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-senal { background: var(--senal-btn); color: #fff; box-shadow: 0 12px 28px -12px rgb(196 67 15 / .7); }
.btn-senal:hover { background: var(--senal-btn-h); box-shadow: 0 18px 32px -12px rgb(196 67 15 / .8); }
.btn-claro { background: rgb(244 242 236 / .08); color: #f4f2ec; border-color: rgb(244 242 236 / .32); backdrop-filter: blur(6px); }
.btn-claro:hover { background: rgb(244 242 236 / .16); border-color: rgb(244 242 236 / .6); }
.btn-borde { background: transparent; color: var(--mar); border-color: rgb(18 58 53 / .35); }
.btn-borde:hover { border-color: var(--mar); background: rgb(18 58 53 / .05); }
.btn-chico { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.ico-wa { fill: none; stroke: currentColor; stroke-width: 1.7; }
.ico-wa path:last-child { fill: currentColor; stroke: none; }

/* ---------- Cabecera ---------- */
.cabecera {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--cab-h);
  color: #f4f2ec; transition: background-color .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
}
.cabecera.solida { background: rgb(251 250 246 / .92); color: var(--tinta); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--linea); }
.cabecera-in { height: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--margen); display: flex; align-items: center; gap: 24px; }
.marca { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.marca-emblema { width: 38px; height: 38px; }
.cabecera:not(.solida) .marca-emblema rect { fill: rgb(244 242 236 / .1); }
.marca-texto { display: flex; flex-direction: column; line-height: 1; }
.marca-texto b { font-size: 1.02rem; font-weight: 750; font-stretch: 80%; letter-spacing: .005em; text-transform: uppercase; }
.marca-texto span { font-size: .66rem; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; margin-top: 4px; opacity: .78; }
.nav { display: none; }
.cabecera-acc { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.enlace-portal { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; text-decoration: none; font-weight: 550; font-size: .95rem; border-radius: var(--r-full); }
.enlace-portal svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.enlace-portal span { display: none; }
.enlace-portal:hover { background: rgb(127 127 127 / .12); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: #f4f2ec; background: var(--noche);
  min-height: max(100svh, 760px); display: flex; flex-direction: column; overflow: hidden;
}
.hero-escena { position: absolute; inset: 0; z-index: -1; }
.escena { position: absolute; left: 50%; bottom: 0; height: 58%; width: auto; aspect-ratio: 16 / 9; max-width: none; transform: translateX(-60%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 28%); mask-image: linear-gradient(180deg, transparent 0, #000 28%); }
.hero-escena::before { /* cielo continuo detrás del texto en celular */
  content: ""; position: absolute; inset: 0; background: linear-gradient(#05110f, #0b2723 60%, #1c3f38);
}
.hero-escena::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgb(5 17 15 / .55) 0%, rgb(5 17 15 / 0) 30%), linear-gradient(0deg, rgb(5 17 15 / .55), rgb(5 17 15 / 0) 22%); }
.hero-texto { position: relative; padding-top: calc(var(--cab-h) + 28px); padding-bottom: 40px; }
.sobretitulo { display: flex; align-items: center; gap: 10px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--espuma-clara); }
.punto-senal { width: 8px; height: 8px; border-radius: 50%; background: var(--senal); box-shadow: 0 0 0 4px rgb(229 83 26 / .2); }
.hero h1 {
  margin-top: 18px; font-size: var(--fs-display); line-height: .98; letter-spacing: -.03em;
  font-weight: 720; font-stretch: 78%; max-width: 13ch;
}
.hero-bajada { margin-top: 18px; max-width: 46ch; color: #d6e3df; font-size: clamp(1rem, .95rem + .35vw, 1.22rem); line-height: 1.55; }
.hero-cta { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.hero-cta .btn { width: 100%; }
.en-turno {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; color: #d6e3df;
  padding: 8px 14px 8px 12px; border-radius: var(--r-full); background: rgb(7 27 24 / .55); border: 1px solid var(--linea-clara); backdrop-filter: blur(6px);
}
.en-turno b { color: #fff; font-variant-numeric: tabular-nums; font-weight: 700; }
.en-turno-dot { width: 8px; height: 8px; border-radius: 50%; background: #4fd18b; box-shadow: 0 0 0 3px rgb(79 209 139 / .22); }

/* Escena: ronda (la única animación de la página) */
.pc-onda { fill: var(--senal); opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center; transition: opacity .5s var(--ease), transform .7s var(--ease); }
.pc-base { fill: #0b2420; stroke: #9fc7bd; stroke-width: 2; transition: fill .3s var(--ease), stroke .3s var(--ease); }
.pc-check { fill: none; stroke: #0b2420; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .3s var(--ease); }
.pc.hit .pc-onda { opacity: .28; transform: scale(1); }
.pc.ok .pc-onda { opacity: 0; transform: scale(1.4); }
.pc.hit .pc-base, .pc.ok .pc-base { fill: var(--espuma); stroke: #e8f6f1; }
.pc.hit .pc-base { fill: var(--senal); stroke: #ffd9c7; }
.pc.ok .pc-check, .pc.hit .pc-check { opacity: 1; }
.pc.hit .pc-check { stroke: #fff; }
.guardia { will-change: transform; }

.hud {
  position: absolute; right: var(--margen); top: 36%; width: 236px; display: none;
  padding: 14px 16px; border-radius: var(--r-m); color: #e6f1ed; font-size: .82rem;
  background: rgb(7 27 24 / .72); border: 1px solid var(--linea-clara); backdrop-filter: blur(10px); box-shadow: var(--sombra);
}
.hud-cab { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: .78rem; letter-spacing: .02em; }
.hud-cab em { font-style: normal; font-weight: 450; color: var(--gris-claro); }
.hud-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--senal); }
.hud-lista { margin: 10px 0; display: grid; gap: 7px; }
.hud-lista li { display: flex; align-items: center; gap: 9px; color: #b3c6c0; transition: color .3s var(--ease); }
.hud-lista small { margin-left: auto; font-size: .68rem; letter-spacing: .08em; color: #8aa39b; }
.hud-lista i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #5f8178; flex: none; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.hud-lista li.ok { color: #fff; }
.hud-lista li.ok i { background: var(--espuma); border-color: var(--espuma); box-shadow: inset 0 0 0 3px rgb(7 27 24 / .7); }
.hud-pie { padding-top: 9px; border-top: 1px solid var(--linea-clara); color: var(--gris-claro); font-size: .76rem; }
.hud-n { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-pie { position: absolute; right: var(--margen); bottom: 18px; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: rgb(214 227 223 / .7); display: none; }

/* ---------- Cifras ---------- */
.cifras { background: var(--noche); color: #f4f2ec; border-top: 1px solid var(--linea-clara); }
.cifras-lista { display: grid; grid-template-columns: 1fr 1fr; }
.cifras-lista li { padding: 26px 0 28px; display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid var(--linea-clara); }
.cifras-lista li:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--linea-clara); }
.cifras-lista li:nth-child(even) { padding-left: 20px; }
.cifras-lista li:nth-last-child(-n+2) { border-bottom: 0; }
.cifras-lista b { font-size: clamp(2.6rem, 2rem + 3vw, 4.6rem); line-height: 1; font-weight: 760; font-stretch: 68%; letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.cifras-lista span { font-size: .88rem; color: var(--gris-claro); }

/* ---------- Secciones ---------- */
.seccion { padding-block: var(--sec); }
.seccion-cab { max-width: 820px; margin-bottom: clamp(40px, 5vw, 72px); }
.seccion-oscura { background: var(--mar); color: #f4f2ec; position: relative; overflow: hidden; }
.seccion-oscura .seccion-bajada { color: #c9dbd5; }
.seccion-arena { background: var(--arena); }

/* ---------- Servicios ---------- */
.servicios { display: grid; gap: 14px; }
.serv {
  position: relative; background: var(--papel); border: 1px solid var(--linea); border-radius: var(--r-l);
  padding: 28px 24px 26px; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.serv:hover { transform: translateY(-3px); box-shadow: var(--sombra-s); }
.serv-num { position: absolute; top: 26px; right: 26px; font-size: .78rem; font-weight: 600; letter-spacing: .1em; color: #7d8b87; font-variant-numeric: tabular-nums; }
.serv-ico { width: 40px; height: 40px; fill: none; stroke: var(--mar-2); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.serv h3 { margin-bottom: 10px; }
.serv p { color: var(--gris); font-size: 1rem; }
.lista-check { margin-top: 18px; display: grid; gap: 9px; padding-top: 18px; border-top: 1px solid var(--linea); }
.lista-check li { position: relative; padding-left: 26px; font-size: .95rem; line-height: 1.45; }
.lista-check li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 12px; height: 7px; border-left: 2px solid var(--senal); border-bottom: 2px solid var(--senal); transform: rotate(-45deg); }
.serv-destacado { background: var(--mar); color: #f4f2ec; border-color: transparent; overflow: hidden; }
.serv-destacado::after { /* jaula en planta, sutil */
  content: ""; position: absolute; right: -150px; top: -150px; width: 300px; height: 300px; border-radius: 50%;
  border: 1.5px solid rgb(124 195 176 / .22); box-shadow: 0 0 0 26px rgb(124 195 176 / .05), 0 0 0 27.5px rgb(124 195 176 / .16); pointer-events: none;
}
.serv-destacado p { color: #cfe0da; }
.serv-destacado .serv-ico { stroke: var(--espuma); }
.serv-destacado .serv-num { color: var(--espuma-clara); }
.serv-destacado .lista-check { border-color: var(--linea-clara); }

.evento-banda {
  margin-top: 14px; display: grid; gap: 20px; align-items: center;
  padding: 26px 24px; border-radius: var(--r-l); background: var(--arena); border: 1px solid var(--linea);
}
.evento-banda p { color: var(--gris); margin-top: 8px; max-width: 62ch; }
.evento-dias { display: flex; align-items: center; gap: 12px; }
.evento-dias b { font-size: 4rem; line-height: .85; font-weight: 780; font-stretch: 66%; color: var(--senal-btn); letter-spacing: -.03em; }
.evento-dias span { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 650; color: var(--mar); line-height: 1.25; }
.evento-banda .btn { justify-self: start; }

/* ---------- Plataforma ---------- */
.seccion-oscura::before { /* curvas de nivel del fondo marino, muy leves */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(1200px 600px at 85% 10%, rgb(124 195 176 / .10), transparent 60%), radial-gradient(900px 500px at 0% 100%, rgb(7 27 24 / .5), transparent 70%);
}
.seccion-oscura > .envoltura { position: relative; }
.plataforma { display: grid; gap: 40px; align-items: end; }
.dispositivo { margin: 0; }
.dispositivo figcaption { margin-top: 16px; font-size: .85rem; color: var(--gris-claro); display: flex; gap: 10px; justify-content: center; }
.dispositivo figcaption b { color: #f4f2ec; font-weight: 650; }

.telefono { justify-self: center; width: min(300px, 82vw); }
.tel-marco { position: relative; border-radius: 44px; padding: 10px; background: linear-gradient(145deg, #2a3b38, #0c1715); box-shadow: 0 50px 80px -30px rgb(0 0 0 / .6), inset 0 0 0 1.5px rgb(255 255 255 / .08); }
.tel-isla { position: absolute; top: 20px; left: 50%; width: 86px; height: 24px; border-radius: 20px; background: #050b0a; transform: translateX(-50%); z-index: 2; }
.tel-pantalla { border-radius: 35px; background: #f6f5f0; color: var(--tinta); padding: 50px 18px 18px; min-height: 560px; display: flex; flex-direction: column; font-size: .86rem; }
.tel-barra { position: absolute; top: 22px; left: 34px; right: 30px; display: flex; justify-content: space-between; font-size: .72rem; font-weight: 650; color: var(--tinta); }
.tel-sinsenal { display: inline-flex; align-items: center; gap: 5px; color: #9a5a19; }
.tel-sinsenal svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.tel-sitio { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gris); font-weight: 600; }
.tel-titulo { font-size: 1.5rem; font-weight: 720; font-stretch: 82%; letter-spacing: -.02em; margin-top: 2px; }
.tel-progreso { height: 6px; border-radius: 6px; background: #e0e4e1; margin: 12px 0 14px; overflow: hidden; }
.tel-progreso span { display: block; width: 50%; height: 100%; background: var(--mar-2); border-radius: 6px; }
.tel-puntos { display: grid; gap: 8px; }
.tel-puntos li { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid #e6e8e4; font-weight: 600; }
.tel-puntos small { grid-column: 2; font-weight: 450; color: var(--gris); font-size: .74rem; }
.tel-puntos i { grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c4ccc8; }
.tel-puntos li.ok i { background: var(--mar-2); border-color: var(--mar-2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.2 9.6 14.3 15.6 8' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.tel-puntos li.ahora { border-color: var(--senal); box-shadow: 0 0 0 3px rgb(229 83 26 / .14); }
.tel-puntos li.ahora i { border-color: var(--senal); border-style: dashed; }
.tel-puntos li.ahora small { color: #a23a0c; }
.tel-aviso { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #fbf0e2; color: #6e4210; font-size: .76rem; line-height: 1.4; }
.tel-acciones { margin-top: auto; padding-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tel-btn { display: grid; place-items: center; min-height: 48px; border-radius: 14px; background: #e9ece9; font-weight: 650; font-size: .9rem; }
.tel-panico { background: #b8350b; color: #fff; }

.portal { min-width: 0; }
.por-marco { border-radius: 18px; overflow: hidden; background: #0b2420; border: 1px solid var(--linea-clara); box-shadow: 0 50px 80px -30px rgb(0 0 0 / .55); }
.por-barra { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #0e2c27; border-bottom: 1px solid var(--linea-clara); font-size: .72rem; color: #8fb0a6; }
.por-barra i { width: 9px; height: 9px; border-radius: 50%; background: #2c4f48; }
.por-barra span { margin-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.por-cuerpo { display: grid; gap: 12px; padding: 12px; }
.por-mapa { position: relative; border-radius: 12px; overflow: hidden; }
.por-mapa svg { width: 100%; height: auto; }
.por-chip { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: var(--r-full); background: rgb(7 27 24 / .8); font-size: .74rem; color: #e6f1ed; }
.por-chip i { width: 7px; height: 7px; border-radius: 50%; background: #4fd18b; }
.por-datos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.por-kpi { padding: 11px 12px; border-radius: 12px; background: #10302b; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.por-kpi small { font-size: .68rem; color: #9fbcb3; line-height: 1.2; }
.por-kpi b { font-size: 1.55rem; line-height: 1.1; font-weight: 720; font-stretch: 78%; color: #fff; font-variant-numeric: tabular-nums; }
.por-kpi span { font-size: .66rem; color: #86a69c; }
.por-informe { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: #f4f2ec; color: var(--tinta); }
.por-informe svg { width: 26px; height: 26px; fill: none; stroke: var(--senal-btn); stroke-width: 1.7; stroke-linejoin: round; flex: none; }
.por-informe span { display: flex; flex-direction: column; font-size: .74rem; color: var(--gris); }
.por-informe b { font-size: .88rem; color: var(--tinta); }

.funciones { margin-top: clamp(48px, 6vw, 88px); display: grid; gap: 0; border-top: 1px solid var(--linea-clara); }
.funciones li { display: grid; grid-template-columns: 32px 1fr; column-gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--linea-clara); }
.funciones svg { grid-row: span 2; width: 26px; height: 26px; fill: none; stroke: var(--espuma); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.funciones b { font-weight: 650; font-size: 1.05rem; }
.funciones span { color: #c4d6d0; font-size: .95rem; margin-top: 4px; }
.sup-acciones { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.enlace-demo { color: var(--espuma-clara); font-size: .95rem; text-underline-offset: 4px; text-decoration-color: rgb(185 226 214 / .4); min-height: 44px; display: inline-flex; align-items: center; }
.enlace-demo:hover { text-decoration-color: currentColor; }

/* ---------- Ley ---------- */
.ley { display: grid; gap: 48px; }
.ley-sello { margin-top: 24px; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--mar); padding: 10px 16px 10px 12px; border-radius: var(--r-full); background: rgb(18 58 53 / .07); }
.ley-sello svg { width: 22px; height: 22px; fill: none; stroke: var(--mar-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.linea-tiempo { margin-top: 40px; display: grid; gap: 0; position: relative; }
.linea-tiempo li { position: relative; padding: 0 0 22px 30px; display: flex; flex-direction: column; }
.linea-tiempo li::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: -8px; width: 2px; background: var(--linea); }
.linea-tiempo li:last-child::before { display: none; }
.linea-tiempo li::after { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--hueso); border: 2px solid var(--mar-2); }
.linea-tiempo li.hoy::after { background: var(--senal); border-color: var(--senal); box-shadow: 0 0 0 4px rgb(229 83 26 / .18); }
.linea-tiempo time { font-weight: 700; font-stretch: 85%; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.linea-tiempo span { color: var(--gris); font-size: .93rem; line-height: 1.45; max-width: 44ch; }
.ley-items { display: grid; gap: 14px; align-content: start; }
.ley-item { padding: 26px 24px; border-radius: var(--r-l); background: var(--papel); border: 1px solid var(--linea); }
.ley-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--mar); color: #fff; font-weight: 700; font-size: .9rem; margin-bottom: 16px; }
.ley-item p { margin-top: 8px; color: var(--gris); font-size: 1rem; }
.nota { font-size: .82rem; color: #5f6c68; padding-left: 4px; }

/* ---------- Cobertura ---------- */
.cobertura { display: grid; gap: 40px; align-items: center; }
.comunas { margin-top: 32px; border-top: 1px solid var(--linea); }
.comunas li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--linea); }
.comunas b { font-size: 1.2rem; font-weight: 650; font-stretch: 90%; display: flex; align-items: center; gap: 12px; }
.comunas b::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--mar-2); }
.comunas .base b::before { background: var(--senal); box-shadow: 0 0 0 4px rgb(229 83 26 / .18); }
.comunas .consultar b::before { background: transparent; border: 2px dashed #6c7a76; }
.comunas span { font-size: .88rem; color: var(--gris); text-align: right; }
.cob-mapa { margin: 0; }
.mapa { width: 100%; height: auto; max-height: 78vh; margin-inline: auto; }
.m-vecino { fill: #dcd6c8; }
.mapa { --tierra: var(--mar); --borde: #0b2420; }
.m-region { fill: var(--tierra); stroke: var(--borde); stroke-width: .8; stroke-linejoin: round; }
.m-volcan { fill: #e8f3ef; opacity: .55; }
.m-punto { fill: var(--espuma); stroke: var(--mar); stroke-width: 3; }
.m-base { fill: var(--senal); stroke: #fff; stroke-width: 3; }
.m-halo { fill: var(--senal); opacity: .18; }
.m-ciudad { font: 650 19px "Archivo", sans-serif; font-stretch: 88%; fill: #f4f2ec; paint-order: stroke; stroke: var(--mar); stroke-width: 5px; stroke-linejoin: round; }
.m-ciudad-base { font-size: 23px; font-weight: 750; }
.m-ciudad-tenue { fill: #d3e2dd; }
.m-chico { font: 500 13px "Archivo", sans-serif; fill: #a9c7be; letter-spacing: .04em; }
.m-chico-tenue { text-transform: uppercase; letter-spacing: .16em; font-size: 11px; }
.m-consultar { fill: none; stroke: #d3e2dd; stroke-width: 1.6; stroke-dasharray: 5 6; opacity: .75; }
.cob-mapa figcaption { margin-top: 12px; font-size: .78rem; color: #5f6c68; text-align: center; }

/* ---------- Cotizar ---------- */
.cotizar { display: grid; gap: 40px; }
.contacto-directo { margin-top: 32px; display: grid; gap: 10px; }
.contacto-directo a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-m); background: var(--papel); border: 1px solid var(--linea); text-decoration: none; transition: border-color .2s var(--ease), transform .2s var(--ease); word-break: break-word; }
.contacto-directo a:hover { border-color: rgb(18 58 53 / .4); transform: translateY(-1px); }
.contacto-directo svg { width: 26px; height: 26px; flex: none; color: var(--mar-2); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contacto-directo .ico-wa path:last-child { fill: currentColor; stroke: none; }
.contacto-directo span { display: flex; flex-direction: column; font-weight: 600; line-height: 1.3; }
.contacto-directo small { font-weight: 500; font-size: .75rem; color: var(--gris); letter-spacing: .06em; text-transform: uppercase; }

.formulario { display: grid; gap: 16px; padding: 24px 20px; border-radius: var(--r-l); background: var(--papel); border: 1px solid var(--linea); box-shadow: var(--sombra); }
.campo { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.campo label { font-size: .88rem; font-weight: 600; color: var(--tinta); }
.campo label span { color: var(--senal-btn); }
.campo input, .campo select, .campo textarea {
  font: inherit; font-size: 1rem; color: var(--tinta); width: 100%;
  min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #d4d8d3; background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease); appearance: none;
}
.campo select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%231d544c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.campo textarea { resize: vertical; min-height: 110px; }
.campo input::placeholder, .campo textarea::placeholder { color: #87938f; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--mar-2); box-shadow: 0 0 0 4px rgb(29 84 76 / .14); }
.campo [aria-invalid="true"] { border-color: #b8350b; box-shadow: 0 0 0 4px rgb(184 53 11 / .1); }
.form-pie { display: flex; flex-direction: column; gap: 12px; }
.form-pie .btn { width: 100%; }
.form-legal { font-size: .8rem; color: #5f6c68; }
.form-estado { padding: 16px 18px; border-radius: var(--r-m); font-size: .95rem; line-height: 1.5; }
.form-estado.ok { background: #e3f1ec; color: #0f3b33; }
.form-estado.error { background: #fbeee4; color: #6b2d0a; }
.form-estado a { font-weight: 700; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- Trabaje ---------- */
.trabaje { background: var(--noche-2); color: #f4f2ec; padding-block: clamp(56px, 7vw, 96px); }
.trabaje-in { display: grid; gap: 28px; align-items: end; }
.trabaje h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem); }
.trabaje p:not(.etiqueta) { margin-top: 14px; color: #c9dbd5; max-width: 56ch; }
.trabaje-acc { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.enlace-claro { color: var(--espuma-clara); text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Pie ---------- */
.pie { background: var(--noche); color: #c9dbd5; padding: 64px 0 28px; font-size: .95rem; }
.pie-in { display: grid; gap: 36px; }
.marca-texto-clara { color: #f4f2ec; }
.pie-marca p { margin-top: 16px; max-width: 34ch; color: #a9bbb5; }
.pie-col { display: flex; flex-direction: column; gap: 4px; }
.pie-col h2 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 650; color: #8fb0a6; margin-bottom: 8px; font-stretch: 100%; }
.pie-col a, .pie-col span { text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.pie-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.pie-legal { position: relative; margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .8rem; color: #8fa7a0; }

.pie-legal::before { content: ""; position: absolute; top: 0; left: var(--margen); right: var(--margen); border-top: 1px solid var(--linea-clara); }

/* mapa real dentro del portal de ejemplo */
.pm-mar { fill: #0a1f1c; }
.pm-tierra { --tierra: #1b4a43; --borde: #2c6056; }
.pm-halo { fill: var(--senal); opacity: .2; }
.pm-b { fill: var(--senal); stroke: #fff; stroke-width: 1.4; }
.pm-p { fill: var(--espuma); stroke: #0a1f1c; stroke-width: 1.2; }
.pm-ruta { fill: none; stroke: var(--senal); stroke-width: 1; stroke-dasharray: 1.5 3; stroke-linecap: round; }
.por-mapa svg { aspect-ratio: 320 / 220; }

/* ---------- WhatsApp flotante (solo celular) ---------- */
.wa-flotante {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px 0 14px; border-radius: var(--r-full);
  background: #128c4a; color: #fff; text-decoration: none; font-weight: 650; box-shadow: 0 14px 30px -10px rgb(7 27 24 / .55);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.wa-flotante svg { width: 24px; height: 24px; }
.wa-flotante.oculto { opacity: 0; transform: translateY(12px); pointer-events: none; }

/* ---------- Aparición al hacer scroll ---------- */
.js .revelar { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .revelar.visto { opacity: 1; transform: none; }

/* ====================== ≥ 560 ====================== */
@media (min-width: 560px) {
  .hero-cta { flex-direction: row; flex-wrap: wrap; }
  .hero-cta .btn { width: auto; }
  .enlace-portal span { display: inline; }
  .form-pie { flex-direction: row; align-items: center; }
  .form-pie .btn { width: auto; }
  .formulario { grid-template-columns: 1fr 1fr; padding: 32px; }
  .campo-ancho { grid-column: 1 / -1; }
}

/* ====================== ≥ 768 ====================== */
@media (min-width: 768px) {
  .cifras-lista { grid-template-columns: repeat(4, 1fr); }
  .cifras-lista li, .cifras-lista li:nth-child(odd), .cifras-lista li:nth-child(even) { padding: 38px 24px 40px; border-bottom: 0; border-right: 1px solid var(--linea-clara); }
  .cifras-lista li:first-child { padding-left: 0; }
  .cifras-lista li:last-child { border-right: 0; }
  .servicios { grid-template-columns: repeat(2, 1fr); }
  .serv-destacado { grid-column: 1 / -1; }
  .evento-banda { grid-template-columns: auto 1fr auto; gap: 32px; padding: 30px 36px; }
  .funciones { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
  .pie-in { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .hero-pie { display: block; }
  .trabaje-in { grid-template-columns: 1fr auto; }
}

/* ====================== ≥ 1024 ====================== */
@media (min-width: 1024px) {
  :root { --cab-h: 76px; }
  .nav { display: flex; gap: 4px; margin-left: 28px; }
  .nav a { text-decoration: none; font-size: .95rem; font-weight: 500; padding: 8px 12px; border-radius: var(--r-full); opacity: .88; transition: background-color .2s var(--ease), opacity .2s; }
  .nav a:hover { opacity: 1; background: rgb(127 127 127 / .14); }

  .hero { min-height: max(100vh, 760px); justify-content: center; }
  .escena { height: 100%; width: 100%; left: 0; transform: none; -webkit-mask-image: none; mask-image: none; }
  .hero-escena::before { display: none; }
  .hud { display: block; }
  .hero-escena::after { background: linear-gradient(90deg, rgb(5 17 15 / .82) 0%, rgb(5 17 15 / .5) 38%, rgb(5 17 15 / 0) 62%), linear-gradient(0deg, rgb(5 17 15 / .5), rgb(5 17 15 / 0) 24%); }
  .hero-texto { padding-top: calc(var(--cab-h) + 20px); padding-bottom: 120px; }
  .hero-bajada { max-width: 44ch; }

  .servicios { grid-template-columns: repeat(6, 1fr); }
  .serv { grid-column: span 2; padding: 34px 32px 32px; }
  .serv-destacado { grid-column: span 3; grid-row: span 1; }
  .serv:nth-child(2) { grid-column: span 3; }
  .serv-destacado h3 { font-size: 1.7rem; font-stretch: 86%; letter-spacing: -.02em; }

  .plataforma { grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
  .telefono { width: 320px; }
  .por-cuerpo { grid-template-columns: 1.35fr 1fr; padding: 16px; gap: 16px; }
  .por-datos { grid-template-columns: 1fr 1fr; align-content: start; }
  .por-informe { grid-column: 1 / -1; }
  .funciones { grid-template-columns: repeat(3, 1fr); column-gap: 48px; }

  .ley { grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; }
  .ley-cab { position: sticky; top: calc(var(--cab-h) + 32px); }

  .cobertura { grid-template-columns: 5fr 6fr; gap: 80px; }
  .mapa { max-height: 720px; }

  .cotizar { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .formulario { padding: 40px; }
}

@media (min-width: 1024px) and (max-height: 760px) {
  .hud { display: none; }
}

/* celular en horizontal: que los botones entren en la primera pantalla */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 1023px) {
  .hero { min-height: 0; }
  .hero-texto { padding-top: calc(var(--cab-h) + 10px); padding-bottom: 200px; }
  .hero h1 { margin-top: 10px; font-size: 2.3rem; max-width: 22ch; }
  .hero-bajada { margin-top: 10px; max-width: 72ch; font-size: .98rem; }
  .hero-cta { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
  .js .revelar { opacity: 1; transform: none; }
  .btn:hover, .serv:hover { transform: none; }
}
