/* Cabaña · Tu asesor de seguros — Formosa
   Noche del logo: luna azul, casas y ventanas encendidas. */

:root {
  --noche: #00539C;
  --noche-2: #0066C2;
  --noche-3: #0084E1;
  --azul: #0084E1;
  --celeste: #4DB6F2;
  --luz: #2DC07E;
  --luz-2: #9BE8BF;
  --crema: #F5F1E7;
  --dia: #EAF3FC;
  --tinta: #0A1A2E;
  --gris: #4E5F75;
  --linea: rgba(10, 26, 46, .14);
  --linea-n: rgba(214, 232, 255, .14);
  --display: "Parkinsans", system-ui, sans-serif;
  --serif: "Gelasio", Georgia, serif;
  --mono: "Sometype Mono", ui-monospace, monospace;
  --pad: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --r: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
main > section { scroll-margin-top: 70px; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--tinta);
  background: var(--noche);
  overflow-x: clip;
}
img, video, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.025em; line-height: 1.04; }
h2 { font-size: clamp(34px, 5.4vw, 64px); }
h2 em, h1 em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.m-luna, .m-casa { fill: var(--mk, var(--azul)); }
.m-pane { fill: var(--mp, var(--mk, var(--azul))); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--luz); color: var(--tinta); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--luz); outline-offset: 3px; border-radius: 6px; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; letter-spacing: -.005em;
  border: 0; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn--luz { background: var(--luz); color: var(--tinta); box-shadow: 0 0 0 0 rgba(45, 192, 126, .5), 0 10px 30px -10px rgba(45, 192, 126, .7); }
