/* ─────────── HERO ─────────── */
.hero { padding: 56px 0 80px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 80% 0%, rgba(46,182,188,.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 30%, rgba(46,182,188,.08), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal-deep);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--teal-soft);
  border: 1px solid rgba(46,182,188,.3);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(46,182,188,.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46,182,188,.6); }
  70% { box-shadow: 0 0 0 8px rgba(46,182,188,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,182,188,0); }
}

h1.headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6.2vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  color: var(--ink);
  text-wrap: balance;
}
h1.headline em {
  font-style: italic;
  color: var(--teal-deep);
  font-feature-settings: "ss01";
}

.lede {
  font-size: 19px; line-height: 1.55;
  color: var(--ink-2);
  max-width: 540px;
  margin: 0 0 36px;
  text-wrap: pretty;
}

.hero-cta-row {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  margin-bottom: 40px;
}

.trust {
  display: flex; gap: 28px; align-items: center;
  font-size: 13px; color: var(--muted);
  flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 8px; }
.trust-item svg { color: var(--teal-deep); }
.avatars { display: flex; align-items: center; }
.avatars .av {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--paper);
  margin-left: -8px;
  background-size: cover; background-position: center;
}
.avatars .av:first-child { margin-left: 0; }

/* ─────────── DROPZONE ─────────── */
.dropzone-wrap { position: relative; height: 100%; }
.dropzone-wrap::before {
  content: "";
  position: absolute; inset: -40px;
  border-radius: 40px;
  background: radial-gradient(ellipse at center, rgba(46,182,188,.25), transparent 70%);
  z-index: 0;
  filter: blur(24px);
}
.dropzone {
  position: relative;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 2px dashed rgba(46,182,188,.5);
  border-radius: 32px;
  padding: 48px 40px;
  min-height: 560px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all .3s ease;
  box-shadow: 0 32px 80px -20px rgba(31,138,143,.25), inset 0 0 0 1px rgba(255,255,255,0.6);
}
.dropzone.is-drag {
  border-color: var(--teal-deep);
  background: rgba(240, 249, 249, 0.85);
  transform: scale(1.02);
  box-shadow: 0 40px 100px -20px rgba(31,138,143,.3), inset 0 0 0 1px rgba(255,255,255,0.8);
}
.dropzone-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(14, 26, 27, 0.08);
}
.dropzone-title {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.dropzone-status {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal-deep);
}
.dropzone-status .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
}

