/* ============================================================
   LIFETIMEBESS — sistema de diseño
   Marca: navy #123C68 · azul SolarPro #2569AB · lima CTA #4FABDC
   Datos (validado CVD/contraste): azul #2569AB · verde #2569AB
   ============================================================ */

:root {
  --navy: #123C68;
  --navy-800: #1B5691;
  --navy-dark: #0F3357;
  --blue: #3888CF;
  --blue-dark: #2569AB;
  --blue-soft: #EAF4FC;
  --accent: #2A72B8;
  --accent-dark: #1F5FA0;
  --accent-deep: #1B5691;
  --bg: #FFFFFF;
  --surface: #F4F6F8;
  --surface-2: #EDF1F5;
  --border: #DFE6EE;
  --text: #1F2937;
  --muted: #64748B;
  --muted-2: #8CA0B3;
  --good: #1E7F4F;
  --warn: #B77400;
  --serious: #B3372B;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(18,60,104,.06), 0 1px 8px rgba(18,60,104,.05);
  --shadow-md: 0 2px 6px rgba(18,60,104,.08), 0 12px 32px rgba(18,60,104,.10);
  --shadow-lg: 0 4px 12px rgba(18,60,104,.10), 0 24px 64px rgba(18,60,104,.14);
  --font-head: "Sora", "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section.tight { padding: 64px 0; }
.section.alt { background: var(--surface); }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 14px;
}
.lead { font-size: 1.16rem; color: var(--muted); max-width: 760px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.nav-logo { display: flex; align-items: center; flex: 0 0 auto; }
.nav-logo img { height: 34px; display: block; }
/* gap ajustado (22→15) y nowrap: con "The Loop" el nav pasó de 5 a 6 enlaces y en
   idiomas con palabras más largas (es/de/fr/pt) el contenedor (tope 1180px, no
   crece con pantallas más anchas) ya no alcanza a mostrarlo en una línea; sin
   nowrap, flex encogía cada enlace hasta partir "Warranty Guard" / "Iniciar
   sesión" en dos líneas en vez de mandar todo el nav a la hamburguesa. */
.nav-links { display: flex; gap: 15px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--navy); font-weight: 500; font-size: .9rem; white-space: nowrap; }
.nav-links a:hover { color: var(--blue-dark); text-decoration: none; }
.nav-cta { margin-left: 4px; padding: 9px 14px; white-space: nowrap; }
/* .nav-links a gana en especificidad a .btn-primary: fijamos el color del CTA
   para conservar el contraste AA (6.01:1) del texto sobre el celeste de marca. */
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { color: #fff; }
.nav-burger { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 12px; font-weight: 700;
  font-family: var(--font-head); font-size: .98rem; cursor: pointer; border: 0;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 2px 10px rgba(79,171,220,.40); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-800); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn-sm { padding: 9px 18px; font-size: .88rem; border-radius: 10px; }

/* ================= HERO GLOBAL (oscuro, sala de control) ================= */
.hero-dark {
  position: relative; overflow: hidden; color: #E9F1F8;
  background:
    radial-gradient(1200px 620px at 50% -8%, rgba(79,171,220,.28), transparent 62%),
    radial-gradient(900px 520px at 88% 40%, rgba(79,171,220,.13), transparent 60%),
    linear-gradient(180deg, #0F3357 0%, #123C68 52%, #0C2E4F 100%);
}
.hero-dark::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(1000px 700px at 50% 0%, #000 20%, transparent 78%);
}
.hero-dark .container { position: relative; z-index: 2; }
.hero-dark h1 { color: #fff; font-size: clamp(2.3rem, 5.2vw, 4rem); letter-spacing: -.025em; margin-bottom: 18px; }
.hero-dark h1 .hl {
  background: linear-gradient(90deg, #7FD0FF 0%, #7FC9F0 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-dark .lead { color: #A9C6DE; font-size: 1.18rem; max-width: 720px; }
.hero-dark .eyebrow { color: #7FC9F0; }
.hero-top { padding: 76px 0 30px; text-align: center; }
.hero-top .lead { margin: 0 auto 30px; }
.hero-ctas.center { justify-content: center; }
.hero-dark .btn-ghost { color: #E9F1F8; border-color: rgba(255,255,255,.28); }
.hero-dark .btn-ghost:hover { border-color: #7FC9F0; color: #fff; }
.hero-note-dark { color: #7E9DBC; font-size: .86rem; margin-top: 20px; }

/* Métricas del hero */
.hero-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12);
  margin-top: 8px;
}
.hero-metric { padding: 22px 18px; text-align: center; border-right: 1px solid rgba(255,255,255,.10); }
.hero-metric:last-child { border-right: 0; }
.hero-metric .m-value {
  font-family: var(--font-head); font-weight: 700; color: #fff;
  font-size: clamp(1.6rem, 2.8vw, 2.5rem); line-height: 1.1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.hero-metric .m-value .unit { font-size: .48em; color: #7FC9F0; margin-left: 4px; }
.hero-metric .m-label { color: #8FAECD; font-size: .82rem; margin-top: 6px; letter-spacing: .02em; }

/* Mapa mundial */
.map-wrap { position: relative; padding: 18px 0 46px; }
.map-tooltip {
  position: absolute; pointer-events: none; z-index: 5;
  background: rgba(15,51,87,.96); border: 1px solid rgba(79,171,220,.35); color: #fff;
  border-radius: 10px; padding: 9px 13px; font-size: .82rem; line-height: 1.55;
  box-shadow: 0 8px 32px rgba(0,0,0,.45); opacity: 0; transition: opacity .12s; white-space: nowrap;
}
.map-tooltip .tt-muted { color: #9FBBD6; }
.map-legend {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  color: #7E9DBC; font-size: .8rem; margin-top: 6px;
}
.map-legend .li { display: inline-flex; align-items: center; gap: 8px; }
.map-legend .dot-sm { width: 8px; height: 8px; border-radius: 50%; background: #4FABDC; box-shadow: 0 0 0 4px rgba(79,171,220,.2); }
.map-legend .dot-land { width: 6px; height: 6px; border-radius: 50%; background: rgba(148,185,220,.5); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 480px at 82% -10%, rgba(79,171,220,.10), transparent 60%),
    radial-gradient(900px 420px at -10% 110%, rgba(79,171,220,.10), transparent 55%),
    linear-gradient(180deg, #FBFDFF 0%, #FFFFFF 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(18,60,104,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,60,104,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(900px 600px at 70% 20%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.04fr .96fr; gap: 56px; align-items: center; padding: 84px 0 90px; }
.hero h1 .hl { color: var(--blue-dark); }
.hero .tagline { font-family: var(--font-head); font-weight: 700; color: var(--accent-deep); letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; margin-bottom: 18px; display: inline-flex; align-items: center; gap: 8px; }
.hero .tagline .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(79,171,220,.25); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(79,171,220,.30);} 50% { box-shadow: 0 0 0 7px rgba(79,171,220,.10);} }
.hero .lead { margin: 18px 0 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: .85rem; color: var(--muted-2); margin-top: 16px; }

/* Tarjeta dashboard del hero */
.dash-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.dash-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg,#FBFCFE,#F6F9FC); }
.dash-head .win { display: flex; gap: 6px; }
.dash-head .win i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); display: block; }
.dash-title { font-family: var(--font-head); font-weight: 600; font-size: .86rem; color: var(--navy); }
.dash-live { margin-left: auto; font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--good); background: #E7F5EE; padding: 3px 10px; border-radius: 99px; display: inline-flex; align-items: center; gap: 6px; }
.dash-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); display: inline-block; animation: pulse 2s infinite; }
.dash-body { padding: 18px 18px 8px; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 10px 18px 18px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; }
.kpi .k-label { font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.kpi .k-value { font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; color: var(--navy); line-height: 1.25; }
.kpi .k-sub { font-size: .72rem; color: var(--muted-2); }

/* ---------- Barra de fuentes ---------- */
.sources-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #FBFCFE; padding: 22px 0; }
.sources-inner { display: flex; align-items: center; gap: 12px 34px; flex-wrap: wrap; justify-content: center; }
.sources-label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; flex-basis: 100%; text-align: center; margin-bottom: 4px; }
.source-item { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--muted); white-space: nowrap; }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; padding: 26px 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat .s-value { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--navy); }
.stat .s-value .unit { font-size: .55em; color: var(--blue-dark); font-weight: 700; }
.stat .s-label { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.stat .s-foot { color: var(--muted-2); font-size: .75rem; margin-top: 6px; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--blue-soft); color: var(--blue-dark); margin-bottom: 16px;
}
.card .icon.accent { background: #EAF4FC; color: var(--accent-deep); }
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .97rem; margin-bottom: 0; }

/* ---------- Pipeline (cómo funciona) ---------- */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: paso; }
.pipe-step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px 22px; box-shadow: var(--shadow-sm); }
.pipe-step::before {
  counter-increment: paso; content: counter(paso, decimal-leading-zero);
  font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: var(--blue-dark);
  background: var(--blue-soft); border-radius: 8px; padding: 3px 9px; display: inline-block; margin-bottom: 12px;
}
.pipe-step h3 { font-size: 1.05rem; }
.pipe-step p { color: var(--muted); font-size: .9rem; margin: 0; }
.pipe-step ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: .87rem; }
.pipe-step ul li { margin-bottom: 4px; }
.pipe-step ul b { color: var(--navy); font-weight: 600; }
.pipe-arrow { position: absolute; right: -15px; top: 50%; transform: translateY(-50%); z-index: 2; color: var(--muted-2); display: block; }

/* ---------- Observatorio (tabla flota) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
table.fleet { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 760px; }
table.fleet th, table.fleet td { padding: 13px 16px; text-align: left; }
table.fleet th { font-family: var(--font-head); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); background: #FBFCFE; font-weight: 700; white-space: nowrap; }
table.fleet td { border-bottom: 1px solid var(--surface-2); color: var(--text); white-space: nowrap; }
table.fleet tr:last-child td { border-bottom: 0; }
table.fleet tbody tr { cursor: pointer; transition: background .1s; }
table.fleet tbody tr:hover { background: var(--blue-soft); }
table.fleet tbody tr.active { background: var(--blue-soft); box-shadow: inset 3px 0 0 var(--blue); }
table.fleet .plant { font-weight: 600; color: var(--navy); }
table.fleet .plant .sub { display: block; font-weight: 400; font-size: .82em; color: var(--muted-2); margin-top: 1px; }
table.fleet .num { font-variant-numeric: tabular-nums; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .74rem; font-weight: 600; }
.badge.op { background: #E7F5EE; color: var(--good); }
.badge.con { background: #FDF3E3; color: var(--warn); }
.badge.lfp { background: var(--blue-soft); color: var(--blue-dark); }
.badge.off { background: #F6E7E5; color: var(--serious); }
.lang-switch {
  font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .06em;
  color: var(--muted) !important; border: 1px solid var(--border); border-radius: 8px; padding: 4px 9px;
}
.lang-switch:hover { border-color: var(--blue); color: var(--blue-dark) !important; text-decoration: none; }
.breadcrumb-dark { color: #7E9DBC; }
.breadcrumb-dark a { color: #A9C6DE; }
.soh-pill { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.soh-bar { width: 64px; height: 7px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.soh-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--accent)); }

/* ---------- Panel detalle observatorio ---------- */
.obs-layout { display: block; }
.detail-card { margin-bottom: 24px; }
.detail-card .dash-body { padding: 16px 16px 6px; }
/* Ficha en dos columnas: gráfico | metadatos */
.detail-card .detail-split { display: grid; grid-template-columns: 1.35fr .65fr; align-items: start; }
.detail-card .detail-split .dash-body { border-right: 1px solid var(--border); }
.detail-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding: 18px 20px; font-size: .85rem; align-content: start; }
@media (max-width: 900px) {
  .detail-card .detail-split { grid-template-columns: 1fr; }
  .detail-card .detail-split .dash-body { border-right: 0; border-bottom: 1px solid var(--border); }
}
.detail-meta div { color: var(--muted); }
.detail-meta b { color: var(--navy); font-weight: 600; display: block; font-size: .92rem; }

/* ---------- Charts ---------- */
.chart { width: 100%; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .axis-label { font-size: 11px; fill: var(--muted-2); font-family: var(--font-body); }
.chart .tick-label { font-size: 11px; fill: var(--muted); font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.chart .grid-line { stroke: var(--surface-2); stroke-width: 1; }
.chart-tooltip {
  position: absolute; pointer-events: none; background: var(--navy); color: #fff; border-radius: 10px;
  padding: 8px 12px; font-size: .8rem; line-height: 1.5; box-shadow: var(--shadow-md);
  opacity: 0; transition: opacity .1s; z-index: 20; white-space: nowrap;
}
.chart-tooltip b { color: #fff; }
.chart-tooltip .tt-muted { color: #A9C2D9; }
.chart-legend { display: flex; gap: 18px; flex-wrap: wrap; padding: 8px 2px 0; font-size: .8rem; color: var(--muted); }
.chart-legend .li { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend .sw { width: 14px; height: 3px; border-radius: 2px; background: var(--blue); display: inline-block; }
.chart-legend .sw.band { height: 10px; border-radius: 3px; background: rgba(79,171,220,.18); }
.chart-legend .sw.eol { background: var(--serious); height: 0; border-top: 2px dashed var(--serious); }

/* ---------- Metodología / fuentes ---------- */
.src-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.src-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.src-card h4 { margin: 0 0 4px; font-size: 1.02rem; }
.src-card .src-org { font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: var(--blue-dark); font-weight: 700; }
.src-card p { color: var(--muted); font-size: .9rem; margin: 6px 0 0; }
.src-card .src-tags { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.src-card .src-tags span { font-size: .7rem; background: var(--surface); border: 1px solid var(--border); color: var(--muted); border-radius: 99px; padding: 2px 9px; }

/* ---------- Planes ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-sm); position: relative; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-md); }
.plan .flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; border-radius: 99px; padding: 4px 14px; }
.plan h3 { font-size: 1.25rem; }
.plan .plan-for { color: var(--muted-2); font-size: .84rem; margin-bottom: 14px; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; }
.plan ul li { padding: 7px 0 7px 28px; position: relative; color: var(--muted); font-size: .93rem; border-bottom: 1px dashed var(--surface-2); }
.plan ul li:last-child { border-bottom: 0; }
.plan ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 16px; height: 16px; border-radius: 50%; background: #EAF4FC url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%231B5691" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center/10px no-repeat; }
.plan .plan-cta { margin-top: auto; text-align: center; }
.plan .plan-price { font-family: var(--font-head); color: var(--navy); font-weight: 700; font-size: 1.05rem; margin-bottom: 16px; }
.plan .plan-price span { color: var(--muted-2); font-weight: 500; font-size: .8rem; display: block; }

/* ---------- Servicios (páginas /services y /es/servicios) ---------- */
.svc {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 30px;
}
.svc-head {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 18px; align-items: start;
  padding: 28px 30px 22px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #FBFCFE, #F7FAFD);
}
.svc-num {
  width: 62px; height: 62px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.45rem;
}
.svc-num.accent { background: var(--accent); color: #fff; }
.svc-head h3 { font-size: 1.4rem; margin: 2px 0 6px; }
.svc-head .svc-for { color: var(--muted); font-size: .95rem; margin: 0; }
.svc-tagpill {
  align-self: center; white-space: nowrap; font-family: var(--font-head); font-weight: 700;
  font-size: .72rem; letter-spacing: .07em; text-transform: uppercase;
  background: var(--blue-soft); color: var(--blue-dark); border-radius: 99px; padding: 6px 14px;
}
.svc-body { display: grid; grid-template-columns: 1.25fr .75fr; gap: 0; }
.svc-what { padding: 26px 30px; }
.svc-what > p { color: var(--muted); }
.svc-what h4 {
  font-family: var(--font-head); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-2); margin: 20px 0 10px;
}
.svc-what ul { list-style: none; margin: 0; padding: 0; }
.svc-what ul li {
  position: relative; padding: 6px 0 6px 26px; color: var(--muted); font-size: .95rem;
}
.svc-what ul li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 15px; height: 15px; border-radius: 50%;
  background: #EAF4FC url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%231B5691" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center/9px no-repeat;
}
.svc-what ul li b { color: var(--navy); font-weight: 600; }
.svc-price { padding: 26px 28px; background: var(--surface); border-left: 1px solid var(--border); }
.svc-price h4 {
  font-family: var(--font-head); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-2); margin: 0 0 14px;
}
.price-row { padding: 12px 0; border-bottom: 1px dashed var(--border); }
.price-row:last-of-type { border-bottom: 0; }
.price-row .p-seg {
  font-family: var(--font-head); font-weight: 700; font-size: .82rem; color: var(--navy);
  display: block; margin-bottom: 3px;
}
.price-row .p-val {
  font-family: var(--font-head); font-weight: 700; color: var(--blue-dark);
  font-size: 1.12rem; line-height: 1.3; font-variant-numeric: tabular-nums;
}
.price-row .p-unit { color: var(--muted); font-weight: 500; font-size: .82rem; display: block; margin-top: 2px; }
.price-row .p-note { color: var(--muted-2); font-size: .78rem; display: block; margin-top: 4px; }
.svc-price .svc-cta { margin-top: 18px; }
.svc-price .svc-cta .btn { width: 100%; text-align: center; }
.svc-foot {
  padding: 16px 30px; border-top: 1px solid var(--border); background: #fff;
  color: var(--muted-2); font-size: .84rem;
}
.svc-foot b { color: var(--muted); }
@media (max-width: 900px) {
  .svc-body { grid-template-columns: 1fr; }
  .svc-price { border-left: 0; border-top: 1px solid var(--border); }
  .svc-head { grid-template-columns: 52px 1fr; padding: 22px 20px 18px; }
  .svc-num { width: 52px; height: 52px; font-size: 1.2rem; }
  .svc-tagpill { grid-column: 1 / -1; justify-self: start; }
  .svc-what, .svc-price { padding: 20px; }
  .svc-foot { padding: 14px 20px; }
}

/* Tabla resumen de precios */
.price-table td .pt-main { font-weight: 600; color: var(--navy); }
.price-table td .pt-sub { display: block; color: var(--muted-2); font-size: .82em; margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 22px; font-family: var(--font-head); font-weight: 600; color: var(--navy); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--blue); font-weight: 400; transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 22px 20px; color: var(--muted); font-size: .96rem; }

/* ---------- CTA final ---------- */
.cta-final { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, #123A63 100%); border-radius: 22px; padding: 64px 48px; text-align: center; position: relative; overflow: hidden; }
.cta-final::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; }
.cta-final h2 { color: #fff; position: relative; }
.cta-final p { color: #B4C8DD; position: relative; max-width: 640px; margin: 0 auto 28px; }
.cta-final .btn { position: relative; }

/* ---------- Footer ---------- */
footer { background: var(--navy-dark); color: #A9C2D9; padding: 56px 0 32px; margin-top: 96px; }
footer a { color: #C9DAEA; }
footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.foot-grid h4 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 9px; font-size: .92rem; }
.foot-brand img { height: 34px; filter: brightness(0) invert(1); opacity: .95; }
.foot-brand p { font-size: .88rem; margin-top: 14px; max-width: 300px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: #7E9AB8; }

/* ---------- Notas / disclaimers ---------- */
.note { font-size: .8rem; color: var(--muted-2); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; }
.note b { color: var(--muted); }

/* ---------- Hero de páginas interiores ---------- */
.page-hero { background: linear-gradient(180deg, #F7FAFD 0%, #fff 100%); border-bottom: 1px solid var(--border); padding: 64px 0 48px; }
.page-hero .lead { margin-top: 10px; }
.breadcrumb { font-size: .82rem; color: var(--muted-2); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 64px; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .pipe-arrow { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .obs-layout { grid-template-columns: 1fr; }
  .detail-card { position: static; }
  .src-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1020px) {
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .hero-metric:nth-child(2) { border-right: 0; }
  .hero-metric:nth-child(1), .hero-metric:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.10); }
}
@media (max-width: 720px) {
  .hero-top { padding: 52px 0 22px; }
  .map-wrap { padding: 10px 0 30px; }
  .hero-metric { padding: 16px 10px; }
  .hero-metric .m-label { font-size: .74rem; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); flex-direction: column; padding: 18px 24px; gap: 16px; align-items: flex-start; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
  .grid-3, .grid-2, .pipeline { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .dash-kpis { grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 8px 12px 14px; }
  .kpi .k-value { font-size: 1rem; }
  .section { padding: 64px 0; }
  .cta-final { padding: 44px 24px; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---------- Animaciones de entrada ----------
   Visibles por defecto; solo se ocultan si el JS marca body.anim
   (así el contenido nunca desaparece sin JS u observers). */
@media (prefers-reduced-motion: no-preference) {
  body.anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  body.anim .reveal.in { opacity: 1; transform: none; }
}

/* ============================================================
   web-v3 — componentes de verificación (Health Score, Verify,
   Warranty Guard). Mismo sistema de diseño.
   ============================================================ */

/* Zona de carga de archivos */
.dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius); background: #fff;
  padding: 34px 24px; text-align: center; color: var(--muted); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--blue); background: var(--blue-soft); }
.dropzone b { color: var(--navy); }
.dropzone .dz-sub { font-size: .82rem; color: var(--muted-2); margin-top: 6px; }
.dropzone input[type=file] { display: none; }

/* Formularios compactos */
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; }
.form-grid label { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 5px; font-family: var(--font-head); }
.form-grid select, .form-grid input[type=number], .form-grid input[type=text] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  font: inherit; color: var(--text); background: #fff;
}
.form-grid select:focus, .form-grid input:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } }

/* Dial de score */
.score-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center; }
.score-dial { position: relative; width: 200px; height: 200px; margin: 0 auto; }
.score-dial svg { width: 200px; height: 200px; transform: rotate(-90deg); }
.score-dial .sd-num {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; color: var(--navy);
}
.score-dial .sd-num .v { font-size: 3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.score-dial .sd-num .l { font-size: .72rem; color: var(--muted-2); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
@media (max-width: 720px) { .score-wrap { grid-template-columns: 1fr; } }

/* Barras de subscore */
.subscores { display: grid; gap: 12px; }
.subscore .ss-head { display: flex; justify-content: space-between; font-size: .86rem; margin-bottom: 4px; }
.subscore .ss-head b { color: var(--navy); font-weight: 600; }
.subscore .ss-head span { color: var(--muted-2); font-variant-numeric: tabular-nums; }
.subscore .ss-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.subscore .ss-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--accent)); transition: width .5s ease; }

/* Hallazgos con impacto en dinero */
.finding { display: grid; grid-template-columns: 10px 1fr auto; gap: 14px; align-items: start; padding: 14px 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.finding + .finding { margin-top: 10px; }
.finding .f-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; }
.finding .f-dot.ok { background: var(--good); }
.finding .f-dot.warn { background: var(--warn); }
.finding .f-dot.bad { background: var(--serious); }
.finding .f-body b { color: var(--navy); display: block; font-size: .95rem; }
.finding .f-body p { color: var(--muted); font-size: .87rem; margin: 2px 0 0; }
.finding .f-money { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: .95rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.finding .f-money span { display: block; font-weight: 500; font-size: .7rem; color: var(--muted-2); }

/* Sliders */
.sliders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.slider-box label { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; font-family: var(--font-head); }
.slider-box label output { color: var(--navy); font-variant-numeric: tabular-nums; }
.slider-box input[type=range] { width: 100%; accent-color: var(--blue); }
@media (max-width: 720px) { .sliders { grid-template-columns: 1fr; } }

/* Chips de templates OEM */
.tpl-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.tpl-chip {
  border: 1.5px solid var(--border); background: #fff; border-radius: 99px; padding: 8px 18px;
  font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--navy); cursor: pointer;
  transition: border-color .12s, background .12s;
}
.tpl-chip:hover { border-color: var(--blue); }
.tpl-chip.active { border-color: var(--accent); background: #EAF4FC; }

/* Resultado de verificación */
.verify-result { border-radius: var(--radius-sm); padding: 16px 18px; font-size: .92rem; display: none; }
.verify-result.show { display: block; }
.verify-result.ok { background: #E7F5EE; border: 1px solid #BFE3CF; color: var(--good); }
.verify-result.fail { background: #F6E7E5; border: 1px solid #E7C4BF; color: var(--serious); }
.verify-result b { display: block; margin-bottom: 4px; }
.verify-result code { font-size: .78rem; word-break: break-all; color: inherit; }
.hash-line { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; color: var(--muted); word-break: break-all; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; margin-top: 8px; }

/* Tabla de parámetros de template */
.tpl-params { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tpl-params td { padding: 9px 12px; border-bottom: 1px dashed var(--surface-2); color: var(--muted); }
.tpl-params td:first-child { color: var(--navy); font-weight: 600; width: 46%; }
.tpl-params tr:last-child td { border-bottom: 0; }

/* KPIs de breach */
.breach-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.breach-kpis .kpi .k-value.ok { color: var(--good); }
.breach-kpis .kpi .k-value.warn { color: var(--warn); }
.breach-kpis .kpi .k-value.bad { color: var(--serious); }
@media (max-width: 720px) { .breach-kpis { grid-template-columns: 1fr; } }

/* Banda "por qué nosotros" */
.diff-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.diff-band .diff {
  background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); padding: 18px 20px;
}
.diff-band .diff b { color: var(--navy); font-family: var(--font-head); display: block; margin-bottom: 4px; font-size: .95rem; }
.diff-band .diff p { color: var(--muted); font-size: .85rem; margin: 0; }
@media (max-width: 1020px) { .diff-band { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .diff-band { grid-template-columns: 1fr; } }

/* ---------- Selector de idioma (7 idiomas) ---------- */
.lang-menu { position: relative; display: inline-block; }
.lang-menu > button {
  font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .06em;
  color: var(--muted); background: transparent; border: 1px solid var(--border); border-radius: 8px;
  padding: 5px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: border-color .12s, color .12s;
}
.lang-menu > button:hover, .lang-menu[open] > button { border-color: var(--blue); color: var(--blue-dark); }
.lang-menu > button::after {
  content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 4px solid currentColor; opacity: .75;
}
.lang-dd {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 70; min-width: 168px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); padding: 6px; display: none;
}
.lang-menu.open .lang-dd { display: block; }
.lang-dd a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 7px 10px; border-radius: 7px; font-size: .9rem; color: var(--navy) !important; font-weight: 500;
}
.lang-dd a:hover { background: var(--blue-soft); text-decoration: none; }
.lang-dd a[aria-current="true"] { background: #EAF4FC; font-weight: 700; }
.lang-dd a .lc {
  font-family: var(--font-head); font-size: .7rem; font-weight: 700; letter-spacing: .07em;
  color: var(--muted-2);
}
/* En el menú móvil el desplegable se muestra en flujo */
@media (max-width: 720px) {
  .lang-dd { position: static; box-shadow: none; border: 0; padding: 0; min-width: 0; }
  .lang-menu.open .lang-dd { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 8px; }
}

/* Enlace de acceso a la app (LIFETIMEBESS Sizer) en la navegación del sitio */
.nav-links a.nav-app { font-weight: 600; padding: 4px 10px; border: 1px solid var(--blue); border-radius: 6px; }
.nav-links a.nav-app:hover { background: var(--blue); color: #fff; }
