:root {
  --font-ui:   'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --navy-900:  #0F172A;
  --navy-800:  #1E293B;
  --navy-700:  #334155;
  --trust-700: #1E3A8A;
  --trust-600: #1D4ED8;
  --trust-100: #DBEAFE;
  --gold:      #CA8A04;
  --gold-light:#FEF9C3;

  --color-bg:    #F8FAFC;
  --color-card:  #FFFFFF;
  --color-border:#E2E8F0;
  --color-text:  #0F172A;
  --color-secondary: #475569;
  --color-muted: #94A3B8;

  --color-error:   #DC2626;
  --color-warning: #D97706;
  --color-success: #16A34A;

  --radius-card: 12px;
  --radius-input: 8px;
  --radius-btn:  8px;
  --shadow-card: 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.08);
  --shadow-hero-card: 0 20px 60px rgba(0,0,0,.3);

  --container-max: 1100px;
}

body[data-theme="dark"] {
  --color-bg:       #0F172A;
  --color-card:     #1E293B;
  --color-border:   #334155;
  --color-text:     #F1F5F9;
  --color-secondary:#CBD5E1;
  --color-muted:    #64748B;
  --trust-700:      #3B82F6;
  --trust-600:      #60A5FA;
  --trust-100:      #1E3A8A;
  --shadow-card: 0 1px 3px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
}
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  background: var(--navy-900);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1.5rem;
  gap: 1rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: white;
}
.nav-logo { font-size: 1rem; }
.nav-title {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,.85);
}

.btn-darkmode {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-btn);
  padding: 0.375rem 0.625rem;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.15s;
}
.btn-darkmode:hover { background: rgba(255,255,255,.2); }

@keyframes slideUpCard {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero {
  background: var(--navy-900);
  /* Dot grid sutil — frontend-design skill */
  background-image:
    radial-gradient(circle, rgba(30,58,138,.5) 0%, transparent 65%),
    radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 800px 800px, 28px 28px;
  background-position: top right, 0 0;
  padding: 3.5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 2rem; }
}
.hero-text { padding-top: 0.5rem; }
.hero-badge {
  display: inline-block;
  background: rgba(30,58,138,.5);
  border: 1px solid rgba(59,130,246,.4);
  color: #93C5FD;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: 0.9375rem;
  color: rgba(255,255,255,.65);
  line-height: 1.65;
  max-width: 420px;
}
.calc-card {
  background: var(--color-card);
  border-radius: var(--radius-card);
  padding: 2.25rem 2rem 1.75rem;
  box-shadow: var(--shadow-hero-card);
  position: relative;
  z-index: 1;
  animation: slideUpCard 0.5s ease both;
  border-top: 3px solid var(--trust-700);
}

/* ── Animación botón calcular ─────────────────────────────── */
@keyframes btnPulse {
  0%   { transform: scale(1); box-shadow: 0 2px 8px rgba(30,58,138,.3); }
  40%  { transform: scale(0.97); box-shadow: 0 0 0 8px rgba(30,58,138,.12); }
  100% { transform: scale(1); box-shadow: 0 2px 8px rgba(30,58,138,.3); }
}
.btn-calcular.disparando {
  animation: btnPulse 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ── Animación de entrada de resultados ───────────────────── */
@keyframes resultEntrada {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.results-entrada {
  animation: resultEntrada 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
body[data-theme="dark"] .calc-card {
  background: var(--navy-800);
  border: 1px solid var(--color-border);
}

.form-main-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 0.875rem;
  align-items: end;
}
/* Monto ocupa la fila completa */
.form-field-full {
  grid-column: 1 / -1;
}
.form-field-btn { padding-bottom: calc(1rem + 0.375rem); }
@media (max-width: 480px) {
  .form-main-row { grid-template-columns: 1fr; }
  .form-field-btn { grid-column: auto; padding-bottom: 0; }
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.form-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-secondary);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.label-hidden { visibility: hidden; font-size: 0.78rem; }

input[type="text"],
input[type="number"],
select {
  width: 100%;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-input);
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-ui);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -moz-appearance: textfield;
  min-height: 44px;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
input:focus, select:focus {
  border-color: var(--trust-700);
  box-shadow: 0 0 0 3px rgba(30,58,138,.12);
}

.input-prefix {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-input);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: var(--color-bg);
}
.input-prefix:focus-within {
  border-color: var(--trust-700);
  box-shadow: 0 0 0 3px rgba(30,58,138,.12);
}
.input-prefix span {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  background: #F1F5F9;
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 0.9375rem;
  border-right: 1px solid var(--color-border);
  user-select: none;
  white-space: nowrap;
}
.input-prefix input {
  border: none;
  border-radius: 0;
  box-shadow: none;
  flex: 1;
  min-width: 0;
  background: transparent;
}
.input-prefix input:focus { border: none; box-shadow: none; }
body[data-theme="dark"] .input-prefix span { background: var(--navy-900); }
body[data-theme="dark"] .input-prefix { background: var(--navy-900); }

