/* ===================================================================
   Fatigue Radar — Web app del TFM
   Identidad visual basada en el Brandbook hipto 2025
   Componentes: MetricCard (.metric) · SectionHeader (.section__head)
   FeatureCard (.feat) · ProcessStep (.step) · ChartCard (.shot)
   DashboardPreview (.dash) · RiskBadge (.riskbadge)
   =================================================================== */

:root {
  /* Colores hipto */
  --blue:        #002FBD;
  --blue-light:  #3D6EFF;
  --blue-soft:   #A4C2F4;
  --blue-bg:     #EFF5FF;
  --green:       #00E0A0;
  --neutral:     #F9F9F9;
  --white:       #FFFFFF;
  --ink:         #0A1633;
  --ink-soft:    #46536e;
  --line:        #e4ecf7;

  /* Semáforo de riesgo */
  --risk-sano:    #0aa876;
  --risk-vigilar: #b7791f;
  --risk-riesgo:  #d9640a;
  --risk-critico: #e5484d;

  /* Degradados de marca */
  --grad-cta:    linear-gradient(120deg, #002FBD 0%, #3D6EFF 100%);
  --grad-accent: linear-gradient(120deg, #00E0A0 0%, #3D6EFF 100%);

  --radius:      18px;
  --radius-lg:   28px;
  --shadow:      0 10px 40px rgba(0, 47, 189, .08);
  --shadow-lg:   0 24px 70px rgba(0, 47, 189, .16);
  --maxw:        1180px;
  --ease:        cubic-bezier(.22, 1, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  font-family: 'Lexend', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Accesibilidad ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--blue); color: #fff; padding: 10px 18px; border-radius: 0 0 12px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Tipografía display ---------- */
.h2 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--blue);
  text-wrap: balance;
}
.h2--light { color: var(--white); }

.grad-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Brand wordmark ---------- */
.brand { display: inline-flex; align-items: flex-end; gap: 3px; }
.brand__word {
  font-family: 'Lexend', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -.04em;
  color: var(--blue);
}
.brand__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-bottom: 7px; }
.brand--light .brand__word { color: var(--white); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .98rem;
  padding: 14px 30px; border-radius: 100px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, color .25s;
  cursor: pointer; border: none; white-space: nowrap;
}
.btn--primary { background: var(--grad-cta); color: var(--white); box-shadow: 0 8px 24px rgba(0,47,189,.28); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,47,189,.38); }
.btn--ghost { background: var(--white); color: var(--blue); border: 1.5px solid var(--line); box-shadow: var(--shadow); }
.btn--ghost:hover { border-color: var(--blue-light); color: var(--blue-light); transform: translateY(-3px); }
.btn--small { background: var(--blue); color: #fff; padding: 10px 20px; font-size: .9rem; }
.btn--small:hover { background: var(--blue-light); }
.btn--accent { background: var(--green); color: #04372a; box-shadow: 0 8px 24px rgba(0,224,160,.35); }
.btn--accent:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,224,160,.45); }
.btn--ghostlight { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn--ghostlight:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }

/* ===================================================================
   NAV
   =================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 4px 24px rgba(0,47,189,.05); }
.nav__inner { max-width: var(--maxw); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font-weight: 500; font-size: .95rem; color: var(--ink-soft); position: relative; transition: color .2s; padding: 4px 0; }
.nav__links a::after { content:''; position:absolute; left:0; bottom:-3px; width:0; height:2px; background: var(--grad-accent); transition: width .25s var(--ease); }
.nav__links a:hover { color: var(--blue); }
.nav__links a:hover::after { width: 100%; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__burger span { width: 24px; height: 2px; background: var(--blue); border-radius: 2px; transition: .3s; }

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 140px 24px 90px;
  background:
    radial-gradient(1200px 600px at 50% -10%, var(--blue-bg) 0%, transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--neutral) 100%);
  overflow: hidden;
}
.hero__shape { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: 0; }
.hero__shape--1 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(0,224,160,.55), transparent 70%); top: -120px; right: -80px; animation: float 14s ease-in-out infinite; }
.hero__shape--2 { width: 540px; height: 540px; background: radial-gradient(circle, rgba(61,110,255,.45), transparent 70%); bottom: -160px; left: -120px; animation: float 18s ease-in-out infinite reverse; }
.hero__shape--3 { width: 320px; height: 320px; background: radial-gradient(circle, rgba(0,47,189,.30), transparent 70%); top: 40%; left: 62%; animation: float 16s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(0,-40px); } }

.hero__inner { position: relative; z-index: 2; max-width: 960px; }
.badge {
  display: inline-block; font-weight: 600; font-size: .8rem; letter-spacing: .05em;
  text-transform: uppercase; color: var(--blue);
  background: var(--white); border: 1px solid var(--line);
  padding: 8px 18px; border-radius: 100px; box-shadow: var(--shadow); margin-bottom: 28px;
}
.hero__title {
  font-family: 'Anton', sans-serif; font-weight: 400;
  font-size: clamp(2.4rem, 6.4vw, 4.8rem); line-height: 1.04;
  text-transform: uppercase; color: var(--ink); letter-spacing: .005em;
}
.hero__sub { font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: var(--ink-soft); max-width: 700px; margin: 26px auto 38px; }
.hero__sub strong { color: var(--ink); }
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero__stats { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 60px; }
.hstat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; min-width: 200px; flex: 1; max-width: 250px;
  box-shadow: var(--shadow); text-align: left;
  display: flex; flex-direction: column-reverse; gap: 8px;
}
.hstat__num { display: block; font-family: 'Anton', sans-serif; font-size: 2.3rem; line-height: 1; color: var(--blue); }
.hstat__label { font-size: .88rem; color: var(--ink-soft); }

.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font-size: 1.4rem; color: var(--blue); z-index: 2; animation: bob 1.8s infinite; }
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ===================================================================
   SECTIONS genéricas
   =================================================================== */
.section { padding: 104px 0; }
.section--alt { background: var(--neutral); }
.section--dark {
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(61,110,255,.35), transparent 60%),
    var(--blue);
  color: #fff;
}
.section__head { max-width: 800px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-light); margin-bottom: 14px;
}
.eyebrow--light { color: var(--green); }
.section__intro { font-size: 1.1rem; color: var(--ink-soft); margin-top: 18px; }
.section__intro--light { color: rgba(255,255,255,.88); }
.section__intro strong { color: inherit; }

.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.lead { font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 18px; }
.lead strong { color: var(--ink); }

