/* ============================================================
   HIPOTECA EXPRESS — Design System
   Colores extraídos del PDF original:
   - Naranja primario: #F67300
   - Gris oscuro:      #424B50
   - Azul acento:      #0D9EFF
   ============================================================ */

:root {
  /* Brand */
  --orange: #F67300;
  --orange-600: #E06700;
  --orange-700: #C75A00;
  --orange-50: #FFF3E8;
  --orange-100: #FFE4CC;

  --blue: #0D9EFF;
  --blue-50: #E6F4FF;

  /* Neutrals */
  --ink: #15191D;
  --slate-900: #1A1F23;
  --slate-700: #424B50;
  --slate-500: #6B7378;
  --slate-300: #C8CDD1;
  --slate-200: #E2E5E8;
  --slate-100: #EEF0F2;
  --slate-50:  #F7F8FA;
  --white: #FFFFFF;

  --success: #10B981;

  /* Type */
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Radii & shadow */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(20,25,30,.06), 0 1px 1px rgba(20,25,30,.04);
  --shadow-md: 0 8px 24px rgba(20,25,30,.08), 0 2px 6px rgba(20,25,30,.05);
  --shadow-lg: 0 24px 60px rgba(20,25,30,.12), 0 8px 16px rgba(20,25,30,.06);
  --shadow-orange: 0 10px 28px rgba(246,115,0,.30);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px; /* compensa el header sticky de 76px al navegar por anclas */
  overflow-x: clip;          /* red de seguridad anti scroll horizontal (no rompe position:sticky) */
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word; /* evita que emails/palabras largas desborden */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font: inherit; color: inherit; }

/* Foco de teclado accesible global (WCAG 2.4.7) */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--slate-900);
  margin: 0;
  text-wrap: balance;
}
.h-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.h-eyebrow::before {
  content: "";
  width: 24px; height: 2px;
  background: currentColor;
  display: inline-block;
}
h1, .h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 800;
  line-height: 1.05;
}
h2, .h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.1;
}
h3, .h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}
.lead {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--slate-700);
  line-height: 1.55;
  text-wrap: pretty;
}
.muted { color: var(--slate-500); }
.text-orange { color: var(--orange); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover { background: var(--orange-600); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--slate-900);
  border-color: var(--slate-200);
}
.btn-ghost:hover { border-color: var(--slate-900); }
.btn-dark {
  background: var(--slate-900);
  color: var(--white);
}
.btn-dark:hover { background: var(--ink); transform: translateY(-1px); }
.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}
.btn-whatsapp:hover { background: #1DB954; }
.btn-lg { padding: 17px 28px; font-size: 16px; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn:active { transform: translateY(0) scale(.985); }
.btn:disabled, .btn[disabled] {
  opacity: .6;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
  transform: none;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--slate-100);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--slate-900);
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 6px 18px rgba(246,115,0,.32);
}
.logo small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--slate-500);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 2px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav a {
  padding: 9px 11px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 14px;
  color: var(--slate-700);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--slate-50); color: var(--slate-900); }
.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--slate-900);
  font-size: 14px;
  white-space: nowrap;
  transition: color .15s;
}
.header-phone:hover { color: var(--orange); }

/* Botón hamburguesa (solo móvil) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  color: var(--slate-900);
  background: var(--slate-50);
}
.nav-toggle:hover { background: var(--slate-100); }

/* El teléfono solo cabe holgado en pantallas anchas; por debajo de 1200px se
   oculta del header (sigue disponible en el pie y en la sección de contacto),
   dejando sitio para que el menú quepa en una sola fila hasta ~1040px */
@media (max-width: 1200px) {
  .header-phone { display: none; }
}
/* Por debajo de ~1040px no caben logo + 6 enlaces + CTA en una fila:
   se colapsa a menú hamburguesa en vez de amontonar el texto */
