/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold: #C9973A;
  --gold-light: #E0B060;
  --gold-dark: #A87830;
  --dark: #2D2D2D;
  --dark-2: #1A1A1A;
  --dark-3: #3D3D3D;
  --gray: #6B6B6B;
  --gray-light: #9B9B9B;
  --bg: #F8F6F2;
  --bg-2: #F2EFE9;
  --white: #FFFFFF;
  --border: #E5E0D8;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.18);
  --radius: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.gold { color: var(--gold); }

/* ===== TOPBAR ===== */
.topbar {
  background: #D4A848;
  text-align: center;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 700;
  color: #111111;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 999;
}

.topbar-link {
  font-weight: 700;
  color: #111111;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== NAVIGATION ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-logo-mobile {
  display: none;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
}
.dc-d { color: var(--gold); }
.dc-c { color: var(--dark); }

.hero-logo-mobile {
  display: none;
  height: 40px;
  width: auto;
  margin-bottom: 16px;
}

.hero-img-mobile {
  display: none;
  width: 100%;
  max-width: 380px;
  border-radius: 16px;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.valores-img-mobile {
  display: none;
  width: 100%;
  max-width: 380px;
  border-radius: 16px;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.nav-logo-img {
  height: 45px;
  width: auto;
  display: block;
}

.logo-duplo { color: var(--dark); }
.logo-capital { color: var(--gold); }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Hide the currently-active flag based on the html[data-lang] attribute
   set synchronously by an inline <head> script. Prevents the FOUC where
   both flags briefly appear before translations.js applies the .active
   class. */
html[data-lang="es"] .lang-btn[data-lang="es"],
html[data-lang="en"] .lang-btn[data-lang="en"] { display: none !important; }
html[data-lang="es"] .nav-container .lang-btn[data-lang="es"],
html[data-lang="en"] .nav-container .lang-btn[data-lang="en"] { display: none !important; }

/* Final state — matches what translations.js injects, so the first
   paint is identical to the post-JS state (no header flicker on
   navigation). */
.lang-btn {
  background: none;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 0;
  transition: opacity 0.2s;
}

.lang-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Hide the currently-selected language flag (set by translations.js) */
.lang-btn.active { display: none; }

.nav-links {
  display: flex;
  gap: 0;
  flex: 1;
  justify-content: space-evenly;
  white-space: nowrap;
}

.nav-links a {
  font-size: 13px;
  font-weight: 700;
  color: #111111;
  padding: 8px 10px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover { color: #111111; background: #C9973A; }
.nav-links a.active { color: var(--gold); }

/* Nav Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  padding: 8px 0;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  transform: translateX(-50%) translateY(8px);
  z-index: 200;
}

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

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  transition: background 0.15s, color 0.15s;
  border-radius: 0;
  background: none;
}

.nav-dropdown-menu a:hover {
  background: rgba(201,151,58,0.1);
  color: var(--gold);
}

.btn-nav {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--gold);
  padding: 10px 22px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}

.btn-nav:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hamburger:focus,
.hamburger:active {
  outline: none;
  box-shadow: none;
  border: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-mobile {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px;
  text-align: center;
}

/* Full-screen overlay when opened. The navbar is position:fixed with
   backdrop-filter, which establishes a containing block for fixed
   descendants — so we can't use position:fixed here without the menu
   collapsing inside the navbar's bounds. Instead we make the menu fill
   the viewport height below the navbar; the navbar (being fixed)
   visually grows to cover the screen. */
.nav-mobile.open {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: calc(100vh - 72px);
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 480px) {
  .nav-mobile.open {
    min-height: calc(100vh - 60px);
    max-height: calc(100vh - 60px);
  }
}
.nav-mobile.open ul { margin: 0; width: 100%; }

.nav-mobile ul { display: flex; flex-direction: column; gap: 2px; align-items: stretch; }
.nav-mobile a {
  display: block;
  padding: 9px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  border-radius: 8px;
  transition: background 0.2s;
  text-align: center;
}
.nav-mobile a:hover { background: var(--bg-2); }

.btn-mobile {
  background: var(--gold) !important;
  color: var(--white) !important;
  text-align: center;
  font-weight: 600 !important;
  margin-top: 8px;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(201,151,58,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(201,151,58,0.06) 0%, transparent 50%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,151,58,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 140px 24px 100px;
  position: relative;
  z-index: 1;
}

/* Override for full width bg */
.hero {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #F8F7F5;
  z-index: -1;
}

.hero {
  padding: 0;
}

section.hero {
  min-height: auto;
  background: #F8F7F5;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  align-items: center;
  gap: 0;
  padding: 160px 80px 98px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.18);
  color: #111111;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-main);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.12;
  color: #111111;
  margin-bottom: 24px;
}

.hero-highlight {
  color: #111111;
  display: block;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.65;
  color: #111111;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-saving {
  font-size: 20px;
  font-weight: 900;
  color: #C9973A;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #C9973A;
  color: #111111;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  border: 1px solid #C9973A;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  background: #C9973A;
  border-color: #C9973A;
  color: #111111;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(201,151,58,0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #111111;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.25);
  transition: background 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  background: #C9973A;
  border-color: #C9973A;
  color: #111111;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-google {
  margin-top: 32px;
}

.google-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.google-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  font-family: var(--font-main);
}

.google-stars {
  font-size: 20px;
  color: #FBBC05;
  letter-spacing: 2px;
}

.google-bottom {
  font-size: 16px;
  font-weight: 700;
  color: #111111;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(17,17,17,0.75);
  font-weight: 500;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img {
  width: 100%;
  max-width: 520px;
  height: 420px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.15);
}

.hero-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 320px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-xl);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.card-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(201,151,58,0.6);
}

.card-header span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(45,45,45,0.5);
  font-weight: 600;
}

.card-amount {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 8px;
}

.card-label {
  font-size: 13px;
  color: rgba(45,45,45,0.55);
  margin-bottom: 24px;
}

.card-divider {
  height: 1px;
  background: rgba(45,45,45,0.12);
  margin-bottom: 20px;
}

.card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
  color: rgba(45,45,45,0.65);
}

.card-rate {
  color: var(--gold-dark);
  font-size: 14px;
}

.card-crossed {
  color: rgba(45,45,45,0.35);
  text-decoration: line-through;
}

