/* HSG Ingeniería Solar — «plano solar»: papel blanco, líneas de dibujo técnico en azul de plano
   y el naranja del logo para la energía. Tipografía: Poppins en todos sus pesos. */

@font-face { font-family: "Poppins"; src: url("../fonts/poppins-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --white: #FFFFFF;
  --sheet: #F5F7FB;
  --ink: #14202E;
  --ink-2: #344052;
  --muted: #5E6876;
  --line: #E3E8EF;
  --line-2: #C9D2DE;
  --blue: #1E4FC2;
  --blue-2: #3D6BD8;
  --blue-50: #EEF3FD;
  --blue-100: #DCE6FA;
  --orange: #FF6B1A;
  --orange-ink: #C2410C;
  --orange-50: #FFF3EA;
  --sun: #FFB547;
  --brick: #B9583A;
  --ok: #15803D;
  --err: #B42318;
  --wa: #25D366;
  --wa-ink: #062611;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1220px;
  --gutter: clamp(18px, 4vw, 36px);
  --r: 6px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --plan: linear-gradient(rgba(30, 79, 194, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 79, 194, .07) 1px, transparent 1px);
  --plan-major: linear-gradient(rgba(30, 79, 194, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 79, 194, .1) 1px, transparent 1px);
  --shadow: 0 1px 2px rgba(20, 32, 46, .05), 0 12px 30px -18px rgba(20, 32, 46, .25);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; font-weight: 400; line-height: 1.75; color: var(--ink-2);
  background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s; }
a:hover { color: var(--orange-ink); }
h1, h2, h3, h4 { color: var(--ink); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; margin: 0 0 .55em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.25rem + 3.2vw, 3.65rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.07; }
h2 { font-size: clamp(1.65rem, 1.1rem + 1.9vw, 2.45rem); }
h3, .h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
strong { color: var(--ink); font-weight: 600; }
em { font-style: italic; }
::selection { background: var(--blue-100); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r); font-weight: 600; }
.skip:focus { top: 12px; color: #fff; }
.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; }
.ico { width: 1.2em; height: 1.2em; flex: none; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.nowrap { white-space: nowrap; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .9em 1.35em; border: 1.5px solid transparent; border-radius: var(--r);
  font-family: var(--font); font-weight: 600; font-size: .95rem; line-height: 1.2; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn .ico { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--orange); color: var(--ink); box-shadow: 0 10px 22px -14px rgba(255, 107, 26, .9); }
.btn-primary:hover { background: #FF8236; color: var(--ink); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { background: #3be07a; color: var(--wa-ink); }
.btn-outline { background: var(--white); color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-light, .btn-ghost-light { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.btn-light:hover, .btn-ghost-light:hover { border-color: var(--ink); color: var(--ink); }
.btn-lg { padding: 1.02em 1.6em; font-size: 1rem; }
.btn-sm { padding: .62em 1em; font-size: .86rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row-center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; text-decoration: none; color: var(--blue); }
.link-arrow .ico { transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(5px); }

/* ---------- Barra superior y encabezado ---------- */
.topbar { background: var(--sheet); color: var(--muted); font-size: .8rem; border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar p { margin: 0; display: flex; align-items: center; gap: 8px; }
.topbar a { color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.topbar a:hover { color: var(--blue); }
.topbar .ico { width: 15px; height: 15px; color: var(--blue); }
.topbar-links { gap: 20px !important; }
.topbar-social .ico { width: 17px; height: 17px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(1.5) blur(12px); backdrop-filter: saturate(1.5) blur(12px); border-bottom: 1px solid var(--line); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--orange); transform: scaleX(var(--progress, 0)); transform-origin: left; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -24px rgba(20, 32, 46, .45); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.logo { display: block; flex: none; }
.logo img { height: 56px; width: auto; }
.menu-btn { display: none; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r); padding: 9px 14px; font-weight: 600; font-size: .9rem; color: var(--ink); cursor: pointer; }
.menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; position: relative; transition: transform .25s, background-color .25s; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; }
.menu-btn .bars::before { top: -6px; } .menu-btn .bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; align-items: center; gap: 2px; }
.nav a, .nav summary { position: relative; display: flex; align-items: center; gap: 6px; padding: 10px 13px; color: var(--ink-2); font-weight: 500; font-size: .93rem; text-decoration: none; cursor: pointer; white-space: nowrap; border-radius: var(--r); transition: color .2s, background-color .2s; }
.nav a:hover, .nav summary:hover { color: var(--blue); background: var(--blue-50); }
.nav > ul > li > a[aria-current="page"] { color: var(--ink); }
.nav > ul > li > a[aria-current="page"]::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px; background: var(--orange); }
.nav summary { list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary .ico { width: 15px; height: 15px; transition: transform .2s; }
.nav details[open] summary .ico { transform: rotate(180deg); }
.nav details { position: relative; }
.nav .sub { position: absolute; top: calc(100% + 10px); left: -8px; min-width: 350px; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 30px 60px -28px rgba(20, 32, 46, .4); }
.nav .sub a { align-items: flex-start; white-space: normal; padding: 12px; gap: 12px; color: var(--ink); font-weight: 600; }
.nav .sub a .ico { width: 22px; height: 22px; color: var(--blue); margin-top: 2px; }
.nav .sub a span { display: block; }
.nav .sub a small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; line-height: 1.45; margin-top: 2px; }
.nav .cta-nav a { margin-left: 10px; padding: 11px 20px; background: var(--orange); color: var(--ink); font-weight: 600; }
.nav .cta-nav a:hover { background: #FF8236; color: var(--ink); }

@media (max-width: 1099px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(20, 32, 46, .4); max-height: calc(100vh - 76px); overflow-y: auto; }
  .nav.is-open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 22px; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav > ul > li.cta-nav { border: 0; }
  .nav a, .nav summary { padding: 14px 6px; font-size: 1rem; border-radius: 0; }
  .nav a:hover, .nav summary:hover { background: transparent; }
  .nav > ul > li > a[aria-current="page"]::after { left: 6px; right: auto; width: 24px; bottom: 6px; }
  .nav .sub { position: static; box-shadow: none; border: 0; padding: 0 0 8px; min-width: 0; }
  .nav .cta-nav a { margin: 16px 0 0; justify-content: center; padding: 15px; border-radius: var(--r); }
}
@media (max-width: 900px) { .topbar .hide-md { display: none; } }
@media (max-width: 520px) {
  .logo img { height: 46px; }
  .header-row { min-height: 66px; }
  .topbar .hide-sm { display: none; }
}

/* ---------- Migas de pan ---------- */
.crumbs { background: var(--white); border-bottom: 1px solid var(--line); font-size: .82rem; }
.crumbs ol { list-style: none; margin: 0; padding: 11px 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(64px, 8.5vw, 116px) 0; }
.section-tight { position: relative; padding: clamp(36px, 4.5vw, 60px) 0; }
.section > .wrap, .section-tight > .wrap { position: relative; z-index: 1; }
.section + .section:not(.section-soft):not(.section-dark) { border-top: 1px solid var(--line); }
.section-soft, .section-dark { background: var(--sheet); overflow: hidden; }
.section-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--plan), var(--plan-major); background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
  -webkit-mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, .25)); mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, .25));
}

