/* ==========================================================================
   SECCIÓN FINANCIAMIENTO — Laura Álvarez Asesora Inmobiliaria
   ========================================================================== */

.financiamiento-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(90px, 9vh, 120px) clamp(70px, 7.5vw, 120px) clamp(80px, 8vh, 110px);
  background-color: #0c121c;
  background-image: url('../assets/images/financiamiento_bg.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Overlay cinematográfico oscuro para garantizar contraste de cristal líquido */
.financiamiento-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: 
    linear-gradient(180deg, rgba(10, 16, 26, 0.94) 0%, rgba(12, 18, 28, 0.78) 35%, rgba(10, 16, 26, 0.88) 70%, rgba(8, 14, 22, 0.96) 100%),
    radial-gradient(ellipse at 75% 20%, rgba(212, 162, 78, 0.08) 0%, transparent 60%);
}

.financiamiento-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1670px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   1. ENCABEZADO DE SECCIÓN
   -------------------------------------------------------------------------- */
.financiamiento-header {
  text-align: left;
  max-width: 820px;
}

.financiamiento-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.financiamiento-eyebrow .eyebrow-text {
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #D4A24E;
}

.financiamiento-eyebrow .eyebrow-dash {
  color: #D4A24E;
  font-weight: 600;
  font-size: 14px;
}

.financiamiento-title {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 500;
  line-height: 1.15;
  color: #FFFFFF;
  margin: 0 0 16px 0;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.financiamiento-subtitle {
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: #C9CDD3;
  margin: 0;
  max-width: 760px;
}

/* --------------------------------------------------------------------------
   2. "OPCIONES DE FINANCIAMIENTO" — 6 TARJETAS
   -------------------------------------------------------------------------- */
.financiamiento-options-block {
  width: 100%;
}

.financiamiento-subheading {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 24px;
  font-weight: 500;
  color: #FFFFFF;
  margin: 0 0 20px 0;
  letter-spacing: -0.01em;
}

.financiamiento-cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  width: 100%;
}

/* Tarjeta con altura fija idéntica entre las 6 */
.finance-card {
  position: relative;
  height: 246px;
  min-height: 246px;
  box-sizing: border-box;
  padding: 24px 20px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  background: color-mix(in oklab, white 6%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    0 16px 36px -12px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease,
              background 0.3s ease;
}

.finance-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 
    inset 0 1px 1.5px rgba(255, 255, 255, 0.45),
    0 22px 48px -10px rgba(0, 0, 0, 0.65);
}

/* Ícono en su color propio distintivo agrandado 10% */
.finance-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px auto;
  align-self: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.finance-card:hover .finance-card-icon {
  transform: scale(1.08);
}

.finance-card-icon svg {
  width: 26px;
  height: 26px;
}

.finance-card-icon-img {
  width: 28px;
  height: auto;
  max-height: 26px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.icon-vendedor .finance-card-icon-img {
  width: 32px;
  max-height: 22px;
}

/* Colores de identidad de cada opción */
.icon-infonavit {
  background: rgba(237, 28, 36, 0.16);
  border: 1px solid rgba(237, 28, 36, 0.35);
  color: #ED1C24;
}

.icon-fovissste {
  background: rgba(0, 132, 61, 0.16);
  border: 1px solid rgba(0, 132, 61, 0.35);
  color: #00A651;
}

.icon-bancarios {
  background: rgba(212, 162, 78, 0.16);
  border: 1px solid rgba(212, 162, 78, 0.38);
  color: #D4A24E;
}

.icon-cofinavit {
  background: rgba(142, 36, 170, 0.16);
  border: 1px solid rgba(142, 36, 170, 0.35);
  color: #AB47BC;
}

.icon-enganche {
  background: rgba(0, 150, 136, 0.16);
  border: 1px solid rgba(0, 150, 136, 0.35);
  color: #26A69A;
}

.icon-vendedor {
  background: rgba(106, 27, 154, 0.16);
  border: 1px solid rgba(106, 27, 154, 0.35);
  color: #9575CD;
}

.finance-card-title {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 18px;
  font-weight: 500;
  color: #FFFFFF;
  margin: 0 0 10px 0;
  line-height: 1.25;
}

.finance-card-desc {
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.55;
  color: #C4C8D0;
  margin: 0;
}

/* --------------------------------------------------------------------------
   3. FILA INTERACTIVA: "SIMULA TU CRÉDITO" (60%) + "¿CÓMO TE AYUDAMOS?" (40%)
   -------------------------------------------------------------------------- */
.financiamiento-interactive-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  align-items: stretch;
}

/* ==========================================================================
   3.1 BLOQUE "SIMULA TU CRÉDITO"
   ========================================================================== */
.simulador-card {
  position: relative;
  box-sizing: border-box;
  padding: 30px 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
  background: color-mix(in oklab, white 7%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 
    inset 0 1px 1.5px rgba(255, 255, 255, 0.32),
    0 22px 50px -14px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  height: 380px;
  min-height: 380px;
}

.simulador-main-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 32px;
  align-items: center;
}

/* Zona Izquierda del Simulador */
.simulador-left-zone {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding-right: 28px;
}

.simulador-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid #D4A24E;
  background: rgba(212, 162, 78, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D4A24E;
  box-shadow: 0 4px 16px -2px rgba(212, 162, 78, 0.25);
  flex-shrink: 0;
}

.simulador-icon-circle svg {
  width: 22px;
  height: 22px;
}

.simulador-heading {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 24px;
  font-weight: 500;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.2;
}

.simulador-intro-text {
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 13px;
  color: #B5BAC3;
  margin: 0;
  line-height: 1.45;
}

.btn-simulador-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: #D4A24E;
  color: #0E1622;
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 12.8px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  box-shadow: 0 6px 20px -3px rgba(212, 162, 78, 0.45);
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
  margin-top: 4px;
}

