/* ==========================================================
   Solar Magerit · Hoja de estilos
   Para cambiar la imagen de marca, edita las variables :root
   ========================================================== */
/* Tipografías (Google Fonts): Montserrat para títulos, Inter para texto */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Montserrat:wght@600;700;800&display=swap');

:root {
  --font-head: Montserrat, Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --navy: #0b2239;
  --navy-2: #123456;
  --green: #0f7a5a;
  --green-l: #e6f4ef;
  --amber: #f5a623;
  --amber-d: #e08e0b;
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #1d2b3a;
  --muted: #5a6b7b;
  --line: #e3e8ee;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 34, 57, .08);
  --shadow-sm: 0 2px 8px rgba(11, 34, 57, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }

.container { width: min(1120px, 92%); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg); }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green); margin-bottom: .6rem;
}
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--amber); color: var(--navy); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.5rem; border: 0; border-radius: 999px; cursor: pointer;
  text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s;
  box-shadow: 0 6px 18px rgba(245, 166, 35, .35);
}
.btn:hover { background: var(--amber-d); transform: translateY(-1px); }
.btn-sm { padding: .55rem 1.1rem; font-size: .92rem; box-shadow: none; }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); box-shadow: none; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); box-shadow: none; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; font-size: 1.3rem; }
.brand b { color: var(--amber); }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand img.brand-logo { width: auto; height: 56px; max-width: 100%; }
.menu { display: flex; align-items: center; gap: 1.6rem; }
.menu a:not(.btn) { color: rgba(255,255,255,.88); text-decoration: none; font-weight: 600; font-size: .95rem; }
.menu a:not(.btn):hover, .menu a[aria-current="page"] { color: var(--amber); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 3px; background: #fff; border-radius: 2px; margin: 5px 0; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p.lead { color: rgba(255,255,255,.82); max-width: 52ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 2rem 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.85); font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--amber); font-weight: 800; margin-right: .45rem; }

/* ---------- Tarjetas de servicios ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.icon {
  width: 54px; height: 54px; border-radius: 14px; background: var(--green-l); color: var(--green);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.icon svg { width: 28px; height: 28px; }
.card ul { padding-left: 1.1rem; color: var(--muted); margin: 0 0 1.2rem; font-size: .96rem; }
.card .more { font-weight: 700; text-decoration: none; }
.card .more:hover { text-decoration: underline; }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; padding: 0; list-style: none; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-top: 3.2rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 2.4rem; height: 2.4rem;
  border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800;
}
.steps h3 { margin-bottom: .3rem; font-size: 1.05rem; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Banda CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--green), var(--navy-2)); color: #fff; border-radius: 24px; padding: clamp(2rem, 5vw, 3.5rem); display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin: 0 0 .3rem; }
.cta-band p { margin: 0; color: rgba(255,255,255,.85); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.contact-grid .card { text-align: center; }
.contact-grid strong { display: block; color: var(--navy); margin-bottom: .2rem; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 3rem 0 1.5rem; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; display: block; margin-bottom: .4rem; }
.site-footer a:hover { color: var(--amber); }
.site-footer .brand { color: #fff; margin-bottom: .2rem; }
.footer-logo, .brand img.footer-logo { width: 190px; height: auto; max-width: 100%; margin: 0 0 .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.2rem; font-size: .85rem; }

/* ---------- Cabecera de páginas interiores ---------- */
.page-hero { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-bottom: .4rem; }
.page-hero p { color: rgba(255,255,255,.8); margin: 0; max-width: 60ch; }

/* ---------- Blog ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--navy); padding: .5rem 1.1rem;
  border-radius: 999px; font-weight: 600; font-size: .9rem; cursor: pointer;
}
.chip:hover { border-color: var(--green); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-thumb { height: 150px; display: grid; place-items: center; color: #fff; }
.post-thumb svg { width: 56px; height: 56px; opacity: .95; }
.thumb-a { background: linear-gradient(135deg, var(--navy), var(--green)); }
.thumb-b { background: linear-gradient(135deg, var(--amber-d), #c96a00); }
.thumb-c { background: linear-gradient(135deg, var(--green), #0b4f3a); }
.post-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.tag { align-self: flex-start; background: var(--green-l); color: var(--green); font-size: .75rem; font-weight: 700; padding: .2rem .7rem; border-radius: 999px; margin-bottom: .7rem; }
.post-body h3 a { color: var(--navy); text-decoration: none; }
.post-body h3 a:hover { color: var(--green); }
.post-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.post-meta { font-size: .82rem; color: var(--muted); }
.empty-msg { display: none; color: var(--muted); }

.article { max-width: 740px; margin-inline: auto; }
.article h2 { margin-top: 2rem; font-size: 1.6rem; }
.article p, .article li { font-size: 1.05rem; }
.article .meta { color: var(--muted); font-size: .92rem; margin-bottom: 2rem; }
.notice { background: #fff8e8; border-left: 4px solid var(--amber); padding: 1rem 1.2rem; border-radius: 8px; font-size: .95rem; margin-bottom: 2rem; }

/* ---------- Calculadora ---------- */
.calc-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 2rem; align-items: start; }
.calc-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.4rem; }
.field label, .field legend { display: block; font-weight: 700; color: var(--navy); margin-bottom: .45rem; padding: 0; }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: .35rem; }
.input-wrap { position: relative; }
.input-wrap span { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
input[type="number"], input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%; font: inherit; padding: .85rem 1rem; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--text);
}
input:focus { border-color: var(--green); outline: none; }
fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; }
.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.radio-cards input { position: absolute; opacity: 0; pointer-events: none; }
.radio-cards label {
  display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center;
  border: 2px solid var(--line); border-radius: 12px; padding: .9rem .4rem; cursor: pointer;
  font-weight: 600; font-size: .88rem; color: var(--navy); margin: 0; transition: .15s;
}
.radio-cards label svg { width: 28px; height: 28px; color: var(--green); }
.radio-cards input:checked + label { border-color: var(--green); background: var(--green-l); }
.radio-cards input:focus-visible + label { outline: 3px solid var(--amber); outline-offset: 2px; }
.error { color: #b3261e; font-size: .88rem; margin-top: .4rem; min-height: 1.2em; }

.result-placeholder { text-align: center; color: var(--muted); padding: 2rem 1rem; }
.result-placeholder svg { width: 64px; height: 64px; margin: 0 auto 1rem; color: var(--amber); }
.result { display: none; }
.result.show { display: block; animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: 1rem; }
.kpi { background: var(--bg); border-radius: 14px; padding: 1rem .6rem; text-align: center; }
.kpi .num { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; color: var(--green); line-height: 1.1; }
.kpi .lbl { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.extra { list-style: none; padding: 0; margin: 0 0 1.2rem; font-size: .95rem; }
.extra li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.extra li span:last-child { font-weight: 700; color: var(--navy); }
.warn { background: #fff8e8; border-left: 4px solid var(--amber); padding: .8rem 1rem; border-radius: 8px; font-size: .9rem; margin-bottom: 1rem; display: none; }
.warn.show { display: block; }
.disclaimer { font-size: .8rem; color: var(--muted); margin-top: 1rem; }
details.assumptions { margin-top: 1rem; font-size: .88rem; color: var(--muted); }
details.assumptions summary { cursor: pointer; font-weight: 700; color: var(--navy); }
details.assumptions ul { padding-left: 1.1rem; }

/* ---------- Diálogo de solicitud ---------- */
dialog { border: 0; border-radius: 20px; padding: 0; width: min(480px, 92vw); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(11, 34, 57, .6); backdrop-filter: blur(3px); }
.dialog-inner { padding: 1.8rem; }
.dialog-inner h3 { font-size: 1.4rem; }
.dialog-close { float: right; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--muted); line-height: 1; }
.summary-box { background: var(--green-l); border-radius: 12px; padding: .8rem 1rem; font-size: .9rem; margin-bottom: 1.2rem; color: var(--navy); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--muted); margin-bottom: 1.2rem; }
.check input { margin-top: .25rem; }
.sent { text-align: center; padding: 1rem 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr; }
  .grid-3, .contact-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .menu {
    position: absolute; top: 76px; left: 0; right: 0; background: var(--navy); flex-direction: column;
    align-items: stretch; gap: 0; padding: .5rem 4% 1.2rem; border-bottom: 1px solid rgba(255,255,255,.1);
    box-shadow: var(--shadow); display: none;
  }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .brand img.brand-logo { height: 48px; }
  .nav { height: 68px; }
  .menu { top: 68px !important; }
  .menu .btn { margin-top: 1rem; }
}
@media (max-width: 560px) {
  .grid-3, .contact-grid, .steps, .footer-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr; }
  .kpi { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1.1rem; text-align: left; }
  .kpi .lbl { margin: 0; }
  .radio-cards { grid-template-columns: 1fr; }
  .radio-cards label { flex-direction: row; justify-content: flex-start; padding: .8rem 1rem; }
  .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* ---------- Portada con foto ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(82vh, 720px);
  display: flex; align-items: center;
  background: var(--navy);
  padding: clamp(3.5rem, 9vw, 6rem) 0;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; display: block; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; display: block; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8,26,44,.90) 0%, rgba(8,26,44,.72) 42%, rgba(8,26,44,.15) 100%);
}
.hero-content > * { max-width: 640px; }
.hero h1 { max-width: 16ch; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
@media (max-width: 720px) {
  .hero { min-height: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(8,26,44,.80) 0%, rgba(8,26,44,.68) 100%); }
  .hero-bg img { object-position: 64% center; }
}

