/* Web de cliente de las marcas `web` (Valoa y hermanas).
   Los componentes usan SOLO variables `--web-*`. Cada marca las fija en
   `Marca.tokens_css` (la hoja de tokens de su diseño); lo de aquí es la
   base para que una marca sin tokens ya se vea bien. */

:root {
  --web-bg:              #FCFAF8;
  --web-surface:         #FFFFFF;
  --web-surface-alt:     #F3EEEA;
  --web-border:          #ECE5E0;
  --web-border-field:    #DDD3CD;

  --web-primary:         #E07A64;
  --web-primary-hover:   #D66A53;
  --web-primary-text:    #C4553E;
  --web-primary-on-dark: #F0A595;
  --web-on-primary:      #2A2340;
  --web-ink:             #2A2340;
  --web-ink-hover:       #3A3254;
  --web-ink-soft:        #4A4360;
  --web-muted:           #6A6470;
  --web-on-ink:          #FCF8F5;
  --web-on-ink-soft:     #D9D3E6;
  --web-ink-line:        #443B5E;

  --web-saving:          #2E7D6B;
  --web-saving-bg:       #EAF4F1;
  --web-warning-bg:      #FFF4E0;
  --web-error:           #9A3A26;
  --web-error-bg:        #FBE9E4;

  --web-font:            system-ui, sans-serif;
  --web-font-mono:       ui-monospace, monospace;
  --web-fs-display:      clamp(38px, 5.6vw, 64px);
  --web-fs-h2:           clamp(30px, 3.6vw, 44px);
  --web-fs-h3:           22px;
  --web-fs-lead:         clamp(17px, 1.6vw, 20px);
  --web-fs-body:         17px;
  --web-fs-small:        14px;

  --web-radius-sm:       10px;
  --web-radius-field:    14px;
  --web-radius-button:   16px;
  --web-radius-card:     24px;
  --web-radius-panel:    32px;

  --web-shadow-card:     0 12px 32px rgba(42, 35, 64, .12);
  --web-shadow-float:    0 16px 40px rgba(42, 35, 64, .14);

  --web-section-y:       clamp(56px, 7vw, 96px);
  --web-container:       1200px;
  --web-gutter:          20px;
  --web-tap-min:         44px;
  --web-button-h:        56px;
  --web-focus:           3px solid #2A2340;
}

/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--web-bg); color: var(--web-ink);
  font: 400 var(--web-fs-body)/1.55 var(--web-font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--web-ink); }
a:hover { color: var(--web-primary-text); }
:focus-visible { outline: var(--web-focus); outline-offset: 2px; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.w-num { font-variant-numeric: tabular-nums; }
.w-mono { font-family: var(--web-font-mono); }
.w-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.w-container { max-width: var(--web-container); margin: 0 auto; padding-left: var(--web-gutter); padding-right: var(--web-gutter); }
.w-section { padding-top: var(--web-section-y); padding-bottom: var(--web-section-y); }
.w-alt { background: var(--web-surface-alt); }
.w-h2 { font-weight: 800; font-size: var(--web-fs-h2); line-height: 1.1; letter-spacing: -.02em; }
.w-lead { font-size: var(--web-fs-lead); line-height: 1.5; color: var(--web-ink-soft); }
.w-intro { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.w-intro p { font-size: 18px; color: var(--web-ink-soft); }

/* ── Botones ──────────────────────────────────────────── */
.w-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--web-button-h); padding: 0 24px; border-radius: var(--web-radius-button);
  font: 800 17px/1.2 var(--web-font); text-align: center; text-decoration: none;
  border: 0; cursor: pointer;
}
.w-btn-primary { background: var(--web-primary); color: var(--web-on-primary); }
.w-btn-primary:hover { background: var(--web-primary-hover); color: var(--web-on-primary); }
.w-btn-ink { background: var(--web-ink); color: var(--web-on-ink); }
.w-btn-ink:hover { background: var(--web-ink-hover); color: var(--web-on-ink); }
.w-btn-sm { min-height: var(--web-tap-min); padding: 0 18px; border-radius: 14px; font-size: 15px; }

/* ── Cabecera ─────────────────────────────────────────── */
.w-header { position: sticky; top: 0; z-index: 10; background: var(--web-primary); }
.w-header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.w-logo { display: inline-flex; align-items: center; text-decoration: none; font: 800 28px/1 var(--web-font); letter-spacing: -.03em; color: var(--web-on-primary); }
.w-logo img { height: 34px; width: auto; display: block; }
.w-nav { display: flex; align-items: center; gap: 24px; font: 700 15px/1 var(--web-font); }
.w-nav a { text-decoration: none; color: var(--web-on-primary); }
.w-nav .w-btn { color: var(--web-on-ink); }
.w-menu-btn { display: none; min-height: var(--web-tap-min); padding: 0 16px; border-radius: 14px; border: 2px solid var(--web-on-primary); background: none; font: 800 15px/1 var(--web-font); color: var(--web-on-primary); cursor: pointer; }
.w-menu { display: none; flex-direction: column; padding: 0 var(--web-gutter) 20px; font: 800 18px/1 var(--web-font); }
.w-menu a { text-decoration: none; padding: 16px 0; border-bottom: 1px solid rgba(42, 35, 64, .2); color: var(--web-on-primary); }
.w-menu .w-btn { margin-top: 16px; border-bottom: 0; color: var(--web-on-ink); }
.w-menu.abierto { display: flex; }
@media (max-width: 760px) {
  .w-nav a { display: none; }
  .w-menu-btn { display: inline-flex; align-items: center; }
}