.dz-body {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  gap: 20px;
  padding: 20px 0;
}
.dz-icon {
  width: 96px; height: 96px;
  border-radius: 28px;
  background: var(--teal-tint);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-deep);
  margin-bottom: 12px;
  position: relative;
}
.dz-icon::before {
  content: "";
  position: absolute; inset: -10px;
  border-radius: 36px;
  border: 1.5px solid rgba(46,182,188,.3);
  animation: ringPulse 2.4s ease-out infinite;
}
@keyframes ringPulse {
  0% { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(1.15); opacity: 0; }
}
.dz-headline {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 320px;
  margin: 0;
}
.dz-sub { font-size: 15px; color: var(--muted); max-width: 340px; }
.dz-button {
  margin-top: 8px;
  background: var(--teal-deep); color: var(--white);
  border: 0; border-radius: 999px;
  padding: 16px 28px;
  font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s, transform .15s;
}
.dz-button:hover { background: var(--ink); transform: translateY(-1px); }
.dz-or {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.dz-foot {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  padding-top: 24px;
  border-top: 1px solid rgba(14, 26, 27, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.dz-foot-item { display: flex; align-items: center; gap: 6px; }
.dz-foot-item svg { color: var(--teal-deep); }

/* file input hide */
#fileInput { display: none; }

/* ─────────── ERROR STATE ─────────── */
.dz-error {
  display: none;
  flex: 1;
  flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 20px 0;
}
.dropzone.state-error .dz-body,
.dropzone.state-error .processing,
.dropzone.state-error .dz-foot { display: none; }
.dropzone.state-error .dz-error { display: flex; }
.dropzone.state-error {
  border-color: rgba(196, 74, 43, .55);
  background: rgba(255, 247, 244, .85);
}
.dz-error-icon {
  width: 80px; height: 80px;
  border-radius: 24px;
  background: rgba(196, 74, 43, .12);
  color: var(--warn);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.dz-error-title {
  font-family: var(--serif); font-weight: 400;
  font-size: 26px; line-height: 1.15;
  letter-spacing: -0.01em; color: var(--ink);
  margin: 0; max-width: 360px;
}
.dz-error-sub {
  font-size: 14px; color: var(--ink-2);
  max-width: 360px; margin: 0;
  line-height: 1.5;
}
.dz-error .dz-button { background: var(--warn); }
.dz-error .dz-button:hover { background: var(--ink); }

/* ─────────── PROCESSING STATE ─────────── */
.processing {
  display: none;
  flex: 1;
  flex-direction: column;
  gap: 22px;
  padding: 8px 0;
}
.dropzone.state-processing .dz-body { display: none; }
.dropzone.state-processing .processing { display: flex; }
.dropzone.state-processing .dz-foot { display: none; }

.scan-bill {
  position: relative;
  background: rgba(244, 244, 238, 0.7);
  border-radius: 14px;
  padding: 24px;
  overflow: hidden;
  flex: 1;
  min-height: 280px;
}
.scan-bill::before {
  content: "FACTURA · DOCUMENTO RECIBIDO";
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.16em;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

/* PDF/IMAGE PREVIEW (shown when a real file is uploaded) */
.scan-bill-preview {
  display: none;
  position: absolute;
  inset: 36px 24px 24px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px rgba(14,26,27,.06), inset 0 0 0 1px rgba(14,26,27,.05);
}
.scan-bill.has-preview .scan-bill-preview { display: block; }
.scan-bill.has-preview .scan-bill-fallback { visibility: hidden; }
.scan-bill-preview canvas,
.scan-bill-preview img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: saturate(.85);
}
.scan-bill-preview img[hidden] { display: none; }

/* SVG overlay with detection rectangles */
.scan-markers {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.scan-markers rect {
  fill: rgba(46,182,188,.10);
  stroke: var(--teal);
  stroke-width: 0.4;
  stroke-dasharray: 1.2 1.2;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  transition: opacity .35s ease;
}
.scan-markers rect.lit {
  opacity: 1;
  animation: markerPop .5s cubic-bezier(.2,.8,.3,1.2);
}
@keyframes markerPop {
  0% { transform: scale(.6); opacity: 0; }
  60% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Floating chips that appear over the preview as fields get extracted */
.scan-chips {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  display: flex; flex-wrap: wrap; gap: 6px;
  z-index: 3;
  pointer-events: none;
}
.scan-chip {
  font-family: var(--mono);
  font-size: 10px;
  background: rgba(14,26,27,.92);
  color: var(--teal);
  border: 1px solid rgba(46,182,188,.35);
  border-radius: 999px;
  padding: 5px 10px;
  display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(14,26,27,.18);
  opacity: 0;
  transform: translateY(6px) scale(.92);
  transition: opacity .3s, transform .3s cubic-bezier(.2,.8,.3,1.2);
}
.scan-chip.show { opacity: 1; transform: translateY(0) scale(1); }
.scan-chip .k {
  color: rgba(255,255,255,.55);
  text-transform: uppercase; letter-spacing: .12em;
  font-size: 9px;
}
.scan-chip .v { color: var(--white); font-weight: 500; }
.scan-line { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.scan-line .lbl { height: 8px; background: rgba(14,26,27,.12); border-radius: 2px; }
.scan-line .val { height: 8px; background: rgba(14,26,27,.18); border-radius: 2px; margin-left: auto; }
.scan-line.h .lbl { height: 12px; background: rgba(14,26,27,.2); width: 50%; }
.scan-line.extracted {
  color: var(--teal-deep);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  height: auto;
}
.scan-line.extracted .lbl, .scan-line.extracted .val {
  background: transparent; height: auto;
  color: var(--teal-deep);
  font-family: var(--mono);
  font-size: 12px;
}
.scan-line.extracted .val { font-weight: 600; color: var(--ink); }

.scan-laser {
  position: absolute; left: 0; right: 0;
  height: 36px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(46,182,188,.0) 30%,
    rgba(46,182,188,.35) 50%,
    rgba(46,182,188,.0) 70%,
    transparent 100%);
  border-bottom: 2px solid var(--teal);
  box-shadow: 0 0 24px rgba(46,182,188,.5);
  top: -36px;
  animation: scanY 2.6s cubic-bezier(.4,0,.6,1) infinite;
  pointer-events: none;
}
@keyframes scanY {
  0% { top: -36px; }
  100% { top: 100%; }
}

.processing-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted);
}
.processing-meta .step { color: var(--teal-deep); }
.progress {
  height: 4px; background: rgba(14, 26, 27, 0.08); border-radius: 99px; overflow: hidden;
}
.progress-bar {
  height: 100%; background: var(--teal-deep);
  width: 0%;
  transition: width .4s ease;
}

/* ─────────── RESULT (offer) ─────────── */
.dropzone.state-result {
  padding: 0;
  overflow: hidden;
  border-style: solid;
  border-color: var(--ink);
  background: var(--ink);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 32px 80px -20px rgba(31,138,143,.4);
  color: var(--white);
}
.dropzone.state-result .dropzone-header,
.dropzone.state-result .dz-body,
.dropzone.state-result .processing,
.dropzone.state-result .dz-foot { display: none; }
.dropzone.state-result .result { display: flex; }

.result {
  display: none;
  flex-direction: column;
  width: 100%;
  position: relative;
}

/* staggered entrance */
@keyframes resIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.result > * { opacity: 0; animation: resIn .6s cubic-bezier(.2,.7,.2,1) forwards; }
.result > *:nth-child(1) { animation-delay: .04s; }
.result > *:nth-child(2) { animation-delay: .14s; }
.result > *:nth-child(3) { animation-delay: .22s; }
.result > *:nth-child(4) { animation-delay: .30s; }
.result > *:nth-child(5) { animation-delay: .42s; }
.result > *:nth-child(6) { animation-delay: .54s; }
.result > *:nth-child(7) { animation-delay: .62s; }

.result-head {
  padding: 22px 28px 0;
  display: flex; justify-content: space-between; align-items: center;
  color: rgba(255,255,255,.55);
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.result-head .ok {
  color: var(--teal);
  display: flex; align-items: center; gap: 6px;
}
.result-head .ok .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 0 rgba(46,182,188,.7);
  animation: pulse 1.6s infinite;
}

.result-headline {
  padding: 18px 28px 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--white);
  font-weight: 400;
  text-wrap: balance;
}
.result-headline .amount {
  font-style: italic;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
  display: inline-block;
  min-width: 4.2ch;
}
.result-headline em { font-style: italic; color: var(--teal); }

.result-savings {
  padding: 10px 28px 22px;
  color: rgba(255,255,255,.65);
  font-size: 13.5px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.result-savings .pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  font-size: 11px;
  color: rgba(255,255,255,.85);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.result-savings .pill svg { color: var(--teal); }

/* main comparison block on white */
.result-compare {
  background: var(--white);
  color: var(--ink);
  padding: 26px 28px 22px;
  display: flex; flex-direction: column; gap: 18px;
}
.compare-bars {
  display: flex; flex-direction: column; gap: 14px;
}
.cmp-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 14px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.cmp-row .who { color: var(--muted); }
.cmp-row .bar-wrap {
  height: 26px;
  border-radius: 6px;
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
}
.cmp-row .bar {
  position: absolute; inset: 0 auto 0 0;
  border-radius: 6px;
  width: 0%;
  transition: width 1.1s cubic-bezier(.2,.7,.2,1);
}
.cmp-row.old .bar {
  background: repeating-linear-gradient(
    135deg,
    rgba(14,26,27,.18),
    rgba(14,26,27,.18) 4px,
    rgba(14,26,27,.08) 4px,
    rgba(14,26,27,.08) 8px
  );
}
.cmp-row.new .bar {
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-deep) 100%);
}
.cmp-row .amt {
  font-family: var(--serif);
  font-style: normal;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-transform: none;
}
.cmp-row.old .amt { color: var(--muted); text-decoration: line-through; }
.cmp-row.new .amt { color: var(--teal-deep); font-weight: 600; }

/* meta grid (consumo / potencia / sparkline) */
.meta-grid {
  background: var(--white);
  color: var(--ink);
  padding: 0 28px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 18px;
  border-top: 1px dashed var(--line);
  padding-top: 20px;
}
.meta-cell .k {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 6px;
}
.meta-cell .v {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.01em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.meta-cell .v small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 2px;
}
.meta-cell.spark { grid-column: span 1; }
.meta-cell.spark svg { width: 100%; height: 38px; display: block; margin-top: 4px; }

/* big saving callout */
.save-callout {
  background: linear-gradient(180deg, var(--white) 0%, var(--teal-tint) 100%);
  color: var(--ink);
  padding: 22px 28px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line);
}
.save-callout .lbl {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-2);
}
.save-callout .lbl strong {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: -0.01em;
  margin-top: 2px;
  font-weight: 400;
}
.save-callout .save-amt {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--teal-deep);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: 4px;
}
.save-callout .save-amt small {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 400;
  font-style: italic;
}