.card-badge {
  margin-top: 20px;
  background: rgba(45,45,45,0.08);
  border: 1px solid rgba(45,45,45,0.2);
  color: var(--dark);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  padding: 9px 16px;
  border-radius: 8px;
}

/* ===== REVIEWS ===== */
.reviews {
  background: #C9973A;
  padding: 40px 0 36px;
}

.reviews-header {
  text-align: center;
  margin-bottom: 28px;
}

.reviews-title {
  font-family: var(--font-main);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.15;
}

.reviews-rating-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.reviews-stars {
  font-size: 22px;
  color: #FBBC05;
  letter-spacing: 3px;
  margin-bottom: 4px;
}

.reviews-count {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 6px;
}

.reviews-google-logo {
  font-size: 20px;
  letter-spacing: -0.5px;
  font-family: var(--font-main);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.review-card {
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.reviewer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reviewer-info {
  flex: 1;
}

.reviewer-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

.reviewer-date {
  font-size: 12px;
  color: var(--gray-light);
}

.review-g-icon {
  flex-shrink: 0;
}

.review-stars {
  font-size: 16px;
  color: #FBBC05;
  letter-spacing: 2px;
}

.review-verified {
  color: #1a73e8;
  font-size: 13px;
}

.review-text {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
}

.reviews-trustindex {
  position: relative;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  background: #2E7D32;
  display: inline-block;
  padding: 7px 16px;
  border-radius: 6px;
  float: right;
  cursor: pointer;
}

.trustindex-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  width: 300px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: var(--shadow-lg);
  text-align: left;
  z-index: 100;
}

.trustindex-tooltip p {
  font-size: 14px;
  color: #111111;
  line-height: 1.6;
  font-weight: 400;
}

.trustindex-tooltip strong {
  font-weight: 700;
}

.trustindex-link {
  color: #1a73e8;
  text-decoration: underline;
  font-weight: 500;
}

.reviews-trustindex:hover .trustindex-tooltip {
  display: block;
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,151,58,0.1);
  border: 1px solid rgba(201,151,58,0.25);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== VALORES ===== */
.valores-section-wrap {
  background: #FAFAF8;
  padding: 60px 0;
}

.valores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.valores-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: -19px;
}

.valores-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.valores-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.valores-title {
  font-family: var(--font-main);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  color: #111111;
  margin-bottom: 8px;
}

.valores-text {
  font-family: var(--font-main);
  font-size: 19px;
  font-weight: 600;
  color: #111111;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .valores { grid-template-columns: 1fr; gap: 24px; }
  .valores-text-wrap { order: -1; padding: 0 16px; text-align: center; }
  .valores-img-wrap { display: none; }
}