/* ── Portada: hero ────────────────────────────────────── */
.w-hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: clamp(32px, 6vw, 88px); padding-bottom: clamp(40px, 6vw, 96px); }
.w-hero-txt { flex: 1 1 440px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.w-eyebrow { display: flex; align-items: center; gap: 8px; font: 700 var(--web-fs-small)/1 var(--web-font); color: var(--web-ink-soft); }
.w-eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--web-saving); }
.w-display { font-weight: 800; font-size: var(--web-fs-display); line-height: 1.05; letter-spacing: -.03em; min-height: 2.1em; transition: opacity .4s ease, transform .4s ease; }
.w-display .w-b { color: var(--web-primary-text); }
.w-display.oculto { opacity: 0; transform: translateY(8px); }
.w-hero .w-lead { max-width: 520px; }
.w-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.w-ctas .w-btn { flex: 1 1 220px; }
.w-chips { display: flex; flex-wrap: wrap; gap: 8px 20px; font: 600 var(--web-fs-small)/1.3 var(--web-font); color: var(--web-muted); }
.w-hero-vis { flex: 1 1 400px; min-width: 0; position: relative; }
.w-hero-ilus {
  aspect-ratio: 5 / 4; border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(circle at 68% 34%, rgba(255, 236, 200, .95) 0 9%, rgba(255, 214, 170, .55) 18%, transparent 46%),
    linear-gradient(160deg, var(--web-surface-alt), var(--web-primary-on-dark));
}
.w-hero-ilus img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w-float {
  position: absolute; left: clamp(-8px, -2vw, -24px); bottom: -24px; min-width: 240px;
  background: var(--web-surface); border-radius: 20px; padding: 18px 20px; box-shadow: var(--web-shadow-float);
  display: flex; flex-direction: column; gap: 6px;
}
.w-float-k { font: 700 13px/1.2 var(--web-font); color: var(--web-muted); }
.w-float-v { font: 800 36px/1 var(--web-font); color: var(--web-saving); font-variant-numeric: tabular-nums; }
.w-float-n { font: 600 13px/1.3 var(--web-font); color: var(--web-ink-soft); }