.btn--luz:hover { transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(45, 192, 126, .16), 0 16px 34px -12px rgba(45, 192, 126, .8); }
.btn--ghost { background: rgba(255, 255, 255, .06); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(214, 232, 255, .35); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 14px;
  padding: 12px var(--pad); padding-top: max(12px, env(safe-area-inset-top));
  color: #fff; transition: background .35s, box-shadow .35s, padding .35s;
}
.nav.is-solid { background: rgba(0, 92, 176, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--linea-n); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 52px; height: auto; --mk: #fff; --mp: var(--luz); }
.brand__name { font-weight: 800; font-size: 19px; letter-spacing: .02em; line-height: 1; }
.brand__name small { display: block; font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--celeste); margin-top: 4px; }
.nav__links { display: none; }
.nav__wa { display: none; }
.estado { display: none; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: rgba(255, 255, 255, .78); white-space: nowrap; }
.estado i { width: 8px; height: 8px; border-radius: 50%; background: #7d8ea6; flex: none; }
.estado.is-open i { background: var(--luz); box-shadow: 0 0 0 4px rgba(45, 192, 126, .2), 0 0 12px var(--luz); }
.estado--inline { display: inline-flex; margin-top: 8px; color: inherit; }
.nav__burger { width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px rgba(214, 232, 255, .25); display: grid; place-content: center; gap: 6px; cursor: pointer; }
.nav__burger span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease); }
.nav.is-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav.is-open .nav__links {
  display: flex; flex-direction: column; position: fixed; inset: 70px 12px auto; padding: 14px;
  background: rgba(0, 86, 166, .98); border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), inset 0 0 0 1px var(--linea-n);
}
.nav.is-open .nav__links a { padding: 14px 12px; text-decoration: none; font-weight: 600; font-size: 19px; border-bottom: 1px solid var(--linea-n); }
.nav.is-open .nav__links .nav__wa-m { margin-top: 10px; border: 0; background: var(--luz); color: var(--tinta); border-radius: 999px; text-align: center; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; color: #fff;
  min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 34px;
  padding: calc(96px + env(safe-area-inset-top)) var(--pad) 40px;
  background:
    radial-gradient(120% 70% at 78% 30%, rgba(0, 132, 225, .28), transparent 60%),
    linear-gradient(180deg, #003E7A 0%, var(--noche) 45%, var(--noche-2) 100%);
  overflow: clip;
}
.hero__sky { position: absolute; inset: 0; z-index: -1; }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__copy { position: relative; z-index: 2; max-width: 640px; }
.kicker { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--celeste); }
.kicker svg { width: 18px; height: 18px; fill: var(--luz); flex: none; }
.hero__title { margin-top: 18px; font-size: clamp(44px, 12vw, 104px); font-weight: 800; letter-spacing: -.03em; line-height: .95; }
.hero__title .fit, .hero__title em { display: block; white-space: nowrap; max-width: 100%; }
.hero__title em { color: var(--luz-2); font-weight: 500; letter-spacing: -.03em; margin-top: .06em; text-shadow: 0 0 40px rgba(45, 192, 126, .35); }
.hero__lead { margin-top: 20px; font-size: clamp(16.5px, 1.6vw, 19px); color: rgba(229, 239, 252, .84); max-width: 54ch; }
.hero__lead strong { color: #fff; font-weight: 600; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__ctas .btn { flex: 1 1 auto; }
.hero__datos { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border-top: 1px solid var(--linea-n); padding-top: 18px; }
.hero__datos li { min-width: 0; }
.hero__datos b { display: block; font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1; }
.hero__datos span { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11.5px; line-height: 1.35; color: rgba(214, 232, 255, .7); }

.noche { margin: 0; position: relative; z-index: 1; }
.noche__art { position: relative; aspect-ratio: 906 / 617; width: min(100%, 760px); margin-inline: auto; }
.noche__ventana {
  position: absolute; left: 16.34%; top: 12.32%; width: 52.54%; height: 77.15%;
  border-radius: 50%; overflow: hidden;
  background: #0d2340 url("media/luna-poster.webp") center / cover;
  box-shadow: 0 0 0 1px rgba(108, 192, 255, .2), 0 0 90px rgba(0, 132, 225, .35), inset 0 0 60px rgba(0, 0, 0, .5);
  transform: translateZ(0);
}
.noche__video { width: 100%; height: 100%; object-fit: cover; }
.noche__ventana::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 40%, transparent 50%, rgba(5, 15, 34, .55) 100%); }
.noche__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.n-luna { filter: drop-shadow(0 0 24px rgba(0, 132, 225, .55)); transform-box: view-box; transform-origin: 307px 308px; }
.n-casa { fill: #2D9BF0; }
.n-cuerpo { fill: #081a35; }
.n-ventana, .n-pane { fill: #10284a; transition: fill .2s; }
.is-lit .n-ventana, .is-lit .n-pane { animation: prender .9s calc(1.5s + var(--d) * .32s) both; }
@keyframes prender {
  0% { fill: #10284a; filter: none; }
  20% { fill: #7FE6B1; }
  28% { fill: #10284a; }
  44% { fill: #FFC562; }
  52% { fill: #36404d; }
  100% { fill: #3FD08E; filter: drop-shadow(0 0 10px rgba(45, 192, 126, .95)); }
}
.noche__ola { position: absolute; left: 20%; right: 0; bottom: 18%; height: 30%; background: radial-gradient(50% 50% at 50% 50%, rgba(45, 192, 126, .22), transparent 70%); filter: blur(10px); opacity: 0; transition: opacity 2s 2.2s; pointer-events: none; }
.is-lit .noche__ola { opacity: 1; }
.noche figcaption { margin-top: 10px; text-align: center; font-family: var(--mono); font-size: 11px; color: rgba(214, 232, 255, .5); }

/* entrada */
.js .n-luna { opacity: 0; transform: rotate(-70deg) scale(.86); }
.js .noche__ventana { opacity: 0; transform: scale(.7); }
.js .n-casas { opacity: 0; transform: translateY(40px); }
.js .hero__copy > * { opacity: 0; transform: translateY(18px); }
.is-ready .n-luna { opacity: 1; transform: none; transition: opacity 1s, transform 1.6s var(--ease); }
.is-ready .noche__ventana { opacity: 1; transform: none; transition: opacity 1.2s .35s, transform 1.4s .35s var(--ease); }
.is-ready .n-casas { opacity: 1; transform: none; transition: opacity .9s .9s, transform 1.1s .9s var(--ease); }
.entro .n-luna, .entro .noche__ventana { transition: transform .15s linear; }
.is-ready .hero__copy > * { opacity: 1; transform: none; transition: opacity .8s calc(var(--i, 0) * .09s + .1s), transform .9s calc(var(--i, 0) * .09s + .1s) var(--ease); }

/* ---------- encender ---------- */
.encender {
  position: relative; color: #fff;
  padding: clamp(72px, 10vw, 130px) var(--pad);
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(0, 132, 225, .18), transparent 70%),
    linear-gradient(180deg, var(--noche-2), #0068C4 60%, #0058A8);
}
.encender__head { max-width: 780px; }
.encender__head h2 em { color: var(--luz-2); }
.encender__head p { margin-top: 16px; color: rgba(229, 239, 252, .78); max-width: 60ch; }

.barrio {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 10px;
  padding-bottom: 26px;
  border-bottom: 2px solid rgba(108, 192, 255, .25);
  position: relative;
}
.casita {
  position: relative; border: 0; background: none; padding: 0; cursor: pointer;
  display: grid; justify-items: center; align-content: start; gap: 0; text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.casita__techo {
  width: 82%; aspect-ratio: 2.4 / 1; display: block;
  background: linear-gradient(180deg, #2D9BF0, #0F74C8);
  clip-path: polygon(50% 0, 100% 100%, 84% 100%, 50% 26%, 16% 100%, 0 100%);
  transition: filter .3s, transform .4s var(--ease);
}
.casita__vent {
  position: relative; width: 82%; margin-top: -2px;
  aspect-ratio: 1.15; border-radius: 4px 4px 10px 10px;
  background: linear-gradient(180deg, #0D3C6E, #0A325C);
  box-shadow: inset 0 0 0 1.5px rgba(108, 192, 255, .22);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 11% 12% 13%;
  transition: box-shadow .4s, background .4s;
}
.casita__vent i { border-radius: 3px; background: #10284a; transition: background .25s; }
.casita__vent svg {
  position: absolute; left: 50%; top: 50%; width: 54%; transform: translate(-50%, -48%);
  fill: none; stroke: rgba(214, 232, 255, .9); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .3s;
}
.casita b { margin-top: 10px; font-weight: 600; font-size: clamp(12.5px, 3.4vw, 15.5px); line-height: 1.2; }
.casita:hover .casita__techo { transform: translateY(-3px); }
.casita:hover .casita__vent { box-shadow: inset 0 0 0 1.5px rgba(45, 192, 126, .5); }
.casita[aria-pressed="true"] .casita__vent { background: linear-gradient(180deg, #0f2e22, #0a2018); box-shadow: inset 0 0 0 1.5px rgba(45, 192, 126, .7), 0 0 50px -6px rgba(45, 192, 126, .65); }
.casita[aria-pressed="true"] .casita__vent i { background: #3FD08E; animation: titila .6s both; }
.casita[aria-pressed="true"] .casita__vent i:nth-child(2) { animation-delay: .05s; }
.casita[aria-pressed="true"] .casita__vent i:nth-child(3) { animation-delay: .11s; }
.casita[aria-pressed="true"] .casita__vent i:nth-child(4) { animation-delay: .16s; }
.casita[aria-pressed="true"] .casita__vent svg { stroke: #2b1d05; stroke-width: 2.8; }
.casita[aria-pressed="true"] b { color: var(--luz-2); }
.casita[aria-pressed="true"] .casita__techo { filter: brightness(1.15) drop-shadow(0 -4px 16px rgba(45, 192, 126, .25)); }
@keyframes titila { 0% { background: #10284a; } 25% { background: #7FE6B1; } 40% { background: #3a3a35; } 100% { background: #3FD08E; } }

.pedido { margin-top: 36px; display: grid; gap: 22px; align-items: start; }
.pedido__fichas { display: grid; gap: 14px; min-width: 0; }
.pedido__vacio { padding: 22px; border-radius: var(--r); border: 1.5px dashed rgba(214, 232, 255, .25); color: rgba(229, 239, 252, .7); }
.ficha {
  margin: 0; min-width: 0; border: 0; padding: 22px 20px 20px; border-radius: var(--r);
  background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px var(--linea-n), inset 3px 0 0 var(--luz);
  display: grid; gap: 14px; animation: aparece .45s var(--ease) both;
}
@keyframes aparece { from { opacity: 0; transform: translateY(10px); } }
.ficha legend { float: left; width: 100%; padding: 0; font-weight: 700; font-size: 20px; color: var(--luz-2); }
.ficha legend + * { clear: both; }
label { display: grid; gap: 7px; font-size: 14px; font-weight: 500; color: rgba(229, 239, 252, .82); }
input {
  width: 100%; min-height: 50px; padding: 12px 15px; border-radius: 12px;
  font: inherit; font-size: 16px; color: #fff;
  background: rgba(0, 40, 90, .35); border: 1.5px solid rgba(214, 232, 255, .18);
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder { color: rgba(214, 232, 255, .38); }
input:focus { outline: 0; border-color: var(--luz); box-shadow: 0 0 0 4px rgba(45, 192, 126, .15); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips > span { width: 100%; font-size: 14px; font-weight: 500; color: rgba(229, 239, 252, .82); }
.chips button {
  min-height: 42px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .05); border: 1.5px solid rgba(214, 232, 255, .2); font-size: 14.5px;
  transition: background .2s, border-color .2s, color .2s;
}
.chips button:hover { border-color: rgba(45, 192, 126, .6); }
.chips button[aria-pressed="true"] { background: var(--luz); border-color: var(--luz); color: var(--tinta); font-weight: 600; }

.pedido__nota {
  position: relative; padding: 24px 20px; border-radius: 24px;
  background: var(--crema); color: var(--tinta);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .5);
  display: grid; gap: 14px;
}
.pedido__nota label { color: var(--gris); }
.pedido__nota input { color: var(--tinta); background: #fff; border-color: var(--linea); }
.pedido__nota input::placeholder { color: #93a0b1; }
.pedido__nota .chips > span { color: var(--gris); }
.pedido__nota .chips button { background: #fff; border-color: var(--linea); }
.pedido__nota .chips button[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.nota__cabeza { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--linea); }
.nota__cabeza svg { width: 54px; flex: none; --mk: var(--azul); --mp: var(--luz); }
.nota__cabeza b { display: block; font-size: 18px; }
.nota__cabeza span { font-family: var(--mono); font-size: 12px; color: var(--gris); }
.nota__msg {
  margin: 0; max-height: 240px; overflow: auto; white-space: pre-wrap; word-break: break-word;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.55;
  background: #fff; border-radius: 14px; padding: 14px; box-shadow: inset 0 0 0 1px var(--linea);
  color: #33445a;
}
.nota__error { color: #B3261E; font-size: 14px; font-weight: 500; }
.nota__reset { justify-self: center; border: 0; background: none; color: var(--gris); text-decoration: underline; cursor: pointer; font-size: 14px; padding: 6px; }

/* ---------- online ---------- */
.online { background: var(--dia); padding: clamp(72px, 10vw, 120px) var(--pad); }
.online__head { max-width: 760px; }
.online__head h2 em { color: var(--azul); }
.online__head p { margin-top: 16px; color: var(--gris); max-width: 62ch; }
.online__lista { margin-top: 36px; display: grid; gap: 14px; }
.cotizador {
  position: relative; display: grid; gap: 6px; padding: 24px 24px 22px; border-radius: 22px; text-decoration: none;
  background: #fff; box-shadow: 0 1px 0 var(--linea), 0 24px 40px -30px rgba(10, 40, 80, .4);
  overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s;
}
.cotizador::before { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; box-shadow: -18px 14px 0 0 var(--dia); opacity: .9; transition: transform .5s var(--ease); }
.cotizador:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--linea), 0 30px 50px -28px rgba(10, 40, 80, .5); }
.cotizador:hover::before { transform: rotate(-25deg); }
.cotizador__cia { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--azul); }
.cotizador b { font-size: 24px; letter-spacing: -.02em; line-height: 1.1; }
.cotizador__ir { margin-top: 10px; font-weight: 600; font-size: 15px; color: var(--gris); }
.cotizador__ir i { display: inline-block; font-style: normal; transition: transform .3s var(--ease); }
.cotizador:hover .cotizador__ir i { transform: translateX(5px); }
.online__nota { margin-top: 22px; color: var(--gris); }
.online__nota a { color: var(--azul); font-weight: 600; }

/* ---------- seguros ---------- */
.seguros { background: var(--crema); padding: clamp(72px, 10vw, 130px) var(--pad); }
.seguros__title { max-width: 16ch; }
.seguros__title em { color: var(--azul); }
.seguros__grid { margin-top: 44px; display: grid; gap: 16px; }
.manzana {
  position: relative; padding: 26px 24px; border-radius: 24px; background: #fff;
  box-shadow: 0 1px 0 var(--linea), 0 30px 50px -40px rgba(10, 30, 60, .45);
}
.manzana::after { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--azul), var(--celeste)); }
.manzana__num { font-family: var(--mono); font-size: 13px; color: var(--azul); }
.manzana h3 { margin-top: 10px; font-size: 26px; }
.manzana ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0; }
.manzana li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--linea); font-weight: 500; }
.manzana li::before { content: ""; width: 12px; height: 12px; flex: none; border-radius: 2px; background: conic-gradient(from 0deg, var(--luz) 0 25%, #fff 0 27%, var(--luz) 0 50%, #fff 0 52%, var(--luz) 0 75%, #fff 0 77%, var(--luz) 0); box-shadow: 0 0 10px rgba(45, 192, 126, .6); }
.manzana__pie { margin-top: 16px; font-size: 15px; color: var(--gris); }

/* ---------- compañías ---------- */
.companias {
  position: relative; isolation: isolate; color: #fff; overflow: hidden;
  padding: clamp(80px, 11vw, 140px) var(--pad);
  background: radial-gradient(80% 60% at 20% 0%, rgba(0, 132, 225, .3), transparent 60%), linear-gradient(180deg, var(--noche), var(--noche-2));
}
.companias .stars { z-index: -1; }
.companias__head { max-width: 760px; }
.companias__big { font-size: clamp(110px, 22vw, 240px); font-weight: 800; letter-spacing: -.06em; line-height: .8; color: transparent; -webkit-text-stroke: 2px var(--celeste); text-shadow: 0 0 60px rgba(0, 132, 225, .4); }
.companias__head h2 { margin-top: 10px; font-size: clamp(30px, 4.6vw, 54px); }
.companias__head h2 em { color: var(--luz-2); }
.companias__head p:last-child { margin-top: 18px; color: rgba(229, 239, 252, .78); max-width: 58ch; }
.cielo { list-style: none; margin: 46px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: baseline; }
.cielo li { position: relative; padding-left: 16px; font-weight: 500; font-size: clamp(17px, 2vw, 24px); color: rgba(229, 239, 252, .82); transition: color .3s, text-shadow .3s; }
.cielo li:nth-child(3n+1) { font-size: clamp(20px, 2.6vw, 32px); color: #fff; }
.cielo li:nth-child(5n+2) { font-family: var(--serif); font-style: italic; }
.cielo li::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--luz-2); box-shadow: 0 0 10px var(--luz); animation: brilla 3.4s calc(var(--k, 0) * -0.37s) infinite ease-in-out; }
.cielo li:hover { color: var(--luz-2); text-shadow: 0 0 20px rgba(45, 192, 126, .5); }
@keyframes brilla { 0%, 100% { opacity: .35; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.2); } }

/* ---------- quién ---------- */
.quien { background: #fff; padding: clamp(72px, 10vw, 130px) var(--pad); display: grid; gap: 40px; align-items: center; }
.quien__logo { display: grid; justify-items: center; padding: 36px 20px; border-radius: 28px; background: radial-gradient(circle at 50% 40%, #fff, var(--dia)); box-shadow: inset 0 0 0 1px var(--linea); }
.quien__logo svg { width: min(78%, 360px); --mk: var(--azul); --mp: var(--azul); }
.quien__wm { margin-top: 18px; text-align: center; font-weight: 800; font-size: clamp(40px, 6vw, 64px); letter-spacing: .02em; line-height: 1; color: var(--azul); }
.quien__wm small { display: block; margin-top: 8px; font-weight: 500; font-size: .3em; letter-spacing: .06em; color: #0a6fbd; }
.quien__texto h2 em { color: var(--azul); }
.quien__texto blockquote { margin: 22px 0 0; padding-left: 18px; border-left: 3px solid var(--luz); font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.35; color: var(--tinta); }
.quien__texto > p { margin-top: 18px; color: var(--gris); max-width: 62ch; }
.quien__sellos { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.quien__sellos li { padding: 14px 16px; border-radius: 14px; background: var(--dia); }
.quien__sellos b { display: block; font-size: 16px; }
.quien__sellos span { font-family: var(--mono); font-size: 12.5px; color: var(--gris); }
.quien__links { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.quien__links a { color: var(--azul); font-weight: 600; text-underline-offset: 4px; }

/* ---------- siniestro ---------- */
.siniestro {
  position: relative; overflow: hidden; color: #fff;
  padding: clamp(72px, 10vw, 130px) var(--pad);
  background: linear-gradient(160deg, #0A8CEB, #005FB0);
}
.siniestro::before { content: ""; position: absolute; right: -14vw; top: -18vw; width: 52vw; height: 52vw; border-radius: 50%; box-shadow: -7vw 5vw 0 0 rgba(255, 255, 255, .1); pointer-events: none; }
.siniestro__head { position: relative; max-width: 720px; }
.siniestro__head h2 em { color: var(--luz-2); }
.siniestro__head p { margin-top: 14px; color: rgba(255, 255, 255, .85); }
.pasos { position: relative; list-style: none; margin: 40px 0 34px; padding: 0; display: grid; gap: 14px; }
.pasos li { padding: 22px; border-radius: 20px; background: rgba(0, 50, 110, .25); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.pasos li > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--luz); color: var(--tinta); font-weight: 800; }
.pasos h3 { margin-top: 14px; font-size: 21px; }
.pasos p { margin-top: 8px; color: rgba(255, 255, 255, .86); font-size: 15.5px; }

/* ---------- faq ---------- */
.faq { background: var(--crema); padding: clamp(72px, 10vw, 120px) var(--pad); }
.faq h2 em { color: var(--azul); }
.faq__lista { margin-top: 34px; display: grid; gap: 10px; }
details { background: #fff; border-radius: 16px; box-shadow: 0 1px 0 var(--linea); }
summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; position: relative; font-weight: 600; font-size: 17px; line-height: 1.3; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--dia); box-shadow: inset 5px -3px 0 0 var(--azul); transition: transform .4s var(--ease); }
details[open] summary::after { transform: rotate(160deg); }
details p { padding: 0 20px 20px; color: var(--gris); }

/* ---------- contacto ---------- */
.contacto { color: #fff; background: var(--noche); padding: clamp(72px, 10vw, 120px) var(--pad); display: grid; gap: 32px; }
.contacto h2 em { color: var(--luz-2); }
.contacto dl { margin: 30px 0 0; display: grid; gap: 18px; }
.contacto dl > div { padding-bottom: 16px; border-bottom: 1px solid var(--linea-n); }
.contacto dt { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--celeste); }
.contacto dd { margin: 6px 0 0; font-size: 18px; font-weight: 500; overflow-wrap: anywhere; }
.contacto dd a { text-decoration: none; }
.contacto dd a:hover { color: var(--luz-2); }
.contacto__ctas { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.contacto__mapa { min-height: 320px; border-radius: 24px; overflow: hidden; box-shadow: 0 0 0 1px var(--linea-n); }
.contacto__mapa iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: saturate(.85); }

/* ---------- pie ---------- */
.pie { background: #003F7D; color: rgba(229, 239, 252, .72); padding: 54px var(--pad) calc(96px + env(safe-area-inset-bottom)); display: grid; gap: 28px; font-size: 14px; }
.pie__marca { display: flex; align-items: center; gap: 14px; color: #fff; }
.pie__marca svg { width: 70px; --mk: #fff; --mp: var(--luz); }
.pie__marca p { font-weight: 800; font-size: 22px; letter-spacing: .02em; line-height: 1; }
.pie__marca small { display: block; margin-top: 5px; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .05em; color: var(--celeste); }
.pie__ssn { display: grid; gap: 8px; padding: 18px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--linea-n); }
.pie__ssn b { color: #fff; }
.pie__ssn a { color: var(--luz-2); }
.pie__ssn p:last-child { font-size: 12.5px; opacity: .8; }
.pie__credito a { color: #fff; }

.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--luz); color: var(--tinta); box-shadow: 0 12px 30px -8px rgba(45, 192, 126, .7), 0 0 0 6px rgba(45, 192, 126, .14);
  transform: translateY(120px); transition: transform .5s var(--ease);
}
.fab.is-on { transform: none; }
.fab svg { width: 28px; height: 28px; fill: currentColor; }

/* reveals */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * .08s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- breakpoints ---------- */
@media (min-width: 480px) {
  .barrio { gap: 26px 16px; }
  .hero__ctas .btn { flex: 0 0 auto; }
}
@media (min-width: 768px) {
  .estado { display: inline-flex; }
  .online__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seguros__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .quien__sellos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pedido__nota { padding: 28px; }
}
@media (min-width: 900px) {
  .pedido { grid-template-columns: minmax(0, 1fr) minmax(330px, 400px); }
  .pedido__nota { position: sticky; top: 90px; }
  .quien { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; }
  .contacto { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: stretch; }
  .pasos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .nav__links { display: flex; gap: 4px; margin-right: 8px; }
  .nav__links a { padding: 10px 12px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; color: rgba(255, 255, 255, .86); transition: background .2s, color .2s; }
  .nav__links a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .nav__links .nav__wa-m { display: none; }
  .nav__wa { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--luz); color: var(--tinta); font-weight: 600; text-decoration: none; font-size: 15px; }
  .nav__burger { display: none; }
  .estado { margin-right: 6px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; align-content: center; gap: 30px; padding-top: 110px; padding-bottom: 60px; }
  .hero__title { font-size: clamp(64px, 6.6vw, 104px); }
  .noche__art { width: 118%; max-width: none; margin-left: -4%; }
  .barrio { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 18px; }
  .encender__head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; max-width: none; }
  .encender__head p { margin-top: 0; }
}
@media (min-width: 1440px) {
  .hero, .encender, .online, .seguros, .companias, .quien, .siniestro, .faq, .contacto, .pie { padding-left: max(var(--pad), calc((100vw - var(--max)) / 2)); padding-right: max(var(--pad), calc((100vw - var(--max)) / 2)); }
}
@media (max-width: 1099px) {
  .hero { gap: 20px; }
  .noche { order: 2; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .brand__mark { width: 44px; }
  .brand__name { font-size: 17px; }
  .hero { padding-top: calc(84px + env(safe-area-inset-top)); }
  .hero__lead { margin-top: 16px; }
  .hero__ctas { margin-top: 20px; }
  .hero__ctas .btn { width: 100%; }
  .hero__datos { margin-top: 24px; }
}
@media (max-height: 700px) and (max-width: 480px) {
  .hero__lead { font-size: 15.5px; }
  .hero__title { font-size: 40px; }
}

/* calma / qa */
.calma *, .calma *::before, .calma *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
.qa .hero { min-height: 0; }
.qa .reveal { opacity: 1 !important; transform: none !important; }

/* ---------- multicotizador + prendario (05/11) ---------- */
.herramientas { margin-top: 36px; border-radius: 26px; background: #fff; box-shadow: 0 1px 0 var(--linea), 0 30px 60px -36px rgba(10, 40, 80, .45); overflow: hidden; scroll-margin-top: 80px; }
.herramientas__tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--noche); padding: 6px; gap: 6px; }
.herramientas__tabs button { display: grid; gap: 2px; text-align: left; padding: 14px 18px; border: 0; border-radius: 20px; background: transparent; color: #fff; font-weight: 700; font-size: 17px; cursor: pointer; transition: background .25s; }
.herramientas__tabs button small { font-weight: 400; font-size: 13px; opacity: .75; }
.herramientas__tabs button:hover { background: rgba(255, 255, 255, .08); }
.herramientas__tabs button[aria-selected="true"] { background: var(--luz); color: var(--tinta); }
.herramientas__panel { padding: clamp(10px, 2vw, 22px); min-height: 360px; }
.herramientas__panel iframe { width: 100%; border: 0; border-radius: 12px; }
.herramientas__carga { padding: 60px 10px; text-align: center; color: var(--gris); }
.fab { background: #25D366 !important; color: #fff !important; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7), 0 0 0 6px rgba(37, 211, 102, .14) !important; }
.herramientas__previa { display: grid; place-content: center; gap: 10px; min-height: 340px; padding: 30px; text-align: center; border: 2px dashed var(--linea); border-radius: 16px; background: var(--dia); }
.herramientas__previa b { font-size: 22px; }
.herramientas__previa p { color: var(--gris); max-width: 52ch; margin: 0 auto; }

/* 06/11: redes + franja SSN */
.redes { display: flex; gap: 10px; }
.redes a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; transition: background .2s; }
.redes a:hover { background: var(--luz); }
.redes svg { width: 20px; height: 20px; fill: currentColor; }
.pie__leyenda { font-size: 12.5px; opacity: .85; max-width: 90ch; }
.pie__credito { font-size: 13px; }
.pie__ssn { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); align-items: center; padding: 18px 20px; border-radius: 14px; background: #fff; color: #33475F; box-shadow: none; }
.pie__ssn div { display: grid; gap: 2px; font-size: 12.5px; }
.pie__ssn small { font-size: 11.5px; }
.pie__ssn b { color: #0A1A2E; }
.pie__ssn a { color: #0063BC; word-break: break-word; }
.pie__ssn p:last-child { font-size: inherit; opacity: 1; }
.pie__ssnlogo img { width: 180px; height: auto; }