/* CTA */
.result-cta {
  background: var(--teal);
  color: var(--ink);
  padding: 20px 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600;
  border: 0;
  width: 100%;
  text-align: left;
  font-family: var(--sans);
  font-size: 15.5px;
  cursor: pointer;
  transition: background .2s, color .2s;
  position: relative;
  overflow: hidden;
}
.result-cta::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.35) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform .8s;
}
.result-cta:hover { background: var(--teal-deep); color: var(--white); }
.result-cta:hover::after { transform: translateX(100%); }
.result-cta .cta-text small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: rgba(14,26,27,.6);
  margin-top: 2px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.result-cta:hover .cta-text small { color: rgba(255,255,255,.7); }
.result-cta .arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .25s, background .2s;
  flex-shrink: 0;
}
.result-cta:hover .arrow { transform: translateX(6px) rotate(-12deg); background: var(--white); color: var(--ink); }

.result-foot {
  padding: 14px 28px;
  background: var(--ink);
  color: rgba(255,255,255,.4);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: center;
  display: flex; justify-content: center; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.result-foot .sep { color: rgba(255,255,255,.18); }

/* ─────────── VPP DIAGRAM ─────────── */
.vpp-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) { .vpp-grid { grid-template-columns: 1fr; gap: 40px; } }