.btn-calcular {
  width: 100%;
  background: var(--trust-700);
  color: white;
  border: none;
  border-radius: var(--radius-btn);
  padding: 0.6875rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: var(--font-ui);
  cursor: pointer;
  min-height: 44px;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  white-space: nowrap;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(30,58,138,.3);
}
.btn-calcular:hover:not(:disabled) {
  background: var(--trust-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(30,58,138,.4);
}
.btn-calcular:active:not(:disabled) { transform: translateY(0); }
.btn-calcular:disabled {
  background: var(--color-border);
  color: var(--color-muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.form-secondary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}
.fecha-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.fecha-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-secondary);
  white-space: nowrap;
}
.fecha-group select {
  width: auto;
  padding: 0.3rem 0.5rem;
  font-size: 0.8rem;
  min-height: 36px;
}
.btn-opcionales {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-secondary);
  cursor: pointer;
  font-family: var(--font-ui);
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-opcionales:hover { border-color: var(--trust-700); color: var(--trust-700); }

.acordeon-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}
.acordeon-body.abierto { max-height: 400px; }
.opcionales-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
  padding-top: 0.875rem;
  margin-top: 0.875rem;
  border-top: 1px solid var(--color-border);
  align-items: end;
}
@media (max-width: 600px) { .opcionales-grid { grid-template-columns: 1fr; } }

.pill-cuota {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  border: 1.5px solid #93C5FD;
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
body[data-theme="dark"] .pill-cuota {
  background: linear-gradient(135deg, #1E3A8A22, #1E3A8A44);
  border-color: #3B82F6;
}
.pill-inner { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.pill-cuota-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--trust-700);
}
.pill-cuota-valor {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--trust-700);
  letter-spacing: -0.02em;
  line-height: 1;
}
body[data-theme="dark"] .pill-cuota-label,
body[data-theme="dark"] .pill-cuota-valor { color: var(--trust-600); }
.pill-hint { font-size: 0.75rem; color: var(--color-muted); }

.how-section {
  background: var(--color-card);
  padding: 3.5rem 0;
  border-top: 1px solid var(--color-border);
}
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 2rem;
  text-align: center;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 700px) { .how-grid { grid-template-columns: 1fr; } }
.how-card {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  text-align: center;
  background: var(--color-card);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.how-card:hover {
  border-color: var(--trust-700);
  box-shadow: 0 4px 20px rgba(30,58,138,.1);
  transform: translateY(-2px);
}
.how-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--trust-700);
  text-align: center;
  margin-bottom: 0.5rem;
}
.how-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--trust-700);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.04em;
}
.how-card h4 { font-weight: 700; margin-bottom: 0.5rem; font-size: 0.9375rem; color: var(--color-text); }
.how-card p { font-size: 0.85rem; color: var(--color-secondary); line-height: 1.6; }

.results-section {
  padding: 0;
  background: var(--color-bg);
}

/* Agrega padding solo cuando hay contenido visible */
.results-section:has(#resumen-cards:not(.hidden)) {
  padding: 2.5rem 0 4rem;
}

.error-msg {
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
  min-height: 1rem;    /* siempre ocupa su lugar → layout estático */
  color: transparent;  /* invisible cuando no hay error */
  white-space: nowrap; /* una línea → nunca empuja el layout */
}
.error-msg.visible { color: var(--color-error); }
.error-msg.visible.is-warning { color: var(--color-warning); }

