/*
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

:root {
  --white: #fff;
  --off-white: #F8F9FA;
  --light-gray: #EEF0F2;
  --mid-gray: #B0B8C1;
  --dark-gray: #4A5568;
  --charcoal: #1A202C;
  --navy: #1B2A4A;
  --navy-deep: #0F1B33;
  --orange: #E8711A;
  --orange-light: #F59E3F;
  --orange-glow: rgba(232, 113, 26, .15);
  --blue-accent: #3B82F6;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, .08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, .16);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: .35s cubic-bezier(.4, 0, .2, 1)
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased
}

/* ======== HEADER ======== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 48px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  background: transparent
}

.header.scrolled {
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, .06);
  height: 72px
}

.header.scrolled .logo-img {
  filter: none;
  height: 40px
}

.header.scrolled .nav-link {
  color: var(--charcoal)
}

.header.scrolled .nav-link:hover {
  color: var(--orange)
}

.header.scrolled .btn-contact {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange)
}

.header.scrolled .hamburger span {
  background: var(--charcoal)
}

.logo-img {
  height: 46px;
  max-width: 180px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: var(--transition)
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px
}

.nav-item {
  position: relative
}

.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .92);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer
}

.nav-link:hover {
  color: var(--orange-light)
}

.nav-link .arrow {
  font-size: 9px;
  transition: transform .3s ease;
  opacity: .5
}

.nav-item:hover .arrow {
  transform: rotate(180deg);
  opacity: 1
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  background: transparent;
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all .25s cubic-bezier(.16, 1, .3, 1);
  padding-top: 12px
}

.dropdown::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--white);
  box-shadow: -1px -1px 2px rgba(0, 0, 0, .04);
  z-index: 1
}

.dropdown-inner {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 12px 48px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .04);
  padding: 6px;
  position: relative
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0)
}

.dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--dark-gray);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 8px;
  transition: var(--transition);
  border-left: 2px solid transparent;
  position: relative
}

.dropdown a:hover {
  background: var(--off-white);
  color: var(--orange);
  border-left-color: var(--orange);
  padding-left: 18px
}

.dropdown .sublabel {
  font-size: 11.5px;
  color: var(--mid-gray);
  font-weight: 400;
  margin-top: 1px;
  transition: var(--transition)
}

.dropdown a:hover .sublabel {
  color: var(--orange);
  opacity: .65
}

.dropdown .dd-heading {
  padding: 10px 16px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--mid-gray);
  letter-spacing: .08em;
  text-transform: uppercase
}

.btn-contact {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 50px;
  border: 1.5px solid rgba(255, 255, 255, .5);
  color: var(--white);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none
}

.btn-contact:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  transform: translateY(-1px)
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition)
}

/* ======== HERO ======== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 48px 80px
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 27, 51, .86) 0%, rgba(27, 42, 74, .73) 50%, rgba(232, 113, 26, .14) 100%)
}

.hero-layout {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 56px;
  align-items: center;
  width: 100%
}

.hero-text {
  animation: heroIn 1.2s cubic-bezier(.16, 1, .3, 1) both;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.hero-text button {
  padding: 16px 32px;
  width: fit-content;
  margin-top: 40px;
}

.btn-home-container{
  padding: 20px 0px;
  position: fixed;
  opacity: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  justify-content: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.btn-home {
  padding: 16px 32px !important;
  width: fit-content !important;
}

.boton_modal:hover, .boton_modal:active, .boton_modal:focus{
  background-color: var(--orange) !important;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(40px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 8px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, .15);
  color: var(--orange-light);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  margin-bottom: 28px;
  animation: heroIn 1.2s .2s cubic-bezier(.16, 1, .3, 1) both
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 2s ease infinite
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: .5;
    transform: scale(1.4)
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 20px;
  animation: heroIn 1.2s .3s cubic-bezier(.16, 1, .3, 1) both
}

.hero h1 em {
  font-style: italic;
  color: var(--orange-light)
}

.hero-text>p {
  font-size: 17px;
  color: rgba(255, 255, 255, .72);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 460px;
  animation: heroIn 1.2s .45s cubic-bezier(.16, 1, .3, 1) both
}

.hero-trust-items {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  animation: heroIn 1.2s .6s cubic-bezier(.16, 1, .3, 1) both
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, .6)
}

.hero-trust-item .ht-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(232, 113, 26, .2);
  color: var(--orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0
}

/* ======== HERO FORM ======== */
.hero-form-card {
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .18);
  border: 1px solid rgba(255, 255, 255, .6);
  animation: heroIn 1.2s .4s cubic-bezier(.16, 1, .3, 1) both
}

.form-heading {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px
}

.form-subheading {
  font-size: 13px;
  color: var(--mid-gray);
  margin-bottom: 24px
}

.form-group {
  margin-bottom: 20px
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 8px;
  letter-spacing: .02em
}

.option-buttons {
  display: flex;
  gap: 8px;
}

.option-btn {
  min-width: auto;
  padding: 10px 12px;
  border: 1.5px solid var(--light-gray);
  border-radius: 10px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--dark-gray);
  cursor: pointer;
  transition: var(--transition);
  text-align: center
}

.option-btn:hover {
  border-color: var(--orange) !important;
  color: var(--white) !important;
  background-color: var(--orange) !important;
}

.option-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(232, 113, 26, .25)
}

.form-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px
}

.form-slider-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy)
}

.form-range {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  border-radius: 2px;
  background: var(--light-gray);
  outline: none;
  transition: background .2s
}

.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 1px 6px rgba(232, 113, 26, .4);
  transition: transform .2s, box-shadow .2s
}

.form-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 12px rgba(232, 113, 26, .55)
}