@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  /* El menú pasa a panel desplegable bajo el header */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: rgba(255,255,255,.98);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--slate-100);
    box-shadow: var(--shadow-md);
    padding: 12px var(--gutter);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 16px; }
}
@media (max-width: 420px) {
  .logo { font-size: 16px; }
  .logo-mark { width: 32px; height: 32px; }
  .header-row { gap: 8px; }
  .header-cta { gap: 6px; }
  .header-cta .btn-sm { padding: 9px 12px; }
  .nav-toggle { width: 40px; height: 40px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 56px 0 96px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: var(--r-pill);
  background: var(--orange-50);
  color: var(--orange-700);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 22px; height: 22px;
  background: var(--orange);
  border-radius: 50%;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.hero h1 strong {
  color: var(--orange);
  font-weight: 800;
}
.hero-sub {
  margin-top: 20px;
  font-size: clamp(17px, 1.3vw, 19px);
  color: var(--slate-700);
  max-width: 540px;
  text-wrap: pretty;
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-trust {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.hero-trust-stat {
  display: flex;
  flex-direction: column;
  padding-right: 22px;
  border-right: 1px solid var(--slate-200);
}
.hero-trust-stat:last-child { border-right: none; }
.hero-trust-stat b {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}
.hero-trust-stat span {
  font-size: 12px;
  color: var(--slate-500);
  font-weight: 600;
}

/* Form field utilities (used by calculator) */
.field { margin-bottom: 18px; }
.field-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 8px;
}
.field-label .value {
  color: var(--orange);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.field-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--slate-100);
  outline: none;
  margin: 6px 0 4px;
}
.field-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(246,115,0,.4);
  border: 3px solid white;
  transition: transform .1s;
}
.field-slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
.field-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 4px 10px rgba(246,115,0,.4);
}
.field-slider:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(246,115,0,.35);
}
.field-range-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--slate-500);
  margin-top: 2px;
}

/* Hero right: photo-driven visual composition */
.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  min-height: 480px;
}
.hero-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  background: var(--slate-900);
  box-shadow:
    0 50px 100px -20px rgba(20,25,30,.25),
    0 30px 60px -30px rgba(246,115,0,.18);
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  z-index: 0;
  animation: heroPhotoZoom 24s ease-in-out infinite alternate;
}
@keyframes heroPhotoZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
.hero-photo-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,25,30,0) 55%, rgba(20,25,30,.35) 100%),
    linear-gradient(270deg, rgba(246,115,0,0) 65%, rgba(20,25,30,.20) 100%);
  z-index: 1;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo { animation: none !important; }
  .hero-badge { animation: none !important; }
}

/* Floating badges */
.hero-badge {
  position: absolute;
  background: white;
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow:
    0 24px 48px rgba(20,25,30,.22),
    0 6px 14px rgba(20,25,30,.10),
    0 0 0 1px rgba(20,25,30,.04) inset;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: heroBadgeFloat 7s ease-in-out infinite;
}
.hero-badge-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-badge-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--slate-900);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.hero-badge-unit {
  font-size: 12px;
  color: var(--slate-500);
  font-weight: 600;
}
.hero-badge-label {
  font-size: 11px;
  color: var(--slate-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.hero-badge-rating {
  top: 7%; left: -20px;
  animation-delay: 0s;
}
.hero-badge-saving {
  bottom: 9%; right: -22px;
  animation-delay: -2.2s;
}
.hero-badge-banks {
  top: 52%; left: -26px;
  animation-delay: -4s;
}
.hero-badge-banks-stack {
  display: flex;
  margin-right: 4px;
}
.bank-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  margin-left: -8px;
}
.bank-dot:first-child { margin-left: 0; }

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

@media (max-width: 1100px) {
  .hero-badge-rating { left: 0; }
  .hero-badge-saving { right: 0; }
  .hero-badge-banks { left: 0; }
}
@media (max-width: 940px) {
  /* minmax(0,1fr) permite que la pista se encoja por debajo de su min-content */
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  /* min-height:0 evita que aspect-ratio fuerce un ancho mínimo > viewport (recorte del hero en móvil) */
  .hero-visual {
    aspect-ratio: 16 / 10;
    min-height: 0;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  padding: 36px 0;
  background: var(--slate-50);
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
}
.trust-row {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.trust-label {
  font-size: 13px;
  color: var(--slate-500);
  font-weight: 600;
  letter-spacing: 0.04em;
  max-width: 180px;
  line-height: 1.4;
}
.trust-logos {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: center;
}
.trust-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--slate-500);
  letter-spacing: -0.01em;
  opacity: 0.7;
  transition: opacity .2s;
}
.trust-logo:hover { opacity: 1; color: var(--slate-900); }
.trust-logo.italic { font-style: italic; }

@media (max-width: 720px) {
  .trust-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .trust-logos { justify-content: flex-start; gap: 24px 28px; }
}

/* ============================================================
   FEATURES (Por qué nosotros)
   ============================================================ */
.section { padding: 96px 0; }
.section-narrow { padding: 80px 0; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head.left { text-align: left; margin: 0 0 48px; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange-100);
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--orange-50);
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--slate-700); font-size: 15px; line-height: 1.55; margin: 0; }

