/* ==========================================================================
   HAPPY CAPITAL RD - Corporate Design System (Light Body with Key Dark Blocks)
   Theme: Clean White, Deep Dark Slate (#091322), Brand Green #35951e
   ========================================================================== */

:root {
  /* Backgrounds */
  --bg-page: #ffffff;
  --bg-surface: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-dark-section: #091322;
  --bg-dark-card: #111d30;
  --bg-dark-card-hover: #16253d;
  
  /* Borders */
  --border-light: #e2e8f0;
  --border-dark-section: rgba(255, 255, 255, 0.08);
  
  /* Primary & Accents — Brand Green #35951e */
  --primary: #35951e;
  --primary-hover: #2a7818;
  --primary-light: #edf7ea;
  --primary-glow: rgba(53, 149, 30, 0.22);
  --primary-neon: #4ec832;
  
  --secondary: #0f172a;
  --secondary-hover: #1e293b;
  
  --accent-blue: #0284c7;
  --accent-blue-light: #e0f2fe;
  
  /* Text */
  --text-main: #0f172a;
  --text-heading: #091322;
  --text-muted: #64748b;
  --text-light: #334155;
  --text-white: #ffffff;
  --text-dark-muted: #94a3b8;
  
  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 35px rgba(15, 23, 42, 0.08);
  --shadow-dark: 0 15px 35px rgba(0, 0, 0, 0.35);
  
  /* Fonts — Baloo 2 for headings/brand, Plus Jakarta Sans for body */
  --font-heading: 'Baloo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  position: relative;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Ambient Subtle Highlights */
.ambient-glow-1 {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 179, 119, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Typography & Layout */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-heading);
}