/* ── Pasos ────────────────────────────────────────────── */
.w-pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 40px; }
.w-paso { background: var(--web-bg); border-radius: var(--web-radius-card); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.w-paso-n { width: 48px; height: 48px; border-radius: 50%; background: var(--web-primary); color: var(--web-on-primary); font: 800 20px/48px var(--web-font); text-align: center; }
.w-paso-t { font: 800 var(--web-fs-h3)/1.2 var(--web-font); }
.w-paso-d { font-size: 16px; line-height: 1.5; color: var(--web-ink-soft); }

/* ── Comercializadoras ────────────────────────────────── */
.w-logos { margin-top: 28px; }
.w-logos-pista { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--w-logo-ancho, 180px), 1fr)); gap: 12px; }
/* Cinta: más logos de los que caben en una fila → pasan solos (pausa al pasar el ratón). */
.w-logos-cinta { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.w-logos-cinta .w-logos-pista { display: flex; width: max-content; gap: 0; animation: w-cinta 30s linear infinite; }
.w-logos-cinta .w-logo-comerc { width: var(--w-logo-ancho, 180px); flex: none; margin-right: 12px; }
.w-logos-cinta:hover .w-logos-pista { animation-play-state: paused; }
@keyframes w-cinta { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .w-logos-cinta { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .w-logos-cinta .w-logos-pista { animation: none; }
}
.w-logo-comerc { height: 112px; border-radius: 18px; border: 1px solid var(--web-border); background: var(--web-surface); display: flex; align-items: center; justify-content: center; padding: 16px; font: 800 16px/1.2 var(--web-font); color: var(--web-ink-soft); text-align: center; }
.w-logo-comerc img { max-height: 64px; max-width: 100%; object-fit: contain; }

/* ── Regalo ───────────────────────────────────────────── */
.w-regalo { background: var(--web-ink); color: var(--web-on-ink); border-radius: var(--web-radius-panel); padding: clamp(32px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.w-regalo-txt { flex: 1 1 380px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.w-kicker { font: 700 var(--web-fs-small)/1 var(--web-font); color: var(--web-primary-on-dark); letter-spacing: .08em; text-transform: uppercase; }
.w-regalo p { font-size: 18px; line-height: 1.5; color: var(--web-on-ink-soft); }
.w-regalo strong { color: var(--web-on-ink); }
.w-puntos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.w-puntos li { display: flex; gap: 14px; align-items: flex-start; font: 600 16px/1.5 var(--web-font); }
.w-puntos li::before { content: ''; flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--web-primary); }
.w-regalo a { color: var(--web-primary-on-dark); font-weight: 700; }
.w-regalo-card { flex: 0 1 420px; min-width: 260px; background: var(--web-primary); color: var(--web-on-primary); border-radius: 28px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 20px; }
.w-cheque {
  aspect-ratio: 1.6; border-radius: 18px; background: var(--web-ink); color: var(--web-on-ink);
  box-shadow: 0 18px 36px rgba(42, 35, 64, .35); padding: 22px; display: flex; flex-direction: column; justify-content: space-between;
}
.w-cheque-k { font: 700 13px/1.2 var(--web-font); letter-spacing: .08em; text-transform: uppercase; color: var(--web-primary-on-dark); }
.w-cheque-v { font: 800 clamp(30px, 4vw, 40px)/1 var(--web-font); font-variant-numeric: tabular-nums; }
.w-regalo-pie { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 800 17px/1.3 var(--web-font); }

/* ── FAQ ──────────────────────────────────────────────── */
.w-faq { max-width: 820px; }
.w-faq-lista { border-top: 1px solid var(--web-border-field); margin-top: 28px; }
.w-faq details { border-bottom: 1px solid var(--web-border-field); }
.w-faq summary {
  list-style: none; min-height: 64px; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font: 800 18px/1.35 var(--web-font); cursor: pointer;
}
.w-faq summary::-webkit-details-marker { display: none; }
.w-faq summary::after { content: '+'; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--web-surface-alt); font: 800 20px/32px var(--web-font); text-align: center; }
.w-faq details[open] summary::after { content: '−'; }
.w-faq-r { padding: 0 48px 20px 0; color: var(--web-ink-soft); }

/* ── CTA final ────────────────────────────────────────── */
.w-cta { background: var(--web-primary); color: var(--web-on-primary); border-radius: var(--web-radius-panel); padding: clamp(32px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.w-cta-txt { flex: 1 1 380px; display: flex; flex-direction: column; gap: 10px; }
.w-cta-txt h2 { font: 800 clamp(28px, 3.4vw, 40px)/1.1 var(--web-font); letter-spacing: -.02em; }
.w-cta-txt p { font-weight: 600; font-size: 18px; }
.w-cta .w-btn { flex: 0 1 280px; }

/* ── Avisos legales de terceros (p. ej. Amazon): separados del resto ── */
.w-aviso-tercero { font-size: 13px; line-height: 1.5; color: var(--web-muted); padding-top: 32px; padding-bottom: 32px; }

/* ── Páginas sencillas (pronto, legal) ────────────────── */
.w-simple { max-width: 720px; margin: 0 auto; padding: clamp(48px, 8vw, 112px) var(--web-gutter); display: flex; flex-direction: column; gap: 20px; }
.w-simple h1 { font: 800 clamp(30px, 4.4vw, 44px)/1.1 var(--web-font); letter-spacing: -.02em; }
.w-nota { background: var(--web-warning-bg); border-radius: var(--web-radius-field); padding: 16px 20px; font-weight: 600; }

/* ── Pie ──────────────────────────────────────────────── */
.w-footer { background: var(--web-ink); color: var(--web-on-ink-soft); }
.w-footer-in { padding-top: 56px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 32px; }
.w-footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.w-footer-marca { display: flex; flex-direction: column; gap: 12px; max-width: 360px; font-size: 15px; line-height: 1.5; }
.w-footer-marca .w-logo { color: var(--web-on-ink); font-size: 30px; }
.w-footer-cols { display: flex; flex-wrap: wrap; gap: 48px; font: 600 15px/1 var(--web-font); }
.w-footer-col { display: flex; flex-direction: column; gap: 14px; }
.w-footer-col strong { color: var(--web-on-ink); font-weight: 800; }
.w-footer a { color: var(--web-on-ink-soft); text-decoration: none; }
.w-footer a:hover { color: var(--web-on-ink); }
.w-footer-bot { border-top: 1px solid var(--web-ink-line); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font: 600 14px/1.4 var(--web-font); }
.w-footer-bot a { color: var(--web-primary-on-dark); }

/* ── Formulario «Estudiar mi factura» (F2a) ───────────── */
.w-form-wrap { padding-top: clamp(32px, 6vw, 72px); padding-bottom: var(--web-section-y); }
.w-form { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.w-form-cab { display: flex; flex-direction: column; gap: 10px; }
.w-form-cab h1, .w-estado h1 { font: 800 clamp(30px, 4.4vw, 42px)/1.1 var(--web-font); letter-spacing: -.02em; }
.w-campo { display: flex; flex-direction: column; gap: 8px; }
.w-campo > label { font: 800 15px/1 var(--web-font); }
.w-input {
  height: var(--web-field-h, 54px); border-radius: var(--web-radius-field); border: 2px solid var(--web-border-field);
  background: var(--web-surface); padding: 0 16px; font: 600 17px/1 var(--web-font); color: var(--web-ink); width: 100%;
}
.w-input:focus { border-color: var(--web-ink); outline: none; }
.w-input-error { border-color: var(--web-error); }
.w-ayuda { font-size: 14px; line-height: 1.4; color: var(--web-muted); }
.w-error { font: 700 14px/1.4 var(--web-font); color: var(--web-error); }
.w-enlace { font: 700 15px/1.4 var(--web-font); align-self: flex-start; }
.w-drop {
  position: relative; border: 2px dashed var(--web-border-field); background: var(--web-surface); border-radius: var(--web-radius-card);
  padding: 32px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.w-drop:hover, .w-drop-sobre { border-color: var(--web-primary); background: var(--web-surface-alt); }
.w-drop-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--web-surface-alt); display: flex; align-items: center; justify-content: center; color: var(--web-ink); }
.w-drop-vacio, .w-drop-lleno { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.w-drop-vacio[hidden], .w-drop-lleno[hidden] { display: none; }
.w-drop strong { font: 800 18px/1.3 var(--web-font); word-break: break-all; }
.w-drop-o { font-size: 15px; color: var(--web-muted); }
.w-drop-ok { font: 600 15px/1.4 var(--web-font); color: var(--web-saving); }
.w-codigo summary { cursor: pointer; font: 700 15px/1.4 var(--web-font); color: var(--web-ink-soft); }
.w-codigo .w-input { margin-top: 10px; max-width: 240px; }
.w-alert { border-radius: var(--web-radius-field); padding: 14px 16px; font: 700 15px/1.45 var(--web-font); }
.w-alert[hidden] { display: none; }
.w-alert-error { background: var(--web-error-bg); color: var(--web-error); }
.w-alert-aviso { background: var(--web-warning-bg); color: var(--web-ink); font-weight: 600; }
.w-legales { display: flex; flex-direction: column; gap: 10px; }
.w-check-btn {
  display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; min-height: 60px; padding: 12px 16px;
  border-radius: var(--web-radius-field); border: 2px solid var(--web-border-field); background: var(--web-surface);
  cursor: pointer; font: 400 15px/1.4 var(--web-font); color: var(--web-ink);
}
.w-check-caja { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--web-border-field); background: var(--web-surface); color: #fff; font: 800 15px/20px var(--web-font); text-align: center; }
.w-check-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.w-check-txt strong { font-weight: 800; }
.w-check-sub { color: var(--web-muted); font-weight: 600; font-size: 14px; }
.w-check-ok .w-check-btn { border-color: var(--web-saving); background: var(--web-saving-bg); }
.w-check-ok .w-check-caja { border-color: var(--web-saving); background: var(--web-saving); }
.w-check-ok .w-check-caja::after { content: "\2713"; }
.w-check-ok .w-check-sub { color: var(--web-saving); }
.w-dialog { width: 100%; max-width: 640px; max-height: 88vh; padding: 0; border: 0; border-radius: 28px; background: var(--web-bg); color: var(--web-ink); }
.w-dialog[open] { display: flex; flex-direction: column; }
.w-dialog::backdrop { background: rgba(42, 35, 64, .55); }
.w-dialog-cab { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--web-border); font: 800 20px/1.2 var(--web-font); }
.w-dialog-x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--web-surface-alt); font: 800 20px/1 var(--web-font); color: var(--web-ink); cursor: pointer; flex: none; }
.w-dialog-cuerpo { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 1.6; color: var(--web-ink-soft); }
.w-dialog-cuerpo strong { display: block; color: var(--web-ink); font-weight: 800; margin-bottom: 6px; }
.w-dialog-pie { padding: 16px 24px 24px; border-top: 1px solid var(--web-border); display: flex; flex-direction: column; }
.w-btn[disabled] { opacity: .55; cursor: not-allowed; }
.w-btn-block { width: 100%; min-height: 58px; font-size: 18px; }
.w-nota-pie { text-align: center; font: 600 14px/1.4 var(--web-font); color: var(--web-muted); }

/* ── Página del estudio: espera, resultado, mensajes ──── */
.w-estado { padding-top: clamp(32px, 8vh, 96px); padding-bottom: var(--web-section-y); }
.w-espera, .w-mensaje { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.w-espera { align-items: center; text-align: center; }
.w-luz { width: 72px; height: 72px; border-radius: 50%; background: var(--web-primary); box-shadow: 0 0 0 12px var(--web-surface-alt); animation: w-latido 1.8s ease-in-out infinite; }
@keyframes w-latido { 50% { box-shadow: 0 0 0 22px var(--web-surface-alt); } }
@media (prefers-reduced-motion: reduce) { .w-luz { animation: none; } }
.w-barra { width: 100%; height: 8px; border-radius: 99px; background: var(--web-surface-alt); overflow: hidden; }
.w-barra-in { height: 100%; width: 8%; background: var(--web-primary); border-radius: 99px; transition: width .6s ease; }
.w-pasos-espera { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; width: 100%; text-align: left; }
.w-pasos-espera li { display: flex; gap: 12px; align-items: center; font: 700 16px/1.3 var(--web-font); color: var(--web-muted); }
.w-pasos-espera li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none; background: var(--web-border-field); }
.w-pasos-espera li.w-activo { color: var(--web-ink); }
.w-pasos-espera li.w-activo::before { background: var(--web-primary); }
.w-pasos-espera li.w-hecho { color: var(--web-ink); }
.w-pasos-espera li.w-hecho::before { background: var(--web-saving); }
.w-mensaje .w-btn { align-self: flex-start; }
.w-resultado { display: flex; flex-direction: column; gap: 20px; }
.w-ahorro { color: var(--web-saving); }
.w-ofertas { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.w-oferta { position: relative; background: var(--web-surface); border: 1px solid var(--web-border); border-radius: var(--web-radius-card); padding: 24px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--web-shadow-card); }
.w-oferta-marca { align-self: flex-start; background: var(--web-saving-bg); color: var(--web-saving); font: 800 13px/1 var(--web-font); padding: 6px 10px; border-radius: 999px; }
.w-oferta-comerc { height: 40px; display: flex; align-items: center; font: 800 18px/1.2 var(--web-font); }
.w-oferta-comerc img { max-height: 36px; max-width: 160px; object-fit: contain; }
.w-oferta-tarifa { font: 700 16px/1.3 var(--web-font); color: var(--web-ink-soft); }
.w-oferta-k { font: 700 13px/1.2 var(--web-font); color: var(--web-muted); margin-top: 8px; }
.w-oferta-v { font: 800 var(--web-fs-amount-xl, 44px)/1 var(--web-font); color: var(--web-saving); }
.w-oferta-cod { font-size: 13px; color: var(--web-muted); }

/* ── Resultado completo (F2b) ─────────────────────────── */
.w-resultado-cab { display: flex; flex-direction: column; gap: 10px; }
.w-meta { font: 600 15px/1.5 var(--web-font); color: var(--web-muted); }
.w-oferta-top { border: 2px solid var(--web-ink); }
.w-oferta-tipo { font: 600 14px/1.3 var(--web-font); color: var(--web-muted); }
.w-oferta-ahorro { background: var(--web-saving-bg); border-radius: 14px; padding: 14px 16px; margin-top: 8px; }
.w-oferta-ahorro .w-oferta-k { margin-top: 0; }
.w-oferta-precios { font: 600 14px/1.5 var(--web-font); color: var(--web-ink-soft); }
.w-oferta-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 8px; }
.w-oferta-acciones .w-btn { flex: 1 1 140px; min-height: 52px; }

/* ── Guía ─────────────────────────────────────────────── */
.w-guia h2 { font: 800 var(--web-fs-h3)/1.25 var(--web-font); margin-top: 8px; }
.w-guia ol, .w-guia ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--web-ink-soft); }
.w-guia p { color: var(--web-ink-soft); }

