/* ============================================================
   Maggiore Ads Calculator — Estilos
   Paleta: negro profundo + teal/verde Maggiore (globo aerostático)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Variables ── */
:root {
  --bg:          #04080f;
  --bg-card:     #080e1a;
  --bg-surface:  #0d1829;
  --bg-hover:    #122035;
  --border:      rgba(255,255,255,0.07);
  --border-focus:rgba(6, 182, 212, 0.5);

  --red:         #06b6d4;
  --red-light:   #22d3ee;
  --red-glow:    rgba(6,182,212,0.18);
  --red-glow2:   rgba(6,182,212,0.07);

  --white:       #f0f8ff;
  --muted:       #6b8fa8;
  --muted2:      #3a5268;

  --success:     #00C896;
  --warning:     #FFD166;
  --danger:      #EF476F;

  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   20px;

  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --shadow: 0 4px 32px rgba(0,0,0,0.45);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.3);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  background-image: radial-gradient(ellipse 80% 60% at 80% 40%, rgba(6,80,100,0.35) 0%, transparent 65%);
  color: var(--white);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* (Google Font importado arriba del todo) */

/* ── Layout ── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(10,11,20,0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.navbar-logo img {
  height: 32px;
  filter: brightness(0) invert(1);
}
.navbar-logo-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.navbar-badge {
  background: var(--red-glow);
  border: 1px solid var(--red);
  color: var(--red-light);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  padding: 72px 40px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(6,182,212,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 20px;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--red-light);
  opacity: 0.5;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 40%, #c0c1e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--red-light), #ff8a80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ══════════════════════════════════════════
   FORM SECTION
══════════════════════════════════════════ */
.form-section {
  padding: 0 40px 60px;
}
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
/* ══════════════════════════════════════════
   RESPONSIVE — Tablet (≤768px)
══════════════════════════════════════════ */
@media (max-width: 768px) {
  .navbar { padding: 16px 20px; }
  .hero { padding: 48px 20px 40px; }
  .form-section { padding: 0 20px 48px; }
  #results-section { padding: 0 20px 60px; }
  .footer { padding: 24px 20px; flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — Mobile (≤600px)
══════════════════════════════════════════ */
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 20px; }

  /* Hero */
  .hero-sub { font-size: 15px; }

  /* Budget row: stack vertically en pantallas muy chicas */
  .budget-input-row { flex-wrap: wrap; }
  .budget-number { width: 100% !important; }
  .currency-toggle { width: 100%; justify-content: center; }

  /* Meses: 2 por fila */
  .months-options { display: grid; grid-template-columns: 1fr 1fr; }
  .month-btn { text-align: center; }

  /* Canales: 2 por fila */
  .channels-grid { grid-template-columns: 1fr 1fr; }

  /* CTA full width */
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn-calculate { justify-content: center; width: 100%; }

  /* KPIs: 2 por fila */
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi-value { font-size: 20px; }
  .kpi-card.roi .kpi-value { font-size: 24px; }

  /* Barras: 1 por fila */
  #bars-container { grid-template-columns: 1fr; }

  /* Results header: stack */
  .results-header { flex-direction: column; align-items: flex-start; }
  .best-channel-pill { font-size: 12px; }

  /* Tabla: scroll horizontal (ya tiene overflow-x: auto) */
  .table-wrapper { -webkit-overflow-scrolling: touch; }
}

/* ── Field ── */
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.field-label span { color: var(--red-light); }

select, input[type="range"], input[type="number"], input[type="text"] {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  padding: 11px 16px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
select:focus, input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237879a0' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
select option { background: var(--bg-surface); }

/* ── Budget ── */
.budget-wrapper { display: flex; flex-direction: column; gap: 10px; }
.budget-display {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.budget-display sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  vertical-align: middle;
  margin-left: 6px;
}
input[type="range"] {
  padding: 0;
  height: 6px;
  border-radius: 100px;
  cursor: pointer;
  accent-color: var(--red);
  border: none;
  background: var(--bg-hover);
}
.budget-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted2);
  margin-top: 2px;
}

/* ── Currency Toggle ── */
.currency-toggle {
  display: flex;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  width: fit-content;
}
.currency-btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  transition: all 0.18s;
}
.currency-btn.active {
  background: var(--red);
  color: #fff;
}

/* ── Months ── */
.months-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.month-btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s;
}
.month-btn:hover { border-color: var(--red); color: var(--red-light); }
.month-btn.active {
  background: var(--red-glow);
  border-color: var(--red);
  color: var(--red-light);
}