.btn-simulador-action:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 10px 24px -3px rgba(212, 162, 78, 0.6);
}

/* Zona Derecha del Simulador (Sliders) */
.simulador-right-zone {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider-labels-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
}

.slider-label {
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 13.5px;
  font-weight: 500;
  color: #FFFFFF;
}

.slider-current-val {
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 16.5px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.slider-current-val .val-currency {
  font-size: 12px;
  font-weight: 400;
  color: #9EA5B0;
  margin-left: 3px;
}

/* Estilos de Sliders Range en Oro y Cristal */
.custom-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  outline: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

/* WebKit (Chrome, Safari, Edge) */
.custom-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #D4A24E;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  cursor: grab;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.custom-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  box-shadow: 0 0 14px rgba(212, 162, 78, 0.7);
}

.custom-range-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.05);
}

/* Firefox */
.custom-range-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #D4A24E;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  cursor: grab;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.custom-range-slider::-moz-range-thumb:hover {
  transform: scale(1.18);
  box-shadow: 0 0 14px rgba(212, 162, 78, 0.7);
}

/* Fila de 3 Resultados Calculados con altura fija y sin deformación */
.simulador-results-bar {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 14px;
  height: 76px;
  min-height: 76px;
  max-height: 76px;
  padding: 12px 20px;
  border-radius: 16px;
  background: rgba(10, 16, 25, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
  align-items: center;
}

.result-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.result-cell:not(:first-child) {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 18px;
}

.result-icon-box {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  background: rgba(212, 162, 78, 0.14);
  border: 1px solid rgba(212, 162, 78, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D4A24E;
  flex-shrink: 0;
}

.result-icon-box svg {
  width: 18px;
  height: 18px;
}

.result-texts {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.result-label {
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #9EA5B0;
  margin-bottom: 2px;
  white-space: nowrap;
}

.result-value {
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* ==========================================================================
   3.2 BLOQUE "¿CÓMO TE AYUDAMOS?" (Diseño 2 columnas como referencia)
   ========================================================================== */
.ayuda-card {
  position: relative;
  box-sizing: border-box;
  padding: 28px 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
  background: color-mix(in oklab, white 7%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 
    inset 0 1px 1.5px rgba(255, 255, 255, 0.32),
    0 22px 50px -14px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 26px;
  align-items: stretch;
  height: 380px;
  min-height: 380px;
}

/* Columna Izquierda: Título y Lista de 4 Checks */
.ayuda-left-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  height: 100%;
}

.ayuda-heading {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: clamp(23px, 1.7vw, 27px);
  font-weight: 500;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.2;
}

.ayuda-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ayuda-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 13.5px;
  color: #D1D5DC;
  line-height: 1.45;
}

.ayuda-check-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: rgba(212, 162, 78, 0.18);
  border: 1px solid rgba(212, 162, 78, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D4A24E;
  flex-shrink: 0;
  margin-top: 1px;
}

.ayuda-check-icon svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.6;
}

/* Columna Derecha: Imagen destacada + Botón Conocer Requisitos */
.ayuda-right-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
  min-width: 0;
}

.ayuda-requisitos-box {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ayuda-requisitos-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ayuda-requisitos-box:hover .ayuda-requisitos-img {
  transform: scale(1.06);
}

.ayuda-requisitos-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 16, 26, 0.08) 0%, rgba(10, 16, 26, 0.55) 100%);
  pointer-events: none;
}

/* Botón Conocer Requisitos horizontal con flecha a la derecha */
.btn-requisitos-glass {
  position: relative;
  width: 100%;
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
  padding: 0 20px;
  border-radius: 12px;
  background: rgba(14, 22, 34, 0.76);
  background: color-mix(in oklab, white 6%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn-requisitos-glass:hover {
  transform: translateY(-2px);
  background: rgba(22, 34, 52, 0.92);
  border-color: rgba(212, 162, 78, 0.6);
  color: #D4A24E;
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.5), 0 0 16px rgba(212, 162, 78, 0.25);
}

.btn-requisitos-glass svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
  transition: transform 0.25s ease;
}

.btn-requisitos-glass:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   5. BARRA FINAL (Franja horizontal ancho completo)
   -------------------------------------------------------------------------- */
.financiamiento-bottom-bar {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 22px 32px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  background: color-mix(in oklab, white 7%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 
    inset 0 1px 1.5px rgba(255, 255, 255, 0.32),
    0 16px 36px -10px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.bottom-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bottom-bar-icon-circle {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  background: rgba(212, 162, 78, 0.14);
  border: 1.5px solid rgba(212, 162, 78, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D4A24E;
  box-shadow: 0 4px 14px -2px rgba(212, 162, 78, 0.25);
}

.bottom-bar-icon-circle svg {
  width: 22px;
  height: 22px;
}

.bottom-bar-texts {
  display: flex;
  flex-direction: column;
}

.bottom-bar-title {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 19px;
  font-weight: 500;
  color: #FFFFFF;
  margin: 0 0 3px 0;
  line-height: 1.25;
}

.bottom-bar-desc {
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 13.5px;
  color: #C9CDD3;
  margin: 0;
  line-height: 1.4;
}

/* Botón en vidrio con borde dorado/ámbar (estilo "outline", no sólido) */
.btn-bottom-bar-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid #D4A24E;
  color: #D4A24E;
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px -2px rgba(212, 162, 78, 0.2);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.btn-bottom-bar-outline:hover {
  transform: translateY(-2px);
  background: rgba(212, 162, 78, 0.16);
  box-shadow: 0 8px 24px -2px rgba(212, 162, 78, 0.35);
  color: #E6BD73;
}

.btn-bottom-bar-outline .icon-whatsapp {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