@media (max-width: 880px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
}

/* ============================================================
   PRODUCT CARDS (Tipos de hipoteca)
   ============================================================ */
.products-section { background: var(--slate-50); }
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 28px;
  border: 1px solid var(--slate-100);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-badge {
  position: absolute;
  top: 18px; right: 18px;
  background: var(--orange);
  color: white;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.product-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--slate-900);
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.product h3 { font-size: 18px; }
.product p {
  font-size: 14px;
  color: var(--slate-700);
  flex: 1;
  margin: 0;
}
.product-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .15s;
}
.product:hover .product-link { gap: 8px; }

@media (max-width: 940px) {
  .products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .products { grid-template-columns: 1fr; }
}

/* ============================================================
   PROCESS (Cómo funciona)
   ============================================================ */
.process-section {
  background: var(--slate-900);
  color: white;
  position: relative;
  overflow: hidden;
}
.process-section h2 { color: white; }
.process-section .lead { color: var(--slate-300); }
.process-section .h-eyebrow { color: var(--orange); }

.process-section::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--orange) 0%, transparent 65%);
  opacity: 0.18;
  pointer-events: none;
}
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  margin-top: 56px;
}
.process-step {
  position: relative;
}
.process-step-num {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  letter-spacing: -0.04em;
  opacity: 0.65;
}
.process-step h3 {
  color: white;
  font-size: 20px;
  margin: 12px 0 8px;
}
.process-step p {
  color: var(--slate-300);
  font-size: 14px;
  margin: 0;
  line-height: 1.55;
}
.process-step::after {
  content: "";
  position: absolute;
  top: 32px;
  right: -16px;
  width: 24px;
  height: 1px;
  border-top: 1.5px dashed rgba(246,115,0,.4);
}
.process-step:last-child::after { display: none; }

@media (max-width: 940px) {
  .process { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2)::after { display: none; }
}
@media (max-width: 540px) {
  .process { grid-template-columns: 1fr; }
  .process-step::after { display: none; }
}

/* ============================================================
   IMPACT / STATS BAND
   ============================================================ */
.impact {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
.impact-illust {
  position: relative;
  border-radius: var(--r-xl);
  aspect-ratio: 0.85;
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(20,25,30,.30),
    0 10px 30px -10px rgba(246,115,0,.15);
}
.impact-illust img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: 0;
}
.impact-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.impact-stat {
  border-left: 3px solid var(--orange);
  padding: 12px 0 12px 18px;
}
.impact-stat b {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  display: block;
}
.impact-stat span {
  font-size: 13px;
  color: var(--slate-500);
  font-weight: 600;
}
@media (max-width: 940px) {
  .impact { grid-template-columns: 1fr; }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { background: var(--slate-50); }
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 28px;
  border: 1px solid var(--slate-100);
  display: flex;
  flex-direction: column;
}
.testimonial-stars {
  color: var(--orange);
  letter-spacing: 1px;
  margin-bottom: 14px;
  font-size: 15px;
}
.testimonial-text {
  font-size: 15px;
  color: var(--slate-700);
  line-height: 1.6;
  flex: 1;
  margin: 0 0 20px;
  text-wrap: pretty;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--orange-100);
  color: var(--orange-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}
.testimonial-author b {
  display: block;
  color: var(--slate-900);
  font-size: 14px;
}
.testimonial-author span {
  font-size: 12px;
  color: var(--slate-500);
}
@media (max-width: 940px) { .testimonials { grid-template-columns: 1fr; } }

/* ============================================================
   CALCULATOR (versión completa)
   ============================================================ */
.calc-section { background: var(--white); }
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  background: var(--slate-50);
  border-radius: var(--r-xl);
  padding: 40px;
  border: 1px solid var(--slate-100);
}
.calc-left h3 { font-size: 24px; margin-bottom: 8px; }
.calc-left p.muted { font-size: 14px; margin-bottom: 24px; }
.calc-controls > * + * { margin-top: 18px; }