/* ── Channel Toggles ── */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  grid-column: 1 / -1;
}
.channel-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--bg-surface);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
  color: var(--muted);
}
.channel-toggle:hover {
  border-color: var(--muted2);
  color: var(--white);
}
.channel-toggle.active {
  border-color: var(--red);
  background: var(--red-glow2);
  color: var(--white);
  box-shadow: 0 0 0 3px var(--red-glow);
}
.channel-toggle .ch-icon { font-size: 22px; }
.channel-toggle .ch-name { font-size: 12px; font-weight: 600; }
.channel-toggle .ch-desc { font-size: 10px; color: var(--muted2); text-align: center; }
.channel-toggle.active .ch-desc { color: var(--muted); }

/* ── Divider ── */
.form-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0;
  grid-column: 1 / -1;
}

/* ── Channels label full width ── */
.field-full { grid-column: 1 / -1; }

/* ── CTA Button ── */
.cta-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.btn-calculate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: all 0.2s;
  box-shadow: 0 4px 24px rgba(6,182,212,0.30);
}
.btn-calculate:hover {
  background: var(--red-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 32px rgba(6,182,212,0.45);
}
.btn-calculate:active { transform: translateY(0); }
.btn-calculate svg { flex-shrink: 0; }

#error-msg {
  display: none;
  color: var(--danger);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  background: rgba(239,71,111,0.1);
  border: 1px solid rgba(239,71,111,0.3);
  border-radius: var(--radius-sm);
}

/* ══════════════════════════════════════════
   RESULTS SECTION
══════════════════════════════════════════ */
#results-section {
  display: none;
  padding: 0 40px 80px;
  animation: fadeUp 0.4s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.results-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.best-channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,200,150,0.1);
  border: 1px solid rgba(0,200,150,0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  color: #00C896;
}
.best-channel-pill strong { font-weight: 700; }

/* ── KPI Grid ── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kpi-card.highlight {
  border-color: rgba(6,182,212,0.25);
  background: linear-gradient(135deg, #080e1a, #061820);
}
.kpi-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.kpi-value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1;
}
.kpi-sub {
  font-size: 12px;
  color: var(--muted2);
}
.kpi-card.roi .kpi-value { font-size: 30px; }

/* ── Channel Bars ── */
.section-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--white);
}
.section-title span { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 8px; }

#bars-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.bar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s;
}
.bar-card:hover { border-color: var(--muted2); }
.bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bar-ch-name { font-size: 14px; font-weight: 600; }
.bar-roi { font-size: 14px; font-weight: 700; }
.bar-group { display: flex; flex-direction: column; gap: 6px; }
.bar-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.bar-label-row span:last-child { font-weight: 600; color: var(--white); }
.bar-track {
  width: 100%;
  height: 6px;
  background: var(--bg-hover);
  border-radius: 100px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
.bar-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.bar-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.bar-stat span { font-size: 10px; color: var(--muted2); text-transform: uppercase; letter-spacing: 0.05em; }
.bar-stat strong { font-size: 13px; font-weight: 700; }

/* ── Channel Table ── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
thead th {
  padding: 14px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: var(--bg-surface);
}
tbody tr { border-bottom: 1px solid var(--border); transition: background 0.15s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg-hover); }
tbody td {
  padding: 14px 16px;
  color: var(--white);
  white-space: nowrap;
}
.ch-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

/* ── Disclaimer ── */
.disclaimer {
  margin-top: 32px;
  padding: 18px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.disclaimer strong { color: var(--muted); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  padding: 32px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-text {
  font-size: 13px;
  color: var(--muted2);
}
.footer-text a {
  color: var(--muted);
  text-decoration: none;
}
.footer-text a:hover { color: var(--red-light); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted2); }

/* ══════════════════════════════════════════
   MODO SIMULACIÓN — métricas editables
══════════════════════════════════════════ */
.sim-metrics {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(6, 182, 212, 0.04);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: var(--radius-sm);
}
.sim-row {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sim-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted2);
  transition: color 0.2s;
}

.sim-label.sim-edited {
  color: var(--red);
}

.sim-bench {
  font-size: 9px;
  color: var(--muted2);
  margin-bottom: 2px;
}

.sim-input-wrap {
  display: flex;
  align-items: center;
  gap: 3px;
}

.sim-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
  -moz-appearance: textfield;
  min-width: 0;
  box-sizing: border-box;
}

