/* ==========================================================
   PRESUPUESTADOR KIT MI PISCINA — estilos
   Colores de marca en :root. Móvil primero; escritorio ≥ 768px.
   ========================================================== */

:root {
  --navy: #0A192F;
  --navy-2: #1E293B;
  --navy-line: #1E2A3D;
  --blue: #0073E6;
  --blue-dark: #005BB5;
  --blue-soft: #EFF6FF;
  --ink: #0F172A;
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --green: #059669;
  --green-dark: #065F46;
  --green-light: #6EE7B7;
  --green-text: #34D399;
  --cetelem: #003B64;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 4px 10px rgba(15, 23, 42, .12);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: #fff; color: var(--ink); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
button { font: inherit; }
h1, h2, p { margin: 0; }

.app { min-height: 100vh; padding: 8px; padding-bottom: 112px; overflow-x: hidden; }
.app.is-embedded { padding: 0 0 112px; }
.container { max-width: 1280px; margin: 0 auto; padding: 8px 4px; }

/* ---------- Cabecera ---------- */
.topbar { background: var(--navy); color: #fff; border-radius: var(--radius); margin-bottom: 24px; position: sticky; top: 0; z-index: 50; }
.topbar-inner { max-width: 1280px; margin: 0 auto; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { background: #fff; padding: 4px 12px; border-radius: var(--radius-sm); }
.brand-logo img { height: 36px; width: auto; object-fit: contain; }
.brand-tag { display: none; border-left: 1px solid #334155; padding-left: 12px; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--slate-300); }
.topbar-right { display: flex; align-items: center; gap: 24px; }
.phone { display: none; text-align: right; }
.phone span { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--slate-400); }
.phone a { color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.phone a:hover { color: #38BDF8; }

/* ---------- Layout ---------- */
.layout { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.layout-main { width: 100%; display: flex; flex-direction: column; gap: 20px; }

/* ---------- Tarjetas ---------- */
.card { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.card-head h2 { font-size: 16px; font-weight: 700; color: var(--navy); }
.card-head p { font-size: 12px; color: var(--slate-500); margin-top: 2px; line-height: 1.45; }
.card-divided .card-head { border-bottom: 1px solid var(--slate-100); padding-bottom: 12px; }
.subsection { border-top: 1px solid var(--slate-100); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }

.grid-2, .grid-3, .grid-swatch { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grid-2.gap-sm, .grid-3 { gap: 12px; }
.grid-swatch { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Formularios ---------- */
.form-group { display: block; }
.label { display: block; font-size: 12px; font-weight: 700; color: var(--slate-700); margin-bottom: 6px; }
.label-light { display: block; font-size: 11px; font-weight: 500; color: var(--slate-600); margin-bottom: 4px; }
.label-strong { display: block; font-size: 12px; font-weight: 700; color: var(--slate-800); }
.hint { display: block; font-size: 11px; color: var(--slate-500); margin-top: 2px; }
.field { width: 100%; background: #fff; border: 1px solid var(--slate-300); border-radius: var(--radius-sm); padding: 12px; font: inherit; font-size: 12px; font-weight: 500; color: var(--ink); outline: none; transition: border-color .15s; }
.field:focus { border-color: var(--blue); }
.field.small { padding: 10px; }
.field.bold { font-weight: 700; }
.accent { color: var(--blue); font-weight: 700; }
.accent-small { font-size: 11px; font-weight: 700; color: var(--blue); }
.muted { color: var(--slate-400); }

/* Campo de medida con − / + */
.stepper-input { display: flex; align-items: stretch; border: 1px solid var(--slate-300); border-radius: var(--radius-sm); overflow: hidden; background: #fff; transition: border-color .15s; }
.stepper-input:focus-within { border-color: var(--blue); }
.stepper-field { border: none; border-radius: 0; text-align: center; font-size: 14px; font-weight: 700; min-width: 0; flex: 1; padding: 11px 4px; }
.stepper-unit { display: flex; align-items: center; padding-right: 10px; font-size: 12px; font-weight: 700; color: var(--slate-500); }
.stepper-btn { width: 46px; flex-shrink: 0; border: none; background: var(--slate-100); color: var(--navy); font-size: 18px; font-weight: 700; cursor: pointer; transition: background .15s; }
.stepper-btn:hover:not(:disabled) { background: var(--blue-soft); color: var(--blue); }
.stepper-btn:disabled { color: var(--slate-300); cursor: default; }
.form-group .hint { margin-top: 4px; }
.stepper-small { flex-shrink: 0; width: 132px; }
.stepper-small .stepper-btn { width: 40px; padding: 8px 0; }
.stepper-value { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }

/* ---------- Tarjetas de opción ---------- */
.option-card { display: flex; flex-direction: column; justify-content: space-between; gap: 2px; text-align: left; padding: 14px; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); cursor: pointer; color: var(--slate-800); transition: border-color .15s, background .15s, box-shadow .15s; }
.option-card:hover { border-color: var(--slate-300); }
.option-card.is-selected { border-color: var(--blue); background: rgba(239, 246, 255, .5); box-shadow: 0 0 0 1px var(--blue); }
.option-card.compact { justify-content: flex-start; }
.option-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.option-row.wrap { flex-wrap: wrap; align-items: center; }
.option-title { display: block; font-size: 12px; font-weight: 700; color: var(--slate-900); }
.option-card.compact.is-selected .option-title { color: var(--blue); }
.option-desc { display: block; font-size: 11px; color: var(--slate-500); margin-top: 2px; line-height: 1.4; }
.option-desc.small { font-size: 10px; }
.option-price { font-size: 12px; font-weight: 700; color: var(--blue); }
.option-price.strong { font-weight: 900; }
.option-foot { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--slate-100); display: flex; justify-content: space-between; align-items: center; }
.nowrap { white-space: nowrap; padding-left: 8px; }
.pool-diagram { width: 100%; height: 96px; margin: 8px 0; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--slate-200); background: #fff; color: var(--slate-700); font-size: 11px; font-weight: 700; cursor: pointer; }
.chip:hover { background: var(--slate-50); }
.chip.is-selected { background: var(--blue); border-color: var(--blue); color: #fff; }
.info-strip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 12px; background: rgba(239, 246, 255, .6); border: 1px solid #DBEAFE; border-radius: var(--radius); font-size: 12px; color: var(--slate-700); }

/* Muestras de color */
.swatch { display: flex; flex-direction: column; gap: 6px; padding: 8px; text-align: left; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); cursor: pointer; }
.swatch:hover { border-color: var(--slate-300); }
.swatch.is-selected { border-color: var(--blue); background: rgba(239, 246, 255, .4); box-shadow: 0 0 0 2px var(--blue); }
.swatch-img { position: relative; height: 80px; border-radius: var(--radius-sm); overflow: hidden; background: var(--slate-100); }
.swatch-big .swatch-img { height: 96px; }
.swatch-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.swatch-img img:hover { transform: scale(1.05); }
.badge-selected { position: absolute; top: 4px; right: 4px; background: var(--blue); color: #fff; font-size: 8px; font-weight: 700; padding: 2px 6px; border-radius: var(--radius-sm); }
.swatch-title { display: block; font-size: 11px; font-weight: 700; color: var(--slate-900); line-height: 1.2; }
.swatch-desc { display: block; font-size: 9px; color: var(--slate-500); line-height: 1.2; margin-top: 2px; }

/* Casillas */
.check-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--slate-200); border-radius: var(--radius-sm); cursor: pointer; background: #fff; transition: border-color .15s; }
.check-row:hover { border-color: var(--slate-300); }
.check-row.spread { justify-content: space-between; align-items: center; }
.check-row.is-selected { border-color: var(--blue); background: rgba(239, 246, 255, .5); }
.check-left { display: flex; align-items: flex-start; gap: 12px; }
input[type="checkbox"] { accent-color: var(--blue); margin: 2px 0 0; flex-shrink: 0; }

.check-row.is-disabled { opacity: .55; cursor: not-allowed; }
.acc-list { display: flex; flex-direction: column; border: 1px solid var(--slate-200); border-radius: var(--radius-sm); }
.acc-row { display: grid; grid-template-columns: 1fr auto 90px; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--slate-100); }
.acc-row:first-child { border-top: none; }
.acc-qty { font-size: 12px; font-weight: 700; color: var(--slate-700); white-space: nowrap; }
.acc-row .option-price { text-align: right; }
.acc-row-simple { grid-template-columns: 1fr auto; }
.acc-total { background: var(--slate-50); font-size: 12px; font-weight: 700; color: var(--navy); }
.acc-total span:last-child { text-align: right; color: var(--blue); }

/* ---------- Botones ---------- */
.btn { border: none; border-radius: var(--radius-sm); padding: 14px 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; transition: background .15s; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-primary:disabled { opacity: .7; cursor: wait; }
.btn-secondary { background: var(--slate-200); color: var(--slate-800); }
.btn-secondary:hover { background: var(--slate-300); }
.btn-full { width: 100%; }
.btn-sm { padding: 10px 14px; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.brand-logo img { max-width: 40vw; }
.nav-buttons { display: flex; gap: 12px; }
.nav-buttons .btn-secondary { width: 33.333%; }
.nav-buttons .btn-primary { flex: 1; }

/* ---------- Pasos ---------- */
.stepper { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.stepper-mobile { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 4px; }
.stepper-count { display: block; font-size: 10px; font-weight: 700; letter-spacing: .05em; color: var(--slate-400); }
.stepper-title { display: block; font-size: 12px; font-weight: 900; color: var(--navy); }
.stepper-pct { font-size: 12px; font-weight: 900; color: var(--blue); }
.progress { height: 6px; border-radius: 999px; background: var(--slate-100); overflow: hidden; }
.progress div { height: 100%; background: var(--blue); transition: width .3s ease-out; }
.stepper-tabs { display: flex; gap: 4px; }
.step-tab { flex: 1; padding: 10px 4px; border: none; border-radius: var(--radius-sm); background: transparent; color: var(--slate-400); font-size: 11px; cursor: pointer; }
.step-tab:disabled { cursor: default; }
.step-tab.is-done { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.step-tab.is-current { background: var(--blue); color: #fff; font-weight: 700; }
.only-desktop { display: none; }

/* ---------- Paso 4 ---------- */
.finance-panel { background: linear-gradient(to right, #022C22, var(--navy)); color: #fff; border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-md); }
.finance-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid rgba(4, 120, 87, .5); }
.finance-brand { display: flex; align-items: center; gap: 10px; }
.finance-brand strong { display: block; font-size: 13px; }
.finance-brand span:not(.cetelem-badge) { display: block; font-size: 10px; color: #A7F3D0; }
.cetelem-logo { height: 20px; width: auto; display: block; flex-shrink: 0; }
.cetelem-logo.light { height: 24px; }
.cetelem-badge { background: var(--cetelem); color: #fff; font-weight: 900; font-size: 10px; padding: 2px 8px; border-radius: var(--radius-sm); letter-spacing: -.01em; }
.cetelem-badge.light { background: #10B981; color: #020617; font-size: 12px; letter-spacing: .05em; }
.finance-quota { font-size: 12px; font-weight: 700; color: var(--green-text); background: rgba(15, 23, 42, .6); padding: 4px 10px; border-radius: var(--radius-sm); border: 1px solid rgba(16, 185, 129, .3); white-space: nowrap; }
.finance-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.finance-option { text-align: left; padding: 10px; border-radius: var(--radius-sm); border: 1px solid #334155; background: rgba(30, 41, 59, .8); color: var(--slate-300); }
.finance-note { margin: 0; font-size: 11px; color: #A7F3D0; line-height: 1.4; }
.finance-option strong { display: block; font-size: 12px; }
.finance-option span { display: block; font-size: 10px; color: #A7F3D0; margin-top: 2px; }
.transport-box { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 42px; padding: 6px 12px; border: 1px dashed var(--slate-300); border-radius: var(--radius-sm); background: var(--slate-50); }
.call-box { background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius-sm); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.call-box .grid-2 { gap: 12px; }
.terms { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 11px; color: var(--slate-500); line-height: 1.35; }
.terms a { color: var(--blue); font-weight: 700; }
.company-note { font-size: 10px; color: var(--slate-400); line-height: 1.4; margin-top: -4px; }
.doc-slogan { font-size: 11px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.doc-issuer { margin-top: 8px; font-size: 10px; color: var(--slate-600); line-height: 1.5; }
.doc-issuer strong { color: var(--slate-800); }
.form-error { font-size: 12px; font-weight: 700; color: #B91C1C; background: #FEF2F2; border: 1px solid #FECACA; padding: 10px 12px; border-radius: var(--radius-sm); }

/* ---------- Resumen lateral ---------- */
.summary { width: 100%; background: var(--navy); color: #fff; border: 1px solid #1E293B; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 16px; }
.summary-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid #1E293B; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--slate-400); }
.summary-head .ref { font-size: 11px; font-weight: 500; text-transform: none; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { background: rgba(30, 41, 59, .8); border: 1px solid rgba(51, 65, 85, .6); border-radius: var(--radius-sm); padding: 10px; }
.stat span { display: block; font-size: 10px; color: var(--slate-400); }
.stat strong { display: block; font-size: 12px; margin-top: 2px; }
.summary-config { padding-top: 8px; border-top: 1px solid #1E293B; font-size: 12px; }
.summary-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--slate-400); margin-bottom: 4px; }
.summary-row { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid rgba(30, 41, 59, .6); }
.summary-row span { color: var(--slate-400); flex-shrink: 0; }
.summary-row strong { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.summary-extras { padding-top: 4px; font-size: 11px; color: var(--slate-300); }
.summary-extras strong { color: #fff; display: block; }
.summary-steps { padding-top: 8px; border-top: 1px solid #1E293B; font-size: 12px; }
.summary-row.is-pending strong { color: var(--slate-500); font-weight: 500; }
.summary-total { padding-top: 12px; border-top: 1px solid #1E293B; display: flex; flex-direction: column; gap: 12px; }
.summary-total .summary-label { margin: 0; font-weight: 500; }
.big-total { font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.summary-base { font-size: 11px; color: var(--slate-400); margin-top: -8px; }
.finance-mini { background: rgba(2, 44, 34, .8); border: 1px solid rgba(5, 150, 105, .5); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.finance-mini-label { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--green-text); }
.finance-mini-badge { font-size: 10px; font-weight: 700; background: var(--green); padding: 2px 6px; border-radius: var(--radius-sm); }
.finance-mini-quota { font-size: 20px; font-weight: 900; color: var(--green-light); }
.finance-mini-quota small { font-size: 11px; font-weight: 600; color: var(--green-text); }
.finance-mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding-top: 4px; }
.finance-mini-grid div { padding: 4px; border-radius: var(--radius-sm); border: 1px solid #334155; background: rgba(15, 23, 42, .8); color: var(--slate-300); text-align: center; }
.finance-mini-grid span { display: block; font-size: 9px; }
.finance-mini-grid strong { display: block; font-size: 10px; color: #fff; }

/* ---------- Barra móvil ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; background: var(--navy); color: #fff; padding: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #1E293B; box-shadow: 0 -10px 25px rgba(0, 0, 0, .25); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mobile-bar-label { display: block; font-size: 9px; font-weight: 700; letter-spacing: .05em; color: var(--slate-400); }
.mobile-bar-total { display: block; font-size: 20px; font-weight: 900; line-height: 1; }
.mobile-bar-quota { display: block; font-size: 10px; font-weight: 700; color: var(--green-text); margin-top: 2px; }
.mobile-bar .btn { border-radius: var(--radius); font-weight: 900; padding: 12px 16px; }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--slate-200); margin-top: 48px; padding: 24px 16px; text-align: center; font-size: 11px; color: var(--slate-500); display: flex; flex-direction: column; gap: 4px; }
.site-footer .strong { font-size: 12px; font-weight: 700; color: var(--slate-700); }
.tiny { font-size: 10px; color: var(--slate-400); }

/* ---------- Paso 5: presupuesto final ---------- */
.final { max-width: 768px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.center { text-align: center; }
.right { text-align: right; }
.card.center { align-items: center; gap: 8px; }
.card.center h1 { font-size: 20px; font-weight: 700; color: var(--navy); }
.card.center p { font-size: 12px; color: var(--slate-600); max-width: 576px; line-height: 1.6; }
.card.center .btn { margin-top: 8px; text-transform: none; letter-spacing: 0; }
.badge-success { background: #D1FAE5; color: #065F46; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: var(--radius-sm); }
.doc { padding: 24px; gap: 24px; box-shadow: 0 10px 25px rgba(15, 23, 42, .1); }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 2px solid var(--navy); padding-bottom: 16px; }
.doc-logo { height: 40px; width: auto; margin-bottom: 8px; object-fit: contain; }
.doc-tagline { display: block; font-size: 11px; font-weight: 700; color: var(--slate-500); }
.doc-ref { display: inline-block; background: var(--navy); color: #fff; font-family: ui-monospace, Menlo, monospace; font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-sm); margin-bottom: 4px; }
.doc-date { display: block; font-size: 10px; color: var(--slate-500); }
.doc-valid { display: block; font-size: 9px; font-weight: 700; color: #047857; }
.doc-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--navy); margin-bottom: 8px; }
.doc-client { background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 16px; font-size: 12px; color: var(--slate-800); }
.doc-client p { line-height: 1.6; }
.doc-tech { border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 16px; background: rgba(239, 246, 255, .3); }
.doc-tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 12px; }
.doc-tech-grid div { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-sm); padding: 8px; }
.doc-tech-grid span { display: block; font-size: 10px; color: var(--slate-500); }
.table-wrap { overflow-x: auto; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 12px; color: var(--slate-800); border: 1px solid var(--slate-200); }
.doc-table th { background: var(--navy); color: #fff; padding: 8px; border: 1px solid #334155; text-align: left; }
.doc-table th.center { text-align: center; } .doc-table th.right { text-align: right; }
.doc-table td { padding: 8px; border: 1px solid var(--slate-200); vertical-align: top; }
.doc-table td strong { display: block; color: var(--slate-900); }
.doc-table td span { font-size: 11px; color: var(--slate-500); }
.doc-table td.center, .doc-table td.right { font-weight: 700; white-space: nowrap; }
.doc-table .row-section td { background: var(--blue-soft); color: var(--navy); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px; }
.doc-table .row-muted { background: rgba(248, 250, 252, .8); }
.doc-totals { margin-left: auto; width: 100%; background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 16px; font-size: 12px; display: flex; flex-direction: column; gap: 8px; color: var(--slate-600); }
.doc-totals div { display: flex; justify-content: space-between; align-items: center; }
.doc-totals .grand { padding-top: 8px; border-top: 1px solid var(--slate-300); }
.doc-totals .grand span { font-size: 14px; font-weight: 700; text-transform: uppercase; color: var(--navy); }
.doc-totals .grand strong { font-size: 24px; font-weight: 900; color: var(--blue); }
.doc-installer { font-size: 11px; color: var(--slate-600); padding-top: 6px; border-top: 1px dashed var(--slate-300); }
.doc-installer strong { color: var(--slate-800); }
.doc-finance { background: rgba(236, 253, 245, .5); border: 1px solid #A7F3D0; border-radius: var(--radius); padding: 16px; font-size: 12px; display: flex; flex-direction: column; gap: 12px; }
.doc-finance .finance-brand strong { color: var(--navy); font-size: 12px; }
.doc-finance-key { color: #000; font-weight: 700; }
.doc-finance-sel { font-size: 11px; font-weight: 700; color: #065F46; }
.doc-finance-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; text-align: center; font-size: 11px; }
.doc-finance-grid div { padding: 8px; border: 1px solid #A7F3D0; border-radius: var(--radius-sm); background: #fff; color: var(--slate-700); }
.doc-finance-grid span { display: block; font-size: 9px; text-transform: uppercase; }
.doc-foot { padding-top: 16px; border-top: 1px solid var(--slate-200); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 10px; color: var(--slate-500); }
.doc-foot strong { color: var(--slate-800); }
.doc-seal { text-align: right; border-left: 1px solid var(--slate-300); padding-left: 16px; }
.doc-seal strong { display: block; color: #065F46; }

/* ---------- Escritorio ---------- */
@media (min-width: 640px) {
  .app { padding: 24px 24px 112px; }
  .card { padding: 28px; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-2 > .en-col-2 { grid-column: 2; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-swatch { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .swatch-img { height: 96px; } .swatch-big .swatch-img { height: 112px; }
  .brand-tag { display: block; }
  .only-desktop { display: inline; } .only-mobile { display: none; }
  .step-tab { font-size: 12px; padding: 10px 8px; }
  .finance-grid { grid-template-columns: repeat(4, 1fr); }
  .finance-panel { padding: 20px; }
  .doc { padding: 32px; }
  .doc-logo { height: 48px; }
  .doc-ref { font-size: 12px; }
  .doc-tech-grid { grid-template-columns: repeat(3, 1fr); }
  .doc-totals { width: 50%; }
  .doc-finance-grid { grid-template-columns: repeat(4, 1fr); }
  .pool-diagram { height: 112px; }
}
@media (min-width: 768px) {
  .app { padding-bottom: 24px; }
  .app.is-embedded { padding-bottom: 0; }
  .phone { display: block; }
  .layout { flex-direction: row; gap: 24px; }
  .layout-main { width: 58%; }
  .summary { width: 42%; position: sticky; top: 16px; }
  .stepper-mobile, .progress, .mobile-bar { display: none; }
}
@media (min-width: 1024px) {
  .layout { gap: 32px; }
  .layout-main { width: 62%; }
  .summary { width: 38%; padding: 24px; gap: 20px; }
  .big-total { font-size: 36px; }
}

/* ---------- Impresión (PDF) ---------- */
@media print {
  .no-print, .mobile-bar, header.topbar, .site-footer, button { display: none !important; }
  .app, .container { padding: 0 !important; margin: 0 !important; min-height: 0 !important; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .final { max-width: none; gap: 0; }
  .print-page-wrapper { border: none !important; box-shadow: none !important; padding: 0 !important; }
  table { page-break-inside: auto; }
  thead { display: table-header-group; }
  .doc-table tr.row-section { page-break-after: avoid; break-after: avoid; }
  tr, img, .doc-head, .doc-client, .doc-tech, .doc-totals, .doc-finance, .doc-contact, .doc-foot { page-break-inside: avoid; break-inside: avoid; }
  .doc { gap: 16px; }
  .doc-table td, .doc-table th { padding: 5px 8px; }
  .doc-tech-grid { grid-template-columns: repeat(3, 1fr); }
  .doc-finance-grid { grid-template-columns: repeat(4, 1fr); }
  .doc-totals { width: 50%; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

/* PDF generado en el navegador (html2pdf): sin sombra ni bordes de tarjeta */
.pdf-estado { margin: 0; font-size: 13px; color: var(--slate-600, #475569); min-height: 1em; }
.generando-pdf .doc { box-shadow: none !important; border: none !important; border-radius: 0 !important; }

/* ---------- Bloque de contacto de la oferta ---------- */
.doc-contact { display: flex; flex-direction: column; gap: 12px; break-inside: avoid; page-break-inside: avoid; }
.contact-title h3 { margin: 0; font-size: 18px; font-weight: 800; color: #17375E; letter-spacing: -.01em; }
.contact-title p { margin: 2px 0 0; font-size: 14px; font-weight: 700; color: #3A9CC9; }
.contact-people { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-person { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1.5px solid; }
.contact-person.is-wa { background: #F3FBF4; border-color: #C9EBCD; }
.contact-person.is-tel { background: #FFF9EE; border-color: #F2DDB0; }
.contact-avatar { width: 68px; height: 68px; border-radius: 50%; flex-shrink: 0; background: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #D7E3EC; }
.contact-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.contact-name { font-size: 16px; font-weight: 800; color: #17375E; }
.contact-role { font-size: 11px; color: var(--slate-600); }
.contact-help { font-size: 10px; color: var(--slate-600); }
.contact-help strong { color: #17375E; }
.contact-btn { display: inline-block; align-self: flex-start; margin-top: 6px; padding: 7px 18px; border-radius: 999px; font-size: 12px; font-weight: 800; text-decoration: none; text-align: center; white-space: nowrap; }
.is-wa .contact-btn { background: #5FC96B; color: #fff; }
.is-tel .contact-btn, .is-agenda .contact-btn { background: #F3B353; color: #17375E; }
.is-reel .contact-btn { background: #4FB0D6; color: #fff; }
.contact-qr { display: block; flex-shrink: 0; line-height: 0; }
.contact-qr img { width: 64px; height: 64px; background: #fff; padding: 3px; border-radius: 6px; }
.contact-banner { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; padding: 16px 20px; border-radius: 16px; background: #12263A; color: #fff; }
.contact-banner-text strong { display: block; font-size: 16px; font-weight: 800; line-height: 1.25; }
.contact-banner-text span { display: block; margin-top: 4px; font-size: 11px; color: #C8D6E3; }
.contact-action { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.contact-action .contact-btn { align-self: center; margin-top: 0; }
.contact-qr-label { font-size: 9px; color: #C8D6E3; }
@media (max-width: 640px) {
  .contact-people { grid-template-columns: 1fr; }
  .contact-banner { grid-template-columns: 1fr 1fr; }
  .contact-banner-text { grid-column: 1 / -1; }
}
@media print {
  .contact-people { grid-template-columns: 1fr 1fr; }
  .contact-banner { grid-template-columns: 1fr auto auto; }
  .contact-banner-text { grid-column: auto; }
}
.doc-foot { justify-content: center; text-align: center; }
@media (max-width: 640px) {
  .contact-banner { padding: 14px; gap: 12px; }
  .contact-action .contact-btn { white-space: normal; padding: 7px 12px; }
}
.option-price small { font-size: 10px; font-weight: 600; }

/* Móvil: la cabecera de financiación en columna, para que «desde … € / mes» no pise el texto */
.finance-brand > div { min-width: 0; }
@media (max-width: 640px) {
  .finance-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .finance-brand { align-items: flex-start; }
  .finance-brand .cetelem-logo { margin-top: 2px; }
  .finance-quota { align-self: stretch; text-align: center; font-size: 15px; padding: 8px 10px; }
}

/* Página final: descargar PDF + reservar llamada con el comercial */
.final-acciones { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.btn-reserva, .btn-whatsapp { background: #fff; color: var(--blue); border: 2px solid var(--blue); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn-reserva:hover, .btn-whatsapp:hover { background: var(--blue); color: #fff; }
.btn-whatsapp { background: #25D366; border-color: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5b; border-color: #1ebe5b; color: #fff; }
@media (max-width: 600px) { .final-acciones .btn { width: 100%; } }