/* ── Cheque regalo en el resultado (destacado) ────────── */
.w-regalo-banda {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
  background: var(--web-ink); color: var(--web-on-ink); border-radius: var(--web-radius-card);
  padding: 20px 24px;
}
/* Tarjeta regalo propia: sin imagen ni logo de Amazon (no tenemos su permiso). */
.w-tarjeta-regalo {
  flex: none; width: 180px; max-width: 45%; aspect-ratio: 1.6; border-radius: 14px; padding: 14px 16px;
  background: linear-gradient(135deg, var(--web-primary), var(--web-primary-hover));
  color: var(--web-on-primary); box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
  display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
}
.w-tarjeta-regalo::after { content: ""; position: absolute; right: -28px; top: -28px; width: 90px; height: 90px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.w-tarjeta-k { font: 800 11px/1 var(--web-font); letter-spacing: .1em; text-transform: uppercase; }
.w-tarjeta-v { font: 800 28px/1 var(--web-font); }
.w-tarjeta-m { font: 800 14px/1 var(--web-font); letter-spacing: -.02em; opacity: .85; }
.w-regalo-banda-txt { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; }
.w-regalo-banda-txt strong { font: 800 clamp(19px, 2.4vw, 24px)/1.25 var(--web-font); }
.w-regalo-banda-txt span:last-child { color: var(--web-on-ink-soft); font-size: 15px; }
.w-oferta-regalo {
  align-self: flex-start; background: var(--web-primary); color: var(--web-on-primary);
  font: 800 14px/1.2 var(--web-font); padding: 7px 12px; border-radius: 999px;
}

/* ── Tabla de comercializadoras ───────────────────────── */
.w-tabla-wrap { margin-top: 28px; overflow-x: auto; }
.w-tabla { width: 100%; border-collapse: collapse; background: var(--web-surface); border-radius: var(--web-radius-card); overflow: hidden; font-size: 15px; }
.w-tabla th { text-align: left; font: 800 13px/1.2 var(--web-font); color: var(--web-muted); text-transform: uppercase; letter-spacing: .04em; padding: 14px 16px; background: var(--web-surface-alt); }
.w-tabla td { padding: 14px 16px; border-top: 1px solid var(--web-border); vertical-align: top; color: var(--web-ink-soft); }
@media (max-width: 700px) {
  .w-tabla thead { display: none; }
  .w-tabla tr { display: block; border-top: 1px solid var(--web-border); padding: 10px 0; }
  .w-tabla td { display: block; border: 0; padding: 4px 16px; }
  .w-tabla td::before { content: attr(data-l) ": "; font-weight: 700; color: var(--web-muted); }
}

/* ── Aviso de cookies ─────────────────────────────────── */
.w-cookies { width: 100%; max-width: 560px; border: 0; border-radius: var(--web-radius-card); padding: 0; background: var(--web-bg); color: var(--web-ink); box-shadow: var(--web-shadow-float); }
.w-cookies::backdrop { background: rgba(42, 35, 64, .55); }
.w-cookies-in { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.w-cookies h2 { font: 800 22px/1.2 var(--web-font); }
.w-cookies p { font-size: 15px; line-height: 1.5; color: var(--web-ink-soft); }
.w-cookies-config { display: flex; flex-direction: column; gap: 10px; }
.w-cookies-config[hidden] { display: none; }
.w-cookies-cat { display: flex; gap: 12px; align-items: flex-start; background: var(--web-surface); border: 1px solid var(--web-border); border-radius: var(--web-radius-field); padding: 12px 14px; font-size: 15px; cursor: pointer; }
.w-cookies-cat input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--web-saving); }
.w-cookies-cat small { color: var(--web-muted); font-size: 13px; line-height: 1.4; }
.w-cookies-botones { display: flex; flex-wrap: wrap; gap: 10px; }
.w-cookies-botones .w-btn { flex: 1 1 140px; min-height: 48px; font-size: 16px; }
.w-cookies-botones .w-btn[hidden] { display: none; }
.w-btn-claro { background: transparent; color: var(--web-ink); border: 2px solid var(--web-border-field); }
.w-btn-claro:hover { border-color: var(--web-ink); color: var(--web-ink); }
.w-tabla-cookies { margin-top: 8px; }

