@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ==========================================================================
   CUSTOM PROPERTIES — BRAND MANUAL ALIGNED (HIGH CONTRAST MEDICAL THEME)
   ========================================================================== */
:root {
  --primary: #0A4ABF;           /* Azul Cobalto Oficial */
  --primary-light: #1E60D6;
  --primary-dark: #07358A;
  --primary-glow: rgba(10, 74, 191, 0.2);
  --bg: #FFFFFF;                 /* Blanco Puro de Alto Contraste */
  --bg-elevated: #F8FAFC;        /* Gris Médico Superficie */
  --bg-card: #FFFFFF;
  --text: #000000;               /* Negro Médico Formal Oficial */
  --text-secondary: #334155;     /* Slate Oscuro Lectura */
  --text-muted: #64748B;
  --border: #E2E8F0;
  --border-dark: #CBD5E1;
  --accent: #0D9488;             /* Teal Médico Acento */
  --wa-green: #25D366;
  --wa-dark: #111B21;
  --wa-header: #1F2C34;
  --wa-chat-bg: #0B141A;
  --wa-bubble-in: #1F2C34;
  --wa-bubble-out: #005C4B;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 25px rgba(10,74,191,0.08);
  --shadow-lg: 0 20px 40px rgba(10,74,191,0.12);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-elevated); }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