.form-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 1px 6px rgba(232, 113, 26, .4)
}

.form-range::-moz-range-track {
  height: 3px;
  border-radius: 2px;
  background: transparent
}

.form-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--mid-gray);
  margin-top: 4px
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--light-gray);
  border-radius: 10px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--charcoal);
  outline: none;
  transition: var(--transition);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B0B8C1' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center
}

.form-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow)
}

.form-input {
  width: 100%;
  padding: 12px 16px !important;
  border: 1.5px solid var(--light-gray) !important;
  border-radius: 10px !important;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--charcoal);
  outline: none;
  transition: var(--transition)
}

.form-input::placeholder {
  color: var(--mid-gray)
}

.form-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow)
}

.form-input.error {
  border-color: #E53E3E
}

.form-input.error:focus {
  box-shadow: 0 0 0 3px rgba(229, 62, 62, .15)
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  cursor: pointer
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--orange);
  cursor: pointer;
  flex-shrink: 0
}

.form-checkbox label {
  font-size: 12px;
  color: var(--dark-gray);
  line-height: 1.5;
  cursor: pointer
}

.form-checkbox label a {
  color: var(--orange);
  text-decoration: underline
}

.form-error-msg {
  font-size: 12px;
  color: #E53E3E;
  margin-bottom: 12px;
  display: none
}

.form-error-msg.show {
  display: block;
  margin-top: 10px;
}

.btn-form-cta {
  width: 100%;
  padding: 16px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 24px rgba(232, 113, 26, .35);
  letter-spacing: .01em
}

.btn-form-cta:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232, 113, 26, .5)
}

.btn-form-cta:active {
  transform: translateY(0)
}

.form-micro-trust {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap
}

.form-micro-trust span {
  font-size: 11px;
  color: var(--mid-gray);
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: .02em
}

.form-micro-trust .fmt-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  opacity: .6
}

/* ======== STATS BAR ======== */
.stats-bar {
  background: var(--white);
  padding: 0 48px;
  position: relative;
  z-index: 3
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden
}

.stat-item {
  padding: 36px 32px;
  text-align: center;
  position: relative;
  transition: var(--transition)
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--light-gray)
}

.stat-item:hover {
  background: var(--off-white);
  transform: translateY(-4px)
}

.stat-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  transition: color .3s ease
}

.stat-item:hover .stat-number {
  color: var(--orange)
}

.stat-number span {
  color: var(--orange)
}

.stat-label {
  font-size: 13px;
  color: var(--mid-gray);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase
}

/* ======== SECTION COMMON ======== */
section {
  padding: 120px 48px
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px
}

.section-tag::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 20px
}

.section-subtitle {
  font-size: 17px;
  color: var(--dark-gray);
  line-height: 1.7;
  max-width: 560px
}

/* ======== HIPOTECAS ======== */
.hipotecas {
  background: var(--off-white)
}

.hipotecas-grid {
  max-width: 1200px;
  margin: 0 auto
}

.hipotecas-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 64px;
  gap: 40px;
  flex-wrap: wrap
}

.hipoteca-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px
}

.hipoteca-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer
}

.hipoteca-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1)
}

.hipoteca-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--light-gray)
}

.hipoteca-card:hover::before {
  transform: scaleX(1)
}

.card-image {
  width: 100%;
  height: 180px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
  position: relative
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1)
}

.hipoteca-card:hover .card-image img {
  transform: scale(1.06)
}

.hipoteca-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px
}

.hipoteca-card p {
  font-size: 15px;
  color: var(--dark-gray);
  line-height: 1.7;
  margin-bottom: 24px
}

.card-features {
  list-style: none;
  margin-bottom: 28px
}

.card-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--dark-gray);
  border-bottom: 1px solid var(--light-gray)
}

.card-features li:last-child {
  border: none
}

.card-features .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(232, 113, 26, .1);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition)
}

.card-link:hover {
  gap: 14px
}

/* ======== CALCULADORA ======== */
.calculadora {
  background: var(--navy-deep);
  position: relative;
  overflow: hidden
}

.calculadora::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 113, 26, .12), transparent 70%);
  pointer-events: none
}

.calc-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center
}

.calc-text .section-title {
  color: var(--white)
}

.calc-text .section-subtitle {
  color: rgba(255, 255, 255, .65)
}

.calc-box {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(12px)
}

.calc-box h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--white);
  margin-bottom: 28px
}

.calc-field {
  margin-bottom: 20px
}

.calc-field label {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: .03em
}

.calc-field input {
  width: 100%;
  padding: 2px 18px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  transition: var(--transition);
  outline: none
}

.calc-field input:focus {
  border-color: var(--orange);
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 0 0 3px rgba(232, 113, 26, .2)
}

.slider-field {
  display: flex;
  gap: 14px;
  align-items: center
}

.range-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .12);
  outline: none
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .25);
  box-shadow: 0 1px 8px rgba(232, 113, 26, .45)
}

.range-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .25)
}

.range-input {
  width: 110px !important;
  flex-shrink: 0;
  text-align: center;
  padding: 12px 10px !important;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  outline: none;
  -moz-appearance: textfield
}

.range-input::-webkit-outer-spin-button,
.range-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, .3);
  margin-top: 4px;
  padding: 0 2px
}

.calc-result {
  margin-top: 28px;
  padding: 24px;
  background: rgba(232, 113, 26, .1);
  border: 1px solid rgba(232, 113, 26, .2);
  border-radius: 12px;
  text-align: center
}

.calc-result .label {
  font-size: 13px;
  color: var(--orange-light);
  margin-bottom: 6px
}

.calc-result .amount {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--white)
}

.calc-result .amount span {
  color: var(--orange-light);
  font-size: 20px
}