.calc-right {
  background: var(--slate-900);
  color: white;
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.calc-right::before {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 240px; height: 240px;
  background: radial-gradient(circle, var(--orange) 0%, transparent 65%);
  opacity: 0.25;
}
.calc-right > * { position: relative; z-index: 1; }
.calc-right-eyebrow {
  font-size: 12px;
  color: var(--slate-300);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 10px;
}
.calc-monthly {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 64px);
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.calc-monthly small {
  font-size: 18px;
  color: var(--slate-300);
  font-weight: 600;
  margin-left: 4px;
}
.calc-summary {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.calc-summary-item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.calc-summary-item span {
  display: block;
  font-size: 12px;
  color: var(--slate-300);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 4px;
}
.calc-summary-item b {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: white;
  font-variant-numeric: tabular-nums;
}
.calc-cta {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.calc-cta .btn { flex: 1; min-width: 160px; }

@media (max-width: 940px) {
  .calc-grid { grid-template-columns: 1fr; padding: 24px; }
}
@media (max-width: 540px) {
  .calc-summary { grid-template-columns: 1fr; }
  .calc-cta .btn { min-width: 0; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 840px;
  margin: 0 auto;
}
.faq-item {
  background: var(--white);
  border: 1.5px solid var(--slate-100);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item[open] {
  border-color: var(--orange-100);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  font-size: 16px;
  color: var(--slate-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 24px;
  color: var(--orange);
  font-weight: 400;
  transition: transform .2s;
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--orange-50);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-body {
  padding: 0 24px 22px;
  color: var(--slate-700);
  font-size: 15px;
  line-height: 1.65;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-section {
  background: var(--slate-900);
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  top: -150px; left: 30%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--orange) 0%, transparent 60%);
  opacity: 0.18;
  pointer-events: none;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.cta-grid h2 { color: white; }
.cta-grid .lead { color: var(--slate-300); max-width: 480px; }
.cta-grid .h-eyebrow { color: var(--orange); }

.contact-form {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-xl);
  padding: 32px;
  backdrop-filter: blur(10px);
}
.contact-form h3 { color: white; font-size: 20px; margin-bottom: 4px; }
.contact-form p { color: var(--slate-300); font-size: 14px; margin: 0 0 22px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.form-input {
  width: 100%;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.12);
  color: white;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 15px;
  transition: border-color .15s, background .15s;
}
.form-input::placeholder { color: var(--slate-300); }
.form-input:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255,255,255,.12);
}
.form-input.full { grid-column: 1 / -1; }
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23F67300' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
/* Las opciones del desplegable van en texto oscuro sobre blanco (el desplegable
   nativo del navegador es blanco; sin esto el texto blanco quedaba invisible) */
.form-input option {
  color: var(--slate-900);
  background: #ffffff;
}
.form-input option[value=""] { color: var(--slate-500); }
.form-check {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--slate-300);
  margin: 16px 0;
  line-height: 1.5;
}
.form-check a { color: var(--orange); text-decoration: underline; }
.form-submit { width: 100%; }

@media (max-width: 940px) {
  .cta-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--slate-300);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col h4 {
  font-size: 13px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-col ul {
  list-style: none;
  padding: 0; margin: 0;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--slate-300);
  font-size: 14px;
  transition: color .15s;
}
.footer-col a:hover { color: var(--orange); }
.footer-about p {
  font-size: 14px;
  color: var(--slate-300);
  line-height: 1.6;
  margin: 16px 0;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.footer-social a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-300);
  transition: background .15s, color .15s;
}
.footer-social a:hover { background: var(--orange); color: white; }

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--slate-300);
}
.footer-bottom a { color: var(--slate-300); margin-left: 16px; text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--orange); }

@media (max-width: 940px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.fab-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,.4), 0 4px 12px rgba(0,0,0,.2);
  z-index: 100;
  transition: transform .2s;
}
.fab-whatsapp:hover { transform: scale(1.08); }
.fab-whatsapp::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { opacity: .6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.45); }
}

/* ============================================================
   REFINAMIENTOS RESPONSIVE (móvil)
   ============================================================ */
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .section-narrow { padding: 48px 0; }
  .section-head { margin-bottom: 36px; }
  .feature,
  .product,
  .testimonial,
  .contact-form { padding: 22px; }
  /* Logo más compacto: el subtítulo carga el header en pantallas pequeñas */
  .logo small { display: none; }
}
