/* ===========================================================================
   ReportesVen — Landing nacional. Diseño profesional, cinematográfico,
   responsive, con parallax y animaciones de entrada.
   =========================================================================== */
:root {
  --ve-yellow: #FCD116;
  --ve-blue:   #00247D;
  --ve-red:    #CE1126;
  --hero-ink:  #0b1430;
  /* Tarjetas de la landing: degradado sutil de blancos para que se despeguen
     del fondo plano de cada sección y se distingan entre sí. */
  --lp-card: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
  --lp-card-border: #dde3ef;
  --lp-card-shadow: 0 10px 30px -18px rgba(20, 33, 61, .22), 0 1px 2px rgba(20, 33, 61, .05);
}
[data-theme="dark"] {
  --lp-card: linear-gradient(180deg, #1d2536 0%, #161d2c 100%);
  --lp-card-border: #2f3a55;
  --lp-card-shadow: 0 12px 32px -18px rgba(0, 0, 0, .7);
}

/* Reveal al hacer scroll (solo se oculta si el JS está activo) */
.js-ready .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.js-ready .reveal.in { opacity: 1; transform: none; }
.lp-bounce { transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s, background .2s; }
.lp-bounce:hover { transform: translateY(-3px) scale(1.02); }
.lp-bounce:active { transform: translateY(0) scale(.98); }

/* --------------------------------------------- Topbar transparente sobre hero */
/* La barra es "transparente" sobre el hero, pero la foto puede ser clara
   (cielo, neblina) y dejar el texto e iconos blancos sin contraste. Un velo
   oscuro degradado detrás de la barra garantiza legibilidad con cualquier foto. */
.topbar-onhero { background: linear-gradient(180deg, rgba(8,14,33,.58) 0%, rgba(8,14,33,.30) 55%, transparent 100%); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; transition: background .3s, border-color .3s, backdrop-filter .3s; }
/* Todos los elementos van en blanco sobre el hero, incluido el avatar de
   invitado (que por defecto usa var(--text) oscuro). */
.topbar-onhero .brand, .topbar-onhero .brand-text, .topbar-onhero .topbar-nav a, .topbar-onhero .icon-btn, .topbar-onhero .account-avatar-guest { color: #fff; }
.topbar-onhero .brand-text { text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.topbar-onhero .brand-accent { color: var(--ve-yellow); }
.topbar-onhero .topbar-nav a:hover { background: rgba(255,255,255,.16); color: #fff; }
.topbar-onhero .topbar-nav a.active::after { background: var(--ve-yellow); }
.topbar-onhero .logo svg { filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
/* Vidrio translúcido sobre el velo oscuro: los iconos blancos resaltan. */
.topbar-onhero .icon-btn { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.34); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.topbar-onhero .icon-btn:hover { background: rgba(255,255,255,.30); border-color: rgba(255,255,255,.55); }
.topbar-onhero.scrolled { background: var(--topbar-bg); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom-color: var(--border); }
.topbar-onhero.scrolled .brand, .topbar-onhero.scrolled .brand-text, .topbar-onhero.scrolled .topbar-nav a, .topbar-onhero.scrolled .icon-btn, .topbar-onhero.scrolled .account-avatar-guest { color: var(--text); }
.topbar-onhero.scrolled .brand-text { text-shadow: none; }
.topbar-onhero.scrolled .brand-accent { color: var(--primary); }
/* Al hacer scroll la barra es sólida: los botones vuelven a su estilo normal. */
.topbar-onhero.scrolled .icon-btn { background: var(--surface); border-color: var(--border); backdrop-filter: none; -webkit-backdrop-filter: none; }
.topbar-onhero.scrolled .icon-btn:hover { background: var(--surface-2); border-color: #cbd5e1; }

/* ----------------------------------------------------------------- HERO */
.lp-hero {
  position: relative; overflow: hidden; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 120px 20px 120px; color: #fff;
}
.lp-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.lp-hero-photo {
  position: absolute; inset: -8%; background: url('/img/hero.jpg') center 30%/cover no-repeat;
  transform: scale(1.08); animation: lpKenBurns 30s ease-in-out infinite alternate; will-change: transform;
}
.lp-hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 50% 20%, rgba(31,78,209,.35), transparent 60%),
    linear-gradient(165deg, rgba(11,20,48,.86) 0%, rgba(11,20,48,.66) 45%, rgba(11,20,48,.92) 100%);
}
@keyframes lpKenBurns { from { transform: scale(1.06) translate(0,0); } to { transform: scale(1.18) translate(-1.5%, -2.5%); } }
.lp-hero-inner { position: relative; z-index: 1; max-width: 860px; }

.lp-eyebrow {
  display: inline-block; padding: 8px 18px; border-radius: 999px; margin-bottom: 22px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: .84rem; font-weight: 700; letter-spacing: .04em; color: #fff;
}
.lp-title { font-size: clamp(2.5rem, 7.5vw, 4.7rem); line-height: 1.03; font-weight: 800; letter-spacing: -.03em; margin: 0 0 20px; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.lp-grad { background: linear-gradient(100deg, #ffd24a, #ffb020); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-sub { font-size: clamp(1.05rem, 2.4vw, 1.32rem); color: rgba(238,243,253,.9); max-width: 620px; margin: 0 auto 34px; }

/* Selector de estado + CTA */
.lp-chooser { display: flex; gap: 12px; max-width: 580px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.lp-select-wrap { position: relative; flex: 1; min-width: 250px; }
.lp-select-wrap select {
  width: 100%; appearance: none; -webkit-appearance: none;
  padding: 16px 44px; border-radius: 15px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 1rem; font-weight: 600;
  box-shadow: var(--shadow-lg); cursor: pointer;
}
.lp-select-wrap select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(31,78,209,.35); }
.lp-select-pin { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--primary); pointer-events: none; }
.lp-select-caret { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.lp-enter { padding: 16px 26px; font-size: 1rem; border-radius: 15px; gap: 8px; }
.lp-enter svg { width: 18px; height: 18px; }
.lp-howlink { display: inline-block; margin-top: 26px; color: rgba(255,255,255,.86); font-weight: 600; font-size: .96rem; }
.lp-howlink:hover { color: #fff; }

/* --- Detección automática por GPS (hero) --------------------------------- */
.lp-geo { margin-top: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lp-geo-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; font-family: inherit; font-size: .95rem; font-weight: 600;
  color: #fff; cursor: pointer;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  -webkit-tap-highlight-color: transparent;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.lp-geo-btn:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .5); }
.lp-geo-btn:active { transform: scale(.98); }
.lp-geo-btn:disabled { cursor: default; opacity: .85; }
.lp-geo-ic { display: grid; place-items: center; }
.lp-geo-ic svg { width: 18px; height: 18px; }
.lp-geo-btn.is-busy .lp-geo-ic { animation: lp-geo-pulse 1s ease-in-out infinite; }
@keyframes lp-geo-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.82); } }

.lp-geo-msg {
  margin: 0; font-size: .9rem; font-weight: 600; line-height: 1.35;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lp-geo-msg.is-ok   { background: rgba(34, 197, 94, .22);  color: #eafff1; }
.lp-geo-msg.is-warn { background: rgba(251, 191, 36, .2);  color: #fff7e6; }
.lp-geo-msg.is-info { background: rgba(255, 255, 255, .14); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .lp-geo-btn.is-busy .lp-geo-ic { animation: none; }
}

/* ----------------------------------------------- MÉTRICAS (tarjeta flotante) */
.lp-stats-wrap { max-width: 1000px; margin: -58px auto 0; padding: 0 18px; position: relative; z-index: 3; }
.lp-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  background: var(--lp-card); border: 1px solid var(--lp-card-border); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 30px 18px;
}
.lp-stat { text-align: center; padding: 6px 4px; position: relative; }
.lp-stat + .lp-stat::before { content: ''; position: absolute; left: 0; top: 18%; height: 64%; width: 1px; background: var(--border); }
.lp-stat-n { font-size: clamp(1.7rem, 5vw, 2.7rem); font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--primary); }
.lp-stat-l { font-size: .82rem; color: var(--muted); margin-top: 7px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
@media (max-width: 620px) { .lp-stats { grid-template-columns: repeat(2, 1fr); gap: 22px 8px; } .lp-stat:nth-child(3)::before { display: none; } }

/* ----------------------------------------------------------------- SECTIONS */
.lp-section { max-width: 1140px; margin: 0 auto; padding: 92px 20px; text-align: center; }
.lp-kicker { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.lp-h2 { font-size: clamp(1.8rem, 4.8vw, 2.7rem); margin: 0 0 10px; font-weight: 800; letter-spacing: -.025em; }
.lp-lead { color: var(--muted); margin: 0 auto 50px; max-width: 580px; font-size: 1.08rem; }

/* Pasos */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: left; }
.lp-step { position: relative; background: var(--lp-card); border: 1px solid var(--lp-card-border); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--lp-card-shadow); transition: transform .25s, box-shadow .25s; overflow: hidden; }
.lp-step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.lp-step-num { position: absolute; top: 16px; right: 20px; font-size: 2.4rem; font-weight: 800; color: var(--border); letter-spacing: -.04em; }
.lp-step-ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-light); color: var(--primary); margin-bottom: 16px; }
.lp-step-ico svg { width: 26px; height: 26px; }
.lp-step h3 { margin: 0 0 8px; font-size: 1.2rem; }
.lp-step p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (max-width: 820px) { .lp-steps { grid-template-columns: 1fr; } }

/* Características */
.lp-features-wrap { background: var(--surface-2); border-block: 1px solid var(--border); }
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; text-align: center; }
.lp-feat { background: var(--lp-card); border: 1px solid var(--lp-card-border); border-radius: var(--radius); padding: 34px 26px 30px; box-shadow: var(--lp-card-shadow); transition: transform .25s, box-shadow .25s; }
.lp-feat:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.lp-feat-ico { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 18px; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow); }
.lp-feat-ico svg { width: 28px; height: 28px; }
.lp-feat-y { background: linear-gradient(140deg, #ffdf6b, var(--ve-yellow)); color: #5b4708; }
.lp-feat-b { background: linear-gradient(140deg, #3f7af0, var(--ve-blue)); }
.lp-feat-r { background: linear-gradient(140deg, #e9505f, var(--ve-red)); }
.lp-feat h3 { margin: 0 0 8px; font-size: 1.18rem; }
.lp-feat p { margin: 0 auto; color: var(--muted); font-size: .97rem; max-width: 330px; }
@media (max-width: 820px) { .lp-features { grid-template-columns: 1fr; gap: 34px; } }

/* Estados */
.lp-states-section { padding-top: 60px; }
.lp-states { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; text-align: left; }
.lp-state-card {
  display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--text);
  background: var(--lp-card); border: 1px solid var(--lp-card-border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--lp-card-shadow); position: relative; overflow: hidden;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s, border-color .22s;
}
.lp-state-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--ve-yellow), var(--ve-blue), var(--ve-red)); transform: scaleY(0); transform-origin: top; transition: transform .26s; }
.lp-state-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--text); }
.lp-state-card:hover::before { transform: scaleY(1); }
.lp-state-name { font-weight: 800; font-size: 1.14rem; letter-spacing: -.01em; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lp-state-name .lp-arrow { color: var(--primary); transition: transform .22s; font-weight: 700; }
.lp-state-card:hover .lp-arrow { transform: translateX(5px); }
.lp-state-meta { display: flex; gap: 14px; color: var(--muted); font-size: .84rem; flex-wrap: wrap; }
.lp-state-meta b { color: var(--text); }

/* CTA final / banda motivacional */
.lp-final { position: relative; overflow: hidden; padding: 96px 20px; text-align: center; color: #fff; }
.lp-final-bg { position: absolute; inset: 0; background:
  radial-gradient(800px 400px at 80% 0%, rgba(31,78,209,.5), transparent 60%),
  linear-gradient(150deg, #16244a, var(--hero-ink)); }
.lp-final-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.lp-final h2 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); margin: 0 0 14px; font-weight: 800; line-height: 1.15; }
.lp-final p { color: rgba(229,236,248,.84); margin: 0 0 28px; font-size: 1.1rem; }
.lp-final-btn { background: #fff; color: var(--hero-ink); border-color: #fff; padding: 15px 32px; font-size: 1.06rem; font-weight: 700; border-radius: 15px; }
.lp-final-btn:hover { background: #ffe9a8; color: #4a3a06; }

/* Footer */
.lp-footer { background: var(--surface); border-top: 1px solid var(--border); }
.lp-foot-inner { max-width: 1140px; margin: 0 auto; padding: 48px 20px 28px; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.lp-foot-brand { max-width: 420px; }
.lp-foot-brand p { margin: 14px 0 0; font-size: .92rem; }
.lp-foot-brand .logo svg { width: 30px; height: 30px; }
.lp-foot-links { display: flex; flex-direction: column; gap: 12px; }
.lp-foot-links a { color: var(--muted); font-weight: 600; font-size: .95rem; }
.lp-foot-links a:hover { color: var(--primary); }
.lp-foot-bar { border-top: 1px solid var(--border); text-align: center; padding: 18px; font-size: .85rem; }

/* A11y: respeta usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .lp-hero-photo { animation: none !important; }
  .lp-bounce:hover, .lp-state-card:hover, .lp-step:hover { transform: none; }
}