.btn-calc {
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition)
}

.btn-calc:hover {
  background: var(--orange-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(232, 113, 26, .4)
}

/* ======== PROCESO ======== */
.proceso {
  background: var(--white)
}

.proceso-grid {
  max-width: 1200px;
  margin: 0 auto
}

.proceso-header {
  text-align: center;
  margin-bottom: 72px
}

.proceso-header .section-subtitle {
  margin: 0 auto
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative
}

.steps::before {
  content: '';
  position: absolute;
  top: 44px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--blue-accent), var(--orange));
  opacity: .2
}

.step {
  text-align: center;
  padding: 0 24px;
  position: relative
}

.step-number {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  transition: var(--transition)
}

.step-number .num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy)
}

.step-number .icon-bg {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px dashed var(--orange);
  opacity: 0;
  transition: var(--transition)
}

.step:hover .step-number {
  border-color: var(--orange);
  box-shadow: 0 0 0 8px var(--orange-glow)
}

.step:hover .icon-bg {
  opacity: 1
}

.step h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px
}

.step p {
  font-size: 14px;
  color: var(--dark-gray);
  line-height: 1.65
}

/* ======== AHORRO / BLOG CARDS ======== */
.ahorro {
  background: var(--off-white)
}

.ahorro-grid {
  max-width: 1200px;
  margin: 0 auto
}

.ahorro-header {
  text-align: center;
  margin-bottom: 64px
}

.ahorro-header .section-subtitle {
  margin: 0 auto
}

.ahorro-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px
}

.ahorro-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid transparent
}

.ahorro-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--light-gray)
}

.ahorro-img {
  height: 200px;
  overflow: hidden;
  position: relative
}

.ahorro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1)
}

.ahorro-card:hover .ahorro-img img {
  transform: scale(1.06)
}

.ahorro-img .tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 6px 14px;
  background: var(--orange);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  border-radius: 50px;
  letter-spacing: .03em
}

.ahorro-body {
  padding: 28px
}

.ahorro-body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px
}

.ahorro-body p {
  font-size: 14px;
  color: var(--dark-gray);
  line-height: 1.7;
  margin-bottom: 20px
}

/* ======== TESTIMONIOS ======== */
.testimonios {
  background: var(--off-white);
  position: relative;
  overflow: hidden
}

.testimonios::before {
  content: '"';
  position: absolute;
  top: 60px;
  right: 80px;
  font-family: var(--font-display);
  font-size: 300px;
  color: var(--orange);
  opacity: .04;
  line-height: 1;
  pointer-events: none
}

.testimonios-grid {
  max-width: 1200px;
  margin: 0 auto
}

.testimonios-header {
  text-align: center;
  margin-bottom: 48px
}

.testimonios-header .section-subtitle {
  margin: 0 auto
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  margin: 0 -48px;
  padding: 0 48px
}

.carousel-track {
  display: flex;
  gap: 28px;
  transition: transform .65s cubic-bezier(.16, 1, .3, 1);
  cursor: grab;
  user-select: none
}

.carousel-track:active {
  cursor: grabbing
}

.carousel-track .testimonio-card {
  min-width: 380px;
  max-width: 380px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition);
  border: 1px solid transparent
}

.carousel-track .testimonio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--light-gray)
}

.testimonio-stars {
  color: var(--orange);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 16px
}

.testimonio-card blockquote {
  font-size: 15px;
  color: var(--dark-gray);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic
}

.testimonio-author {
  display: flex;
  align-items: center;
  gap: 14px
}

.testimonio-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--light-gray)
}

.testimonio-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--navy)
}

.testimonio-role {
  font-size: 13px;
  color: var(--mid-gray)
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--light-gray);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--navy);
  transition: var(--transition);
  box-shadow: var(--shadow-sm)
}

.carousel-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  transform: scale(1.08)
}

.carousel-dots {
  display: flex;
  gap: 8px
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--light-gray);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0
}

.carousel-dot.active {
  background: var(--orange);
  width: 28px;
  border-radius: 5px
}

/* ======== CTA ======== */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep)
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 27, 51, .88) 0%, rgba(27, 42, 74, .78) 50%, rgba(232, 113, 26, .2) 100%)
}

.cta-grid {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1
}

.cta .section-tag {
  justify-content: center
}

.cta .section-title {
  color: var(--white)
}

.cta .section-subtitle {
  color: rgba(255, 255, 255, .7);
  margin: 0 auto 40px
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap
}

.cta-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  flex-wrap: wrap
}

.cta-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, .6)
}

.cta-trust-item .trust-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(232, 113, 26, .2);
  color: var(--orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0
}

/* ======== BENEFICIOS ======== */
.beneficios {
  background: var(--white)
}

.beneficios-grid {
  max-width: 1200px;
  margin: 0 auto
}

.beneficios-header {
  text-align: center;
  margin-bottom: 64px
}

.beneficios-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px
}

.beneficio-item {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--light-gray);
  transition: var(--transition)
}

.beneficio-item:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px)
}

.beneficio-num {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange-glow);
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px
}

.beneficio-item h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px
}

.beneficio-item p {
  font-size: 14px;
  color: var(--dark-gray);
  line-height: 1.65
}

/* ======== INTERNAL PAGES ======== */
.page-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%) !important;
  padding: 160px 48px 80px;
  position: relative;
  overflow: hidden
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 113, 26, .12), transparent 70%);
  pointer-events: none
}

.page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1
}

.breadcrumb {
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
  margin-bottom: 20px
}

.breadcrumb a {
  color: var(--orange-light);
  text-decoration: none;
  transition: var(--transition)
}

.breadcrumb a:hover {
  color: var(--white)
}

