/* Contenedor principal */
#hipoteca-simulador-container {
  display: flex;
  width: 100vw;
  min-height: 90vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Imagen lateral */
 .simulador-imagen {
  flex: 1;
  background-image: url('/wp-content/uploads/2025/06/Foto_simulador.jpg');
  background-size: cover;
  background-position: center;
}

/* Formulario */
#hipoteca-form {
  flex: 1;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  position: relative;
}

/* Barra de progreso */
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 30px 10px;
  font-weight: 600;
  font-size: 1.2rem;
  color: #000;
}

#progress-bar-container {
  background: #eee;
  height: 10px;
  border-radius: 5px;
  margin: 0 30px 20px;
}

#progress-bar {
  height: 100%;
  background: #1eb4f2;
  width: 0%;
  transition: width 0.3s ease;
}

/* Flecha atrás */
#hipoteca-form .back-arrow {
  cursor: pointer;
  font-size: 1.5rem;
  color: #1eb4f2;
  user-select: none;
}

#hipoteca-form .back-arrow:hover {
  color: #1eb4f2;
}
.hipoteca-step label{
  font-size:2rem;
  font-weight: 300;
  margin-top:0;
}
/* Cada paso del formulario */
#hipoteca-form .hipoteca-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
}

#hipoteca-form .step-content {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

/* Inputs y selects con borde azul */
#hipoteca-form input,#hipoteca-form
select {
  width: 100%;
  max-width: 300px;
  min-width:0;
  padding: 12px 14px;
  border: 2px solid #1eb4f2;
  border-radius: 8px;
  margin: 10px auto 10px;
  display: block;
  box-sizing: border-box;
}

/* Wrapper para inputs de dinero con símbolo € */
#hipoteca-form .input-wrapper {
  position: relative;
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 10px auto 20px;
}

#hipoteca-form .input-wrapper input {
  padding-left: 2.5em;
  margin: 0; /* elimina la margin genérica de input */
}
#hipoteca-form .input-wrapper.no-symbol::before {
  content: none;
}

#hipoteca-form .input-wrapper.no-symbol input {
  padding-left: 14px; /* remove space reserved for € */
}

#hipoteca-form .input-wrapper::before {
  content: '€';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  color: #1eb4f2;
  pointer-events: none;
}

/* Botones */
#hipoteca-form button {
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  max-width: 300px;
  margin: 20px auto 0;
}

/* Botón "Siguiente" y "Calcular y Enviar" */
#hipoteca-form .next-step,
#enviar-formulario {
  background: #1eb4f2;
  color: #fff;
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

/* Opciones de inmueble */
#hipoteca-form .opciones-inmueble .radio-btn {
  background: white;
  border: 2px solid #1eb4f2;
  color: #1eb4f2;
  padding: 12px;
  border-radius: 12px;
  width: 100%;
  margin: 8px 0;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
}

#hipoteca-form  .opciones-inmueble .radio-btn.selected {
  background: #1eb4f2;
  color: white;
}
/* Contenedor general de resultados */
.resultado-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

/* Columna de texto */
.resultado-text {
  flex: 1 1 300px;
}
.resultado-text h3 {
  color: #1eb4f2;
  font-size: 1.8rem; /* ✅ fixed and enlarged */
  margin-bottom: 0.5rem;
}
.resultado-text p {
  line-height: 1.6;
  font-size: 1.1rem; /* ✅ slightly larger text */
}

/* Columna de métricas */
.resultado-metrics {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem; /* ✅ more vertical space */
}

/* Tarjeta de cuota */
.cuota-card {
  background: #1eb4f2;
  color: #fff;
  border-radius: 10px;
  padding: 2rem; /* ✅ more breathing room */
  text-align: center;
}
.cuota-card .label {
  text-transform: uppercase;
  font-size: 1.1rem; /* ✅ bigger label */
  opacity: 0.85;
  letter-spacing: 0.5px;
}
.cuota-card .value {
  font-size: 3rem; /* ✅ emphasized number */
  font-weight: 800;
  margin-top: 0.5rem;
}

/* Grid de mini-tarjetas */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1.2rem;
}

/* Mini-tarjeta individual */
.metric-card {
  background: #e6f7ff;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
}
.metric-card .icon {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}
.metric-card .value {
  font-size: 1.8rem; /* ✅ larger number */
  font-weight: 700;
}
.metric-card .label {
  font-size: 1rem; /* ✅ slightly larger label */
  opacity: 0.85;
  margin-top: 0.4rem;
}

/* Responsive tweak */
@media (max-width: 768px) {
  .cuota-card .value {
    font-size: 2.4rem;
  }
  .metric-card .value {
    font-size: 1.5rem;
  }
}
