.hipotuca-simuladores [x-cloak] {
  display: none !important;
}

.hipotuca-simuladores input,
.hipotuca-simuladores select,
.hipotuca-simuladores textarea {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  border: 1px solid #D1D5DB;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.4;
  background: #F4F4F7;
  color: #111827;
  font-weight: 500;
  text-align: left;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Placeholder parity (all simuladores inputs/textarea) */
.hipotuca-simuladores input::placeholder,
.hipotuca-simuladores textarea::placeholder {
  color: #95A0B2;
  opacity: 1;
  font-weight: 500;
  text-align: left;
}

.hipotuca-simuladores input::-webkit-input-placeholder,
.hipotuca-simuladores textarea::-webkit-input-placeholder {
  color: #95A0B2;
  opacity: 1;
}

.hipotuca-simuladores input::-moz-placeholder,
.hipotuca-simuladores textarea::-moz-placeholder {
  color: #95A0B2;
  opacity: 1;
}

.hipotuca-simuladores input:-ms-input-placeholder,
.hipotuca-simuladores textarea:-ms-input-placeholder {
  color: #95A0B2;
}

/* Ocultar las flechas nativas de los input number que rompen el width */
.hipotuca-simuladores input[type="number"]::-webkit-outer-spin-button,
.hipotuca-simuladores input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.hipotuca-simuladores input[type="number"] {
  -moz-appearance: textfield;
}

/* Añadir icono de Euro a los campos monetarios */
.hipotuca-simuladores input.input-euro {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236B7280'%3E%3Ctext x='10' y='14' text-anchor='middle' font-size='14' font-family='sans-serif'%3E€%3C/text%3E%3C/svg%3E");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  padding-right: 2.5rem;
}

/* Añadir el chevron a los selects */
.hipotuca-simuladores select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.hipotuca-simuladores input:focus,
.hipotuca-simuladores select:focus,
.hipotuca-simuladores textarea:focus {
  outline: none;
  background: #fff;
  border-color: #C9CED8;
  box-shadow: 0 0 0 1px #C9CED8;
}

.hipotuca-simuladores label {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6F748A;
  font-family: 'Manrope', sans-serif;
}

.hipotuca-simuladores .sim-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 960px) {
  .hipotuca-simuladores .sim-grid {
    grid-template-columns: 1fr 1.6fr;
    gap: 40px;
  }
}

.hipotuca-simuladores .sim-card {
  background: #F3F4F6;
  border: 1px solid #D1D5DB;
  border-radius: 24px;
  padding: 24px;
  box-shadow: none;
}