.breadcrumb span {
  margin: 0 6px;
  opacity: .4
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px
}

.page-hero .lead {
  font-size: 17px;
  color: rgba(255, 255, 255, .72);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto
}

.service-section {
  padding: 100px 48px
}

.service-section.alt {
  background: var(--off-white)
}

.service-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center
}

.service-grid.reverse .service-img {
  order: 2
}

.service-grid.reverse .service-content {
  order: 1
}

.service-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg)
}

.service-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1)
}

.service-img:hover img {
  transform: scale(1.04)
}

.service-features {
  list-style: none;
  margin: 28px 0
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 15px;
  color: var(--dark-gray);
  line-height: 1.55
}

.service-features li:last-child {
  border: none
}

.service-features .feat-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(232, 113, 26, .1);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 2px
}

.btn-primary-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(232, 113, 26, .3)
}

.btn-primary-dark:hover {
  background: var(--orange-light);
  transform: translateY(-2px)
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border: 1.5px solid var(--light-gray);
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition)
}

.btn-outline-dark:hover {
  border-color: var(--orange);
  color: var(--orange)
}

/* ======== FOOTER ======== */
.footer {
  background: var(--navy-deep);
  padding: 80px 48px 0
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.footer-brand p {
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 20px;
  max-width: 320px
}

.footer-brand .social {
  display: flex;
  gap: 12px;
  margin-top: 24px
}

.footer-brand .social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .5);
  text-decoration: none;
  font-size: 16px;
  transition: var(--transition)
}

.footer-brand .social a:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  transform: translateY(-2px)
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
  transition: var(--transition)
}

.footer-col a:hover {
  color: var(--orange-light);
  transform: translateX(4px)
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, .3)
}

.footer-bottom a {
  color: rgba(255, 255, 255, .3);
  text-decoration: none;
  transition: var(--transition)
}

.footer-bottom a:hover {
  color: var(--orange-light)
}

.footer-logo {
  height: 32px;
  filter: brightness(0) invert(1);
  opacity: .4
}

/* ======== CONTACT PAGE ======== */
.contact-section {
  padding: 100px 48px;
  background: var(--white)
}

.contact-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start
}

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-gray);
  padding: 48px
}

.contact-form-wrap h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px
}

.contact-form-wrap .sub {
  font-size: 15px;
  color: var(--dark-gray);
  margin-bottom: 32px;
  line-height: 1.6
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.wpcf7-form br {
  display: none;
}

/* CF7 wraps each form control in an inline <span> by default — make it block
   so Choices.js wrappers don't collapse to inline width inside grid cells. */
.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-info-stack {
  display: flex;
  flex-direction: column;
  gap: 20px
}

.contact-info-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--light-gray);
  transition: var(--transition)
}

.contact-info-card:hover {
  border-color: var(--orange)
}

.contact-info-card .ci-icon {
  font-size: 28px;
  margin-bottom: 12px
}

.contact-info-card h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px
}

.contact-info-card p,
.contact-info-card a {
  font-size: 14px;
  color: var(--dark-gray);
  text-decoration: none;
  line-height: 1.65
}

.contact-info-card a:hover {
  color: var(--orange)
}

.form-select-styled {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--light-gray);
  border-radius: 10px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--charcoal);
  outline: none;
  transition: var(--transition);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B0B8C1' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center
}

.form-select-styled:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow)
}

.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--light-gray);
  border-radius: 10px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--charcoal);
  outline: none;
  transition: var(--transition);
  resize: vertical;
  min-height: 120px
}

.form-textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow)
}

.form-textarea::placeholder {
  color: var(--mid-gray)
}

/* ======== ARTICLE / SINGLE POST ======== */
.article-hero {
  background: var(--navy-deep);
  padding: 160px 48px 80px;
  position: relative;
  overflow: hidden
}

.article-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 113, 26, .12), transparent 70%);
  pointer-events: none
}

.article-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap
}

.article-cat {
  padding: 5px 14px;
  background: var(--orange);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  border-radius: 50px;
  letter-spacing: .04em;
  text-decoration: none
}

.article-date {
  font-size: 13px;
  color: rgba(255, 255, 255, .45)
}

.article-read-time {
  font-size: 13px;
  color: rgba(255, 255, 255, .35)
}

.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 20px
}

.article-excerpt {
  font-size: 17px;
  color: rgba(255, 255, 255, .65);
  line-height: 1.7
}

.article-author-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .1)
}

.article-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover
}

.article-author-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--white)
}

.article-author-role {
  font-size: 12px;
  color: rgba(255, 255, 255, .45)
}

.article-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 48px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start
}

.article-body {
  font-size: 16px;
  color: var(--dark-gray);
  line-height: 1.85
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--light-gray)
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin: 36px 0 12px
}

.article-body p {
  margin-bottom: 24px
}

.article-body ul,
.article-body ol {
  margin: 0 0 24px 0;
  padding-left: 0;
  list-style: none
}

.article-body ul li,
.article-body ol li {
  padding: 7px 0 7px 24px;
  position: relative;
  color: var(--dark-gray);
  border-bottom: 1px solid var(--light-gray)
}

.article-body ul li:last-child,
.article-body ol li:last-child {
  border: none
}

.article-body ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
  font-size: 16px
}

.article-body ol {
  counter-reset: article-ol
}

.article-body ol li::before {
  counter-increment: article-ol;
  content: counter(article-ol)'.';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
  font-size: 13px
}

.article-body strong {
  color: var(--navy);
  font-weight: 600
}

.article-body .highlight-box {
  background: rgba(232, 113, 26, .05);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 32px 0
}

.article-body .highlight-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase
}

.article-body .article-img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin: 32px 0;
  display: block
}