/* ---------- Nombre de marca ---------- */
.wordmark { letter-spacing: -.01em; }
.wordmark .w-solar { color: var(--amber-d); font-weight: 500; }
.wordmark strong { font-weight: 800; }


/* ---------- Simulador de aislamiento ---------- */
.badge { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px; margin-bottom: .8rem; }
.badge-alto { background: #fde8e6; color: #b3261e; }
.badge-medio { background: #fff3d6; color: #8a5a00; }
.badge-bajo { background: var(--green-l); color: var(--green); }
.reasons { padding-left: 1.1rem; color: var(--muted); font-size: .95rem; margin: 0 0 1.2rem; }
.reasons li { margin-bottom: .5rem; }


/* ---------- Blog dinámico ---------- */
[hidden] { display: none !important; }
.loading { color: var(--muted); }
.post-thumb.has-img { background: var(--bg); padding: 0; }
.post-thumb.has-img img { width: 100%; height: 100%; object-fit: cover; }
.article-img { width: 100%; height: auto; border-radius: 16px; margin: 0 0 2rem; box-shadow: var(--shadow); }
.article h3 { margin-top: 1.5rem; }

/* ---------- Formularios ampliados ---------- */
input[type="password"] {
  width: 100%; font: inherit; padding: .85rem 1rem; border: 2px solid var(--line);
  border-radius: 12px; background: #fff; color: var(--text);
}
textarea, select {
  width: 100%; font: inherit; padding: .85rem 1rem; border: 2px solid var(--line);
  border-radius: 12px; background: #fff; color: var(--text);
}
textarea { resize: vertical; line-height: 1.5; }
textarea:focus, select:focus { border-color: var(--green); outline: none; }
input[type="file"] { width: 100%; font: inherit; padding: .6rem; border: 2px dashed var(--line); border-radius: 12px; background: var(--bg); }
.field small { font-weight: 400; color: var(--muted); }

/* ---------- Panel de administración ---------- */
.admin-body { background: var(--bg); min-height: 100vh; }
.admin-user { display: flex; align-items: center; gap: .8rem; font-size: .9rem; color: var(--muted); }
.admin-user span { max-width: 28ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login-card { max-width: 420px; margin: 2rem auto; }
.admin-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 2rem; align-items: start; }
.admin-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.admin-preview { max-width: 100%; max-height: 220px; border-radius: 12px; margin-top: .8rem; border: 1px solid var(--line); }
.status-msg { min-height: 1.4em; font-size: .95rem; color: var(--muted); }
.status-msg.ok { color: var(--green); font-weight: 600; }
.status-msg.err { color: #b3261e; font-weight: 600; }
.admin-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.admin-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.admin-list li.muted { color: var(--muted); display: block; }
.admin-item-info { min-width: 0; }
.admin-item-info strong { display: block; color: var(--navy); overflow: hidden; text-overflow: ellipsis; }
.admin-item-info span { font-size: .85rem; color: var(--muted); }
.admin-item-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.btn-danger { background: transparent; color: #b3261e; border: 2px solid #b3261e; box-shadow: none; }
.btn-danger:hover { background: #b3261e; color: #fff; }
@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .admin-list li { flex-direction: column; align-items: stretch; }
  .admin-user span { display: none; }
}


/* ---------- Reenfoque divulgativo ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.tool-card { display: flex; flex-direction: column; align-items: flex-start; }
.tool-card p { color: var(--muted); }
.tool-card .btn { margin-top: auto; }
.contact-single { max-width: 520px; margin-inline: auto; text-align: center; }
.contact-single .card strong { display: block; color: var(--navy); margin-bottom: .2rem; }
.social { display: flex; justify-content: center; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.social a {
  display: inline-flex; align-items: center; padding: .55rem 1.2rem; border: 2px solid var(--line);
  border-radius: 999px; background: #fff; color: var(--navy); font-weight: 600; text-decoration: none;
}
.social a:hover { border-color: var(--green); color: var(--green); }
/* Enlaces de redes aún sin configurar (href="#"): visibles pero inactivos */
.social a[href="#"], .site-footer a[href="#"] { opacity: .5; pointer-events: none; cursor: default; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

.input-wrap input { padding-right: 6.2rem; }


/* ---------- Herramientas ampliadas ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }
.tools-grid > .card { grid-column: span 2; }
.tools-grid > .card:nth-child(n+4) { grid-column: span 3; }
.tools-grid .card p { font-size: .96rem; }
@media (max-width: 900px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid > .card, .tools-grid > .card:nth-child(n+4) { grid-column: auto; }
  .tools-grid > .card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .tools-grid { grid-template-columns: 1fr; }
  .tools-grid > .card:last-child { grid-column: auto; }
}

/* ---------- Sobre el proyecto ---------- */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.about p { color: var(--muted); font-size: 1.05rem; }
.about-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.about-points li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.2rem 1rem 3rem; position: relative; box-shadow: var(--shadow-sm); color: var(--muted); font-size: .95rem;
}
.about-points li::before { content: "✓"; position: absolute; left: 1.1rem; top: 1rem; color: var(--green); font-weight: 800; }
.about-points strong { display: block; color: var(--navy); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- Simulador de potencia ---------- */
.pw-group { border: 0; padding: 0; margin: 0 0 1.2rem; }
.pw-group legend { font-weight: 700; color: var(--navy); margin-bottom: .5rem; padding: 0; }
.pw-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.pw-item {
  display: flex; align-items: center; gap: .6rem; border: 2px solid var(--line); border-radius: 12px;
  padding: .7rem .8rem; cursor: pointer; background: #fff; font-size: .92rem; transition: .15s;
}
.pw-item:hover { border-color: var(--green); }
.pw-item:has(input:checked) { border-color: var(--green); background: var(--green-l); }
.pw-item input { width: 18px; height: 18px; accent-color: var(--green); flex-shrink: 0; }
.pw-name { flex: 1; color: var(--navy); font-weight: 600; }
.pw-w { color: var(--muted); font-size: .82rem; white-space: nowrap; }
#pw-est { font-size: clamp(1.05rem, 2.4vw, 1.35rem); }
.pw-msg p { margin: 0 0 .8rem; }
.pw-base { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--muted); margin: 0 0 1.2rem; }
.pw-base input { margin-top: .25rem; accent-color: var(--green); }
@media (max-width: 560px) { .pw-items { grid-template-columns: 1fr; } }

/* ---------- Test de aislamiento ---------- */
.quiz-card { max-width: 780px; margin-inline: auto; }
.quiz-progress { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 1rem; }
.quiz-progress span { display: block; height: 100%; background: var(--green); transition: width .3s; }
.quiz-step { color: var(--muted); font-size: .9rem; margin: 0 0 .6rem; }
.quiz-q { border: 0; padding: 0; margin: 0 0 1.2rem; }
.quiz-q legend { font-size: 1.25rem; font-weight: 700; color: var(--navy); padding: 0; margin-bottom: .4rem; }
.quiz-opt {
  display: flex; align-items: flex-start; gap: .7rem; border: 2px solid var(--line); border-radius: 12px;
  padding: .85rem 1rem; margin-top: .6rem; cursor: pointer; transition: .15s;
}
.quiz-opt:hover { border-color: var(--green); }
.quiz-opt:has(input:checked) { border-color: var(--green); background: var(--green-l); }
.quiz-opt input { margin-top: .25rem; accent-color: var(--green); }
.quiz-nav { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; margin-top: 1.4rem; }
.quiz-nav .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.quiz-score { display: flex; gap: 1.2rem; align-items: center; background: var(--bg); border-radius: 16px; padding: 1.2rem; margin-bottom: 1.4rem; }
.quiz-score p { margin: .2rem 0 0; color: var(--muted); }
.quiz-num { font-size: 3rem; font-weight: 800; line-height: 1; color: var(--green); min-width: 4.8rem; text-align: center; }
.quiz-num small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.quiz-deficiente .quiz-num { color: #b3261e; }
.quiz-mejorable .quiz-num { color: #8a5a00; }
.quiz-leaks { padding-left: 1.2rem; }
.quiz-leaks > li { margin-bottom: 1.2rem; }
.quiz-leaks ul, .quiz-q + .quiz-nav ul { color: var(--muted); font-size: .95rem; padding-left: 1.1rem; margin: .4rem 0 0; }
.quiz-card h3 { font-size: 1.15rem; margin-top: 1.4rem; }
.quiz-card ul { color: var(--muted); font-size: .95rem; padding-left: 1.1rem; }

/* ---------- Baterías ---------- */
details.adv { margin: 0 0 1.4rem; border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; background: var(--bg); }
details.adv summary { cursor: pointer; font-weight: 700; color: var(--navy); }
details.adv .field { margin: 1rem 0 0; }
.bt-verdict p { margin: 0 0 .8rem; font-size: .97rem; }
.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: 1rem; }
.compare .kpi .num { font-size: clamp(1.25rem, 3.2vw, 1.7rem); }
@media (max-width: 560px) { .compare { grid-template-columns: 1fr; } .compare .kpi { display: flex; justify-content: space-between; align-items: center; text-align: left; padding: .8rem 1.1rem; } .compare .kpi .lbl { margin: 0; } }

/* ---------- Guías: ayudas y glosario ---------- */
.doc { max-width: 860px; margin-inline: auto; }
.doc h2 { margin-top: 2.4rem; font-size: 1.6rem; }
.doc h3 { margin-top: 1.6rem; font-size: 1.15rem; }
.doc p, .doc li { font-size: 1.02rem; }
.doc ul { color: var(--text); }
.table-wrap { overflow-x: auto; margin: 1.2rem 0; border: 1px solid var(--line); border-radius: 14px; }
table.tabla { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .94rem; }
table.tabla th, table.tabla td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.tabla th { background: var(--bg); color: var(--navy); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
table.tabla tr:last-child td { border-bottom: 0; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 1rem 0; }
.facts div { background: var(--bg); border-radius: 12px; padding: .9rem 1rem; font-size: .92rem; color: var(--muted); }
.facts strong { display: block; color: var(--green); font-size: 1.3rem; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }
.sources { font-size: .93rem; color: var(--muted); }
.sources li { margin-bottom: .4rem; }
.glos-tools { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; margin-bottom: 1.5rem; }
.glos-tools .input-wrap { flex: 1 1 340px; max-width: 520px; }
.glos-count { color: var(--muted); font-size: .92rem; }
.glos-list { display: grid; gap: 1rem; }
.glos-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-sm); scroll-margin-top: 90px; }
.glos-item h3 { margin: 0 0 .4rem; font-size: 1.12rem; }
.glos-item p { margin: 0 0 .5rem; }
.glos-item .ej { color: var(--muted); font-size: .93rem; margin: 0; }
.glos-item mark { background: #fff1c9; color: inherit; border-radius: 3px; padding: 0 2px; }

/* Utilidades de accesibilidad y glosario */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.glos-empty { text-align: center; color: var(--muted); padding: 1.5rem 0; }
.glos-item small { font-weight: 500; color: var(--muted); font-size: .8em; }

/* Tipografía técnica: cifras y datos destacados con la fuente de títulos */
.kpi .num, .quiz-num, .eyebrow, .btn { font-family: var(--font-head); }
.btn { font-weight: 700; letter-spacing: 0; }
.eyebrow { font-weight: 700; }

/* ---------- Barra de secciones (estilo revista) ---------- */
.secbar { background: var(--amber); }
.secbar nav { display: flex; gap: 0; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.secbar a {
  flex: 0 0 auto; white-space: nowrap; padding: .8rem .72rem; color: var(--navy);
  font-weight: 600; font-size: .86rem; text-decoration: none;
}
.secbar a:hover, .secbar a[aria-current="page"] { background: var(--navy); color: #fff; }
.secbar a:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }


/* ---------- Cabecera de medio digital ---------- */
.site-header { position: static; }
.nav { height: 104px; gap: 1.5rem; }
.brand img.brand-logo { height: 84px; width: auto; }
.head-social { display: flex; align-items: center; gap: .5rem; }
.icon-link {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  color: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.18);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.icon-link svg { width: 22px; height: 22px; }
.icon-link:hover, .icon-link:focus-visible { color: var(--navy); background: var(--amber); border-color: var(--amber); transform: translateY(-2px); outline: none; }
.icon-link[href="#"] { opacity: .45; pointer-events: none; cursor: default; }

/* Barra de categorías: ancho algo mayor para que quepan las 13 entradas en una línea */
.secbar-in { width: min(1240px, 100%); margin-inline: auto; padding-inline: 2%; }
.secbar nav { scroll-behavior: smooth; }
.secbar a { padding: .8rem .62rem; font-size: .85rem; }
@media (max-width: 720px) {
  .nav { height: 84px; }
  .brand img.brand-logo { height: 62px; }
  .icon-link { width: 42px; height: 42px; }
  .head-social { gap: .35rem; }
  .secbar-in { padding-inline: 0; }
  .secbar a { padding: .85rem .85rem; }
}
@media (max-width: 380px) { .brand img.brand-logo { height: 52px; } .icon-link { width: 38px; height: 38px; } .icon-link svg { width: 20px; height: 20px; } }

.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.4rem; }
#empty:not(:empty) { text-align: center; padding: 2rem 0; font-size: 1.05rem; }

/* Barra naranja con 14 enlaces: una sola línea en escritorio (≥ 1220 px) y scroll suave en pantallas menores */
.secbar-in { width: min(1320px, 100%); padding-inline: 1%; }
.secbar nav { justify-content: space-between; }
.secbar a { padding: .8rem .5rem; font-size: .82rem; }
@media (max-width: 720px) { .secbar nav { justify-content: flex-start; } .secbar a { padding: .85rem .85rem; font-size: .85rem; } .secbar-in { padding-inline: 0; } }