.vpp-stat { margin-bottom: 36px; }
.vpp-stat .num {
  font-family: var(--serif);
  font-size: 80px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--teal);
  font-weight: 400;
}
.vpp-stat .lbl { color: rgba(255,255,255,.7); font-size: 15px; margin-top: 8px; }

.vpp-list {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: flex; flex-direction: column; gap: 18px;
}
.vpp-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding-left: 0;
}
.vpp-list .num-pill {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal);
  border: 1px solid rgba(46,182,188,.3);
  border-radius: 99px;
  padding: 4px 10px;
  margin-top: 2px;
}
.vpp-list strong { font-weight: 600; color: var(--white); }
.vpp-list p { margin: 4px 0 0; color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.5; }

/* ─────────── VPP MÁLAGA MAP ─────────── */
.vpp-map {
  position: relative;
  aspect-ratio: 1/1;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(46,182,188,0.12), transparent 70%),
    linear-gradient(180deg, #0a1415 0%, #060e0f 100%);
  border: 1px solid rgba(46,182,188,0.18);
  box-shadow:
    0 40px 80px -40px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
.vpp-map svg { width: 100%; height: 100%; display: block; }

/* topographic grid */
.vpp-map .grid-line {
  stroke: rgba(46,182,188,0.08);
  stroke-width: 0.5;
  fill: none;
}
.vpp-map .grid-line.major {
  stroke: rgba(46,182,188,0.14);
  stroke-dasharray: 2 4;
}

/* coastline */
.vpp-map .coast {
  fill: rgba(46,182,188,0.04);
  stroke: rgba(46,182,188,0.45);
  stroke-width: 1;
  stroke-linejoin: round;
}
.vpp-map .coast-glow {
  fill: none;
  stroke: rgba(46,182,188,0.2);
  stroke-width: 6;
  stroke-linejoin: round;
  filter: blur(3px);
}
.vpp-map .sea-label {
  fill: rgba(46,182,188,0.4);
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.2em;
}

/* district boundaries */
.vpp-map .district {
  fill: rgba(46,182,188,0.025);
  stroke: rgba(46,182,188,0.18);
  stroke-width: 0.5;
  stroke-dasharray: 2 3;
}

/* household nodes */
.vpp-map .home {
  fill: var(--teal);
  opacity: 0.7;
  cursor: pointer;
  transition: opacity .2s, r .2s;
}
.vpp-map .home:hover { opacity: 1; }
.vpp-map .home-halo {
  fill: var(--teal);
  opacity: 0.15;
  pointer-events: none;
}
.vpp-map .home.is-active {
  fill: #fff;
  opacity: 1;
}

/* energy flow lines */
.vpp-map .flow {
  fill: none;
  stroke: rgba(46,182,188,0.5);
  stroke-width: 1;
  stroke-dasharray: 2 6;
  animation: vppFlow 4s linear infinite;
}
.vpp-map .flow.active {
  stroke: var(--teal);
  stroke-width: 1.5;
  opacity: 1;
}
@keyframes vppFlow { to { stroke-dashoffset: -80; } }

/* central enex node (Málaga centro) */
.vpp-map .core-ring {
  fill: none;
  stroke: var(--teal);
  stroke-width: 1;
  transform-origin: center;
  transform-box: fill-box;
}
.vpp-map .core-ring-1 { animation: corePulse 3s ease-out infinite; }
.vpp-map .core-ring-2 { animation: corePulse 3s ease-out 1s infinite; }
.vpp-map .core-ring-3 { animation: corePulse 3s ease-out 2s infinite; }
@keyframes corePulse {
  0% { opacity: 0.8; r: 14; }
  100% { opacity: 0; r: 60; }
}
.vpp-map .core { fill: var(--teal); }
.vpp-map .core-label {
  fill: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  pointer-events: none;
  text-anchor: middle;
}

/* district labels */
.vpp-map .district-label {
  fill: rgba(255,255,255,0.55);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  pointer-events: none;
}
.vpp-map .district-label.major {
  fill: rgba(255,255,255,0.85);
  font-size: 10px;
}

/* HUD overlays */
.vpp-hud {
  position: absolute;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.55);
}
.vpp-hud.tl { top: 16px; left: 18px; }
.vpp-hud.tr { top: 16px; right: 18px; text-align: right; }
.vpp-hud.bl { bottom: 56px; left: 18px; }
.vpp-hud.br { bottom: 56px; right: 18px; text-align: right; }
.vpp-hud .v {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--white);
  margin-top: 2px;
  display: block;
  letter-spacing: -0.01em;
  text-transform: none;
}
.vpp-hud .v.teal { color: var(--teal); }
.vpp-hud .live-dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  margin-right: 6px;
  box-shadow: 0 0 8px rgba(46,182,188,0.8);
  animation: pulse 1.6s infinite;
}