.sim-input::-webkit-outer-spin-button,
.sim-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.sim-input:hover {
  border-color: rgba(6, 182, 212, 0.4);
}

.sim-input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12);
}

.sim-unit {
  font-size: 12px;
  color: var(--muted2);
  flex-shrink: 0;
}

/* ── KPI color variants ── */
.kpi-card.kpi-yellow {
  border-color: rgba(232, 170, 0, 0.35);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(232,170,0,0.06) 100%);
}
.kpi-card.kpi-yellow .kpi-label { color: #e8aa00; }
.kpi-card.kpi-yellow .kpi-value { color: #e8aa00; }

.kpi-card.kpi-green {
  border-color: rgba(120, 219, 67, 0.25);
}
.kpi-card.kpi-green .kpi-value { color: #78db43; }

.kpi-card.kpi-highlight {
  border-color: rgba(120, 219, 67, 0.5);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(120,219,67,0.08) 100%);
}

/* ── Sim cards (parámetros por canal) ── */
#sim-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.sim-card {
  background: var(--bg-card);
  border: 1px solid rgba(232, 170, 0, 0.3);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.sim-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.sim-card-icon { font-size: 18px; }
.sim-card-name { font-size: 13px; font-weight: 700; flex: 1; }
.sim-card-budget { font-size: 11px; color: var(--muted2); }

.sim-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.sim-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sim-field-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #e8aa00;
}
.sim-field-label.sim-edited { color: var(--red); }
.sim-bench {
  font-size: 9px;
  color: var(--muted2);
  margin-bottom: 2px;
}
.sim-field-wrap {
  display: flex;
  align-items: center;
  gap: 3px;
}
.sim-input {
  width: 100%;
  background: rgba(232, 170, 0, 0.08);
  border: 1px solid rgba(232, 170, 0, 0.4);
  border-radius: 6px;
  color: #e8aa00;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
  -moz-appearance: textfield;
  min-width: 0;
  box-sizing: border-box;
}
.sim-input::-webkit-outer-spin-button,
.sim-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sim-input:hover { border-color: rgba(232, 170, 0, 0.7); }
.sim-input:focus {
  outline: none;
  border-color: #e8aa00;
  box-shadow: 0 0 0 3px rgba(232, 170, 0, 0.15);
  background: rgba(232, 170, 0, 0.12);
}
.sim-unit { font-size: 12px; color: var(--muted2); flex-shrink: 0; }

@media (max-width: 600px) {
  #sim-container { grid-template-columns: 1fr; }
  .sim-fields { grid-template-columns: repeat(3, 1fr); }
}

/* ── Slider inside yellow KPI cards ── */
.kpi-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(232,170,0,0.2);
}
.kpi-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 100px;
  background: rgba(232,170,0,0.25);
  outline: none;
  cursor: pointer;
}
.kpi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e8aa00;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(232,170,0,0.5);
  transition: box-shadow 0.2s;
}
.kpi-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 10px rgba(232,170,0,0.8);
}
.kpi-number-input {
  width: 100%;
  background: rgba(232,170,0,0.1);
  border: 1px solid rgba(232,170,0,0.35);
  border-radius: 6px;
  color: #e8aa00;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 8px;
  box-sizing: border-box;
  -moz-appearance: textfield;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.kpi-number-input::-webkit-outer-spin-button,
.kpi-number-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.kpi-number-input:focus {
  border-color: #e8aa00;
  box-shadow: 0 0 0 3px rgba(232,170,0,0.15);
}

/* Edited state */
.kpi-card.kpi-edited {
  border-color: rgba(232,170,0,0.7) !important;
  box-shadow: 0 0 0 2px rgba(232,170,0,0.15);
}

/* ── Ticket Promedio / ROAS ── */
.ticket-section {
  margin: 0 0 24px 0;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.ticket-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}
.ticket-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ticket-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  width: 200px;
}
.ticket-currency-symbol {
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
}
.ticket-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  width: 100%;
  -moz-appearance: textfield;
}
.ticket-input::-webkit-outer-spin-button,
.ticket-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.ticket-input::placeholder { color: var(--muted2); font-weight: 400; }

.kpi-card.kpi-roas {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  border-color: rgba(120, 219, 67, 0.4);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(120,219,67,0.08) 100%);
}
.kpi-card.kpi-roas .kpi-value { color: #78db43; font-size: 28px; }
