
:root {
  --ib-red: #df2323;
  --ib-red-dark: #b81a1a;
  --ib-bg: #fff;
  --ib-bg-light: #f8f9fa;
  --ib-border: #e5e7eb;
  --ib-shadow: 0 8px 32px rgba(0,0,0,.10);
  --ib-radius: 1.5rem;
}
/* Si accidentalmente queda algo de precios o tipo de cambio en la vista */
.price, .precio, [data-visible="precio"], .tc, .tipo-cambio, [data-tipo-cambio] {
  display: none !important;
  visibility: hidden !important;
}


body {
  /* fondo general con gradiente suave */
  background: linear-gradient(120deg, var(--ib-bg-light), #e9ecef);
}

/* contenedor principal de la calculadora */
.calculadora-wrapper {
  background: var(--ib-bg);
  border-radius: var(--ib-radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--ib-shadow);
  max-width: 900px;
  margin: auto;
}

/* estilos para inputs modernos y sus iconos */
.input-modern {
  position: relative;
  margin-bottom: 1.5rem;
}
.input-modern input {
  border: 2px solid var(--ib-border);
  border-radius: 12px;
  padding: 12px 48px 12px 16px;
  width: 100%;
  font-size: 1.1rem;
  transition: .25s;
  background: #f8fafc;
}
.input-modern input:focus {
  border-color: var(--ib-red);
  box-shadow: 0 0 0 4px rgba(223,35,35,.10);
  outline: 0;
}
.input-modern i {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 1.2rem;
}

/* tarjetas de planes de inversion */
.plan-card {
  background: linear-gradient(135deg, var(--ib-bg), var(--ib-bg-light));
  border: 2px solid var(--ib-border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  text-align: center;
  transition: .2s;
  cursor: pointer;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.plan-card:hover {
  box-shadow: 0 5px 22px rgba(0,0,0,.10);
  transform: translateY(-3px);
}
.plan-card.active {
  border-color: var(--ib-red);
  box-shadow: 0 8px 28px rgba(223,35,35,.18);
  animation: pulse 0.4s;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(223,35,35,.18); }
  70% { box-shadow: 0 0 0 10px rgba(223,35,35,.10); }
  100% { box-shadow: 0 0 0 0 rgba(223,35,35,.18); }
}
.plan-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 2px 0 6px;
}
.plan-card p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 10px;
}
.plan-card .price {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--ib-red);
}

/* tarjetas de resultados y kpis */
.result-card {
  border: 1.5px dashed #cbd5e1;
  border-radius: 1.25rem;
  padding: 1.5rem;
  background: #fafafa;
  margin-bottom: 1rem;
}
/* contenedor de kpis */
.kpi {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 10px;
}
.kpi .tile {
  flex: 1 1 220px;
  border: 1px solid #eee;
  border-radius: 1rem;
  padding: 1rem;
  background: #fff;
  min-width: 160px;
}
.tile h5 {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0 0 4px;
  font-weight: 700;
}
.tile .v {
  font-size: 1.25rem;
  font-weight: 900;
}
.ok { color: #0ea5a4; }
.bad { color: #b91c1c; }
.warn { color: #a16207; }
.muted { color: #6b7280; }

/* estilos responsivos para moviles y tablets */
@media (max-width: 768px) {
  .calculadora-wrapper { padding: 1.2rem 0.5rem; }
  .kpi { flex-direction: column; gap: 0.5rem; }
  .plan-card { padding: 1rem; min-height: 120px; }
}