.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--light-gray)
}

.article-tag {
  padding: 6px 14px;
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  color: var(--dark-gray);
  text-decoration: none;
  transition: var(--transition)
}

.article-tag:hover {
  border-color: var(--orange);
  color: var(--orange)
}

.article-sidebar {
  position: sticky;
  top: 96px
}

.sidebar-widget {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  border: 1px solid var(--light-gray)
}

.sidebar-widget h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--light-gray)
}

.sidebar-widget p {
  font-size: 14px;
  color: var(--dark-gray);
  line-height: 1.65;
  margin-bottom: 16px
}

.sidebar-related a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--light-gray);
  color: var(--dark-gray);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  line-height: 1.45
}

.sidebar-related a:last-child {
  border: none;
  padding-bottom: 0
}

.sidebar-related a:hover {
  color: var(--orange)
}

.sidebar-related .sr-arrow {
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 1px
}

/* ======== BLOG PAGINATION ======== */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
  flex-wrap: wrap
}

.page-btn {
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--light-gray);
  border-radius: 50px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-gray);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap
}

.page-btn:hover:not(:disabled) {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232, 113, 26, .15)
}

.page-btn.page-btn-active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(232, 113, 26, .3);
  font-weight: 600
}

.page-btn:disabled {
  opacity: .35;
  cursor: default;
  transform: none
}

.page-btn-prev,
.page-btn-next {
  padding: 0 20px;
  font-size: 13px;
  letter-spacing: .01em
}

.page-ellipsis {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mid-gray);
  font-size: 14px;
  pointer-events: none
}

/* page-btn as <a> tag */
a.page-btn { text-decoration: none; }
a.page-btn:hover { color: var(--orange); border-color: var(--orange); }

.page-btn-disabled {
  opacity: .35;
  cursor: default;
  pointer-events: none
}

/* ── Blog results info bar ── */
.blog-results-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--dark-gray)
}

.blog-clear-filters {
  font-size: 13px;
  font-weight: 500;
  color: var(--mid-gray);
  text-decoration: none;
  transition: color var(--transition);
  flex-shrink: 0
}
.blog-clear-filters:hover { color: var(--orange); }

/* ======== BLOG FILTERS + SEARCH ======== */
.blog-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px
}

.blog-filters-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-search {
  position: relative;
  flex-shrink: 0;
}
.blog-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mid-gray);
  pointer-events: none;
  line-height: 0;
  transition: color var(--transition);
}
.blog-search input {
  padding: 9px 18px 9px 40px;
  border: 1.5px solid var(--mid-gray);
  border-radius: 50px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--charcoal);
  width: 240px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.blog-search input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
}
.blog-search input:focus + .blog-search-icon,
.blog-search:focus-within .blog-search-icon {
  color: var(--orange);
}
.blog-search input::placeholder { color: var(--dark-gray); }
.blog-search input::-webkit-search-cancel-button { cursor: pointer; }

@media (max-width: 640px) {
  .blog-search { width: 100%; }
  .blog-search input { width: 100%; }
}

.blog-no-results {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 72px 24px;
  color: var(--mid-gray);
  text-align: center;
}
.blog-no-results p {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark-gray);
  margin: 0;
}
.blog-no-results span {
  font-size: 14px;
  color: var(--mid-gray);
}

.filter-btn {
  padding: 8px 20px;
  border: 1.5px solid var(--light-gray);
  border-radius: 50px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--dark-gray);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block
}

.filter-btn:hover {
  border-color: var(--orange) !important;
  color: var(--white) !important;
  background-color: var(--orange);
}


.filter-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white)
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px
}

/* ======== ANIMATIONS ======== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1)
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0)
}

.reveal-delay-1 {
  transition-delay: .1s
}

.reveal-delay-2 {
  transition-delay: .2s
}

.reveal-delay-3 {
  transition-delay: .3s
}

/* ======== BUTTONS ======== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 24px rgba(232, 113, 26, .35)
}

.btn-primary:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232, 113, 26, .45)
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border: 1.5px solid rgba(255, 255, 255, .25);
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition)
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .5);
  transform: translateY(-2px)
}

/* ======== MOBILE NAV ======== */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--navy-deep);
  padding: 100px 32px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .5s cubic-bezier(.16, 1, .3, 1)
}

.mobile-nav.open {
  transform: translateX(0)
}