/* ---------- Problema ---------- */
.problem { align-items: center; }
.problem__cards { display: flex; flex-direction: column; gap: 16px; }
.pcard { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.pcard:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); }
.pcard__ico { font-size: 1.6rem; }
.pcard h3 { color: var(--blue); margin-bottom: 3px; font-size: 1.05rem; }
.pcard p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- ProcessStep ---------- */
.steps { display: flex; align-items: stretch; gap: 14px; justify-content: center; flex-wrap: wrap; }
.step { flex: 1; min-width: 240px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.step::before { content:''; position:absolute; top:0; left:0; width:100%; height:5px; background: var(--grad-accent); }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step__n { font-family: 'Anton', sans-serif; font-size: 2.2rem; color: var(--blue-soft); }
.step h3 { color: var(--blue); margin: 6px 0 10px; font-size: 1.22rem; }
.step p { color: var(--ink-soft); font-size: .97rem; }
.step__arrow { display: flex; align-items: center; font-size: 1.6rem; color: var(--blue-soft); font-weight: 700; }

.pipeline { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 50px; }
.pill { background: var(--white); border: 1px solid var(--line); border-radius: 100px; padding: 10px 18px; font-weight: 500; font-size: .92rem; color: var(--ink-soft); box-shadow: var(--shadow); }
.pill--accent { background: var(--grad-accent); color: #04372a; border: none; font-weight: 700; }
.pill--blue { background: var(--grad-cta); color: #fff; border: none; font-weight: 600; }
.pipeline__sep { color: var(--blue-soft); font-weight: 700; }

/* ---------- MetricCard ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 56px; }
.metric { text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 20px; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.metric:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.metric__num { font-family: 'Anton', sans-serif; font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1; background: var(--grad-cta); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: block; }
.metric__lbl { font-weight: 600; color: var(--ink); margin-top: 12px; display: block; }
.metric__sub { font-size: .85rem; color: var(--ink-soft); margin-top: 4px; display: block; }

/* ---------- ChartCard ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.shot { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.shot:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.shot img { width: 100%; background: #fff; padding: 14px; }
.shot figcaption { padding: 14px 18px; font-size: .9rem; color: var(--ink-soft); border-top: 1px solid var(--line); }
.shot--wide { grid-column: 1 / -1; margin-top: 32px; }
.shot--ondark { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); }
.shot--ondark img { background: #fff; }
.shot--ondark figcaption { color: rgba(255,255,255,.82); border-color: rgba(255,255,255,.16); }

/* ---------- Impacto ---------- */
.impact__cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.icard { border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 4px; transition: transform .3s var(--ease); }
.icard:hover { transform: translateY(-5px); }
.icard--good { background: linear-gradient(135deg, rgba(0,224,160,.24), rgba(0,224,160,.07)); border: 1px solid rgba(0,224,160,.55); }
.icard--neutral { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); }
.icard--bad { background: rgba(229,72,77,.10); border: 1px solid rgba(229,72,77,.45); }
.icard__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.78); font-weight: 600; }
.icard__num { display: block; font-family: 'Anton', sans-serif; font-size: clamp(2.2rem, 4vw, 3.1rem); line-height: 1.05; margin: 8px 0 4px; color: #fff; }
.icard--good .icard__num { color: var(--green); }
.icard--bad .icard__num { color: #ff9ba6; }
.icard__desc { font-size: .92rem; color: rgba(255,255,255,.85); }
.icard__tags { font-size: .82rem; color: rgba(255,255,255,.6); margin-top: 8px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.14); }
.impact__foot { text-align: center; margin-top: 40px; font-size: 1.12rem; color: rgba(255,255,255,.9); max-width: 820px; margin-left: auto; margin-right: auto; }
.impact__foot strong { color: var(--green); }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.fact { text-align: center; padding: 24px 18px; border-radius: var(--radius); background: var(--blue-bg); }
.fact__k { font-family: 'Anton', sans-serif; font-size: 2.2rem; color: var(--blue); display: block; }
.fact__v { font-size: .9rem; color: var(--ink-soft); margin-top: 6px; display: block; }

/* ===================================================================
   DASHBOARD PREVIEW
   =================================================================== */
.dash {
  background: #0c1531;
  border: 1px solid #1e2c55;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: #e8eefc;
  margin-bottom: 48px;
}
.dash__topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 18px 26px; border-bottom: 1px solid #1e2c55;
  background: rgba(255,255,255,.02);
}
.dash__title { display: flex; align-items: center; gap: 12px; font-size: 1.02rem; }
.dash__logo { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(0,224,160,.8); }