.sec-head { max-width: 760px; margin-bottom: clamp(34px, 4.5vw, 54px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head p { font-size: 1.06rem; color: var(--muted); }

/* Etiqueta de sección dibujada como una cota de plano: |—— TEXTO ——| */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.eyebrow::before, .eyebrow::after { content: ""; flex: none; width: 28px; height: 9px; background: linear-gradient(var(--blue), var(--blue)) center / 100% 1px no-repeat; }
.eyebrow::before { border-left: 1.5px solid var(--blue); }
.eyebrow::after { border-right: 1.5px solid var(--blue); }
.hl { color: var(--orange); }
.lead { font-size: clamp(1.04rem, 1rem + .3vw, 1.17rem); color: var(--muted); max-width: 62ch; }

.grid { display: grid; gap: clamp(14px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split-top { align-items: start; }
.split-wide { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
@media (max-width: 900px) { .split, .split-wide { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Tarjetas ---------- */
.card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: clamp(22px, 2.4vw, 30px); transition: transform .3s var(--ease), border-color .25s, box-shadow .3s; }
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card:hover { border-color: var(--line-2); }
.card-link:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: var(--shadow); }
.card .stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card-link:hover h3 a { color: var(--blue); }
/* Tarjetas con enlace: ficha de plano con el dibujo grande sobre cuadrícula */
.card-link { padding-top: 0; overflow: hidden; }
.card-link .chip-ico {
  width: auto; height: 132px; margin: 0 calc(-1 * clamp(22px, 2.4vw, 30px)) 22px; border: 0; border-bottom: 1px dashed var(--line-2); border-radius: 0;
  background-color: var(--sheet); background-image: var(--plan), var(--plan-major); background-size: 16px 16px, 16px 16px, 80px 80px, 80px 80px;
}
.card-link .chip-ico svg { width: 64px; height: 64px; transition: transform .4s var(--ease); }
.card-link:hover .chip-ico { background-color: var(--blue-50); color: var(--blue); }
.card-link:hover .chip-ico svg { transform: scale(1.08); }
.card-link:hover .link-arrow .ico { transform: translateX(5px); }
.card-foot { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
/* Íconos dentro de un recuadro de líneas de construcción (punteadas) */
.chip-ico { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 20px; border: 1.5px dashed var(--blue); border-radius: var(--r); background: var(--blue-50); color: var(--blue); transition: background-color .25s, color .25s; }
.chip-ico svg { width: 26px; height: 26px; }

.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 11px; }
.checks li { display: flex; gap: 11px; align-items: flex-start; }
.checks li .ico { color: var(--orange-ink); margin-top: .3em; width: 1.05em; height: 1.05em; }
.checks.two { grid-template-columns: 1fr 1fr; gap: 12px 26px; }
@media (max-width: 560px) { .checks.two { grid-template-columns: 1fr; } }

.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--orange-50); color: var(--orange-ink); font-size: .74rem; font-weight: 600; letter-spacing: .04em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li { padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--white); font-size: .84rem; font-weight: 500; color: var(--ink-2); transition: border-color .2s, color .2s; }
.tags li:hover { border-color: var(--blue); color: var(--blue); }
.tags a { color: inherit; text-decoration: none; }

/* ---------- Hero de portada: plano de la casa ---------- */
.hero { position: relative; overflow: hidden; background: var(--white); padding: clamp(36px, 5vw, 70px) 0 clamp(40px, 5vw, 70px); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--plan), var(--plan-major); background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
  -webkit-mask-image: radial-gradient(70% 90% at 80% 40%, #000 0, transparent 75%); mask-image: radial-gradient(70% 90% at 80% 40%, #000 0, transparent 75%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 .hl { display: block; font-weight: 300; letter-spacing: -.03em; }
.hero .lead { margin-bottom: 30px; }
.trust { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; font-size: .9rem; font-weight: 500; color: var(--ink); }
.trust li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; }
.trust .ico { color: var(--white); background: var(--blue); border-radius: 50%; padding: 4px; width: 20px; height: 20px; flex: none; }
/* La ilustración y sus dos notas, como una figura de plano con notas al pie */
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-art > svg { grid-column: 1 / -1; width: 100%; height: auto; }
.float-card { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: var(--r); font-size: .8rem; line-height: 1.4; color: var(--muted); }
.float-card strong { display: block; font-size: 1rem; font-weight: 600; color: var(--ink); }
.float-card .chip-ico { width: 38px; height: 38px; margin: 0; }
.float-card .chip-ico svg { width: 20px; height: 20px; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-art { max-width: 660px; margin-inline: auto; width: 100%; } }
@media (max-width: 640px) {
  .trust { grid-template-columns: 1fr; }
  .hero-art { grid-template-columns: 1fr; }
}

/* Ilustración isométrica */
.hx-hills { fill: none; stroke: var(--line-2); stroke-width: 1.4; }
.hx-sun circle { fill: var(--sun); stroke: var(--orange); stroke-width: 1.5; }
.hx-rays { fill: none; stroke: var(--orange); stroke-width: 2.2; stroke-linecap: round; }
.hx-sun { transform-origin: 92px 86px; animation: sunturn 60s linear infinite; }
@keyframes sunturn { to { transform: rotate(360deg); } }
.hx-sunray { fill: none; stroke: var(--orange); stroke-width: 1.2; stroke-dasharray: 3 6; opacity: .8; animation: rays 2.4s linear infinite; }
@keyframes rays { to { stroke-dashoffset: -18; } }
.hx-ground { fill: #F3F6FA; stroke: var(--line-2); stroke-width: 1; }
.hx-shadow { fill: rgba(20, 32, 46, .07); }
.hx-walk { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 6 5; }
.hx-brick-a { fill: #C8643F; stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.hx-brick-b { fill: #A9512F; stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.hx-courses { fill: none; stroke: #8E4126; stroke-width: .6; opacity: .55; }
.hx-band { fill: #F3EDE6; stroke: var(--ink); stroke-width: .8; }
.hx-frame { fill: #fff; stroke: var(--ink); stroke-width: 1; }
.hx-glass { fill: #CFE0F7; }
.hx-glass-b { fill: #B9CFEF; }
.hx-mull { fill: none; stroke: #fff; stroke-width: 1.2; }
.hx-door { fill: #6B3B27; stroke: var(--ink); stroke-width: 1.1; }
.hx-roof-back { fill: #7E3A28; stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.hx-roof { fill: #A04A31; stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.hx-tiles { fill: none; stroke: #7A3524; stroke-width: .9; opacity: .7; }
.hx-fascia { fill: #EFE7DE; stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; }
.hx-panel { fill: #1F3E7A; stroke: #E6ECF5; stroke-width: 1.6; stroke-linejoin: round; }
.hx-cells { fill: none; stroke: #6F96D6; stroke-width: .6; opacity: .75; }
.hx-glint { fill: #fff; opacity: 0; animation: glint 6s var(--ease) infinite; }
@keyframes glint { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: .35; } 70% { opacity: .2; } 100% { opacity: 0; transform: translate(168px, 97px); } }
.hx-box { fill: #F7F8FA; stroke: var(--ink); stroke-width: 1.1; }
.hx-screen { fill: var(--blue); }
.hx-meter { fill: #fff; stroke: var(--ink); stroke-width: 1.1; }
.hx-dc { fill: none; stroke: var(--orange); stroke-width: 2.4; stroke-linejoin: round; }
.hx-ac { fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linejoin: round; }
.hx-flow { fill: none; stroke: #fff; stroke-width: 1.6; stroke-dasharray: 1 9; stroke-linecap: round; animation: flow 1s linear infinite; }
.hx-pole { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.hx-wire { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.hx-trunk { fill: none; stroke: #6B4A2E; stroke-width: 3; }
.hx-tree circle { fill: #CFE5C3; stroke: var(--ink); stroke-width: 1.1; }
.hx-call path { fill: none; stroke: var(--blue); stroke-width: 1; }
.hx-dot { fill: var(--blue); }
.hx-num-bg { fill: #fff; stroke: var(--blue); stroke-width: 1.5; }
.hx-num { fill: var(--blue); font-family: var(--font); font-size: 11.5px; font-weight: 700; }
.hx-label { fill: var(--ink); font-family: var(--font); font-size: 12.5px; font-weight: 600; }
@media (max-width: 640px) { .hx-label { font-size: 17px; } .hx-num { font-size: 14px; } }
.hx-north circle { fill: #fff; stroke: var(--blue); stroke-width: 1.2; }
.hx-north path { fill: var(--blue); }
.hx-north text { fill: var(--blue); font-family: var(--font); font-size: 12px; font-weight: 700; }

/* ---------- Encabezado de páginas internas ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--white); padding: clamp(46px, 6vw, 88px) 0 clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--plan), var(--plan-major); background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 85%); mask-image: linear-gradient(90deg, transparent 35%, #000 85%);
}
.page-hero::after { content: ""; position: absolute; right: -2%; bottom: 0; width: 46%; height: 82%; pointer-events: none; background: url("../img/roof.svg") no-repeat center / 100% 100%; opacity: .9; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { margin-bottom: 26px; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 44px; align-items: end; }
.hero-facts { display: grid; gap: 10px; }
.hero-facts div { padding: 14px 18px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: var(--r); font-size: .88rem; line-height: 1.45; color: var(--muted); box-shadow: 0 1px 2px rgba(20, 32, 46, .04); }
.hero-facts strong { display: block; font-size: 1.28rem; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: minmax(0, 1fr); } .page-hero::after { width: 70%; opacity: .5; } }

/* ---------- Cifras: ficha técnica con regla ---------- */
.stats { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--white); }
.stats::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; pointer-events: none; background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 12px), repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 60px); background-size: 100% 5px, 100% 9px; background-repeat: no-repeat; }
.stat { position: relative; padding: 30px 24px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { display: flex; align-items: baseline; gap: 8px; font-size: clamp(2.1rem, 1.5rem + 1.6vw, 2.8rem); font-weight: 600; color: var(--ink); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-num small { font-size: .32em; font-weight: 600; letter-spacing: .02em; color: var(--blue); }
.stat p { margin: 12px 0 0; font-size: .9rem; line-height: 1.55; color: var(--muted); }
.stat .src { display: block; margin-top: 10px; font-size: .7rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #8892A0; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } .stat { border-right: 0; border-bottom: 1px solid var(--line); } .stat:last-child { border-bottom: 0; } }

/* ---------- Tarjetas de modelo ---------- */
.model { display: flex; flex-direction: column; }
.model-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.model-head .chip-ico { margin: 0; }
.model-head p { margin: 0; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.model-head h3 { margin: 3px 0 0; font-size: 1.3rem; }
.model .checks { flex: 1; }
.model-ideal { margin: 10px 0 0; padding: 14px 16px; border-radius: var(--r); background: var(--sheet); font-size: .92rem; }
.model-feature { border: 1.5px solid var(--blue); }
.model-feature .ribbon { position: absolute; top: 20px; right: 20px; }

/* ---------- Tablas ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 640px; }
caption { text-align: left; padding: 18px 20px 12px; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
th, td { padding: 14px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--ink); background: var(--sheet); border-top: 1px solid var(--line); border-bottom: 1.5px solid var(--ink); }
tbody th { font-weight: 600; color: var(--ink); width: 28%; }
tbody tr { transition: background-color .2s; }
tbody tr:hover { background: #FAFBFD; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td .yes { display: inline-flex; gap: 8px; align-items: baseline; color: var(--ink); font-weight: 600; }
td .yes::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; transform: translateY(-1px); }
td .no { color: var(--muted); }

/* ---------- Calculadora: hoja de cálculo ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(20px, 3.4vw, 40px); align-items: start; }
.calc-inputs { display: grid; gap: 26px; padding: clamp(22px, 2.8vw, 32px); background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.calc fieldset { border: 0; padding: 0; margin: 0; }
.calc legend, .calc label.lbl { display: block; margin-bottom: 12px; font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.calc label.lbl output { color: var(--orange-ink); }
.seg { display: inline-grid; grid-auto-flow: column; padding: 4px; gap: 4px; background: var(--sheet); border: 1px solid var(--line); border-radius: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: inline-flex; gap: 8px; align-items: center; padding: 9px 18px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--muted); transition: background-color .2s, color .2s, box-shadow .2s; }
.seg label .ico { width: 18px; height: 18px; }
.seg input:checked + label { background: var(--white); color: var(--blue); box-shadow: 0 1px 3px rgba(20, 32, 46, .14); }
.seg input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }
.range-row { display: grid; grid-template-columns: minmax(0, 1fr) 176px; gap: 16px; align-items: center; }
.money-input { position: relative; }
.money-input span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--blue); }
.calc input[type="number"], .calc input[type="text"] {
  width: 100%; padding: 12px 14px 12px 28px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); color: var(--ink);
  font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; transition: border-color .2s, box-shadow .2s;
}
.calc input[type="number"]::-webkit-inner-spin-button, .calc input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.calc input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 79, 194, .16); }
.calc input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; cursor: pointer; background: transparent; }
.calc input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--blue) 0 var(--pct, 50%), var(--blue-100) var(--pct, 50%) 100%); }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--white); border: 3px solid var(--orange); box-shadow: 0 2px 8px rgba(20, 32, 46, .25); transition: transform .2s; }
.calc input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.12); }
.calc input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--blue-100); }
.calc input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--blue); }
.calc input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--orange); box-shadow: 0 2px 8px rgba(20, 32, 46, .25); }
.calc input[type="range"]:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.calc .hint { margin: 10px 0 0; font-size: .84rem; line-height: 1.55; color: var(--muted); }
.calc-out { position: relative; padding: clamp(22px, 3vw, 34px); background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: 10px; box-shadow: var(--shadow); }
.calc-out h3 { margin: 0 0 6px; font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.big-save { margin: 0; font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.3rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.big-save small { font-size: .32em; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.save-year { margin: 6px 0 18px; font-weight: 600; color: var(--orange-ink); }
/* Dibujo del arreglo de paneles que calcula la herramienta */
.calc-viz { margin: 0 0 18px; padding: 14px; border: 1px dashed var(--line-2); border-radius: 8px; background-color: var(--sheet); background-image: var(--plan); background-size: 12px 12px; }
.viz-grid { display: flex; flex-wrap: wrap; gap: 4px; min-height: 30px; }
.viz-grid i {
  display: block; width: 18px; height: 26px; border-radius: 2px; background: #1F3E7A;
  background-image: linear-gradient(90deg, transparent 32%, rgba(140, 175, 230, .6) 32% 36%, transparent 36% 64%, rgba(140, 175, 230, .6) 64% 68%, transparent 68%), linear-gradient(transparent 24%, rgba(140, 175, 230, .6) 24% 27%, transparent 27% 49%, rgba(140, 175, 230, .6) 49% 52%, transparent 52% 74%, rgba(140, 175, 230, .6) 74% 77%, transparent 77%);
  box-shadow: 0 0 0 1px #E6ECF5 inset; animation: pop .35s var(--ease) both;
}
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.viz-note { margin: 10px 0 0; font-size: .76rem; color: var(--muted); }
.viz-note:empty { display: none; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 20px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.metric { padding: 12px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric span { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); line-height: 1.35; }
.metric strong { display: block; margin-top: 4px; font-size: 1.1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-price { border-top: 1px dashed var(--line-2); padding-top: 14px; margin-bottom: 18px; font-size: .94rem; }
.calc-out .btn-row .btn { flex: 1 1 200px; }
.assumptions { margin: 20px 0 0; font-size: .78rem; line-height: 1.6; color: var(--muted); }
@media (max-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .range-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Diagramas: plano técnico ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.tab { position: relative; display: inline-flex; gap: 8px; align-items: center; padding: 13px 18px; border: 0; background: transparent; cursor: pointer; font-weight: 500; font-size: .93rem; color: var(--muted); transition: color .2s; }
.tab .ico { width: 18px; height: 18px; }
.tab::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--orange); transform: scaleX(0); transition: transform .3s var(--ease); }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab[aria-selected="true"] .ico { color: var(--blue); }
.tab-panel { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(20px, 3vw, 46px); align-items: start; }
.tab-panel h3 { font-size: 1.4rem; }
.diagram { position: relative; margin: 0; padding: clamp(10px, 2vw, 22px); background-color: var(--white); background-image: var(--plan), var(--plan-major); background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px; border: 1px solid var(--line-2); border-radius: 8px; }
.diagram svg { width: 100%; height: auto; }
.dg-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.d-box { fill: var(--white); stroke: var(--blue); stroke-width: 1.4; rx: 6px; ry: 6px; }
.d-box-hi { fill: var(--orange-50); stroke: var(--orange); }
.d-ico { color: var(--blue); }
.d-ico-dark { color: var(--ink); }
.d-label { font-family: var(--font); font-size: 16px; font-weight: 600; fill: var(--ink); }
.d-sub { font-family: var(--font); font-size: 12.5px; font-weight: 400; fill: var(--muted); }
.d-num { font-family: var(--font); font-size: 12px; font-weight: 700; fill: #fff; }
.d-num-bg { fill: var(--blue); }
.wire-dc { fill: none; stroke: var(--orange); stroke-width: 3.5; stroke-linejoin: round; }
.wire-ac { fill: none; stroke: var(--blue); stroke-width: 3.5; stroke-linejoin: round; }
.flow { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 12; animation: flow 1s linear infinite; }
.flow-rev { animation-direction: reverse; }
@keyframes flow { to { stroke-dashoffset: -13; } }
.legend { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin: 14px 0 4px; font-size: .78rem; font-weight: 500; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 26px; height: 3.5px; border-radius: 2px; background: var(--orange); display: inline-block; }
.legend i.ac { background: var(--blue); }
.legend i.fl { height: 6px; background: repeating-linear-gradient(90deg, var(--ink-2) 0 3px, transparent 3px 8px); }
ol.flow-steps { counter-reset: fs; list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 0; border-top: 1px solid var(--line); }
ol.flow-steps li { counter-increment: fs; position: relative; padding: 11px 0 11px 42px; font-size: .95rem; line-height: 1.55; border-bottom: 1px solid var(--line); }
ol.flow-steps li::before { content: counter(fs); position: absolute; left: 0; top: 11px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: var(--blue); border: 1.5px solid var(--blue); background: var(--white); }
@media (max-width: 900px) { .tab-panel { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .dg-scroll svg { min-width: 600px; }
  .diagram { padding: 10px 0 10px 10px; }
  .legend { padding-right: 10px; }
  .tab { padding: 12px 10px; font-size: .84rem; }
}

/* ---------- Proceso: línea de tiempo ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px clamp(18px, 3vw, 40px); counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding-top: 22px; border-top: 1.5px solid var(--ink); }
.steps li::before { content: "0" counter(st); display: block; margin-bottom: 10px; font-size: 2.6rem; font-weight: 300; line-height: 1; letter-spacing: -.04em; color: var(--orange); }
.steps li::after { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--ink); }
.steps h3 { font-size: 1.08rem; margin-bottom: .4em; }
.steps p { margin: 0; font-size: .94rem; color: var(--muted); }
.steps .step-tag { display: inline-block; margin-top: 14px; padding: 3px 10px; border: 1px dashed var(--blue); border-radius: 999px; font-size: .74rem; font-weight: 500; color: var(--blue); background: var(--white); }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Equipo ---------- */
.person { display: flex; flex-direction: column; }
.avatar { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 50%; border: 1.5px solid var(--blue); background: var(--blue-50); color: var(--blue); font-weight: 600; font-size: 1.15rem; letter-spacing: .02em; }
.person .role { margin: -2px 0 14px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; line-height: 1.5; color: var(--orange-ink); }
.person p { font-size: .95rem; }
.person .tags { margin-top: auto; padding-top: 8px; }
.person .tags li { font-size: .74rem; padding: 3px 10px; }
.exp-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin-top: 30px; }
.exp-strip div { padding-top: 16px; border-top: 1.5px solid var(--ink); font-size: .86rem; line-height: 1.5; color: var(--muted); }
.exp-strip strong { display: block; margin-bottom: 4px; font-size: 1.85rem; font-weight: 600; letter-spacing: -.035em; color: var(--ink); }
@media (max-width: 900px) { .exp-strip { grid-template-columns: 1fr 1fr; } }

/* ---------- Ejemplo tributario: liquidación ---------- */
.calc-example { background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.calc-example header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 24px; background: var(--sheet); border-bottom: 1.5px solid var(--ink); font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.calc-example header span { color: var(--muted); letter-spacing: .02em; text-transform: none; font-weight: 500; font-size: .85rem; }
.calc-example dl { margin: 0; padding: 6px 24px 18px; }
.calc-example dl div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line-2); }
.calc-example dl div:last-child { border-bottom: 0; }
.calc-example dt { color: var(--ink); font-weight: 600; }
.calc-example dt small { display: block; margin-top: 2px; font-size: .78rem; font-weight: 400; color: var(--muted); }
.calc-example dd { margin: 0; font-weight: 600; color: var(--ink); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.calc-example .total { margin: 6px -24px 0; padding: 16px 24px; background: var(--orange-50); border-bottom: 0; border-top: 1.5px solid var(--orange); }
.calc-example .total dd { color: var(--orange-ink); font-size: 1.15rem; }
.calc-example footer { padding: 0 24px 20px; font-size: .78rem; line-height: 1.55; color: var(--muted); }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; gap: 0; max-width: 880px; border-top: 1.5px solid var(--ink); }
.faq.center { margin-inline: auto; text-align: left; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; position: relative; padding: 20px 56px 20px 2px; font-weight: 600; color: var(--ink); line-height: 1.5; transition: color .2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--white) url("../img/plus.svg") center / 11px no-repeat; transition: transform .3s var(--ease), border-color .2s, background-color .2s; }
.faq-item summary:hover { color: var(--blue); }
.faq-item summary:hover::after { border-color: var(--blue); }
.faq-item[open] summary::after { transform: rotate(45deg); background-color: var(--orange-50); border-color: var(--orange); }
.faq-a { padding: 0 56px 22px 2px; color: var(--ink-2); }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- Cobertura ---------- */
.coverage { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 60px); align-items: center; }
.coverage h3.small { font-size: .74rem !important; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue) !important; }
@media (max-width: 900px) { .coverage { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Llamado a la acción: sol de la tarde ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--orange-50); padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid #FFE0C7; }
.cta-band::before { content: ""; position: absolute; width: 360px; height: 360px; right: 6%; top: -200px; border-radius: 50%; background: radial-gradient(circle, var(--sun) 0 38%, rgba(255, 181, 71, .35) 39%, rgba(255, 181, 71, 0) 70%); pointer-events: none; }
.cta-band::after { content: ""; position: absolute; left: 0; right: 0; top: 18%; bottom: 0; pointer-events: none; background: url("../img/roof.svg") no-repeat center / 100% 100%; }
.cta-band .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: center; }
.cta-band h2 { margin-bottom: .35em; }
.cta-band p { color: var(--ink-2); font-size: 1.04rem; margin: 0; max-width: 56ch; }
.cta-band .btn-row { justify-content: flex-end; }
@media (max-width: 900px) { .cta-band .wrap { grid-template-columns: minmax(0, 1fr); } .cta-band .btn-row { justify-content: flex-start; } }

/* ---------- Pie de página: cajetín de plano ---------- */
.site-footer { background: var(--white); color: var(--muted); font-size: .9rem; padding: clamp(48px, 6vw, 72px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.25fr; border: 2px solid var(--ink); border-radius: 4px; background: var(--white); }
.footer-grid > div { padding: 24px 24px 26px; border-right: 1px solid var(--ink); }
.footer-grid > div:nth-child(4) { border-right: 0; }
.footer-grid > .footer-bottom { grid-column: 1 / -1; border-right: 0; border-top: 1px solid var(--ink); }
.site-footer h2 { margin: -6px 0 16px; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--blue); text-decoration: underline; }
.footer-logo img { height: 64px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 38ch; }
.footer-brand .small { font-size: .8rem; color: var(--ink-2); font-weight: 500; }
.hashtags { color: var(--orange-ink); font-weight: 600; font-size: .86rem; }
.social { display: flex; gap: 10px; margin: 0; }
.social a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 500; font-size: .84rem; color: var(--ink); }
.social a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.social .ico { width: 18px; height: 18px; color: var(--blue); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ico { color: var(--blue); margin-top: 3px; width: 17px; height: 17px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; padding: 14px 24px !important; font-size: .78rem; background: var(--sheet); }
.footer-bottom a { color: var(--muted); }
.footer-bottom .legal-links { line-height: 1.9; }
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:nth-child(2) { border-right: 0; }
  .footer-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .footer-grid > div:nth-child(3) { border-right: 1px solid var(--ink); }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div { border-right: 0 !important; border-bottom: 1px solid var(--ink); }
  .footer-grid > div:nth-child(4) { border-bottom: 0; }
}

/* ---------- WhatsApp flotante ---------- */
.wa-widget { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; align-items: flex-end; gap: 10px; }
.wa-float { width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 28px -12px rgba(10, 120, 50, .7); transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.07); color: #fff; }
.wa-float svg { width: 31px; height: 31px; }
.wa-bubble { position: relative; margin: 0 0 10px; padding: 12px 36px 12px 14px; max-width: 230px; background: var(--white); border: 1px solid var(--line); border-radius: 12px 12px 3px 12px; box-shadow: var(--shadow); font-size: .86rem; line-height: 1.45; color: var(--ink-2); }
.wa-close { position: absolute; top: 4px; right: 6px; width: 26px; height: 26px; border: 0; background: none; font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--muted); border-radius: 50%; }
.wa-close:hover { background: var(--sheet); }
@media (max-width: 560px) { .wa-bubble { display: none; } .wa-widget { right: 14px; bottom: 14px; } .wa-float { width: 54px; height: 54px; } }

/* ---------- Formularios ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 10px; padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.form { display: grid; gap: 16px; }
.form label { display: block; margin-bottom: 7px; font-weight: 600; font-size: .88rem; color: var(--ink); }
.form input:not([type="checkbox"]):not([type="radio"]), .form select, .form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.form select { -webkit-appearance: none; appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--blue) 50%), linear-gradient(135deg, var(--blue) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.form textarea { min-height: 120px; resize: vertical; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: #A3AFBF; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 79, 194, .15); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: .86rem !important; color: var(--ink-2) !important; line-height: 1.55; }
.consent input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.form-note { margin: 0; font-size: .8rem; line-height: 1.6; color: var(--muted); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 14px 16px; border-radius: var(--r); font-weight: 600; margin-bottom: 8px; }
.form-msg.ok { background: #E9F7EE; color: var(--ok); border: 1px solid #BFE3CB; }
.form-msg.err { background: #FDECEA; color: var(--err); border: 1px solid #F5C2BC; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 15px 2px; border-bottom: 1px solid var(--line); }
.contact-list .chip-ico { width: 42px; height: 42px; margin: 0; }
.contact-list .chip-ico svg { width: 20px; height: 20px; }
.contact-list strong { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 2px; }

/* ---------- Texto largo ---------- */
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.9em; padding-top: .9em; border-top: 1px solid var(--line); font-size: clamp(1.3rem, 1.05rem + .9vw, 1.65rem); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--orange-ink); }
.prose .calc-example, .prose .table-wrap { margin: 1.4em 0; }
.note { margin: 1.4em 0; padding: 16px 20px; background: var(--blue-50); border-left: 3px solid var(--blue); border-radius: 0 var(--r) var(--r) 0; font-size: .95rem; }
.note p:last-child { margin-bottom: 0; }
.toc { position: sticky; top: 100px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; }
.toc h2 { margin: 0 0 12px; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.toc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 7px; }
.toc li::marker { color: var(--blue); font-weight: 600; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--blue); }
.with-toc { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 52px; align-items: start; }
@media (max-width: 980px) { .with-toc { grid-template-columns: minmax(0, 1fr); } .toc { position: relative; top: 0; order: -1; } }

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related a { display: flex; gap: 14px; align-items: center; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; transition: border-color .25s, transform .3s var(--ease), box-shadow .3s; }
.related a:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.related .chip-ico { width: 44px; height: 44px; margin: 0; }
.related .chip-ico svg { width: 22px; height: 22px; }
.related small { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; }
@media (max-width: 900px) { .related { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Página 404 ---------- */
.notfound { text-align: center; padding: clamp(80px, 11vw, 150px) 0; background-image: var(--plan); background-size: 24px 24px; }
.notfound .code { margin: 0; font-size: clamp(5rem, 16vw, 10rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 2px var(--orange); }
.notfound .lead { margin-inline: auto; }

/* ---------- Aparición al desplazarse ---------- */
.reveal-ready { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-ready.is-visible { opacity: 1; transform: none; }

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

@media print {
  .topbar, .site-header, .wa-widget, .cta-band, .crumbs { display: none !important; }
  body { font-size: 12pt; }
  a { color: inherit; }
}