.hipotuca-simuladores .sim-insight-card {
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.hipotuca-simuladores .sim-insight-card:hover {
  border-color: #C2C8D3 !important;
  box-shadow: 0 8px 18px rgba(34, 28, 55, 0.08) !important;
  transform: translateY(-1px);
}

.hipotuca-simuladores .sim-hover-card {
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.hipotuca-simuladores .sim-hover-card:hover {
  border-color: #C2C8D3 !important;
  box-shadow: 0 10px 22px rgba(34, 28, 55, 0.09) !important;
  transform: translateY(-1px);
}

.hipotuca-simuladores .sim-cta {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 16px 20px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  background: linear-gradient(90deg, #f97316, #a855f7);
  cursor: pointer;
  transition: transform 0.2s;
}

.hipotuca-simuladores .sim-cta:hover {
  transform: translateY(-2px);
}

.hipotuca-simuladores .sim-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hipotuca-simuladores .sim-pill {
  border: 1px solid #D1D5DB;
  background: #F3F4F6;
  color: #6F748A;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.hipotuca-simuladores .sim-pill:hover {
  background: #ECEEF2;
}

.hipotuca-simuladores .sim-pill.is-active {
  background: #E83674;
  color: #fff;
  border-color: #E83674;
}

/* Result wrappers parity with Base44 (less shadow, subtle borders) */
.hipotuca-simuladores .rounded-2xl.border-2 {
  border-width: 1px !important;
  box-shadow: none !important;
}

/* Ensure status banners render visible colored border from inline border-color */
.hipotuca-simuladores .rounded-2xl.border-2.p-4.flex.items-center.gap-4 {
  border-style: solid !important;
  border-width: 2px !important;
}

.hipotuca-simuladores .bg-white.rounded-xl.border.border-border,
.hipotuca-simuladores .bg-white.rounded-2xl.border.border-border,
.hipotuca-simuladores .bg-white.rounded-xl.border,
.hipotuca-simuladores .bg-white.rounded-2xl.border {
  background: #FFFFFF !important;
  border-color: #C9CED8 !important;
  box-shadow: none !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
}

/* Typography inside metric mini-cards (Liquidez/Condominio/etc.) */
.hipotuca-simuladores .bg-white.rounded-xl.border p.text-xs,
.hipotuca-simuladores .bg-white.rounded-2xl.border p.text-xs {
  font-size: 12px !important;
  line-height: 1.25 !important;
  color: #6F748A !important;
  font-weight: 500 !important;
}

.hipotuca-simuladores .bg-white.rounded-xl.border p.font-space.font-bold,
.hipotuca-simuladores .bg-white.rounded-2xl.border p.font-space.font-bold {
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #221C37 !important;
}

/* Keep small metric cards readable (avoid oversized numbers there) */
.hipotuca-simuladores .sim-card .grid .bg-white.rounded-xl.border p.font-space.font-bold,
.hipotuca-simuladores .sim-card .grid .bg-white.rounded-2xl.border p.font-space.font-bold {
  font-size: 18px !important;
  line-height: 1.2 !important;
}

.hipotuca-simuladores .bg-slate-50.rounded-xl.border {
  background: #F3F4F6 !important;
  border-color: #D1D5DB !important;
}

/* Green fiscal/result panels in condominio closer to Base44 */
.hipotuca-simuladores .bg-green-50 {
  background: #EAF5EE !important;
}

.hipotuca-simuladores .border-green-200 {
  border-color: #93E3AF !important;
}

/* Compra vivienda - stacked bars parity colors */
.hipotuca-simuladores .sim-bar-amber-1 { background: #f2a10c !important; }
.hipotuca-simuladores .sim-bar-amber-2 { background: #eb7b2d !important; }
.hipotuca-simuladores .sim-bar-pink { background: #e83b79 !important; }
.hipotuca-simuladores .sim-bar-fuchsia { background: #b31d82 !important; }
.hipotuca-simuladores .sim-bar-purple { background: #5f1b8d !important; }

/* Ensure semantic highlight colors are not overridden by generic card typography rules */
.hipotuca-simuladores .text-primary { color: #e83b79 !important; }
.hipotuca-simuladores .text-green-700 { color: #15803d !important; }

/* Reunificación: preserve semantic colors inside white metric cards */
.hipotuca-simuladores .bg-white.rounded-xl.border p.font-space.font-bold.text-primary,
.hipotuca-simuladores .bg-white.rounded-2xl.border p.font-space.font-bold.text-primary {
  color: #e83b79 !important;
}

.hipotuca-simuladores .bg-white.rounded-xl.border p.font-space.font-bold.text-green-700,
.hipotuca-simuladores .bg-white.rounded-2xl.border p.font-space.font-bold.text-green-700 {
  color: #15803d !important;
}

/* Capacidad de compra slider parity */
.hipotuca-simuladores .sim-range-viability {
  -webkit-appearance: none;
  appearance: none;
  height: 14px;
  border-radius: 999px;
  border: 1px solid #c9ced8;
  background: linear-gradient(90deg, #52c41a 0%, #52c41a 30%, #f5c20a 31%, #f59e0b 78%, #ef4444 95%, #b91c1c 100%);
  outline: none;
}

.hipotuca-simuladores .sim-range-viability:focus {
  background: linear-gradient(90deg, #52c41a 0%, #52c41a 30%, #f5c20a 31%, #f59e0b 78%, #ef4444 95%, #b91c1c 100%) !important;
  border-color: #c9ced8 !important;
  box-shadow: 0 0 0 1px #c9ced8 !important;
}

.hipotuca-simuladores .sim-range-viability::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid #1f2433;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}

.hipotuca-simuladores .sim-range-viability::-moz-range-track {
  height: 14px;
  border-radius: 999px;
  border: 1px solid #c9ced8;
  background: linear-gradient(90deg, #52c41a 0%, #52c41a 30%, #f5c20a 31%, #f59e0b 78%, #ef4444 95%, #b91c1c 100%);
}

.hipotuca-simuladores .sim-range-viability::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid #1f2433;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