::selection { background: var(--primary); color: #fff; }

/* ==========================================================================
   UTILITIES & TYPOGRAPHY
   ========================================================================== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 780px; }
.section { padding: 7rem 0; position: relative; }

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-top: 0.8rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn svg { flex-shrink: 0; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(10, 74, 191, 0.3);
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(10, 74, 191, 0.4);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1.5px solid var(--border-dark);
}
.btn-secondary:hover {
  background: #E2E8F0;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-wa {
  background: var(--wa-green);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}
.btn-wa:hover {
  background: #20BD5A;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
}

.btn-lg {
  padding: 1.1rem 2.4rem;
  font-size: 1.08rem;
}

.btn-full { width: 100%; border-radius: 12px; }

/* ==========================================================================
   NAVIGATION & DOUBLE-SIZE LOGO (150PX HEIGHT - ULTRA VISIBLE)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}

.navbar.scrolled {
  padding: 0.6rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO EL DOBLE DE GRANDE QUE ANTES (150PX DE ALTURA) */
.nav-logo {
  display: flex;
  align-items: center;
  z-index: 101;
}

.nav-logo-img {
  height: 62px;
  max-width: 340px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.06));
  transition: transform 0.3s var(--ease);
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.03);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { font-size: 0.92rem; padding: 0.65rem 1.6rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 101;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 10rem 0 5rem;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, #F1F5F9 0%, #FFFFFF 60%);
}

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

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 75% 35%, rgba(10, 74, 191, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(13, 148, 136, 0.04) 0%, transparent 70%);
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(#0A4ABF 1px, transparent 1px),
    linear-gradient(90deg, #0A4ABF 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content { max-width: 640px; }

.hero-whatsapp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem 0.45rem 0.8rem;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #15803D;
  margin-bottom: 2rem;
}

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

.wa-icon { display: inline-block; flex-shrink: 0; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 1.4rem;
  color: var(--text);
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-subtitle strong { color: var(--primary); font-weight: 700; }

.hero-cta-box {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.hero-cta-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   WHATSAPP MOCKUP
   ========================================================================== */
.hero-phone { position: relative; }

.phone-frame {
  width: 100%;
  max-width: 350px;
  background: var(--wa-dark);
  border-radius: 36px;
  border: 4px solid #1E293B;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(10, 74, 191, 0.18);
  animation: phone-float 7s ease-in-out infinite;
}

.phone-notch {
  width: 120px;
  height: 22px;
  background: #000;
  border-radius: 0 0 14px 14px;
  margin: 0 auto;
}

.phone-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 74, 191, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  filter: blur(30px);
}

@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.wa-app {
  display: flex;
  flex-direction: column;
  height: 510px;
}

.wa-header {
  background: var(--wa-header);
  padding: 0.6rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.wa-header-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-header-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wa-header-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #E9EDEF;
}

.wa-header-status {
  font-size: 0.7rem;
  color: #8696A0;
}

.wa-chat {
  flex: 1;
  background: var(--wa-chat-bg);
  padding: 0.8rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  scrollbar-width: none;
}
.wa-chat::-webkit-scrollbar { display: none; }

.wa-date-badge {
  align-self: center;
  background: rgba(18, 28, 36, 0.9);
  color: #8696A0;
  font-size: 0.68rem;
  padding: 0.2rem 0.7rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.wa-bubble {
  max-width: 84%;
  padding: 0.5rem 0.65rem 0.3rem;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.45;
  position: relative;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transition: all 0.35s var(--ease-out);
}

.wa-bubble.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.wa-bubble-in {
  background: var(--wa-bubble-in);
  color: #E9EDEF;
  align-self: flex-start;
  border-top-left-radius: 0;
}

.wa-bubble-out {
  background: var(--wa-bubble-out);
  color: #E9EDEF;
  align-self: flex-end;
  border-top-right-radius: 0;
}

.wa-bubble-time {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
  font-size: 0.63rem;
  color: rgba(255,255,255,0.45);
}

.wa-bubble-checks { color: #53BDEB; font-size: 0.75rem; }
.wa-bubble-text { word-break: break-word; }

.wa-typing {
  display: flex;
  gap: 3px;
  padding: 4px 0;
  align-items: center;
}

.wa-typing span {
  width: 6px;
  height: 6px;
  background: #8696A0;
  border-radius: 50%;
  animation: wa-type 1.4s ease-in-out infinite;
}

.wa-typing span:nth-child(2) { animation-delay: 0.15s; }
.wa-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes wa-type {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.wa-input-bar {
  background: var(--wa-header);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.wa-input-field {
  flex: 1;
  background: #2A3942;
  border-radius: 20px;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  color: #8696A0;
}

/* ==========================================================================
   SECTION: 3 CONCRETE RESULTS
   ========================================================================== */
.section-results-concrete {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.result-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  position: relative;
  transition: all 0.4s var(--ease);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

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

.result-badge {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 1.2rem;
}

.result-big-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 1.2rem;
}

.result-big-number .unit {
  font-size: 0.45em;
  font-weight: 700;
  color: var(--text-secondary);
}

.result-icon-tag {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(10, 74, 191, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.result-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 1rem;
  color: var(--text);
}

.result-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.result-card p strong { color: var(--text); }

/* ==========================================================================
   SECTION: AHORRO Y EFICIENCIA (FINANCE)
   ========================================================================== */
.section-finance {
  background: #FFFFFF;
  padding: 7rem 0;
}

.story-flow {
  display: flex;
  flex-direction: column;
}

.deeper-title {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.story-text {
  font-size: 1.18rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.finance-boxes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.finance-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 1.2rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease);
}

.finance-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.finance-box-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.finance-box p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.story-punchline {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.6;
}

/* ==========================================================================
   SECTION: URGENCIAS & TRANQUILIDAD
   ========================================================================== */
.section-urgencias {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.urgencias-wrapper {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: center;
}

.urgencias-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: 2rem;
}

.urgencia-item {
  display: flex;
  gap: 1.3rem;
  align-items: flex-start;
}

.urgencia-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.urgencia-icon.warning {
  background: #FEF3C7;
  color: #D97706;
}

.urgencia-icon.danger {
  background: #FEE2E2;
  color: #DC2626;
}

.urgencia-item h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.urgencia-item p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.urgencias-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2.8rem 2.2rem;
  box-shadow: var(--shadow-lg);
}

.urgencias-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: var(--text);
}

.urgencias-quote {
  font-size: 1.08rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.urgencias-author {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
}

/* ==========================================================================
   STEPS & FAQ
   ========================================================================== */
.section-steps { background: #FFFFFF; }

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 920px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

.step-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 0 8px #FFFFFF, 0 8px 25px rgba(10, 74, 191, 0.25);
  position: relative;
  z-index: 2;
}

.step-connector {
  width: 80px;
  height: 2px;
  background: var(--border-dark);
  margin-top: 30px;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.step-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 260px;
  margin: 0 auto;
}

.section-faq { background: var(--bg-elevated); border-top: 1px solid var(--border); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); background: #FFFFFF; border-radius: 12px; margin-bottom: 0.8rem; padding: 0 1.5rem; border: 1px solid var(--border); }

.faq-q {
  width: 100%;
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  gap: 1rem;
  transition: color 0.2s;
}

.faq-q:hover { color: var(--primary); }

.faq-icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.faq-icon span {
  position: absolute;
  background: var(--primary);
  border-radius: 1px;
}

.faq-icon span:first-child { top: 9px; left: 3px; right: 3px; height: 2px; }
.faq-icon span:last-child { top: 3px; bottom: 3px; left: 9px; width: 2px; }

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

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-a p {
  padding-bottom: 1.5rem;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   SECTION: FINAL CTA & CONTACT FORM
   ========================================================================== */
.section-cta {
  background: #FFFFFF;
  padding: 7rem 0 8rem;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 4rem;
  align-items: center;
}

.cta-info h2 {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.cta-direct-wa { margin-top: 2rem; }

.cta-form-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 1.8rem;
  padding: 2.8rem 2.2rem;
  box-shadow: var(--shadow-lg);
}

.cta-form-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text);
  text-align: center;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.3rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-group input {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  color: var(--text);
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: var(--primary);
  background: #FFFFFF;
}

/* ==========================================================================
   FOOTER & WA FLOAT
   ========================================================================== */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 4rem 0 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 2rem;
}

/* FOOTER LOGO EL DOBLE DE GRANDE QUE ANTES (130PX HEIGHT) */
.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 65px;
  max-width: 350px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.06));
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 320px;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  padding: 1.8rem 0;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
}

.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: var(--wa-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s var(--ease);
  pointer-events: none;
}

.wa-float.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
  animation: wa-pulse 2.5s infinite;
}

.wa-float:hover { transform: scale(1.1); }
.wa-float svg { display: inline-block; }

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45), 0 0 0 14px rgba(37, 211, 102, 0.1); }
}

.anim {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-content { max-width: 100%; }
  .hero-subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-cta-box { justify-content: center; }
  .hero-phone { display: flex; justify-content: center; }
  .phone-frame { max-width: 310px; }

  .results-grid, .finance-boxes-grid { grid-template-columns: 1fr; }
  .urgencias-wrapper { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .section { padding: 5rem 0; }
  .nav-logo-img { height: 100px; }
  .footer-logo-img { height: 90px; }
  .nav-right { display: none; }
  .nav-right.active {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 100;
  }
  .nav-right.active .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .nav-right.active .nav-links a { font-size: 1.2rem; color: var(--text); }
  .nav-toggle { display: flex; }

  .steps {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .step {
    display: flex;
    text-align: left;
    gap: 1.2rem;
    align-items: flex-start;
  }
  .step-num {
    margin: 0;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }
  .step-content p { max-width: 100%; margin: 0; }
  .step-connector {
    width: 1px;
    height: 30px;
    margin: 0 0 0 24px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 1.2rem; }
  .hero { padding: 8.5rem 0 3rem; }
  .hero-title { font-size: 2.1rem; }
  .nav-logo-img { height: 80px; }
  .btn-lg { width: 100%; }
}
