/* CAZADOR — styles.css : la identidad visual (ESTANDAR-UI-UX-APP).
   Paleta propia: verde cazador + ambar de senal sobre noche oliva — jamas azules.
   Vidrio de la casa en 3 capas (gradiente interior + borde 1px + brillo superior). */

@font-face { font-family: "Sora"; src: url("assets/fonts/sora-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Sora"; src: url("assets/fonts/sora-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg0: #080c08; --bg1: #0c110c;
  --ink: #eef3ea; --muted: #9aa894; --faint: #626e5c;
  /* paleta de marca: verde cazador + ambar de senal */
  --verde: #55b06b; --verde-2: #7ed99a; --verde-fondo: #2f7a44; --verde-texto: #6cc583;
  --ambar: #f2b441; --ambar-2: #ffd07a;
  --danger: #e5604f; --danger-2: #f08575;
  --glass: rgba(14, 20, 14, .62); --glass-3: rgba(255, 255, 255, .045);
  --line: rgba(154, 168, 148, .16); --line-soft: rgba(154, 168, 148, .09);
  --r-xl: 24px; --r-lg: 18px; --r-md: 13px; --r-sm: 9px;
  --blur: saturate(1.5) blur(16px);
  --shadow-1: 0 18px 50px rgba(2, 6, 2, .55); --shadow-2: 0 6px 18px rgba(2, 6, 2, .35);
  --glow: 0 0 0 1px rgba(85, 176, 107, .3), 0 10px 30px rgba(85, 176, 107, .14);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg0); color: var(--ink);
  min-height: 100vh; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ---- fondo: auroras + vignette (nunca color plano) ---- */
.aurora { position: fixed; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; }
.aurora.a1 { width: 52vw; height: 52vw; left: -14vw; top: -18vw; background: radial-gradient(circle, rgba(85, 176, 107, .16), transparent 70%); animation: deriva 26s ease-in-out infinite alternate; }
.aurora.a2 { width: 46vw; height: 46vw; right: -12vw; top: 12vh; background: radial-gradient(circle, rgba(242, 180, 65, .10), transparent 70%); animation: deriva 32s ease-in-out infinite alternate-reverse; }
.aurora.a3 { width: 60vw; height: 40vw; left: 20vw; bottom: -22vw; background: radial-gradient(circle, rgba(47, 122, 68, .12), transparent 70%); animation: deriva 38s ease-in-out infinite alternate; }
body::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, transparent 55%, rgba(2, 5, 2, .5) 100%); }
main, header, footer { position: relative; z-index: 1; }

@keyframes deriva { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(4vw, 3vh, 0) scale(1.08); } }

/* ---- el vidrio de la casa (3 capas) ---- */
.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)), var(--glass);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* ---- header sticky de vidrio ---- */
header.top {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)), rgba(8, 12, 8, .72);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--line-soft);
}
header.top .fila { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.marca svg { filter: drop-shadow(0 4px 14px rgba(85, 176, 107, .35)); }
.logo-txt { font-family: "Sora", sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -0.02em;
  background: linear-gradient(92deg, var(--verde-2), var(--ambar)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tag-header { color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

/* ---- tipografia ---- */
h1 { font-family: "Sora", sans-serif; font-weight: 800; font-size: clamp(30px, 5vw, 46px); letter-spacing: -0.03em; line-height: 1.12; }
h1 .acento { background: linear-gradient(92deg, var(--verde-2), var(--ambar)); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-family: "Sora", sans-serif; font-weight: 600; font-size: 22px; letter-spacing: -0.01em; margin-bottom: 6px; }
.sub { color: var(--muted); max-width: 560px; }
label { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin: 0 0 6px 2px; }
.num, .cifra { font-variant-numeric: tabular-nums; }

/* ---- hero ---- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; padding: 46px 0 26px; }
.hero .sub { font-size: 17px; margin-top: 12px; }
.hero-escena { display: flex; justify-content: center; }

/* escena SVG animada (flotar / fluir / latir) */
.e-mapa { animation: eFlotar 7s var(--ease) infinite alternate; }
.e-billete { animation: eFlotar 5s var(--ease) infinite alternate-reverse; }
.e-ruta-tren { stroke-dasharray: 7 9; animation: eFluir 2.6s linear infinite; }
.e-pulso, .e-anillo { animation: eLatir 2.4s ease-in-out infinite; transform-origin: center; }
@keyframes eFlotar { from { transform: translateY(0); } to { transform: translateY(-7px); } }
@keyframes eFluir { from { stroke-dashoffset: 32; } to { stroke-dashoffset: 0; } }
@keyframes eLatir { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.14); } }

/* ---- seccion ---- */
section { padding: 26px 0; }
.kicker { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--verde-texto); margin-bottom: 4px; }

/* ---- formularios ---- */
.campo { margin-bottom: 14px; }
input[type="text"], input[type="search"], input[type="number"], input[type="email"], select {
  width: 100%; padding: 13px 14px; font: inherit; color: var(--ink);
  background: rgba(6, 10, 6, .55); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
input:focus, select:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px rgba(85, 176, 107, .18); }
:focus-visible { outline: 2px solid var(--ambar); outline-offset: 2px; border-radius: 4px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--verde) 50%), linear-gradient(135deg, var(--verde) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }

.grid-caza { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.sufijo { position: relative; }
.sufijo .unidad { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 12px; letter-spacing: .06em; }

/* ---- botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)), var(--glass-3);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
  min-height: 44px;
}
.btn:hover { transform: translateY(-2px); border-color: var(--verde); }
.btn:active { transform: translateY(0); }
.btn.primario { background: linear-gradient(180deg, var(--verde-2), var(--verde-fondo)); border: none; box-shadow: var(--glow); color: #06140a; }
.btn.primario:hover { box-shadow: 0 0 0 1px rgba(85, 176, 107, .5), 0 14px 34px rgba(85, 176, 107, .22); }
.btn.ambar { background: linear-gradient(180deg, var(--ambar-2), #cf9430); border: none; color: #241703; box-shadow: 0 0 0 1px rgba(242, 180, 65, .3), 0 10px 30px rgba(242, 180, 65, .14); }
.btn.chico { padding: 8px 14px; min-height: 40px; font-size: 13px; font-weight: 500; }
.btn.ghost { background: transparent; }
.btn svg { flex: none; }

/* ---- resultados de busqueda ---- */
#resultados { margin-top: 14px; display: grid; gap: 10px; }
.res { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.res .titulo { font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res .precio { font-family: "Sora", sans-serif; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.res .acciones { display: flex; gap: 8px; align-items: center; }
.res.seed .precio { color: var(--ambar); }
.fuente-dato { font-size: 12px; color: var(--faint); margin-top: 8px; }
.fuente-dato a { color: var(--verde-texto); }

/* ---- EL RESULTADO: la brecha ---- */
#resultado { margin-top: 22px; padding: 28px; text-align: center; }
.veredicto { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 999px;
  font-family: "Sora", sans-serif; font-weight: 800; letter-spacing: .18em; font-size: 13px; text-transform: uppercase; margin-bottom: 10px; }
.veredicto.caza { color: var(--verde-2); border: 1px solid rgba(85, 176, 107, .45); background: rgba(85, 176, 107, .1); box-shadow: 0 0 0 4px rgba(85, 176, 107, .07); }
.veredicto.no { color: var(--danger-2); border: 1px solid rgba(229, 96, 79, .45); background: rgba(229, 96, 79, .1); }
.brecha-num { font-family: "Sora", sans-serif; font-weight: 800; font-size: clamp(38px, 7vw, 62px); letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; line-height: 1.05;
  background: linear-gradient(92deg, var(--verde-2), var(--ambar)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brecha-num.neg { background: linear-gradient(92deg, var(--danger-2), var(--ambar)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brecha-pct { color: var(--muted); font-size: 18px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.desglose { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 22px 0 6px; text-align: left; }
.desglose .item { padding: 12px 14px; background: rgba(6, 10, 6, .4); border: 1px solid var(--line-soft); border-radius: var(--r-md); }
.desglose .k { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.desglose .v { font-family: "Sora", sans-serif; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 16px; margin-top: 3px; }
.acciones-resultado { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.nota-franquicia { font-size: 12.5px; color: var(--muted); margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-soft); }
.alternativas { margin-top: 16px; text-align: left; }
.alternativas .alt { display: flex; justify-content: space-between; padding: 9px 14px; border-radius: var(--r-sm); background: rgba(85, 176, 107, .06); border: 1px solid rgba(85, 176, 107, .16); margin-bottom: 7px; font-size: 14px; }
/* el momento firma: el sello de caza estampa al aparecer */
.sello { animation: estampar 420ms var(--ease); }
@keyframes estampar { 0% { transform: scale(1.6) rotate(-6deg); opacity: 0; } 60% { transform: scale(.96) rotate(1deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }

/* vacio ilustrado */
.vacio { text-align: center; padding: 26px 10px 10px; color: var(--muted); }
.vacio svg { opacity: .9; margin-bottom: 8px; }

/* ---- chips de producto seed ---- */
.seeds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass-3);
  color: var(--muted); font-size: 13px; cursor: pointer; transition: border-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease); }
.chip:hover { border-color: var(--ambar); color: var(--ambar-2); transform: translateY(-1px); }

/* ---- cazas guardadas ---- */
#guardadas .caza-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; margin-bottom: 8px; }
.caza-item .ruta { font-size: 12px; color: var(--faint); letter-spacing: .04em; }

/* ---- pricing ---- */
.planes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.plan { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.plan .nombre { font-family: "Sora", sans-serif; font-weight: 800; font-size: 19px; }
.plan .precio-plan { font-family: "Sora", sans-serif; font-weight: 800; font-size: 30px; font-variant-numeric: tabular-nums; }
.plan .precio-plan .mes { font-size: 13px; color: var(--faint); font-weight: 500; }
.plan ul { list-style: none; display: grid; gap: 8px; }
.plan li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.plan li svg { flex: none; margin-top: 2px; }
.plan.destacado { border-color: rgba(242, 180, 65, .4); box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 0 1px rgba(242, 180, 65, .18); }
.badge-actual { align-self: flex-start; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--verde-texto);
  border: 1px solid rgba(85, 176, 107, .35); padding: 4px 10px; border-radius: 999px; }

/* ---- la red Apicus (N1) ---- */
.red { padding: 22px 26px; margin: 26px 0 10px; }
.red .apps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.red a { color: var(--verde-texto); text-decoration: none; border-bottom: 1px dashed rgba(85, 176, 107, .35); }
.red a:hover { color: var(--ambar-2); }

/* ---- toasts ---- */
#toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 10px; width: min(420px, 92vw); }
.toast { padding: 13px 18px; border-radius: var(--r-md); font-size: 14px; display: flex; gap: 10px; align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)), rgba(10, 16, 10, .9);
  border: 1px solid var(--line); backdrop-filter: var(--blur); box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, .05);
  animation: toastIn 220ms var(--ease); }
.toast.ok { border-color: rgba(85, 176, 107, .5); }
.toast.err { border-color: rgba(229, 96, 79, .55); }
@keyframes toastIn { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ---- modal (3 salidas: X + fondo + Escape) ---- */
#modal-raiz { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 20px; }
#modal-raiz.abierto { display: flex; }
#modal-raiz .fondo { position: absolute; inset: 0; background: rgba(3, 6, 3, .7); backdrop-filter: blur(4px); }
.modal { position: relative; width: min(460px, 94vw); max-height: 86vh; overflow: auto; padding: 26px;
  animation: pop 220ms var(--ease); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal .cerrar { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; padding: 0; display: flex; align-items: center; justify-content: center; }

/* ---- auxilio (flotante, oculto sin numero — regla 13) ---- */
.btn-auxilio { position: fixed; right: 18px; bottom: 18px; z-index: 60; border-radius: 999px; padding: 12px 18px;
  background: linear-gradient(180deg, var(--ambar-2), #cf9430); color: #241703; font-weight: 700; border: none;
  box-shadow: 0 10px 30px rgba(242, 180, 65, .25); }

/* ---- radar cambiario (dato vivo dolarapi) ---- */
.radar-fila { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.radar-cards { display: flex; gap: 10px; flex-wrap: wrap; }
.radar-card { display: grid; gap: 3px; padding: 12px 18px; border-radius: var(--r-md);
  background: rgba(6, 10, 6, .4); border: 1px solid var(--line-soft); min-width: 128px; }
.radar-card .k { font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); }
.radar-card .v { font-family: "Sora", sans-serif; font-weight: 800; font-size: 21px; font-variant-numeric: tabular-nums; }
.radar-card .v.vivo { color: var(--verde-2); }
.ml-ayuda { display: inline-block; margin-top: 6px; font-size: 12.5px; color: var(--verde-texto);
  text-decoration: none; border-bottom: 1px dashed rgba(85, 176, 107, .4); }
.ml-ayuda:hover { color: var(--ambar-2); }

/* ---- footer / legal ---- */
footer { border-top: 1px solid var(--line-soft); margin-top: 40px; padding: 26px 0 40px; color: var(--faint); font-size: 13px; }
footer a { color: var(--muted); }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; }

/* ---- scrollbar fino translucido ---- */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(154, 168, 148, .22); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(154, 168, 148, .38); border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---- responsive: la silla de Walter es un celular 375px ---- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 30px; }
  .hero-escena { order: -1; }
  .grid-caza { grid-template-columns: 1fr; }
  .tag-header { display: none; }
  .res { flex-wrap: wrap; }
  .res .titulo { white-space: normal; }
}

/* ---- reduced motion SIEMPRE ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .e-mapa, .e-billete { animation: none; }
  .e-ruta-tren { animation: none; }
  .e-pulso, .e-anillo { animation: none; opacity: .8; }
  .aurora { animation: none; }
}