.mobile-nav a {
  display: block;
  color: var(--white);
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.mobile-nav .sub-link {
  font-size: 16px;
  padding-left: 20px;
  color: rgba(255, 255, 255, .6)
}

/* ======== RESPONSIVE ======== */
@media(max-width:1024px) {
  section {
    padding: 80px 24px
  }

  .header {
    padding: 0 24px
  }

  .hero {
    padding: 120px 24px 80px
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 40px
  }

  .hero-form-card {
    max-width: 520px
  }

  .stats-bar {
    padding: 0 24px
  }

  .ahorro-cards {
    grid-template-columns: 1fr 1fr
  }

  .carousel-track .testimonio-card {
    min-width: 340px;
    max-width: 340px
  }

  .beneficios-cards {
    grid-template-columns: 1fr 1fr
  }

  .service-grid,
  .service-grid.reverse {
    grid-template-columns: 1fr;
    gap: 40px
  }

  .service-grid.reverse .service-img,
  .service-grid.reverse .service-content {
    order: unset
  }

  .page-hero {
    padding: 140px 24px 72px
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 48px 24px
  }

  .article-sidebar {
    position: static
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 40px
  }

  .steps::before {
    display: none
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 48px
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr
  }

  .blog-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:768px) {

  .nav,
  .btn-contact {
    display: none
  }

  .hamburger {
    display: flex
  }

  .mobile-nav {
    display: block
  }

  .hero h1 {
    font-size: 28px
  }

  .hero-layout {
    gap: 32px
  }

  .hero-form-card {
    padding: 28px;
    max-width: 100%
  }

  .option-buttons {
    flex-wrap: wrap;
    flex-direction: column
  }

  .option-btn {
    min-width: unset
  }

  .stats-inner {
    grid-template-columns: 1fr 1fr
  }

  .stat-item:nth-child(2)::after {
    display: none
  }

  .hipoteca-cards,
  .ahorro-cards {
    grid-template-columns: 1fr
  }

  .beneficios-cards {
    grid-template-columns: 1fr
  }

  .contact-form-wrap {
    padding: 28px
  }

  .form-row {
    grid-template-columns: 1fr
  }

  .article-hero {
    padding: 140px 24px 60px
  }

  .article-layout {
    padding: 40px 20px
  }

  .carousel-wrapper {
    margin: 0 -24px;
    padding: 0 24px
  }

  .steps {
    grid-template-columns: 1fr
  }

  .footer-grid {
    grid-template-columns: 1fr
  }

  .blog-grid {
    grid-template-columns: 1fr
  }

  .hero{
    min-height: 65vh;
  }
}

header:not(.scrolled) .nav-link {
  color: var(--white) !important
}

/* ── Page Subnav (Seguros) ── */
.page-subnav {
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  position: sticky;
  top: 72px;
  z-index: 99
}

.page-subnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none
}

.page-subnav-inner::-webkit-scrollbar {
  display: none
}

.page-subnav a {
  padding: 18px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-gray);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  display: block
}

.page-subnav a:hover {
  color: var(--orange)
}

.page-subnav a.active {
  color: var(--orange);
  border-bottom-color: var(--orange)
}

/* ── Service Sections (Seguros tabs content) ── */
.service-section {
  padding: 100px 48px
}

.service-section.alt {
  background: var(--off-white)
}

.service-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center
}

.service-grid.reverse .service-img {
  order: 2
}

.service-grid.reverse .service-content {
  order: 1
}

.service-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg)
}

.service-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1)
}

.service-img:hover img {
  transform: scale(1.04)
}

.service-content .section-tag {
  margin-bottom: 16px
}

.service-features {
  list-style: none;
  margin: 28px 0
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 15px;
  color: var(--dark-gray);
  line-height: 1.55
}

.service-features li:last-child {
  border: none
}

.service-features .feat-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(232, 113, 26, .1);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 2px
}

.service-cta-row {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap
}

.btn-primary-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(232, 113, 26, .3)
}

.btn-primary-dark:hover {
  background: var(--orange-light);
  transform: translateY(-2px)
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border: 1.5px solid var(--light-gray);
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition)
}

.btn-outline-dark:hover {
  border-color: var(--orange);
  color: var(--orange)
}

/* ── Fix sticky subnav inside Elementor widget ── */
.elementor-widget-flow_seguros_tabs,
.elementor-widget-flow_seguros_tabs>.elementor-widget-container {
  overflow: visible !important
}

/* ======== NOSOTROS ======== */
.nosotros {
  background: var(--white)
}

.nosotros-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center
}

.nosotros-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden
}

.nosotros-img-wrapper img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block
}

.nosotros-img-wrapper .accent-box {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 160px;
  height: 160px;
  background: var(--orange);
  border-radius: var(--radius-lg);
  z-index: -1
}

.nosotros-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px
}

.value-item {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--light-gray);
  transition: var(--transition)
}

.value-item:hover {
  border-color: var(--orange)
}

.value-item .v-icon {
  font-size: 24px;
  margin-bottom: 10px
}

.value-item h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px
}

.value-item p {
  font-size: 13px;
  color: var(--dark-gray);
  line-height: 1.6
}

/* ======== PAGE NOSOTROS ======== */
.nosotros-section {
  padding: 100px 48px
}

.nosotros-section.alt {
  background: var(--off-white)
}

.nosotros-section-inner {
  max-width: 1000px;
  margin: 0 auto
}

.nosotros-section-inner .section-subtitle {
  max-width: 680px
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 72px;
  max-width: 760px;
  margin: 0 auto
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--orange), var(--blue-accent))
}

.timeline-item {
  position: relative;
  margin-bottom: 40px
}

.timeline-item:last-child {
  margin-bottom: 0
}

.timeline-dot {
  position: absolute;
  left: -59px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--orange)
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: .06em;
  margin-bottom: 6px
}

.timeline-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 24px;
  border: 1px solid var(--light-gray);
  transition: var(--transition)
}

.timeline-content:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-md)
}

.timeline-content h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px
}

.timeline-content p {
  font-size: 14px;
  color: var(--dark-gray);
  line-height: 1.65
}

/* Valores */
.valores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px
}

.valor-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  border: 1px solid var(--light-gray);
  transition: var(--transition);
  text-align: center
}

.valor-card:hover {
  border-color: var(--orange) !important;
  transform: translateY(-3px) !important;
  box-shadow: var(--shadow-md) !important
}

.valor-icon {
  font-size: 32px;
  margin-bottom: 16px
}

.valor-card h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px
}

.valor-card p {
  font-size: 14px;
  color: var(--dark-gray);
  line-height: 1.6
}

/* Diferenciación */
.dif-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px
}

.dif-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--light-gray);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: var(--transition)
}

.dif-item:hover {
  border-color: var(--orange) !important;
  box-shadow: var(--shadow-md) !important
}

.dif-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--orange);
  opacity: .2;
  flex-shrink: 0;
  line-height: 1
}

.dif-text h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px
}

.dif-text p {
  font-size: 14px;
  color: var(--dark-gray);
  line-height: 1.6
}