/* ── Contratar (F3) ───────────────────────────────────── */
.w-ficha { background: var(--web-surface); border: 1px solid var(--web-border); border-radius: var(--web-radius-card); padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.w-ficha > div { display: flex; flex-direction: column; gap: 2px; }
.w-ficha span { font: 700 13px/1.2 var(--web-font); color: var(--web-muted); }
.w-ficha strong { font-weight: 700; word-break: break-word; }
.w-dni { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .w-dni { grid-template-columns: 1fr; } }
.w-drop-mini { padding: 18px 12px; gap: 10px; }
.w-drop-mini strong { font-size: 15px; }
.w-drop-ok-sel { border-style: solid; border-color: var(--web-saving); background: var(--web-saving-bg); }
.w-proceso { background: var(--web-surface-alt); border-radius: var(--web-radius-card); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.w-proceso ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--web-ink-soft); font-size: 15px; line-height: 1.5; }

.w-check-linea { display: flex; gap: 10px; align-items: center; font: 600 15px/1.4 var(--web-font); cursor: pointer; }
.w-check-linea input { width: 20px; height: 20px; accent-color: var(--web-saving); }
.w-dni-uno { grid-template-columns: 1fr; }
.w-drop-mini[hidden] { display: none; }

/* ── Guías de contenido (F4 SEO) ─────────────────────── */
.w-migas { font: 600 14px/1.4 var(--web-font); color: var(--web-muted); }
.w-migas a { color: var(--web-muted); }
.w-guia-fecha { font: 600 14px/1.4 var(--web-font); color: var(--web-muted); margin-top: -8px; }
.w-guia h3 { font: 800 18px/1.3 var(--web-font); margin-top: 4px; }
.w-guia a { color: var(--web-primary-text); text-decoration: underline; text-underline-offset: 3px; }
.w-guia a.w-btn { color: inherit; text-decoration: none; }
.w-guia-indice { background: var(--web-surface-alt); border-radius: var(--web-radius-sm); padding: 16px 20px; }
.w-guia-indice strong { display: block; margin-bottom: 6px; }
.w-guia-indice ol { gap: 4px; }
.w-guia-nota { border-left: 4px solid var(--web-saving); background: var(--web-saving-bg, var(--web-surface-alt)); border-radius: 0 var(--web-radius-sm) var(--web-radius-sm) 0; padding: 14px 18px; }
.w-guia-nota p { color: var(--web-ink); margin: 0; }
.w-guia-tabla { overflow-x: auto; }
.w-guia-tabla table { width: 100%; border-collapse: collapse; font-size: 15px; }
.w-guia-tabla th, .w-guia-tabla td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--web-border); vertical-align: top; }
.w-guia-tabla th { font-weight: 800; background: var(--web-surface-alt); }
.w-guia-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--web-ink); color: var(--web-on-ink, #fff); border-radius: var(--web-radius-card); padding: 22px 24px; margin: 8px 0; }
.w-guia-cta p { color: inherit; opacity: .85; margin: 4px 0 0; }
.w-guia-cta strong { font: 800 20px/1.25 var(--web-font); }
.w-guia-cta > div { flex: 1 1 260px; }
.w-guia-faq details { border-bottom: 1px solid var(--web-border); padding: 12px 0; }
.w-guia-faq summary { font: 700 17px/1.4 var(--web-font); cursor: pointer; }
.w-guia-faq details p { margin: 8px 0 0; }
.w-guia-rel ul { margin-top: 6px; }
/* Cabecera con color (índice y cada guía) */
.w-guias-hero { background: var(--web-saving-bg, var(--web-surface-alt)); border-bottom: 1px solid var(--web-border); }
.w-guias-hero-in { display: flex; align-items: center; gap: 24px; padding-top: clamp(36px, 6vw, 72px); padding-bottom: clamp(36px, 6vw, 72px); max-width: 960px; }
.w-guias-hero h1 { font: 800 clamp(30px, 4.4vw, 44px)/1.1 var(--web-font); letter-spacing: -.02em; margin: 0 0 8px; }
.w-guias-hero-icono { flex: none; width: 88px; height: 88px; border-radius: 24px; background: var(--web-saving); color: #fff; display: grid; place-items: center; }
.w-guias-hero-icono .w-icono { width: 48px; height: 48px; }
.w-guia-hero-in { max-width: 720px; padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(28px, 5vw, 48px); display: flex; flex-direction: column; gap: 14px; }
.w-guia-hero-fila { display: flex; align-items: center; gap: 18px; }
.w-guia-hero-fila h1 { margin: 0; }
.w-guia-hero .w-guia-fecha { margin: 0; }
.w-guia-hero + .w-simple { padding-top: clamp(28px, 5vw, 56px); }
.w-guias-wrap { max-width: 960px; padding-top: clamp(28px, 5vw, 56px); }
/* Imagen de la guía: logo de la compañía o icono */
.w-guia-img { flex: none; width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; }
.w-guia-img-logo { background: #fff; border: 1px solid var(--web-border); padding: 10px; }
.w-guia-img-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.w-guia-img-icono { background: var(--web-saving); color: #fff; }
.w-guia-img-icono .w-icono { width: 36px; height: 36px; }
@media (max-width: 560px) { .w-guia-hero-fila { flex-direction: column; align-items: flex-start; } .w-guias-hero-icono { display: none; } }
/* Tarjetas del índice */
.w-guias-lista { list-style: none; padding: 0 !important; display: grid !important; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px !important; }
.w-guias-lista a { display: flex; gap: 16px; align-items: flex-start; height: 100%; padding: 18px; border: 1px solid var(--web-border); border-radius: var(--web-radius-card); background: var(--web-surface); text-decoration: none !important; color: var(--web-ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.w-guias-lista a:hover { border-color: var(--web-ink); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.06); color: var(--web-ink); }
.w-guias-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.w-guias-txt strong { font: 800 17px/1.3 var(--web-font); }
.w-guias-txt span { font-size: 15px; line-height: 1.45; color: var(--web-muted); }
.w-guias-txt em { font: 700 14px/1 var(--web-font); font-style: normal; color: var(--web-primary-text); margin-top: 4px; }
/* Índice (Luis, 15-oct-2026): una por línea, logo grandecito y solo el título. */
.w-guias-filas { max-width: 760px; }
.w-guias-filas .w-guias-lista { grid-template-columns: 1fr; gap: 12px !important; }
.w-guias-filas .w-guias-lista a { align-items: center; gap: 22px; padding: 14px 22px 14px 14px; }
.w-guias-filas .w-guia-img { width: 132px; height: 80px; border-radius: 16px; }
.w-guias-filas .w-guia-img-logo { padding: 12px 16px; }
.w-guias-filas .w-guia-img-icono .w-icono { width: 40px; height: 40px; }
.w-guias-tit { font: 800 18px/1.35 var(--web-font); }
@media (max-width: 560px) {
  .w-guias-filas .w-guia-img { width: 96px; height: 64px; }
  .w-guias-tit { font-size: 16px; }
}
.w-guias-mini a { align-items: center; padding: 12px; }
.w-guias-mini .w-guia-img { width: 48px; height: 48px; border-radius: 12px; }
.w-guias-mini .w-guia-img-icono .w-icono { width: 24px; height: 24px; }
.w-guias-mini strong { font-size: 15px; }

/* ── 404 ──────────────────────────────────────────────── */
.w-404 { text-align: left; }
.w-404-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* ── Sobre: logo de la marca ─────────────────────────── */
.w-sobre-logo { flex: none; width: 168px; height: 104px; border-radius: 24px; background: #fff; border: 1px solid var(--web-border); display: grid; place-items: center; padding: 18px 22px; }
.w-sobre-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 560px) { .w-sobre-logo { width: 120px; height: 76px; } }

/* ── Precio de la luz ────────────────────────────────── */
.w-precio-hero { max-width: 960px; padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.w-precio-fecha { display: block; font: 700 18px/1.3 var(--web-font); color: var(--web-muted); letter-spacing: 0; margin-top: 6px; text-transform: none; }
.w-precio-fecha::first-letter { text-transform: uppercase; }
.w-precio-tabs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.w-precio-tabs a { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--web-border); background: var(--web-surface); font: 700 15px/1 var(--web-font); color: var(--web-ink); text-decoration: none; }
.w-precio-tabs a.activo { background: var(--web-ink); color: var(--web-on-ink, #fff); border-color: var(--web-ink); }
.w-precio-zona { margin-left: auto; }
.w-precio-zona select { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--web-border-field); font: 600 15px var(--web-font); background: var(--web-surface); }
.w-precio { max-width: 960px; padding-top: clamp(28px, 5vw, 48px); padding-bottom: clamp(48px, 8vw, 96px); display: flex; flex-direction: column; gap: 24px; }
.w-precio-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.w-precio-kpi { border: 1px solid var(--web-border); border-radius: var(--web-radius-card); background: var(--web-surface); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.w-precio-kpi span { font: 700 13px/1.3 var(--web-font); color: var(--web-muted); }
.w-precio-kpi strong { font: 800 32px/1.1 var(--web-font); }
.w-precio-kpi em { font: 600 13px var(--web-font); font-style: normal; color: var(--web-muted); }
.w-precio-kpi-ahora { background: var(--web-ink); color: var(--web-on-ink, #fff); border-color: var(--web-ink); }
.w-precio-kpi-ahora span, .w-precio-kpi-ahora em { color: inherit; opacity: .8; }
.w-precio-kpi-barato strong { color: var(--web-saving); }
.w-precio-kpi-caro strong { color: var(--web-primary-text); }
.w-precio-grafico { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; align-items: end; height: 220px; padding: 12px 0 0; }
.w-precio-barra { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.w-precio-barra span { width: 100%; border-radius: 6px 6px 2px 2px; min-height: 4px; background: currentColor; }
.w-precio-barra small { font: 600 11px var(--web-font); color: var(--web-muted); }
.w-precio-ahora span { outline: 3px solid var(--web-ink); outline-offset: 1px; }
.w-nivel-barato { color: var(--web-saving); }
.w-nivel-medio { color: #E0A93B; }
.w-nivel-caro { color: var(--web-primary); }
.w-precio-leyenda { font: 600 14px var(--web-font); color: var(--web-muted); display: flex; gap: 14px; margin-top: -12px; }
.w-precio-tabla td.w-num { font-weight: 700; }
.w-precio-fila-ahora td { background: var(--web-surface-alt); font-weight: 800; }
.w-precio-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 700 12px/1.4 var(--web-font); background: currentColor; }
.w-precio-chip.w-nivel-barato, .w-precio-chip.w-nivel-medio, .w-precio-chip.w-nivel-caro { color: inherit; }
.w-precio-chip.w-nivel-barato { background: var(--web-saving-bg); color: var(--web-saving); }
.w-precio-chip.w-nivel-medio { background: #FBF0D9; color: #8A6212; }
.w-precio-chip.w-nivel-caro { background: #FBE6E1; color: var(--web-primary-text); }
@media (max-width: 560px) { .w-precio-grafico { height: 160px; gap: 2px; } .w-precio-barra small { font-size: 9px; } .w-precio-zona { margin-left: 0; } }

/* ── Calculadora de potencia (guía) ──────────────────── */
.w-calc { border: 2px solid var(--web-saving); border-radius: var(--web-radius-card); padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; background: var(--web-surface); }
.w-calc > strong { font: 800 20px/1.25 var(--web-font); }
.w-calc p { margin: 0; }
.w-calc-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.w-calc-lista label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--web-border); border-radius: 12px; cursor: pointer; font: 600 15px/1.3 var(--web-font); }
.w-calc-lista input { width: 18px; height: 18px; accent-color: var(--web-saving); flex: none; }
.w-calc-lista span { margin-left: auto; color: var(--web-muted); font-size: 13px; white-space: nowrap; }
.w-calc-res { background: var(--web-saving-bg); border-radius: 14px; padding: 14px 18px; font: 700 18px/1.4 var(--web-font); display: flex; flex-direction: column; gap: 4px; }
.w-calc-res b { font-size: 30px; color: var(--web-saving); }
.w-calc-res small { font: 500 13px/1.4 var(--web-font); color: var(--web-muted); }

.w-guias-bloque { font: 800 var(--web-fs-h3, 24px)/1.25 var(--web-font); margin: 16px 0 0; }
.w-guias-bloque:first-child { margin-top: 0; }

/* /guias/ en dos columnas (Luis, 16-oct-2026): compañías | entender. */
.w-guias-filas { max-width: 1160px; }
.w-guias-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; align-items: start; }
.w-guias-cols section { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.w-guias-cols .w-guias-bloque { margin: 0; }
.w-guias-cols .w-guias-lista { gap: 10px !important; }
.w-guias-cols .w-guias-lista a { gap: 16px; padding: 10px 16px 10px 10px; }
.w-guias-cols .w-guia-img { width: 96px; height: 60px; border-radius: 12px; }
.w-guias-cols .w-guia-img-logo { padding: 8px 12px; }
.w-guias-cols .w-guia-img-icono .w-icono { width: 30px; height: 30px; }
.w-guias-cols .w-guias-tit { font-size: 16px; }
@media (max-width: 860px) { .w-guias-cols { grid-template-columns: 1fr; } }
.w-guias-hero-ancho { max-width: 1160px; }

/* ── Confirmación del email (RGPD v2) ─────────────────── */
.w-alert-ok { background: var(--web-saving-bg); color: var(--web-ink); font-weight: 600; }
.w-confirmar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.w-confirmar span { flex: 1 1 320px; font-weight: 500; }
.w-casilla-legal span { font-size: 14px; line-height: 1.45; }
.w-casilla-legal em { font-style: normal; color: var(--web-muted); }