/* tooltip */
.vpp-tip {
  position: absolute;
  pointer-events: none;
  background: rgba(8,16,17,0.95);
  border: 1px solid rgba(46,182,188,0.3);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transform: translate(-50%, calc(-100% - 12px));
  opacity: 0;
  transition: opacity .15s;
  white-space: nowrap;
  z-index: 4;
  backdrop-filter: blur(8px);
}
.vpp-tip.show { opacity: 1; }
.vpp-tip .name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--white);
  text-transform: none;
  letter-spacing: 0;
  display: block;
  margin-bottom: 4px;
}
.vpp-tip .row { display: flex; justify-content: space-between; gap: 14px; }
.vpp-tip .row + .row { margin-top: 2px; }
.vpp-tip .row span:last-child { color: var(--teal); }

/* legend */
.vpp-legend {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  padding: 5px 12px;
  background: rgba(8,16,17,0.6);
  border: 1px solid rgba(46,182,188,0.2);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  z-index: 3;
}
.vpp-legend .item { display: flex; align-items: center; gap: 6px; }
.vpp-legend .swatch {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
}
.vpp-legend .swatch.core { background: var(--teal); box-shadow: 0 0 6px var(--teal); }
.vpp-legend .swatch.line { width: 14px; height: 1px; border-radius: 0; background: rgba(46,182,188,0.5); }