.hidden { display: none !important; }
#toast.hidden { display: block !important; opacity: 0; pointer-events: none; }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.results-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
  animation: fadeSlideUp 0.35s ease both;
}
@media (max-width: 600px) { .results-cards { grid-template-columns: 1fr 1fr; } }

.result-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.result-card:nth-child(1) { border-top-color: var(--trust-700); }
.result-card:nth-child(2) { border-top-color: var(--color-muted); }
.result-card-warning { border-top-color: var(--gold) !important; }

.result-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}
.result-card-value {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.result-card-sub { font-size: 0.72rem; color: var(--color-muted); margin-top: 0.375rem; }
.rates-bar {
  display: flex;
  gap: 1.25rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.export-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-bottom: 1.25rem;
}
.export-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
  margin-right: 0.25rem;
}
.btn-export {
  background: var(--color-card);
  color: var(--color-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-ui);
  cursor: pointer;
  min-height: 36px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.btn-export:hover {
  border-color: var(--trust-700);
  color: var(--trust-700);
  background: var(--trust-100);
}
.btn-share:hover { border-color: var(--color-success); color: var(--color-success); }

.chart-section {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-card);
  animation: fadeSlideUp 0.4s ease 0.05s both;
}
.chart-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
}

.tabla-section {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  animation: fadeSlideUp 0.4s ease 0.1s both;
}
.tabla-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  background: var(--navy-900);
}
body[data-theme="dark"] .tabla-header-bar { background: var(--navy-800); }
.tabla-header-bar h3 { font-size: 0.875rem; font-weight: 700; color: white; }
.tabla-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabla-amortizacion {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.tabla-amortizacion th {
  padding: 0.5rem 1rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  background: var(--color-bg);
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
}
.tabla-amortizacion th.num,
.tabla-amortizacion td.num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.tabla-amortizacion td {
  padding: 0.475rem 1rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  white-space: nowrap;
}
.tabla-amortizacion tbody tr:hover td { background: #EFF6FF; }
body[data-theme="dark"] .tabla-amortizacion tbody tr:hover td { background: rgba(30,58,138,.2); }
.tabla-amortizacion tr:nth-child(even) td { background: var(--color-bg); }
.tabla-amortizacion .fila-oculta { display: none; }
.tabla-amortizacion .fila-ultima td { font-weight: 700; color: var(--trust-700); }
.fila-totales td {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  background: #EFF6FF !important;
  border-top: 2px solid var(--trust-700);
  color: var(--color-text);
  padding: 0.625rem 1rem;
}
body[data-theme="dark"] .fila-totales td { background: rgba(30,58,138,.2) !important; }
.tabla-footer {
  padding: 0.875rem;
  text-align: center;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}
.btn-ver-mas {
  background: none;
  border: 1.5px solid var(--trust-700);
  color: var(--trust-700);
  border-radius: var(--radius-btn);
  padding: 0.375rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-ui);
  transition: background 0.15s, color 0.15s;
}
.btn-ver-mas:hover { background: var(--trust-700); color: white; }

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-muted);
}
.empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.empty-state p { font-size: 0.9rem; }

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--navy-900);
  color: white;
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius-btn);
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.toast.visible { opacity: 1; pointer-events: auto; }

.site-footer {
  background: var(--navy-900);
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
}
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,.4); }

.tooltip-wrapper {
  display: inline-flex;
  align-items: center;
  position: relative;
}
.tooltip-trigger {
  background: var(--color-border);
  color: var(--color-secondary);
  border: none;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  font-size: 0.6rem;
  font-weight: 700;
  cursor: help;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
}
.tooltip-text {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-900);
  color: white;
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-btn);
  width: 220px;
  z-index: 50;
  line-height: 1.5;
  font-family: var(--font-ui);
  font-weight: 400;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  pointer-events: none;
}
.tooltip-wrapper:hover .tooltip-text { display: block; }
.check-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--color-secondary);
  padding-top: 1.5rem;
}
.check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--trust-700);
  cursor: pointer;
}