/* Forma de trabajar */
.forma-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px
}

.forma-step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--light-gray);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: var(--transition)
}

.forma-step:hover {
  border-color: var(--orange) !important;
  box-shadow: var(--shadow-md) !important
}

.forma-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.forma-step h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px
}

.forma-step p {
  font-size: 14px;
  color: var(--dark-gray);
  line-height: 1.6
}

/* Equipo */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--light-gray);
  transition: var(--transition);
  text-align: center
}

.team-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-lg) !important;
  border-color: var(--orange) !important;
}

.team-card:hover .team-photo img {
  transform: scale(1.05)
}

.team-info {
  padding: 24px
}

.team-info h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px
}

.team-info .role {
  font-size: 12px;
  color: var(--orange);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px
}

.team-info p {
  font-size: 13px;
  color: var(--dark-gray);
  line-height: 1.6
}

@media (max-width: 900px) {
  .page-subnav-inner {
    padding: 0 24px
  }

  .service-section {
    padding: 60px 24px
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 40px
  }

  .service-grid.reverse .service-img,
  .service-grid.reverse .service-content {
    order: unset
  }

  .service-img img {
    height: 260px
  }

  .nosotros-section {
    padding: 80px 24px
  }

  .calc-grid,
  .nosotros-grid {
    grid-template-columns: 1fr;
    gap: 48px
  }
}

@media (max-width: 600px) {
  .page-subnav a {
    padding: 14px 16px;
    font-size: 13px
  }

  .service-section {
    padding: 48px 16px
  }
}

/* ================================================================
   FLOW MODALS — Completo llamada (14 pasos) & Contacto
   ================================================================ */

@keyframes fmIn {
  from { opacity: 0; transform: scale(.96) translateY(10px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}
@keyframes fmShake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-6px); }
  40%     { transform: translateX(6px); }
  60%     { transform: translateX(-4px); }
  80%     { transform: translateX(4px); }
}

.fm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.fm-overlay.fm-open { opacity: 1; visibility: visible; }

.fm-dialog {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 950px;
  max-height: 95dvh;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: fmIn .25s ease both;
  border: 1px solid var(--light-gray);
}

.fm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mid-gray);
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  padding: 0;
  line-height: 0;
}
.fm-close:hover { color: var(--charcoal); background: var(--light-gray); }

/* ── Progress ── */
.fm-progress-wrap { padding: 20px 52px 14px 24px; flex-shrink: 0; }
@media (max-width: 767px) { .fm-progress-wrap { padding: 14px 48px 10px 20px; } }

.fm-progress-labels { display: flex; justify-content: space-between; margin-bottom: 6px; }
.fm-progress-labels span { font-size: 13px; color: var(--mid-gray); font-family: var(--font-body); white-space: nowrap; }
.fm-progress-track { background: var(--light-gray); border-radius: 100px; height: 6px; overflow: hidden; }
.fm-progress-fill { background: var(--orange); height: 100%; border-radius: 100px; transition: width .4s cubic-bezier(.4,0,.2,1); }

/* ── Body / steps ── */
.fm-body { flex: 1; min-height: 0; overflow-y: auto; padding: 28px 32px; margin-top: 0px; }
@media (max-width: 767px) { .fm-body { padding: 16px 20px; } }

.fm-step { display: none; }
.fm-step.active { display: block; }

.fm-step-header { text-align: center; margin-bottom: 28px; }
.fm-step-header h3 {
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 8px;
}
@media (max-width: 767px) { .fm-step-header h3 { font-size: 24px; } }
.fm-step-header p { font-size: 15px; color: var(--dark-gray); }

/* ── Radio group ── */
.fm-radio-group { display: flex; flex-direction: column; gap: 10px; max-width: 520px; margin: 0 auto; }
.fm-radio-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--light-gray);
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  user-select: none;
  font-size: 15px;
  color: var(--charcoal);
  font-family: var(--font-body);
}
.fm-radio-item:hover { border-color: var(--orange); background: var(--orange-glow); }
.fm-radio-item input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.fm-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--mid-gray);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), background var(--transition);
}
.fm-radio-dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--white); opacity: 0; transition: opacity .18s; }
.fm-radio-item.fm-checked { border-color: var(--orange); background: var(--orange-glow); }
.fm-radio-item.fm-checked .fm-radio-dot { background: var(--orange); border-color: var(--orange); }
.fm-radio-item.fm-checked .fm-radio-dot::after { opacity: 1; }

/* ── Fields ── */
.fm-fields { max-width: 520px; margin: 0 auto; }
.fm-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 540px) { .fm-field-row { grid-template-columns: 1fr; } }
.fm-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; position: relative; }
.fm-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--dark-gray);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.fm-req { color: var(--orange); }

.fm-field input,
.fm-field select {
  padding: 12px 14px;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius);
  background: var(--off-white);
  font-size: 15px;
  color: var(--charcoal);
  font-family: var(--font-body);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.fm-field input:focus,
.fm-field select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
  background: var(--white);
}
.fm-field--eur { position: relative; }
.fm-field--eur input { padding-right: 36px; }
.fm-eur { position: absolute; bottom: 13px; right: 14px; font-size: 15px; color: var(--mid-gray); pointer-events: none; }
.fm-hint { font-size: 13px; color: var(--mid-gray); text-align: center; margin-top: 4px; }
.fm-error-box { background: #FEF2F2; border: 1px solid #FECACA; border-radius: var(--radius); padding: 14px 16px; font-size: 14px; color: #B91C1C; text-align: center; margin-top: 16px; }

/* ── Navigation ── */
.fm-nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; border-top: 1px solid var(--light-gray); flex-shrink: 0; }
@media (max-width: 767px) { .fm-nav { padding: 12px 16px; } }