/* Pestañas decorativas (product feel) */
.dash__tabs { display: flex; gap: 4px; margin-left: 10px; }
.dash__tab { font-size: .78rem; color: #61759f; padding: 5px 13px; border-radius: 8px; }
.dash__tab.is-active { background: rgba(61,110,255,.22); color: #b9cbff; font-weight: 600; }

/* Chip de demo */
.demochip {
  font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: #ecd06b; background: rgba(240,200,80,.1); border: 1px solid rgba(240,200,80,.4);
  padding: 5px 14px; border-radius: 100px; white-space: nowrap;
}

.dash__thr { display: flex; flex-direction: column; gap: 4px; min-width: 240px; }
.dash__thr label { font-size: .82rem; color: #8fa3d0; }
.dash__thr output { color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; }
.dash__thr input[type="range"] { accent-color: #00E0A0; width: 100%; cursor: pointer; }

/* KPIs del día */
.dash__kpis {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #1e2c55;
}
.dkpi { padding: 16px 26px; display: flex; flex-direction: column; gap: 2px; }
.dkpi + .dkpi { border-left: 1px solid #1e2c55; }
.dkpi__k { font-family: 'Anton', sans-serif; font-size: 1.6rem; color: #fff; font-variant-numeric: tabular-nums; }
.dkpi__k--green { color: var(--green); }
.dkpi__k--red { color: #ff9ba6; }
.dkpi__l { font-size: .78rem; color: #8fa3d0; }

.dash__body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 0; }

/* Ranking */
.dash__rank { padding: 22px 26px; border-right: 1px solid #1e2c55; min-width: 0; }
.dash__rankhead { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.dash__rankhead h3 { font-size: 1rem; font-weight: 600; }
.dash__count { font-size: .84rem; color: #8fa3d0; }
.dash__count strong { color: var(--green); font-variant-numeric: tabular-nums; }

.dash__table { display: flex; flex-direction: column; gap: 6px; overflow-x: auto; }
.dashrow {
  display: grid; grid-template-columns: 1.4fr 1.25fr .85fr .9fr .8fr;
  gap: 12px; align-items: center;
  padding: 11px 14px; border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid transparent;
  font-size: .88rem; min-width: 560px;
  transition: background .25s, border-color .25s, opacity .25s;
}
.dashrow--head { background: none; border: none; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: #61759f; padding-top: 0; padding-bottom: 4px; }
.dashrow.is-alert { background: rgba(229,72,77,.08); border-color: rgba(229,72,77,.28); }
.dashrow:not(.is-alert):not(.dashrow--head) { opacity: .78; }
.dashrow__name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dashrow__score { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; font-weight: 600; }
.scorebar { flex: 1; height: 6px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; min-width: 50px; }
.scorebar__fill { display: block; height: 100%; border-radius: 4px; background: var(--grad-accent); }

.trend { font-variant-numeric: tabular-nums; font-size: .84rem; font-weight: 600; }
.trend--down { color: #ff9ba6; }
.trend--flat { color: #d8c26a; }
.trend--up { color: #5ee8b8; }
.dashrow__eur { font-variant-numeric: tabular-nums; font-weight: 600; color: #c9d6f2; }
.dash__legend { margin-top: 12px; font-size: .76rem; color: #61759f; }

/* RiskBadge */
.riskbadge {
  display: inline-block; padding: 3px 11px; border-radius: 100px;
  font-size: .74rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  white-space: nowrap;
}
.riskbadge--sano    { background: rgba(0,224,160,.14);  color: #4be7b4; border: 1px solid rgba(0,224,160,.4); }
.riskbadge--vigilar { background: rgba(240,200,80,.12); color: #ecd06b; border: 1px solid rgba(240,200,80,.4); }
.riskbadge--riesgo  { background: rgba(240,140,50,.12); color: #f2a35e; border: 1px solid rgba(240,140,50,.45); }
.riskbadge--critico { background: rgba(229,72,77,.14);  color: #ff8b93; border: 1px solid rgba(229,72,77,.5); }

/* Detail card */
.dash__detail { padding: 22px 26px; background: rgba(255,255,255,.015); }
.detailcard { display: flex; flex-direction: column; gap: 18px; }
.detailcard__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.detailcard__head h3 { font-size: 1rem; font-weight: 600; }

.detailcard__gauge { display: flex; align-items: center; gap: 18px; }
.gauge {
  --val: 50; --risk: #e5484d;
  width: 96px; height: 96px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--risk) calc(var(--val) * 1%), rgba(255,255,255,.09) 0);
  display: grid; place-items: center; position: relative;
}
.gauge::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: #0c1531; }
.gauge__num { position: relative; font-family: 'Anton', sans-serif; font-size: 1.5rem; color: #fff; }
.gauge__meta { display: flex; flex-direction: column; }
.gauge__meta span { font-weight: 600; font-size: .94rem; }
.gauge__meta small { color: #8fa3d0; font-size: .8rem; }

.detailcard__spark { display: flex; flex-direction: column; gap: 8px; }
.detailcard__sparklbl { font-size: .8rem; color: #8fa3d0; display: flex; align-items: center; gap: 6px; }
.lg { display: inline-block; width: 14px; height: 3px; border-radius: 2px; }
.lg--real { background: #5ee8b8; }
.lg--pred { background: #ff9ba6; }
.detailcard__spark svg { width: 100%; height: 56px; background: rgba(255,255,255,.03); border-radius: 10px; }
.spark__real { fill: none; stroke: #5ee8b8; stroke-width: 2.5; stroke-linecap: round; }
.spark__pred { fill: none; stroke: #ff9ba6; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 5 5; }
.spark__dot { fill: #fff; }

.detailcard__why h4 { font-size: .88rem; margin-bottom: 10px; color: #c9d6f2; }
.detailcard__why h4 small { color: #61759f; font-weight: 400; }
.whylist { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.whylist li { display: flex; align-items: flex-start; gap: 10px; }
.whychip {
  flex-shrink: 0; min-width: 52px; text-align: center;
  font-size: .76rem; font-weight: 700; font-variant-numeric: tabular-nums;
  padding: 2px 8px; border-radius: 7px;
}
.whychip--up { background: rgba(229,72,77,.15); color: #ff8b93; border: 1px solid rgba(229,72,77,.4); }
.whychip--down { background: rgba(0,224,160,.12); color: #4be7b4; border: 1px solid rgba(0,224,160,.35); }
.whylist__txt { font-size: .82rem; color: #aebbdd; line-height: 1.45; }
.whylist__base { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #1e2c55; font-size: .78rem; color: #8fa3d0; }
.whylist__base strong { color: #fff; }
.gauge__drop { margin-top: 4px; }
.gauge__drop strong { color: #ff9ba6; }

.detailcard__save {
  display: flex; flex-direction: column; gap: 2px;
  background: rgba(0,224,160,.08); border: 1px solid rgba(0,224,160,.3);
  border-radius: 14px; padding: 14px 16px;
}
.detailcard__save span { font-size: .8rem; color: #8fd8bf; }
.detailcard__save strong { font-size: 1.25rem; color: var(--green); font-variant-numeric: tabular-nums; }
.detailcard__save small { font-size: .78rem; color: #8fa3d0; font-weight: 400; }
.detailcard__save em { font-size: .8rem; font-style: normal; color: #c9d6f2; margin-top: 4px; padding-top: 8px; border-top: 1px solid rgba(0,224,160,.2); }

.btn--large { padding: 16px 36px; font-size: 1.05rem; }
.product-cta { text-align: center; margin-bottom: 32px; }
.product-cta__note { margin-top: 12px; font-size: .88rem; color: var(--ink-soft); }

.app-preview {
  display: block; text-decoration: none; color: inherit;
  background: #0c1531; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); transition: transform .3s var(--ease), box-shadow .3s;
  margin-bottom: 40px;
}
.app-preview:hover { transform: translateY(-4px); box-shadow: 0 28px 80px rgba(0,47,189,.22); }
.app-preview__screen { padding: 0; }
.app-preview__bar {
  display: flex; align-items: center; gap: 12px; padding: 16px 22px;
  border-bottom: 1px solid #1e2c55; color: #e8eefc; font-weight: 600;
}
.app-preview__list { list-style: none; padding: 16px 22px; display: flex; flex-direction: column; gap: 10px; }
.app-preview__list li { font-size: .88rem; color: #aebbdd; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-preview__cta { padding: 14px 22px 20px; font-size: .85rem; color: var(--green); font-weight: 600; border-top: 1px solid #1e2c55; }

/* scorebar reutilizado en app */
.app-table .scorebar { flex: 1; height: 6px; border-radius: 4px; background: rgba(0,47,189,.1); overflow: hidden; min-width: 50px; display: block; }
.app-table .scorebar__fill { display: block; height: 100%; border-radius: 4px; background: var(--grad-accent); }

/* ---------- FeatureCard ---------- */
.product__feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.feat:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feat__ico { font-size: 1.7rem; }
.feat h3 { color: var(--blue); margin: 10px 0 6px; font-size: 1.05rem; }
.feat p { color: var(--ink-soft); font-size: .93rem; }

/* ===================================================================
   CTA FINAL
   =================================================================== */
.cta {
  position: relative; padding: 110px 0;
  background:
    radial-gradient(800px 400px at 80% 20%, rgba(0,224,160,.25), transparent 60%),
    linear-gradient(120deg, #001a6e 0%, var(--blue) 55%, #1f4be0 100%);
  overflow: hidden; text-align: center; color: #fff;
}
.cta__shape { position: absolute; width: 500px; height: 500px; border-radius: 50%; filter: blur(80px); background: radial-gradient(circle, rgba(61,110,255,.5), transparent 70%); bottom: -220px; left: -140px; }
.cta__inner { position: relative; z-index: 2; max-width: 720px; }
.cta__sub { margin: 18px auto 34px; color: rgba(255,255,255,.85); font-size: 1.12rem; }
.cta__btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta__note { margin-top: 30px; font-size: .88rem; color: rgba(255,255,255,.6); }
.cta__note code { background: rgba(255,255,255,.1); padding: 3px 9px; border-radius: 7px; font-family: ui-monospace, Menlo, monospace; font-size: .84rem; }

/* ===================================================================
   FOOTER
   =================================================================== */
.footer { background: var(--ink); color: #fff; padding: 56px 0; }
.footer__inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer__brand p { color: rgba(255,255,255,.7); margin-top: 12px; max-width: 380px; font-size: .95rem; }
.footer__meta { text-align: right; }
.footer__meta p { color: rgba(255,255,255,.85); }
.footer__small { font-size: .82rem; color: rgba(255,255,255,.5) !important; margin-top: 10px; max-width: 380px; }

/* ===================================================================
   REVEAL animation
   =================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* Sin JS, todo visible */
html.no-js .reveal { opacity: 1; transform: none; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 980px) {
  .dash__body { grid-template-columns: 1fr; }
  .dash__rank { border-right: none; border-bottom: 1px solid #1e2c55; }
  .dash__kpis { grid-template-columns: repeat(2, 1fr); }
  .dkpi { border-top: 1px solid #1e2c55; }
  .dkpi + .dkpi { border-left: none; }
  .dkpi:nth-child(even) { border-left: 1px solid #1e2c55; }
  .dkpi:nth-child(-n+2) { border-top: none; }
  .dash__tabs { display: none; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .product__feats { grid-template-columns: repeat(2, 1fr); }
  .impact__cards3 { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .nav__links { display: none; }
  .nav__links.open { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: #fff; padding: 20px 24px; gap: 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav__burger { display: flex; margin-left: auto; }
  .nav .btn--small { display: none; }
  .grid--2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .step__arrow { display: none; }
  .footer__meta { text-align: left; }
}

@media (max-width: 520px) {
  .metrics, .facts, .product__feats { grid-template-columns: 1fr; }
  .hstat { max-width: 100%; }
  .section { padding: 72px 0; }
  .hero { padding-top: 120px; }
  .dash__rank, .dash__detail { padding: 18px 16px; }
  .whylist__lbl { flex-basis: 55%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