body, body *:not(canvas) {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* ── H1 hero-badge (keyword SEO) ───────────────────────────── */
h1.hero-badge {
  display: inline-block;
  background: rgba(30,58,138,.5);
  border: 1px solid rgba(59,130,246,.4);
  color: #93C5FD;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  margin-bottom: 1.25rem;
}

/* ── Santiago Magnin Callout ────────────────────────────────── */
.magnin-callout {
  background: #0F172A;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 3rem 0;
}
.magnin-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 768px) {
  .magnin-inner { grid-template-columns: 1fr; gap: 2rem; }
}
.magnin-left { max-width: 560px; }
.magnin-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #3B82F6;
  margin-bottom: 0.75rem;
}
.magnin-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 0.875rem;
}
.magnin-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
}
.magnin-sub strong { color: rgba(255,255,255,.9); }
.magnin-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 220px;
}
.magnin-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.magnin-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E3A8A, #3B82F6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.magnin-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.125rem;
}
.magnin-desc {
  font-size: 0.72rem;
  color: rgba(255,255,255,.5);
  line-height: 1.4;
}
.btn-magnin {
  display: block;
  background: #FF0000;
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  text-align: center;
  transition: background 0.15s, transform 0.1s;
}
.btn-magnin:hover { background: #CC0000; transform: translateY(-1px); }
.btn-magnin-secondary {
  display: block;
  background: transparent;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.15);
  transition: border-color 0.15s, color 0.15s;
}
.btn-magnin-secondary:hover { border-color: rgba(255,255,255,.4); color: white; }

/* ── Barra de anuncio Santiago Magnin ───────────────────────── */
.announce-bar {
  background: #7C3AED;
  padding: 0.5rem 0;
}
.announce-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.announce-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,.9);
}
.announce-text strong { color: #ffffff; }
.announce-cta {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}
.announce-cta:hover { background: rgba(255,255,255,.25); }
@media (max-width: 600px) {
  .announce-text { font-size: 0.72rem; }
  .announce-cta { display: none; }
}

/* ── Foto Santiago Magnin ───────────────────────────────────── */
.magnin-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.15);
}

/* ── Tags del callout ───────────────────────────────────────── */
.magnin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.magnin-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  padding: 0.2rem 0.625rem;
  border-radius: 99px;
}

/* ── Anuncio deinmobiliarios ─────────────────────────────────── */
.dein-ad {
  background: #0F172A;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 3.5rem 0;
}
.dein-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 800px) {
  .dein-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Left — copy */
.dein-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7C3AED;
  margin-bottom: 0.75rem;
}
.dein-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.dein-hook {
  font-size: 1rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.dein-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1.75rem;
}
.dein-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,.75);
  line-height: 1.5;
}
.dein-benefits li strong { color: #ffffff; }
.dein-check {
  color: #4ADE80;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.dein-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.btn-dein-primary {
  display: inline-block;
  background: #7C3AED;
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: background 0.15s, transform 0.1s;
}
.btn-dein-primary:hover { background: #6D28D9; transform: translateY(-1px); }

/* Right — persona + stats */
.dein-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 240px;
}
.dein-persona {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.dein-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
  border: 2px solid rgba(124,58,237,.4);
}
.dein-persona-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.125rem;
}
.dein-persona-role {
  font-size: 0.75rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 0.5rem;
}
.dein-persona-stat {
  font-size: 0.75rem;
  color: rgba(255,255,255,.65);
  line-height: 1.4;
}
.dein-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.dein-stat {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 0.75rem 0.5rem;
  text-align: center;
}
.dein-stat-num {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #7C3AED;
  font-family: var(--font-mono);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.dein-stat-label {
  display: block;
  font-size: 0.65rem;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── FAQ Section ─────────────────────────────────────────────── */
.faq-section {
  background: var(--color-card);
  padding: 3.5rem 0;
  border-top: 1px solid var(--color-border);
}
.faq-grid {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.faq-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (max-width: 700px) { .faq-grid { flex-direction: column; } }

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--color-muted);
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--trust-700); }
.faq-item[open] summary { color: var(--trust-700); }
.faq-item summary { transition: background 0.15s, color 0.2s; }
.faq-item summary:hover { background: var(--color-bg); }
@keyframes faqSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.faq-item[open] p { animation: faqSlideIn 0.22s ease both; }
.faq-item p {
  padding: 0 1.25rem 1rem;
  font-size: 0.875rem;
  color: var(--color-secondary);
  line-height: 1.65;
  border-top: 1px solid var(--color-border);
  padding-top: 0.875rem;
}
.faq-item strong { color: var(--color-text); }