p {
  color: var(--text-muted);
  font-size: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.section-title-wrap {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3rem auto;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: var(--primary-light);
  border: 1px solid rgba(0, 179, 119, 0.2);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.badge-tag.badge-dark {
  background: rgba(0, 229, 153, 0.12);
  border-color: rgba(0, 229, 153, 0.25);
  color: var(--primary-neon);
}

.section-title {
  font-size: 2.3rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
  color: var(--text-heading);
}

.section-title.text-white {
  color: #ffffff;
}

.section-subtitle-single-line {
  white-space: nowrap;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.section-subtitle-single-line.text-dark-muted {
  color: var(--text-dark-muted);
}

@media (max-width: 900px) {
  .section-subtitle-single-line {
    white-space: normal;
  }
}

.text-gradient {
  color: var(--primary);
}

/* ==========================================================================
   Buttons - Compact & Elegant
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 3px 12px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 179, 119, 0.28);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background: #1eb957;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   Header & Sticky Navigation (Fixed to Top on Scroll with Entry Animation)
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: var(--transition-fast);
  animation: headerEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes headerEntrance {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon-wrapper {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-icon-img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.brand-icon-svg {
  width: 100%;
  height: 100%;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}

.brand-title .highlight {
  color: var(--primary);
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-light);
  position: relative;
  padding: 0.3rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-heading);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.4rem;
}

/* Hidden on desktop — only visible inside mobile hamburger menu */
.nav-solicitar-mobile {
  display: none;
}

/* ==========================================================================
   Hero Section with Dynamic Entry Animations
   ========================================================================== */

.hero-section {
  padding: 4.5rem 0 5rem 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge-anim {
  animation: fadeInDown 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero-title-anim {
  font-size: 3.1rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
  color: var(--text-heading);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-desc-anim {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 540px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

.hero-btn-group-anim {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.hero-visual-anim {
  position: relative;
  z-index: 2;
  animation: fadeInRight 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  background: #ffffff;
}

.hero-image-card img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.floating-badge {
  position: absolute;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.1rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3;
}

.floating-badge.badge-top-left {
  top: -15px;
  left: -15px;
  animation: scaleIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both, floatAnim 4s ease-in-out infinite 1.5s;
}

.floating-badge.badge-bottom-right {
  bottom: -15px;
  right: -15px;
  animation: scaleIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.95s both, floatAnim 4s ease-in-out infinite 2.5s;
}

.badge-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.badge-info h4 {
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}

.badge-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@keyframes floatAnim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ==========================================================================
   Scroll Reveal Animation Keyframes & Utility Classes
   ========================================================================== */

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(32px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-36px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(36px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Scroll Trigger Classes */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0;
  transition: all 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal {
  transform: translateY(35px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-scale {
  transform: scale(0.94) translateY(20px);
}

.reveal-stagger {
  opacity: 1;
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Active State when in Viewport */
.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible,
.reveal-stagger.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Progressive Stagger Delays */
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.18s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.28s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.38s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.48s; }

/* ==========================================================================
   Stats Bar
   ========================================================================== */

.stats-section {
  padding: 2.5rem 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 1.2rem 0.8rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

.stat-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  background: var(--primary-light);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-light);
  font-weight: 600;
}

/* ==========================================================================
   Services & Loan Types Section (Clean Light Standalone Block)
   ========================================================================== */

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

.service-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

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

.service-card.featured {
  border-color: rgba(0, 179, 119, 0.4);
  background: #ffffff;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(0, 179, 119, 0.15);
}

.service-badge-popular {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(0, 179, 119, 0.25);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.service-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.3rem;
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.3rem;
}

.service-features {
  margin-bottom: 1.8rem;
  flex-grow: 1;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.55rem;
}

.service-features li i, .service-features li .check-icon {
  color: var(--primary);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.service-card-footer {
  display: flex;
  gap: 0.6rem;
}

/* ==========================================================================
   BLOCK 1 (DARK): Crecimiento Empresarial PYMES (Full Width Dark Section)
   ========================================================================== */

.section-dark {
  background: var(--bg-dark-section);
  color: var(--text-white);
  border-top: 1px solid var(--border-dark-section);
  border-bottom: 1px solid var(--border-dark-section);
}

.pymes-dark-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark-section);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  box-shadow: var(--shadow-dark);
  transition: var(--transition-fast);
}

.pymes-dark-card:hover {
  border-color: rgba(0, 229, 153, 0.3);
}

.pymes-dark-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pymes-dark-content h3 {
  color: #ffffff;
  font-size: 1.9rem;
  margin-bottom: 1rem;
}

.pymes-dark-content p {
  color: var(--text-dark-muted);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.pymes-dark-features {
  margin-bottom: 2rem;
}

.pymes-dark-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: #cbd5e1;
  margin-bottom: 0.6rem;
}

.pymes-dark-features li i {
  color: var(--primary-neon);
}

.pymes-dark-image {
  height: 100%;
  min-height: 300px;
}

.pymes-dark-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   BLOCK 2 (DARK): Paso a Paso ("¿Cómo Funciona?")
   ========================================================================== */

.process-dark-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step-card-dark {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark-section);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.4rem;
  text-align: center;
  position: relative;
  transition: var(--transition-fast);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.step-card-dark:hover {
  transform: translateY(-5px);
  border-color: var(--primary-neon);
  background: var(--bg-dark-card-hover);
}

.step-number-badge-dark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 229, 153, 0.15);
  border: 1px solid rgba(0, 229, 153, 0.3);
  color: var(--primary-neon);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem auto;
}

.step-icon-wrap-dark {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(0, 229, 153, 0.1);
  border: 1px solid rgba(0, 229, 153, 0.2);
  color: var(--primary-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 1.2rem auto;
  transition: var(--transition-fast);
}

.step-card-dark:hover .step-icon-wrap-dark {
  background: var(--primary-neon);
  color: #091322;
  box-shadow: 0 0 15px rgba(0, 229, 153, 0.4);
}

.step-title-dark {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.step-desc-dark {
  font-size: 0.88rem;
  color: var(--text-dark-muted);
  line-height: 1.5;
}

/* ==========================================================================
   BLOCK 3 (DARK): Testimonios Reales (Dark Background Section)
   ========================================================================== */

.testimonials-dark-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card-dark {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark-section);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-fast);
}

.testimonial-card-dark:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 229, 153, 0.4);
  background: var(--bg-dark-card-hover);
}

.testimonial-stars-dark {
  color: #fbbf24;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.testimonial-text-dark {
  font-size: 0.92rem;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testimonial-author-dark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar-dark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 229, 153, 0.15);
  border: 1px solid rgba(0, 229, 153, 0.3);
  color: var(--primary-neon);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.author-info-dark h4 {
  font-size: 0.95rem;
  color: #ffffff;
}

.author-info-dark p {
  font-size: 0.78rem;
  color: var(--text-dark-muted);
}

/* ==========================================================================
   Loan Calculator Section - Compact & Monthly Variable Rate
   ========================================================================== */

.calc-section {
  background: var(--bg-surface);
}

.calc-card-container {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  max-width: 1060px;
  margin: 0 auto;
}

.calc-controls-panel {
  padding: 2.2rem 2.4rem;
  border-right: 1px solid var(--border-light);
}

.calc-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.6rem;
  background: var(--bg-surface);
  padding: 0.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.calc-tab-btn {
  flex: 1;
  padding: 0.45rem 0.6rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.calc-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-xs);
}

.calc-group {
  margin-bottom: 1.4rem;
}

.calc-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.calc-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-light);
}

.calc-value-display {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.15rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 179, 119, 0.2);
}

/* Sliders */
.range-slider-wrap {
  position: relative;
  margin-bottom: 0.4rem;
}

.custom-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0, 179, 119, 0.5);
  border: 2px solid #ffffff;
}