/* anti-electricas highlights */
.crossed-list {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: flex; flex-direction: column; gap: 12px;
}
.crossed-list li {
  display: flex; gap: 12px; align-items: center;
  font-size: 16px; color: rgba(255,255,255,.85);
}
.crossed-list li .x {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(196,74,43,.15);
  color: var(--warn);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.crossed-list li .check {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(46,182,188,.18);
  color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.crossed-list li.no { color: rgba(255,255,255,.5); text-decoration: line-through; }

/* ─────────── PRICING ─────────── */
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; gap: 32px; } }

.price-card {
  border-radius: 28px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease;
}
.price-card:hover { transform: translateY(-4px); }

.price-card.dark {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 24px 60px -20px rgba(31,138,143,.3);
}
.price-card.dark::before {
  content: "";
  position: absolute; top: -40%; right: -20%;
  width: 70%; aspect-ratio: 1;
  background: radial-gradient(circle, var(--teal) 0%, transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}
.price-card.dark .price-card-eyebrow { color: var(--teal); }
.price-card.dark .price-formula em,
.price-card.dark .price-formula .plus { color: var(--teal); }
.price-card.dark .price-sub { color: rgba(255,255,255,.7); }
.price-card.dark .price-features li { color: rgba(255,255,255,.85); }
.price-card.dark .price-features li svg { color: var(--teal); }
.price-card.dark .btn-primary { background: var(--teal); color: var(--ink); }
.price-card.dark .btn-primary:hover { background: var(--white); transform: translateY(-1px); }

.price-card.light {
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--line);
}
.price-card.light .price-card-eyebrow { color: var(--teal-deep); }
.price-card.light .price-formula em,
.price-card.light .price-formula .plus { color: var(--teal-deep); }
.price-card.light .price-sub { color: var(--ink-2); }
.price-card.light .price-features li { color: var(--ink-2); }
.price-card.light .price-features li svg { color: var(--teal-deep); }
.price-card.light .btn-primary { background: var(--ink); color: var(--white); }
.price-card.light .btn-primary:hover { background: var(--teal-deep); transform: translateY(-1px); }

.price-card-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 24px;
}
.price-formula {
  font-family: var(--serif);
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 400;
}
.price-formula em { font-style: italic; }
.price-sub {
  font-size: 16px;
  max-width: 440px;
  margin: 0 0 32px;
}
.price-features {
  list-style: none; padding: 0; margin: 0 0 40px;
  display: flex; flex-direction: column;
  gap: 16px;
}
.price-features li {
  display: flex; gap: 12px; align-items: center;
  font-size: 15px;
}
.price-features li svg { flex-shrink: 0; }
.price-cta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: auto; }

/* ─────────── HOW STEPS ─────────── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 800px) { .how-grid { grid-template-columns: 1fr; } }
.how-step { border-top: 1px solid var(--line); padding-top: 28px; }
.how-step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal-deep);
  letter-spacing: .14em;
  margin-bottom: 16px;
}
.how-step h4 {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  font-weight: 400;
}
.how-step p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.how-cta { margin-top: 80px; text-align: center; }
.how-cta .btn-primary { padding: 20px 32px; font-size: 17px; }
.how-cta p { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
