/* Landing de Intendencia — "instrumento de campo".
   Hero inmersivo tipo mapa topográfico (curvas de nivel con deriva lenta,
   grano y viñeta), tipografía de expedición autoalojada y una sola brasa de
   señal como acento. Sin fuentes de CDN. La firma es la barra de estado con
   coordenadas y "sin cobertura": el rasgo que define el producto. */

@font-face {
  font-family: "Big Shoulders";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("fonts/bigshoulders-latin.woff2") format("woff2");
}

:root {
  --noche: #0d2117; --pino: #143024; --musgo: #2f6b43; --salvia: #86a793;
  --hueso: #f2ecdd; --papel: #faf6ea; --brasa: #ff7a2f; --brasa-2: #e7671f;
  --carbon: #1c2019; --tinta: #454a40; --linea: #ddd3ba;
  --disp: "Big Shoulders", "Arial Narrow", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
body.lp { margin: 0; background: var(--noche); color: var(--hueso);
  font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.lp a { color: inherit; }
.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; }

/* ---------------- HERO ---------------- */
.hero {
  position: relative; overflow: hidden; min-height: 100svh;
  display: flex; flex-direction: column;
  background: radial-gradient(140% 100% at 82% -20%, #1b442e 0%, var(--pino) 42%, var(--noche) 78%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 -120px 160px -80px rgba(0,0,0,.7), inset 0 0 240px rgba(0,0,0,.35);
}
.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.contours { position: absolute; inset: -8%; pointer-events: none; }
.contours svg { position: absolute; height: auto; }
.c-far  { top: -12%; right: -20%; width: 86%; opacity: .5; }
.c-near { top: 2%;   right: -10%; width: 74%; opacity: .85; }

.statusbar {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; padding: 14px 26px; border-bottom: 1px solid rgba(134,167,147,.22);
  color: var(--salvia);
}
.statusbar .sep { opacity: .4; }
.statusbar .cob { color: var(--hueso); display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brasa);
  box-shadow: 0 0 0 0 rgba(255,122,47,.6); animation: pulso 2.4s ease-out infinite; }

.hero-body {
  position: relative; z-index: 2; flex: 1;
  max-width: 1180px; width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: 1.12fr .88fr; gap: 56px;
  align-items: center; padding: 44px 26px 72px;
}

.wordmark { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.wordmark .rombo { width: 13px; height: 13px; background: var(--brasa); transform: rotate(45deg); }
.wordmark b { font-family: var(--disp); font-weight: 800; font-size: 1.5rem; letter-spacing: .04em; text-transform: uppercase; }

.kicker { color: var(--brasa); font-weight: 700; }
.hero h1 {
  font-family: var(--disp); font-weight: 800; text-transform: uppercase;
  font-size: clamp(3.1rem, 8vw, 6.4rem); line-height: .92; letter-spacing: .005em;
  margin: 14px 0 6px; text-wrap: balance;
}
.h1-ember { display: block; color: var(--brasa); }
.lede { font-size: 1.16rem; color: #d5dccf; max-width: 46ch; margin: 20px 0 26px; }

.senal {
  display: inline-flex; align-items: center; gap: 13px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(134,167,147,.28);
  border-radius: 999px; padding: 9px 18px 9px 13px; backdrop-filter: blur(2px);
}
.barras { display: inline-flex; align-items: flex-end; gap: 3px; height: 20px; position: relative; }
.barras i { width: 4px; border-radius: 2px; background: var(--salvia); display: block; }
.barras i:nth-child(1){height:30%} .barras i:nth-child(2){height:52%}
.barras i:nth-child(3){height:74%;opacity:.34} .barras i:nth-child(4){height:100%;opacity:.34}
.barras::after { content:""; position:absolute; left:-3px; right:-3px; top:50%; height:2px; background:var(--brasa); transform:rotate(-22deg); }
.senal .txt { color: #eef1e8; }

/* ---- tarjeta de acceso / auth ---- */
.card {
  background: linear-gradient(180deg, var(--papel), #f4eedf);
  color: var(--carbon); border-radius: 18px; padding: 30px 28px 26px;
  position: relative; box-shadow: 0 30px 60px -30px rgba(0,0,0,.75);
  border: 1px solid rgba(0,0,0,.05);
}
.card::before { content:""; position:absolute; left:28px; right:28px; top:0; height:3px;
  background: linear-gradient(90deg, var(--brasa), transparent); border-radius: 3px; }
.card h2 { font-family: var(--disp); font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  font-size: 1.7rem; margin: 6px 0 2px; }
.card .hint { margin: 0 0 20px; color: var(--tinta); font-size: .95rem; }
.campo { display: block; margin-bottom: 14px; }
.campo span { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--tinta); margin-bottom: 6px; }
.campo input { width: 100%; font: inherit; padding: 13px 14px; border: 1.5px solid var(--linea);
  border-radius: 11px; background: #fff; color: var(--carbon); }
.campo input:focus-visible { outline: none; border-color: var(--musgo); box-shadow: 0 0 0 3px rgba(47,107,67,.18); }
.btn { display: block; width: 100%; text-align: center; text-decoration: none; border: none;
  cursor: pointer; font: inherit; font-weight: 700; padding: 15px; border-radius: 12px;
  background: var(--brasa); color: #2a1204; min-height: 54px; letter-spacing: .02em;
  transition: background .15s, transform .05s; }
.btn:hover { background: var(--brasa-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--musgo); outline-offset: 2px; }
.card-foot { margin-top: 14px; font-size: .9rem; }
.card-foot a { color: var(--musgo); text-decoration: none; font-weight: 600; }
.card-foot a:hover { text-decoration: underline; }
.alerta { background: #fdece4; border: 1px solid var(--brasa); color: #8a3a15;
  border-radius: 10px; padding: 10px 12px; font-size: .92rem; margin-bottom: 14px; }
.exito { background: #e7f1e9; border: 1px solid var(--musgo); color: #234a30;
  border-radius: 10px; padding: 10px 12px; font-size: .92rem; margin-bottom: 14px; }

/* ---------------- FEATURES ---------------- */
.features { background: var(--hueso); color: var(--carbon); }
.features-in { max-width: 1180px; margin: 0 auto; padding: 76px 26px 40px; }
.features .eyebrow { color: var(--brasa-2); font-weight: 700; }
.features h2 { font-family: var(--disp); font-weight: 800; text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1; margin: 12px 0 36px; max-width: 18ch; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feat { position: relative; background: var(--papel); border: 1px solid var(--linea);
  border-radius: 14px; padding: 26px 24px; overflow: hidden; transition: transform .16s, box-shadow .16s; }
.feat:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -22px rgba(20,48,36,.5); }
.feat .tag { color: var(--brasa-2); }
.feat h3 { margin: 12px 0 8px; font-size: 1.2rem; letter-spacing: -.01em; }
.feat p { margin: 0; color: var(--tinta); font-size: .98rem; position: relative; }
.feat .arc { position: absolute; right: 0; bottom: 0; width: 120px; height: 120px; opacity: .5; }

.foot { background: var(--hueso); color: var(--tinta); border-top: 1px solid var(--linea); }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 22px 26px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot a { color: var(--musgo); text-decoration: none; }

/* ---------------- páginas auxiliares (recuperar contraseña) ---------------- */
.auth-wrap { min-height: 100svh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden;
  background: radial-gradient(140% 100% at 80% -20%, #1b442e 0%, var(--pino) 45%, var(--noche) 80%); }
.auth-card { width: 100%; max-width: 440px; position: relative; z-index: 2; }
.auth-card .volver { display: inline-block; margin-top: 16px; color: var(--salvia); font-size: .9rem; text-decoration: none; }
.auth-card .volver:hover { color: var(--hueso); }

@keyframes pulso { 0%{box-shadow:0 0 0 0 rgba(255,122,47,.55)} 70%{box-shadow:0 0 0 9px rgba(255,122,47,0)} 100%{box-shadow:0 0 0 0 rgba(255,122,47,0)} }
@keyframes derivaA { from{transform:translate3d(0,0,0)} to{transform:translate3d(-26px,14px,0)} }
@keyframes derivaB { from{transform:translate3d(0,0,0)} to{transform:translate3d(18px,-10px,0)} }
@media (prefers-reduced-motion: no-preference) {
  .c-near { animation: derivaA 26s ease-in-out infinite alternate; }
  .c-far  { animation: derivaB 34s ease-in-out infinite alternate; }
  .hero-body > *, .card { animation: subir .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-body .card { animation-delay: .12s; }
  @keyframes subir { from{opacity:0; transform:translateY(16px)} to{opacity:1; transform:none} }
}

@media (max-width: 860px) {
  .hero-body { grid-template-columns: 1fr; gap: 32px; padding-top: 30px; }
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .c-near, .c-far { opacity: .3; }
}