.slider-limits {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.preset-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.preset-chip {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.preset-chip:hover, .preset-chip.active {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
}

.frequency-switch {
  display: flex;
  gap: 0.8rem;
}

.frequency-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.frequency-option input[type="radio"] {
  accent-color: var(--primary);
}

.frequency-option.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

/* Calculator Result Panel */
.calc-result-panel {
  background: #0f172a;
  color: #ffffff;
  padding: 2.2rem 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-result-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.calc-result-header p {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 0.3rem;
}

.calc-monthly-payment {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: #00e599;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.calc-payment-sub {
  font-size: 0.82rem;
  color: #cbd5e1;
}

.calc-breakdown-list {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.86rem;
}

.breakdown-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
  font-weight: 700;
  color: #ffffff;
}

.breakdown-row span:first-child {
  color: #94a3b8;
}

.calc-progress-wrap {
  margin-bottom: 0.5rem;
}

.calc-progress-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  margin-bottom: 0.4rem;
}

.progress-principal {
  background: #00e599;
  height: 100%;
  transition: width 0.25s ease;
}

.progress-interest {
  background: #38bdf8;
  height: 100%;
  transition: width 0.25s ease;
}

.calc-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #94a3b8;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.legend-dot.dot-principal { background: #00e599; }
.legend-dot.dot-interest { background: #38bdf8; }

/* ==========================================================================
   Contact Section ("Habla con un Especialista")
   ========================================================================== */

.contact-section {
  background: var(--bg-surface);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: flex-start;
}

.contact-channels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-channel-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-xs);
}

.contact-channel-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.channel-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.channel-title {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.channel-detail {
  font-size: 0.88rem;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.channel-status {
  font-size: 0.72rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.office-info-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
}

.office-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.office-info-item:last-child {
  margin-bottom: 0;
}

.office-icon {
  font-size: 1.15rem;
  color: var(--primary);
  margin-top: 0.2rem;
}

.office-item-content h5 {
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.office-item-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
}

.form-title {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.form-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.95rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-heading);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 179, 119, 0.12);
}

textarea.form-control {
  min-height: 85px;
  resize: vertical;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 0.8rem;
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item.active {
  border-color: var(--primary);
}

.faq-question {
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
}

.faq-toggle-icon {
  font-size: 1rem;
  color: var(--primary);
  transition: transform 0.25s ease;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.2rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   Floating WhatsApp Widget
   ========================================================================== */

.floating-whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 54px;
  height: 54px;
  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  z-index: 999;
  transition: all var(--transition-fast);
}

.floating-whatsapp-btn:hover {
  transform: scale(1.08);
}

.whatsapp-popup {
  position: fixed;
  bottom: 90px;
  right: 25px;
  width: 300px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: none;
  overflow: hidden;
}

.whatsapp-popup.show {
  display: block;
}

.whatsapp-popup-header {
  background: #0f172a;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.whatsapp-popup-body {
  padding: 1.1rem;
  font-size: 0.88rem;
}

/* ==========================================================================
   Footer & Separated Legal Notice
   ========================================================================== */

.footer {
  background: #091322;
  color: #94a3b8;
  padding: 4rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  font-size: 0.88rem;
  margin: 1rem 0;
  max-width: 300px;
}

.footer-heading {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: #00e599;
  padding-left: 2px;
}

.footer-social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.social-btn:hover {
  background: #00e599;
  color: #091322;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.legal-notice-section {
  background: #050b14;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.2rem 0;
  text-align: center;
}

.disclaimer-text {
  font-size: 0.78rem;
  color: #64748b;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-title-anim {
    font-size: 2.6rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .calc-card-container {
    grid-template-columns: 1fr;
  }
  
  .calc-controls-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
  
  .pymes-dark-card {
    grid-template-columns: 1fr;
  }
  
  .process-dark-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonials-dark-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-container {
    height: 64px;
  }

  /* Hide CTA button from header on mobile — it moves inside the hamburger menu */
  .header-actions .btn-primary {
    display: none;
  }
  
  .nav-menu {
    position: fixed;
    top: 64px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 64px);
    background: #ffffff;
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.2rem;
    transition: left 0.3s ease;
    align-items: flex-start;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    overflow-y: auto;
  }

  /* CTA button inside the mobile menu */
  .nav-menu .nav-solicitar-mobile {
    display: flex !important;
    width: 100%;
    margin-top: 0.5rem;
  }

  .nav-menu .nav-solicitar-mobile .btn-primary {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
  }
  
  .nav-menu.open {
    left: 0;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .hero-title-anim {
    font-size: 2.1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .calc-controls-panel, .calc-result-panel {
    padding: 1.5rem;
  }
  
  .process-dark-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-channels-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form-card {
    padding: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
  
  .floating-badge {
    position: static;
    margin-top: 0.8rem;
    animation: none;
  }

  /* Crecimiento Empresarial — fix text overflow and alignment on mobile */
  .pymes-dark-card {
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .pymes-dark-content {
    padding: 2rem 1.25rem;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
  }

  .pymes-dark-content h3 {
    font-size: 1.5rem;
    text-align: center;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .pymes-dark-content p {
    text-align: left;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .pymes-dark-features li {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .pymes-dark-image {
    min-height: 220px;
    height: 220px;
  }
}