.fm-btn-prev,
.fm-btn-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: none;
  line-height: 1;
}
@media (max-width: 540px) { .fm-btn-prev, .fm-btn-next { padding: 11px 18px; font-size: 14px; } }

.fm-btn-prev { background: var(--off-white); border: 1.5px solid var(--light-gray); color: var(--dark-gray); }
.fm-btn-prev:hover { background: var(--light-gray); color: var(--charcoal); border-color: var(--mid-gray); }
.fm-btn-next { background: var(--orange); color: var(--white); }
.fm-btn-next:hover { background: var(--navy); }
.fm-btn-next:disabled { opacity: .45; pointer-events: none; }

.fm-btn-prev:active, .fm-btn-prev:focus,
.fm-btn-next:active, .fm-btn-next:focus{
  background-color: var(--orange) !important;
}

/* ── Success ── */
.fm-success { text-align: center; padding: 60px 24px; }
.fm-success-icon { font-size: 64px; margin-bottom: 24px; line-height: 1; }
.fm-success h3 { font-size: 28px; font-weight: 700; color: var(--navy); margin-bottom: 12px; font-family: var(--font-body); }
.fm-success p { font-size: 16px; color: var(--dark-gray); line-height: 1.65; }

/* ── Toast ── */
.fm-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--charcoal); color: var(--white); padding: 12px 22px; border-radius: var(--radius); font-size: 14px; font-family: var(--font-body); z-index: 10002; box-shadow: var(--shadow-md); transition: opacity .2s ease; white-space: nowrap; }
.fm-toast.fm-toast--hidden { opacity: 0; pointer-events: none; }

/* ── Contact modal ── */
.fm-dialog--contact { max-width: 950px; overflow-y: auto; }
.fm-contact-head { padding: 28px 28px 0; flex-shrink: 0; text-align: center; }
.fm-contact-head h2 { font-size: 26px; font-weight: 700; color: var(--navy); margin-bottom: 8px; font-family: var(--font-body); }
.fm-contact-head p { font-size: 15px; color: var(--dark-gray); }
.fm-contact-body { padding: 20px 28px 28px; overflow-y: auto; }
@media (max-width: 767px) {
  .fm-contact-head { padding: 20px 20px 0; }
  .fm-contact-body { padding: 16px 20px 20px; }
}

/* ================================================================
   CHOICES.JS — Overrides para la paleta Flow
   Se aplican a cualquier instancia de Choices marcada con .flow-choice
   (modal de hipotecas + selects de Contact Form 7).
   ================================================================ */

.flow-choice { margin-bottom: 0; font-family: var(--font-body); font-size: 15px; }
.flow-choice:focus { outline: none; }
.flow-choice:last-child { margin-bottom: 0; }

/* ── Closed state ── */
.flow-choice .choices__inner {
  min-height: 48px;
  padding: 12px 42px 12px 16px;
  background: var(--off-white);
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--charcoal);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.flow-choice.is-focused .choices__inner,
.flow-choice.is-open .choices__inner {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
  background: var(--white);
}

.flow-choice .choices__list--single { padding: 0; }
.flow-choice .choices__list--single .choices__item { color: var(--charcoal); }
.flow-choice .choices__placeholder { color: var(--mid-gray); opacity: 1; }

/* ── Chevron ── */
.flow-choice[data-type*="select-one"]::after {
  border: none;
  width: 10px;
  height: 10px;
  right: 18px;
  margin-top: -7px;
  background: none;
  border-right: 2px solid var(--mid-gray);
  border-bottom: 2px solid var(--mid-gray);
  transform: rotate(45deg);
  transition: transform .2s ease, border-color .2s ease;
}
.flow-choice[data-type*="select-one"].is-open::after {
  margin-top: -2px;
  transform: rotate(-135deg);
  border-color: var(--orange);
}

/* ── Dropdown panel ── */
.flow-choice .choices__list--dropdown,
.flow-choice .choices__list[aria-expanded] {
  margin-top: 8px;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 10003;
}
.flow-choice .choices__list--dropdown.is-active,
.flow-choice .choices__list[aria-expanded].is-active {
  border-color: var(--orange);
}

.flow-choice .choices__list--dropdown .choices__list {
  padding: 6px;
  max-height: 280px;
}

.flow-choice .choices__list--dropdown .choices__item,
.flow-choice .choices__list[aria-expanded] .choices__item {
  padding: 12px 16px;
  border-radius: calc(var(--radius) - 4px);
  font-size: 15px;
  color: var(--charcoal);
  transition: background .15s ease, color .15s ease;
}

.flow-choice .choices__list--dropdown .choices__item--selectable.is-highlighted,
.flow-choice .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
  background: var(--orange);
  color: var(--white);
}

/* Remove default "Press to select" hint */
.flow-choice .choices__list--dropdown .choices__item--selectable::after,
.flow-choice .choices__list--dropdown .choices__item--selectable.is-highlighted::after {
  display: none;
}

/* Ensure dropdown sits above scrollable modal body */
.fm-body .flow-choice { position: relative; z-index: 1; }
.fm-body .flow-choice.is-open { z-index: 10; }

/* ── Search input inside dropdown ── */
.flow-choice .choices__input {
  margin: 6px;
  padding: 10px 14px;
  background: var(--off-white);
  border: 1.5px solid var(--light-gray);
  border-radius: calc(var(--radius) - 4px);
  font-size: 14px;
  color: var(--charcoal);
  font-family: var(--font-body);
  width: calc(100% - 12px);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.flow-choice .choices__input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
  background: var(--white);
}
.flow-choice .choices__input::placeholder { color: var(--mid-gray); }