/* ===== TIPOS TRANSITION ===== */
.tipos-section {
  background: var(--white);
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.tipos-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.tipos-title {
  font-family: var(--font-main);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: #111111;
  line-height: 1.25;
  margin-top: 16px;
}

.tipos-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tipo-item {
  font-size: 26px;
  font-weight: 700;
  color: #2D2D2D;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0.35;
  transform: translateX(20px);
  transition: opacity 0.4s, transform 0.4s, color 0.4s;
  cursor: default;
}

.tipo-item:first-child { border-top: 1px solid var(--border); }

.tipo-item--gold { color: var(--gold); }

.tipo-item.active {
  opacity: 1;
  transform: translateX(0);
  color: #111111;
}

.tipo-item--gold.active { color: var(--gold); }

@media (max-width: 768px) {
  .tipos-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .tipo-item { font-size: 20px; }
}

/* ===== PRODUCTOS HIPOTECARIOS ===== */
.productos {
  background: var(--white);
  padding: 32px 0 0;
  position: relative;
}

/* =========================================================
   ===== CERTIFICADO DE CAPACIDAD DE COMPRA =====
   Fully self-contained styles — no dependency on external
   grid/flex utilities. Uses explicit property declarations
   to avoid inheritance conflicts.
   ========================================================= */

/* --- Section wrapper --- */
.cert-section {
  background: #FAFAF8;
  padding: 60px 0;
  overflow: hidden;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

/* --- Simple centered layout (home) --- */
.cert-simple {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.cert-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* --- 2-column flex (dedicated page) --- */
.cert-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap;
  gap: 40px;
  align-items: center;
}
.cert-text {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.cert-mockup-wrap {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- Eyebrow tag --- */
.cert-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C9973A;
  background: rgba(201,151,58,0.1);
  border: 1px solid rgba(201,151,58,0.25);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

/* --- Title --- */
.cert-title {
  font-family: var(--font-main);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 900;
  color: #111111;
  line-height: 1.3;
  margin: 0 0 16px;
}

/* --- Description --- */
.cert-desc {
  font-size: 17px;
  color: #666;
  line-height: 1.7;
  margin: 0 0 24px;
}
.gold-mark {
  background: rgba(201,151,58,0.35);
  color: #2D2D2D;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
}

/* --- Check list --- */
.cert-checks {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.cert-check {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: flex-start;
}
.cert-check-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(201,151,58,0.12);
  color: #C9973A;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.cert-check-label {
  font-size: 14px;
  font-weight: 700;
  color: #2D2D2D;
  margin-bottom: 1px;
}
.cert-check-text {
  font-size: 13px;
  color: #777;
  line-height: 1.45;
}

/* ===== MOCKUP DOCUMENT ===== */
.cert-doc {
  background: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.05);
  transform: rotate(-3deg);
  overflow: hidden;
  font-family: var(--font-main);
}

/* Header doré */
.cert-doc-header {
  background: #C9973A;
  padding: 14px 16px;
  color: #fff;
}
.cert-doc-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.cert-doc-brand {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.cert-doc-date {
  font-size: 9px;
  opacity: 0.9;
  text-align: right;
}
.cert-doc-doctitle {
  font-size: 11px;
  font-weight: 500;
  margin-top: 4px;
  margin-bottom: 4px;
}
.cert-doc-pill {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  margin-top: 6px;
}

/* Body */
.cert-doc-body {
  padding: 12px 16px;
}
.cert-doc-attn {
  font-size: 10px;
  color: #111;
  font-weight: 700;
  margin-bottom: 6px;
}
.cert-doc-attn strong {
  font-weight: 500;
}
.cert-doc-intro {
  font-size: 9px;
  color: #333;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 10px;
}

/* Blocs PROYECTO / FINANCIACIÓN */
.cert-doc-block {
  background: #F5F1E8;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 10px;
}
.cert-doc-block-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #C9973A;
  margin-bottom: 4px;
}
.cert-doc-row {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
  font-size: 10px;
  color: #2D2D2D;
  font-weight: 700;
}
.cert-doc-row span:last-child {
  font-weight: 800;
  color: #111111;
}
.cert-doc-row.total {
  border-top: 1px solid #E0D9C5;
  margin-top: 4px;
  padding-top: 6px;
}

/* Signature */
.cert-doc-sig {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 6px;
  margin-top: 8px;
  border-top: 1px solid #eee;
}
.cert-doc-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #C9973A;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  flex-shrink: 0;
}
.cert-doc-sig-name {
  font-size: 10px;
  font-weight: 700;
  color: #111;
}
.cert-doc-sig-role {
  font-size: 8px;
  font-weight: 600;
  color: #555;
}
.cert-doc-sig-email {
  font-size: 8px;
  font-weight: 600;
  color: #C9973A;
}

/* Legal */
.cert-doc-legal {
  font-size: 7px;
  color: #999;
  text-align: center;
  padding: 6px 16px 10px;
  line-height: 1.4;
  margin-top: 6px;
}

/* ===== RESPONSIVE — Certificado ===== */

/* Small laptop (≤1200px) */
@media (max-width: 1200px) {
  .cert-inner { gap: 36px; }
  .cert-doc { max-width: 300px; }
}

/* Tablet landscape (≤1024px) */
@media (max-width: 1024px) {
  .cert-inner { gap: 28px; }
  .cert-doc { max-width: 280px; }
  .cert-title { font-size: clamp(20px, 2.6vw, 26px); }
}

/* Tablet portrait (≤834px) */
@media (max-width: 834px) {
  .cert-inner { gap: 24px; }
  .cert-doc { max-width: 260px; transform: rotate(-2deg); }
  .cert-desc { font-size: 16px; }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  .cert-section { padding: 48px 0; }
  .cert-simple { padding: 0 16px; text-align: center !important; }
  .cert-title { text-align: center; }
  .cert-inner {
    flex-direction: column !important;
    gap: 24px;
  }
  /* Mobile order: photo first, then text */
  .cert-mockup-wrap { order: 1; width: 100%; }
  .cert-mockup-wrap img { max-width: 100% !important; margin: 0 auto; }
  .cert-text { order: 2; width: 100%; text-align: center; align-items: center; }
  .cert-desc { text-align: center; }
  .cert-ctas { flex-direction: column; gap: 10px; margin-top: 24px !important; }
  .cert-ctas .btn-primary,
  .cert-ctas .btn-secondary { width: 100%; text-align: center; justify-content: center; display: flex; }
  .cert-inner {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }
  .cert-text {
    flex: none;
    width: 100%;
    align-items: center;
    text-align: center;
  }
  .cert-mockup-wrap {
    flex: none;
    width: 100%;
  }
  .cert-checks { align-items: center; }
  .cert-check {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }
  .cert-doc {
    transform: rotate(0deg);
    max-width: 300px;
    margin: 0 auto;
  }
  .cert-section .btn-primary {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
  }
}

/* Large phone (≤568px) */
@media (max-width: 568px) {
  .cert-doc { max-width: 280px; }
  .cert-title { font-size: 20px; }
  .cert-desc { font-size: 15px; }
}

/* Small phone (≤480px) */
@media (max-width: 480px) {
  .cert-section { padding: 36px 0; }
  .cert-simple { padding: 0 12px; }
  .cert-title { font-size: 19px; }
  .cert-desc { font-size: 14px; }
  .cert-checks { gap: 10px; margin-bottom: 18px; }
}

/* iPhone SE (≤375px) */
@media (max-width: 375px) {
  .cert-simple { padding: 0 10px; }
  .cert-title { font-size: 17px; }
  .cert-desc { font-size: 13px; }
}

/* Productos arrows — visible on all screens */
.productos-arrow {
  display: flex;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--gold);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.productos-arrow:hover {
  background: var(--white);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.08);
}
.productos-arrow:active { transform: translateY(-50%) scale(0.94); }
.productos-arrow-left { left: 12px; }
.productos-arrow-right { right: 12px; }

.productos-header {
  padding: 0 24px;
  margin-bottom: 32px;
  text-align: center;
}

.productos-header .section-title {
  font-family: var(--font-main);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  color: #111111;
  margin-bottom: 8px;
}

.productos-header .section-desc {
  font-family: var(--font-main);
  font-size: 19px;
  font-weight: 600;
  color: #111111;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .productos { padding: 16px 0 0; }
  .productos-header { padding: 0 16px; margin-bottom: 24px; }
  .productos-header .section-title { font-size: clamp(24px, 6vw, 32px); }
  .productos-header .section-desc { font-size: 16px; line-height: 1.6; }

  /* Horizontal swipe carousel with snap — one swipe = one card.
     Native horizontal scroll handles the gesture; scroll-snap-type
     mandatory means it always lands on a full card. */
  .productos-marquee-wrapper {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    cursor: default !important;
    /* Allow BOTH horizontal carousel pan and vertical page scroll
       when the finger drags vertically over a card. */
    touch-action: pan-x pan-y;
    scrollbar-width: none;
  }
  .productos-marquee-wrapper::-webkit-scrollbar { display: none; }

  .productos-marquee {
    display: flex !important;
    flex-direction: row !important;
    width: max-content !important;
    animation: none !important;
    transform: none !important;
  }
  .productos-track {
    display: flex !important;
    flex-direction: row !important;
  }
  /* Hide the duplicate track used for the seamless desktop loop */
  .productos-track[aria-hidden="true"] { display: none !important; }

  .producto-block {
    width: calc(100vw - 32px) !important;
    max-width: 360px !important;
    flex-shrink: 0 !important;
    padding: 32px 24px !important;
    border-right: none !important;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  /* Hide the auto-scroll progress bar — user is in control now */
  .productos-progress { display: none !important; }

  /* Visible arrows on left/right hinting horizontal swipe.
     Offset down by ~1cm so they sit centered on the cards rather
     than on the section as a whole (header takes vertical space above). */
  .productos-arrow {
    display: flex;
    position: absolute;
    top: calc(50% + 38px);
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--gold);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .productos-arrow-left { left: 8px; }
  .productos-arrow-right { right: 8px; }
  .productos-arrow:active { transform: translateY(-50%) scale(0.92); }
}

.productos-marquee-wrapper {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  cursor: grab;
}

.productos-progress {
  width: 100%;
  height: 4px;
  background: var(--border);
  position: relative;
  margin-top: 0;
}

.productos-progress-fill {
  height: 100%;
  background: var(--gold);
  width: 0%;
  transition: width 0.1s linear;
}

.productos-marquee-wrapper.dragging {
  cursor: grabbing;
}

.productos-marquee-wrapper.dragging .productos-marquee {
  animation-play-state: paused;
}

.productos-marquee {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.productos-marquee:hover {
  animation-play-state: paused;
}

.productos-track {
  display: flex;
}

.producto-block {
  width: 360px;
  flex-shrink: 0;
  padding: 52px 40px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--white);
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.producto-block:nth-child(odd) {
  background: #FAFAF8;
}

.producto-block:hover {
  transform: scale(1.03);
  z-index: 3;
  box-shadow: 0 20px 50px rgba(0,0,0,0.13);
}

.producto-block.producto-selected {
  outline: 2px solid var(--gold);
  box-shadow: 0 20px 50px rgba(201,151,58,0.2);
  z-index: 3;
}

.producto-block:nth-child(odd) { background: #FAFAF8; }

.producto-title {
  font-family: var(--font-main);
  font-size: 20px;
  font-weight: 900;
  color: #111111;
  line-height: 1.25;
  margin-bottom: 20px;
  text-align: center;
}

.producto-divider {
  width: 48px;
  height: 3px;
  background: #C9973A;
  border-radius: 2px;
  margin: 0 auto 28px;
}

.producto-list {
  list-style: disc;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  margin-bottom: 36px;
}

.producto-list li {
  font-size: 14px;
  color: #3D3D3D;
  line-height: 1.6;
}

.producto-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #C9973A;
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 16px 20px;
  border-radius: 50px;
  text-align: center;
  transition: background 0.2s, transform 0.2s;
  margin-top: auto;
  height: 54px;
  width: 100%;
}

.producto-btn:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .producto-block { width: 280px; padding: 40px 28px; }
}

/* ===== SERVICES ===== */
.services {
  padding: 100px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  cursor: default;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(201,151,58,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 18px;
  transition: background 0.25s;
}

.service-card:hover .service-icon {
  background: var(--gold);
  color: var(--white);
}

.service-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.service-card p {
  font-size: 13.5px;
  color: var(--gray);
  line-height: 1.65;
}

/* ===== PROCESS ===== */
.process {
  padding: 100px 0;
  background: var(--bg);
}

.process-timeline {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.process-step {
  display: flex;
  gap: 28px;
  position: relative;
  padding-bottom: 48px;
}

.step-connector {
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(201,151,58,0.2));
}

.step-circle {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(201,151,58,0.3);
  position: relative;
  z-index: 1;
}

.step-circle span {
  font-size: 13px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
}

.step-circle--last {
  background: var(--dark);
}

.step-content {
  padding-top: 8px;
  flex: 1;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.step-content p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 14px;
}

.step-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-dark);
  background: rgba(201,151,58,0.12);
  padding: 5px 12px;
  border-radius: 100px;
}

/* ===== COMPARISON ===== */
.comparison {
  padding: 100px 0;
  background: var(--white);
}

.comparison-table {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.comparison-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  background: var(--dark);
}

.comp-col {
  padding: 24px 28px;
}

.comp-col--without {
  border-left: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.comp-col--with {
  border-left: 1px solid rgba(255,255,255,0.1);
  background: rgba(201,151,58,0.15);
  text-align: center;
}

.comp-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.comp-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.comp-col--with .comp-label { color: var(--gold-light); }

.comparison-body {}

.comp-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.comp-row--alt { background: var(--bg); }

.comp-row:last-child { border-bottom: none; }

.comp-feat {
  padding: 18px 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  display: flex;
  align-items: center;
}

.comp-val {
  padding: 18px 28px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--border);
  text-align: center;
}

.comp-val--bad { color: #e74c3c; }
.comp-val--neutral { color: var(--gray); }
.comp-val--good { color: #27ae60; }
.comp-val--with { background: rgba(201,151,58,0.04); }

.comparison-cta {
  text-align: center;
  margin-top: 48px;
}

/* ===== BANKS ===== */
.banks {
  padding: 80px 0;
  background: var(--bg);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.banks-marquee-wrapper {
  overflow: hidden;
  position: relative;
  margin: 48px 0 24px;
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.banks-marquee {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.banks-marquee:hover {
  animation-play-state: paused;
}

.banks-track {
  display: flex;
  gap: 20px;
  padding-right: 20px;
}

.bank-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 180px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: default;
}

.bank-item:hover {
  transform: scale(1.1);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.bank-logo-img {
  width: 120px;
  height: 44px;
  object-fit: contain;
  filter: grayscale(0%);
  opacity: 1;
  transition: transform 0.3s;
}

.bank-name-display {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark-3);
  text-align: center;
  letter-spacing: 0.01em;
}

.banks-note {
  text-align: center;
  font-size: 14px;
  color: var(--gray-light);
  font-style: italic;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 100px 0;
  background: var(--dark);
}

.testimonials .section-tag { color: var(--gold-light); }

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

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

.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.25s, border-color 0.25s;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,151,58,0.3);
}

.testimonial-card--featured {
  border-color: rgba(201,151,58,0.4);
  background: rgba(201,151,58,0.06);
}

.testimonial-stars {
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 18px;
}

.testimonial-card p {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

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

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.author-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3px;
}

.author-detail {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

/* ===== CONTACT ===== */
.contact {
  padding: 100px 0;
  background: var(--bg);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contact-info .section-tag { margin-bottom: 20px; }

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 20px;
}

.contact-desc {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.contact-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--dark);
  font-weight: 500;
}

.feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(201,151,58,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.contact-direct-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--gray);
}

/* Form */
.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.form-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 28px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,151,58,0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #BBB;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-group textarea { resize: vertical; min-height: 90px; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}

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

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

.form-link { color: var(--gold); text-decoration: underline; }

.btn-submit {
  width: 100%;
  padding: 15px 28px;
  background: var(--gold);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(201,151,58,0.35);
  cursor: pointer;
}

.btn-submit:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(201,151,58,0.45);
}

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(39,174,96,0.1);
  border: 1px solid rgba(39,174,96,0.3);
  color: #27ae60;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
}

/* Input validation */
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #e74c3c;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg);
  padding: 72px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 80px;
  padding-bottom: 60px;
  border-bottom: none;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(0,0,0,0.5);
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(0,0,0,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,0,0,0.45);
  transition: background 0.2s, color 0.2s;
}

.social-link:hover {
  background: var(--gold);
  color: var(--white);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0,0,0,0.4);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li,
.footer-col ul a {
  font-size: 14px;
  color: rgba(0,0,0,0.55);
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--gold); }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(0,0,0,0.35);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-legal a {
  font-size: 12px;
  color: rgba(0,0,0,0.35);
  transition: color 0.2s;
}

.footer-legal a:hover { color: rgba(0,0,0,0.6); }

/* ===== FAQ ===== */
.faq {
  background: var(--bg);
  padding: 0 0 100px;
}

.faq-title {
  font-family: var(--font-main);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  color: #111111;
  text-align: center;
  margin-bottom: 16px;
}

.faq-divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 64px;
  border-radius: 2px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--gold);
}

.faq-question[aria-expanded="true"] {
  color: var(--gold);
}

.faq-icon {
  flex-shrink: 0;
  color: var(--gold);
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer.open {
  max-height: 1000px;
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.75;
  color: #555;
  padding-bottom: 24px;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 999;
  text-decoration: none;
}

.whatsapp-label {
  background: var(--white);
  color: var(--dark);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  white-space: nowrap;
}

.whatsapp-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

.whatsapp-float:hover .whatsapp-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  section.hero {
    grid-template-columns: 1fr;
    padding: 120px 40px 80px;
    min-height: auto;
  }

  .hero-img {
    max-width: 100%;
    height: 300px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .banks-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid .testimonial-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .btn-nav { display: inline-block; font-size: 14px; font-weight: 700; padding: 12px 24px; margin-left: auto; border-radius: 10px; }
  .hamburger { display: flex; }

  section.hero {
    padding: 100px 24px 64px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .hero-trust { gap: 14px; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item + .stat-item::before {
    display: none;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .banks-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .comparison-header,
  .comp-row {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .comp-feat,
  .comp-val {
    padding: 14px 16px;
    font-size: 13px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid .testimonial-card:nth-child(3) {
    grid-column: auto;
    max-width: none;
  }

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

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

  .contact-form-wrapper {
    padding: 28px 20px;
  }

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

  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .banks-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .comparison-header,
  .comp-row {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .comp-feat {
    font-size: 12px;
    padding: 12px;
  }

  .comp-val {
    font-size: 12px;
    padding: 12px 8px;
  }

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

/* ===== COMPREHENSIVE RESPONSIVE ===== */

/* Prevent horizontal overflow globally */
html, body { overflow-x: hidden; max-width: 100vw; }

/* ===== TABLET LANDSCAPE (1024-1199px) ===== */
@media (max-width: 1199px) {
  .container { padding: 0 24px; }
  .hero-content h1 { font-size: clamp(32px, 5vw, 48px); }
}

/* ===== TABLET PORTRAIT (768-1023px) ===== */
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .btn-nav { display: inline-block; font-size: 14px; font-weight: 700; padding: 12px 24px; border-radius: 10px; order: 97; }
  .lang-switcher { margin-left: auto; margin-right: 0; order: 98; }
  .hamburger { order: 99; margin-left: 12px; align-self: center; }

  .hero { flex-direction: column; text-align: center; }
  .hero-content { max-width: 100%; padding: 0 24px; }
  .hero-visual { display: none; }

  .valores-img-wrap { order: 1; }

  .stats { flex-wrap: wrap; }
  .stat-item { min-width: 45%; }
}

/* ===== MOBILE LARGE (481-767px) ===== */
@media (max-width: 767px) {
  .nav-container { padding: 0 16px; }
  .nav-logo-img { display: none; }
  .nav-logo-mobile { display: inline-flex; font-size: 30px; }
  .hero-logo-mobile { display: block; margin: 24px auto 16px; }
  .hero-img-mobile { display: block; }
  .valores-img-mobile { display: block; order: 99; margin-top: 8px; }

  .hero-content h1 { font-size: clamp(30px, 7vw, 42px); }
  .hero-content p { font-size: 17px; }
  .hero-btns { flex-direction: column; gap: 12px; }
  .hero-btns a { width: 100%; text-align: center; font-size: 16px; }

  .reviews-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .review-card { padding: 16px; }
  .review-text { font-size: 15px; }

  .faq-question { font-size: 17px; padding: 18px 0; }
  .faq-answer p { font-size: 16px; }

  .footer-bottom { padding: 16px 0; }
  .footer-legal { gap: 12px; flex-wrap: wrap; justify-content: center; }
  .footer-legal a { font-size: 13px; }
  .footer-tagline { font-size: 16px; }
  .footer-col ul li, .footer-col ul a { font-size: 16px; }

  .section-title { font-size: clamp(26px, 6vw, 38px); }
  .section-desc { font-size: 16px; }

  .topbar { top: 60px; font-size: 14px; }
  section.hero { padding: 130px 24px 40px; grid-template-columns: 1fr; }
  .hero-content { max-width: 100%; text-align: center; }
  .hero-visual { display: none; }

  /* Blog pages */
  .blog-hero { padding: 110px 16px 40px; }
  .blog-h1 { font-size: clamp(26px, 6vw, 38px); }
  .blog-article { padding: 36px 20px 60px; }
  .blog-text { font-size: 17px; }
  .blog-list li { font-size: 17px; }
  .blog-h2 { font-size: 24px; }
  .blog-features { grid-template-columns: 1fr; }
  .blog-feature { font-size: 16px; }
  .blog-related-grid { grid-template-columns: 1fr; }
  .blog-cta { padding: 32px 20px; border-radius: 12px; }
  .blog-cta-title { font-size: 24px; }
  .blog-cta-sub { font-size: 16px; }

  /* Stat grid (quienes-somos) */
  .stat-grid { grid-template-columns: 1fr; }
}

/* ===== MOBILE SMALL (320-480px) ===== */
@media (max-width: 480px) {
  body { font-size: 16px; }

  .container { padding: 0 16px; }

  #navbar { padding: 0; }
  .nav-container { height: 60px; padding: 0 12px; }
  .nav-logo-img { display: none; }
  .nav-logo-mobile { display: inline-flex; }
  .lang-switcher { gap: 4px; }
  .lang-btn { font-size: 18px; padding: 2px; }

  .topbar { font-size: 13px; padding: 6px 12px; top: 60px; }

  section.hero { padding: 130px 16px 40px; grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 28px; line-height: 1.2; }
  .hero-content p { font-size: 16px; }
  .hero-saving { font-size: 16px; }
  .btn-primary, .btn-secondary { font-size: 15px; padding: 16px 20px; width: 100%; }

  .reviews { padding: 40px 0; }
  .reviews-title { font-size: 24px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .review-card { padding: 16px; }
  .reviewer-name { font-size: 15px; }
  .review-text { font-size: 14px; }

  .valores-section-wrap { padding: 16px 16px 0; }
  .valores { padding: 16px 0; }
  .valores-title { font-size: 26px; }
  .valores-text { font-size: 16px; }

  .producto-block { width: 280px; padding: 32px 20px; }
  .producto-title { font-size: 20px; }
  .producto-list li { font-size: 15px; }
  .producto-btn { font-size: 12px; padding: 16px 16px; }

  .banks-marquee-wrapper { margin: 24px 0 16px; }
  .bank-item { width: 140px; height: 70px; }
  .bank-logo-img { width: 90px; height: 32px; }

  .faq { padding: 0 0 60px; }
  .faq-title { font-size: clamp(26px, 7vw, 38px); }
  .faq-question { font-size: 16px; padding: 16px 0; }
  .faq-answer p { font-size: 15px; padding-bottom: 16px; }
  .faq-list { max-width: 100%; }

  .footer { padding: 48px 0 0; }
  .footer-top { gap: 32px; padding-bottom: 32px; }
  .footer-tagline { font-size: 15px; }
  .footer-col h4 { font-size: 14px; margin-bottom: 12px; }
  .footer-col ul li, .footer-col ul a { font-size: 15px; }
  .footer-registro p { font-size: 14px !important; }
  .footer-registro p:nth-child(3) { font-size: 22px !important; }
  .footer-bottom p { font-size: 13px; }
  .footer-legal a { font-size: 12px; }
  .footer-legal { gap: 10px; }

  /* Blog mobile small */
  .blog-hero { padding: 90px 12px 32px; }
  .blog-tag { font-size: 13px; padding: 5px 14px; }
  .blog-h1 { font-size: 24px; }
  .blog-meta { font-size: 15px; }
  .blog-article { padding: 28px 16px 48px; }
  .blog-intro { font-size: 17px; padding-left: 16px; }
  .blog-h2 { font-size: 22px; margin-top: 36px; }
  .blog-text { font-size: 16px; }
  .blog-list li { font-size: 16px; }
  .blog-feature { padding: 16px; font-size: 16px; }
  .blog-cta { padding: 28px 16px; margin: 32px 0; }
  .blog-cta-title { font-size: 22px; }
  .blog-cta-sub { font-size: 15px; }
  .blog-cta-btn { font-size: 14px; padding: 16px 28px; }
  .blog-related-card { padding: 20px 16px; }
  .blog-related-card h3 { font-size: 17px; }

  /* WhatsApp button mobile */
  .whatsapp-float { bottom: 16px; right: 16px; }
  .whatsapp-label { display: none; }
  .whatsapp-icon { width: 48px; height: 48px; }
  .whatsapp-icon svg { width: 24px; height: 24px; }

  /* Nav dropdown */
  .nav-dropdown-menu { min-width: 200px; }
}

/* Ensure tap targets are at least 44px on mobile */
@media (max-width: 767px) {
  a, button, input, select, textarea { min-height: 44px; }
  input[type="text"], input[type="email"], input[type="tel"],
  input[type="number"], input[type="date"], select, textarea {
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
}

/* (removed: legacy max-height override no longer needed —
    .nav-mobile is now full-screen fixed overlay) */

/* ===== MOBILE HEADER FIX (≤768px) =====
   Layout: [DC Logo] --- [¡Te llamamos!][flag 24px][hamburger]
   The right group is tight with minimal spacing, all vertically centered. */
@media (max-width: 768px) {
  .nav-container {
    gap: 6px !important;
    padding: 0 12px !important;
    align-items: center !important;
  }

  /* Logo stays on the left, push the rest to the right as a tight group */
  .nav-container .nav-logo {
    margin-right: auto !important;
    margin-left: 0 !important;
  }

  /* "¡Te llamamos!" — slightly larger, still discreet */
  .nav-container .btn-nav {
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 8px 14px !important;
    border-radius: 7px !important;
    line-height: 1.2 !important;
    min-height: 0 !important;
    height: auto !important;
    align-self: center !important;
    order: 97 !important;
  }

  /* Language switcher — sits tight between te llamamos and hamburger */
  .nav-container .lang-switcher {
    margin: 0 !important;
    gap: 0 !important;
    align-self: center !important;
    order: 98 !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 28px !important;
  }

  /* Flag icon — 28×28 perfect circle */
  .nav-container .lang-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 0 !important;
    max-width: 28px !important;
    max-height: 28px !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 0 !important;
    font-size: 0 !important;
  }

  .nav-container .lang-btn img {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }

  /* Match desktop: hide the currently-active flag, show only the
     "switch to" flag. Must override the display: inline-flex above. */
  .nav-container .lang-btn.active { display: none !important; }

  /* Hamburger — far right, exact same height as flag for clean alignment */
  .nav-container .hamburger {
    margin: 0 !important;
    align-self: center !important;
    order: 99 !important;
    min-height: 0 !important;
    height: 28px !important;
    width: 32px !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .nav-container .hamburger span {
    width: 26px !important;
    height: 3px !important;
    display: block !important;
    background: var(--dark-2) !important;
  }

  /* Correct translateY for gap:6px + height:3px = 9px */
  .nav-container .hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg) !important; }
  .nav-container .hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg) !important; }
}

/* =========================================================
   ===== MOBILE EXPANDED NAV: groups + sub-items =====
   ========================================================= */
.mobile-group { padding: 0; margin-top: 2px; }
.mobile-group-title {
  display: block;
  padding: 8px 16px 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0,0,0,0.45);
  text-align: center;
}
.mobile-sub {
  list-style: none;
  margin: 0 0 2px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: center;
}
.mobile-sub li { margin: 0; }
.nav-mobile .mobile-sublink {
  display: block;
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--dark);
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  text-align: center;
}
.nav-mobile .mobile-sublink:hover,
.nav-mobile .mobile-sublink:active { background: rgba(201,151,58,0.12); color: var(--gold); }

/* Override the global 44px tap-target floor for menu items so the
   compact menu fits on screen and "Estudio gratuito" is visible
   without scrolling on most phones. */
.nav-mobile a,
.nav-mobile button { min-height: 0; }

/* Tighter spacing for the CTA button at the bottom so it's visible */
.nav-mobile .btn-mobile { margin-top: 12px; padding: 14px 18px; }

/* =========================================================
   ===== GLOBAL MOBILE AUDIT (≤768px) =====
   General fixes that apply across every page
   ========================================================= */
@media (max-width: 768px) {
  /* No horizontal scroll, anywhere */
  html, body { overflow-x: hidden; max-width: 100%; }

  /* Images respect their container */
  img, video, iframe, svg { max-width: 100%; height: auto; }

  /* Section padding floor */
  .container { padding-left: 16px; padding-right: 16px; }

  /* All clickable cards: centered text on mobile */
  .choice-card,
  .producto-block,
  .service-card,
  .blog-card,
  .blog-related-card,
  .colab-feature,
  .colab-who-item {
    text-align: center;
  }

  /* Choice cards center icon + text vertically */
  .choice-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  /* ===== FOOTER mobile cleanup ===== */
  .footer { padding: 48px 0 0; }
  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 32px;
    text-align: center;
    padding-bottom: 32px;
  }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-logo { justify-content: center; }
  .footer-tagline { text-align: center; max-width: 320px; margin: 0 auto; }
  .footer-social { justify-content: center; }
  .footer-nav { grid-template-columns: 1fr !important; gap: 28px; text-align: center; }
  .footer-col h4 { text-align: center; }
  .footer-col ul {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .footer-col ul a,
  .footer-col ul li {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center !important;
    text-align: center;
    gap: 12px;
    padding: 16px 0 24px;
  }
  .footer-legal {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
  .footer-legal a { min-height: 44px; display: inline-flex; align-items: center; }
  .footer-registro { text-align: center; }
  .footer-registro p { text-align: center; }
}

/* =========================================================
   ===== MOBILE SMALL (≤480px) — extra tightening =====
   ========================================================= */
@media (max-width: 480px) {
  .container { padding-left: 12px; padding-right: 12px; }

  /* Topbar tighter */
  .topbar { padding: 6px 12px; font-size: 13px; }

  /* Hero typography */
  section.hero { padding: 110px 14px 32px; }
  .hero-content h1 { font-size: clamp(26px, 7.2vw, 32px); }
  .hero-subtitle { font-size: 15px; }

  /* CTA buttons keep centered text */
  .btn-primary, .btn-secondary { width: 100%; text-align: center; justify-content: center; }
}

/* =========================================================
   ===== iPhone SE / 320px safety net =====
   ========================================================= */
@media (max-width: 360px) {
  .container { padding-left: 10px; padding-right: 10px; }
  .nav-container .btn-nav { font-size: 11px; padding: 5px 8px; }
  .nav-container { gap: 4px !important; padding: 0 8px !important; }
  .nav-container .hamburger span { width: 22px !important; height: 2.5px !important; }
  .hero-content h1 { font-size: 24px; line-height: 1.25; }
  .footer-tagline { font-size: 14px; }
}

/* =========================================================
   ===== COMPREHENSIVE RESPONSIVE AUDIT =====
   Per-breakpoint tweaks so the same design fits perfectly
   at every common viewport. Colors, fonts and content
   are never touched — only sizes / spacing / layout.
   ========================================================= */

/* ---------- Small laptop / large tablet landscape (≤1200px) ---------- */
@media (max-width: 1200px) {
  .container { padding-left: 24px; padding-right: 24px; }
  section.hero { padding: 150px 40px 80px; }
  .nav-container { padding: 0 24px; }
  .nav-links a { font-size: 12px; padding: 8px 8px; }
}

/* ---------- iPad landscape / iPad Pro portrait (≤1024px) ---------- */
@media (max-width: 1024px) {
  section.hero { padding: 140px 32px 70px; }
  .footer-top { gap: 56px; padding-bottom: 48px; }
  .producto-block { width: 320px; padding: 44px 32px; }
  .testimonials-grid { gap: 16px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* ---------- iPad portrait (≤834px) ---------- */
@media (max-width: 834px) {
  .blog-index-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .banks-grid { grid-template-columns: repeat(4, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- iPhone Pro Max / Large phone (≤568px) ---------- */
@media (max-width: 568px) {
  body { font-size: 15px; }
  .hero-content h1 { font-size: clamp(26px, 7vw, 32px); }
  .hero-subtitle { font-size: 15px; }
  .producto-block { width: calc(100vw - 32px) !important; max-width: 340px !important; }
  .reviews-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .producto-title { font-size: 19px; }
  .producto-list li { font-size: 14px; }
  .producto-btn { font-size: 12px; padding: 14px 16px; }
  .productos-header .section-title { font-size: clamp(22px, 6.5vw, 28px); }
  .productos-header .section-desc { font-size: 15px; }
}

/* ---------- iPhone standard (≤480px) refinements ---------- */
@media (max-width: 480px) {
  .nav-container .btn-nav { font-size: 12px !important; padding: 7px 12px !important; }
  .footer-bottom { padding: 14px 0 20px; }
  .producto-block { padding: 28px 20px !important; }
}

/* ---------- iPhone SE / Small phone (≤375px) ---------- */
@media (max-width: 375px) {
  body { font-size: 14px; }
  .container { padding-left: 12px; padding-right: 12px; }

  /* Header even tighter */
  .nav-container { padding: 0 10px !important; gap: 5px !important; }
  .nav-container .btn-nav { font-size: 11px !important; padding: 6px 9px !important; }
  .nav-container .lang-switcher { height: 22px !important; }
  .nav-container .lang-btn,
  .nav-container .lang-btn img {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
  }
  .nav-container .hamburger {
    height: 26px !important;
    width: 28px !important;
    gap: 5px !important;
  }
  .nav-container .hamburger span { width: 24px !important; height: 2.5px !important; background: var(--dark-2) !important; }

  /* Correct translateY for gap:5px + height:2.5px = 7.5px */
  .nav-container .hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg) !important; }
  .nav-container .hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg) !important; }
  .nav-logo-mobile { font-size: 24px; }

  /* Hero */
  .hero-content h1 { font-size: 23px !important; line-height: 1.25; }
  .hero-subtitle { font-size: 14px !important; }
  .hero-saving { font-size: 14px !important; }
  .btn-primary, .btn-secondary { font-size: 14px; padding: 14px 16px; }

  /* Section titles */
  .section-title { font-size: clamp(20px, 6.5vw, 26px); }
  .section-desc { font-size: 14px; }
  .productos-header .section-title { font-size: clamp(20px, 6.5vw, 26px); }
  .productos-header .section-desc { font-size: 14px; }

  /* Products */
  .producto-title { font-size: 18px; }
  .producto-list li { font-size: 13px; line-height: 1.55; }
  .producto-btn { font-size: 11px; padding: 13px 14px; }

  /* FAQ */
  .faq-question { font-size: 15px; padding: 14px 0; }
  .faq-answer p { font-size: 14px; padding-bottom: 14px; }

  /* Reviews */
  .review-card { padding: 14px; }
  .reviewer-name { font-size: 14px; }
  .review-text { font-size: 13px; }

  /* Footer */
  .footer { padding: 36px 0 0; }
  .footer-tagline { font-size: 13px; }
  .footer-col h4 { font-size: 12px; margin-bottom: 10px; }
  .footer-col ul li, .footer-col ul a { font-size: 14px; }
  .footer-registro p { font-size: 13px !important; }
  .footer-registro p:nth-child(3) { font-size: 20px !important; }
  .footer-bottom p { font-size: 12px; }
  .footer-legal a { font-size: 11px; }
  .footer-legal { gap: 8px; }

  /* Mobile menu items slightly tighter */
  .nav-mobile a { font-size: 14px; padding: 8px 14px; }
  .nav-mobile .mobile-sublink { font-size: 13px; padding: 6px 12px; }
  .nav-mobile .btn-mobile { font-size: 14px; padding: 12px 16px; }

  /* WhatsApp float */
  .whatsapp-float { bottom: 12px; right: 12px; }
  .whatsapp-icon { width: 44px; height: 44px; }
  .whatsapp-icon svg { width: 22px; height: 22px; }

  /* Mobile carousel arrows: smaller circle on tiny screens */
  .productos-arrow { width: 36px; height: 36px; }
}

/* ---------- Reduce header height on tiny screens so menu fits ---------- */
@media (max-width: 375px) {
  .nav-container { height: 56px !important; }
  .topbar { top: 56px; }
  .nav-mobile.open {
    min-height: calc(100vh - 56px);
    max-height: calc(100vh - 56px);
  }
}

/* =========================================================
   ===== FORM LEFT-PANEL BANKS MARQUEE =====
   Compact version that fits the narrow 35% left panel.
   ========================================================= */
.left-banks-marquee {
  margin-top: 16px;
  width: 100%;
}

/* Override the wrapper mask/margin inside the form's left panel */
.left-banks-marquee .banks-marquee-wrapper {
  overflow: hidden;
  margin: 12px 0 0;
  -webkit-mask-image: none;
  mask-image: none;
}

/* Force the marquee to animate inside the narrow left panel */
.left-banks-marquee .banks-marquee {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.left-banks-marquee .bank-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
}

.left-banks-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #111111;
  margin-bottom: 8px;
  text-align: center;
}

.left-banks-marquee .bank-item {
  width: 155px;
  height: 72px;
  border-radius: 8px;
}

.left-banks-marquee .bank-logo-img {
  width: 110px;
  height: 40px;
}

.left-banks-marquee .banks-track {
  gap: 14px;
  padding-right: 14px;
}

/* =========================================================
   ===== FORM LEFT-PANEL SAVINGS TEXT =====
   ========================================================= */
.left-savings-text {
  font-family: 'Kaushan Script', cursive;
  font-size: 1.5rem;
  font-weight: 400;
  color: #C9973A;
  text-align: center;
  margin: 14px 0 0;
  line-height: 1.35;
  -webkit-text-stroke: 0.8px #C9973A;
  text-stroke: 0.8px #C9973A;
}

/* =========================================================
   ===== FORM HERO SECTION (celebration banner) =====
   Title ABOVE the photo, photo BELOW the form.
   Shown on the first step only — hidden by JS on step 2+.
   ========================================================= */
.form-hero-section {
  text-align: center;
  padding: 0 0 10px;
  width: 100%;
  max-width: 100%;
  margin: 27px auto 0;
  box-sizing: border-box;
}

.form-hero-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  font-style: italic;
  color: #C9973A;
  text-align: center;
  padding: 0 24px 8px;
  margin: -18px 0 0;
  line-height: 1.3;
  position: relative;
  display: inline-block;
  width: 100%;
}

.form-hero-arrow {
  display: inline-block;
  width: 36px;
  height: auto;
  vertical-align: middle;
  margin-left: 4px;
  margin-bottom: -12px;
}

.form-hero-photo {
  width: 60%;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.form-hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .form-hero-section {
    padding: 12px 0 16px;
    max-width: 100%;
  }
  .form-hero-photo {
    width: 70%;
  }
  .form-hero-photo img {
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .form-hero-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .form-hero-title {
    font-size: 1.2rem;
  }
  .form-hero-photo {
    width: 75%;
  }
}
