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

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ============================================================
   CUSTOM PROPERTIES
============================================================ */
:root {
  --navy:        #1E3A8A;
  --navy-dark:   #152C6B;
  --navy-light:  #2D4FA0;
  --white:       #FFFFFF;
  --off-white:   #F8FAFC;
  --gray-100:    #F1F5F9;
  --gray-300:    #CBD5E1;
  --gray-600:    #475569;
  --gray-900:    #0F172A;
  --accent:      #3B82F6;
  --whatsapp:    #25D366;
  --red:         #EF4444;
  --green:       #22C55E;

  --nav-height:  70px;
  --max-width:   1200px;
  --radius:      10px;
  --radius-lg:   16px;
  --transition:  0.3s ease;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.14);
}

/* ============================================================
   TYPOGRAPHY SCALE
============================================================ */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.3rem); font-weight: 600; }
p  { font-size: clamp(0.95rem, 2vw, 1.05rem); color: var(--gray-600); }

/* ============================================================
   UTILITIES
============================================================ */
.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(30,58,138,0.35);
}

.btn-primary:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30,58,138,0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

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

.btn-full {
  width: 100%;
}

/* ============================================================
   ANIMATIONS — FADE IN ON SCROLL
============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

/* Stagger delays for sibling cards */
.problema-card:nth-child(2).fade-in,
.solucion-feature:nth-child(2).fade-in,
.fomo-card:nth-child(2).fade-in,
.stat-card:nth-child(2).fade-in { transition-delay: 0.1s; }

.problema-card:nth-child(3).fade-in,
.fomo-card:nth-child(3).fade-in,
.stat-card:nth-child(3).fade-in { transition-delay: 0.2s; }

.fomo-card:nth-child(4).fade-in,
.stat-card:nth-child(4).fade-in { transition-delay: 0.3s; }

/* ============================================================
   NAV
============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.nav-scrolled {
  background: var(--navy-dark);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 38px;
  width: auto;
}

.nav-links {
  display: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  background: var(--white);
  color: var(--navy) !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 700 !important;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta:hover {
  background: var(--gray-100);
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 1010;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Hamburger → X animation */
#navbar.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#navbar.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
#navbar.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu drawer */
#navbar.nav-open .nav-links {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--navy-dark);
  padding: 2rem 1.5rem;
  gap: 1.5rem;
  box-shadow: var(--shadow-lg);
}

#navbar.nav-open .nav-links a {
  font-size: 1.1rem;
}

#navbar.nav-open .nav-cta {
  text-align: center;
  padding: 0.75rem;
}

/* Tablet+ */
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; }
}

/* ============================================================
   HERO
============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 3rem) 1.5rem 4rem;
  color: var(--white);
}

.hero-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  max-width: 14ch;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
  max-width: 36ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================================
   EL PROBLEMA
============================================================ */
#problema {
  background: var(--white);
}

#problema h2 {
  margin-bottom: 3rem;
  max-width: 28ch;
}

.problema-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.problema-card {
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.problema-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.problema-icon {
  width: 52px;
  height: 52px;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

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

.problema-card h3 {
  margin-bottom: 0.6rem;
  color: var(--gray-900);
}

@media (min-width: 768px) {
  .problema-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   LAS CONSECUENCIAS
============================================================ */
#consecuencias {
  background: var(--navy);
  color: var(--white);
}

#consecuencias .section-label {
  color: rgba(255,255,255,0.5);
}

#consecuencias h2 {
  color: var(--white);
  margin-bottom: 3.5rem;
}

.consecuencias-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.consecuencia-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.consecuencia-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.consecuencia-stat {
  display: flex;
  align-items: baseline;
  gap: 0.1em;
  line-height: 1;
  color: var(--white);
  min-width: 120px;
}

.stat-prefix {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
}

.stat-number {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat-suffix {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 700;
}

.consecuencia-text h3 {
  color: var(--white);
  margin-bottom: 0.6rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.consecuencia-text p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .consecuencia-stat { min-width: 160px; }
}

/* ============================================================
   LA SOLUCIÓN
============================================================ */
#solucion {
  background: var(--white);
}

#solucion h2 {
  margin-bottom: 1.5rem;
}

.solucion-intro {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--gray-600);
  max-width: 58ch;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.solucion-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 3.5rem;
}

.solucion-feature {
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.solucion-feature:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.08);
  transform: translateY(-3px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

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

.solucion-feature h3 {
  color: var(--gray-900);
  margin-bottom: 0.6rem;
}

@media (min-width: 768px) {
  .solucion-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Features list */
.features-list-wrapper {
  margin-bottom: 2.5rem;
}

.features-list-title {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--gray-900);
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.features-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  list-style: none;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.97rem;
  color: var(--gray-600);
  line-height: 1.5;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  background: var(--off-white);
  transition: background var(--transition);
}

.features-list li:last-child {
  border-bottom: none;
}

.features-list li:hover {
  background: var(--gray-100);
}

.features-list li::before {
  content: "✓";
  flex-shrink: 0;
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  margin-top: 0.05em;
}

@media (min-width: 768px) {
  .features-list {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Reset border for grid layout */
  .features-list li:nth-child(odd) {
    border-right: 1px solid var(--gray-100);
  }
  /* Last two items: no bottom border */
  .features-list li:nth-last-child(-n+2) {
    border-bottom: none;
  }
  /* If odd total, last item spans or just remove its border */
  .features-list li:last-child:nth-child(odd) {
    border-right: none;
    border-bottom: none;
  }
}

/* Customization block */
.solucion-custom {
  background: linear-gradient(135deg, rgba(30,58,138,0.05) 0%, rgba(59,130,246,0.05) 100%);
  border: 1.5px solid rgba(30,58,138,0.15);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  margin-bottom: 3.5rem;
}

.solucion-custom h3 {
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.solucion-custom p {
  max-width: 64ch;
  line-height: 1.7;
}

/* Chat Mockup */
.chat-mockup-wrapper {
  max-width: 480px;
  margin: 0 auto;
}

.chat-mockup {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}

.chat-header {
  background: var(--navy);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.chat-avatar svg {
  width: 100%;
  height: 100%;
}

.chat-header-info {
  display: flex;
  flex-direction: column;
}

.chat-name {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
}

.chat-status {
  color: var(--whatsapp);
  font-size: 0.75rem;
}

.chat-messages {
  padding: 1.25rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Individual chat bubbles (added by JS) */
.chat-bubble {
  max-width: 80%;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.4;
  animation: bubbleIn 0.3s ease forwards;
}

.chat-bubble.customer {
  background: var(--gray-300);
  color: var(--gray-900);
  border-bottom-left-radius: 3px;
  align-self: flex-start;
}

.chat-bubble.bot {
  background: var(--navy);
  color: var(--white);
  border-bottom-right-radius: 3px;
  align-self: flex-end;
}

.chat-bubble.typing {
  background: var(--gray-300);
  align-self: flex-start;
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 0.75rem 1rem;
}

.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gray-600);
  animation: typingBounce 1.2s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chat-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: 1rem;
  font-style: italic;
}

/* ============================================================
   RESULTADOS
============================================================ */
#resultados {
  background: var(--off-white);
}

#resultados h2 {
  margin-bottom: 2.5rem;
}

.chart-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 3rem;
  border: 1px solid var(--gray-100);
}

.chart-legend {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  justify-content: flex-end;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
}

.legend-item::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.legend-sin-ia::before { background: #64748B; }
.legend-con-ia::before { background: #38BDF8; }

#roi-chart {
  width: 100%;
  height: auto;
  display: block;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.big-stat {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-card p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.4;
}

@media (min-width: 768px) {
  .stats-row { grid-template-columns: repeat(4, 1fr); }
  .chart-wrapper { padding: 2rem; }
}

/* ============================================================
   FOMO
============================================================ */
#fomo {
  background: var(--navy-dark);
  color: var(--white);
}

#fomo .section-label {
  color: rgba(255,255,255,0.45);
}

#fomo h2 {
  color: var(--white);
  margin-bottom: 3rem;
}

.fomo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.fomo-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: background var(--transition), transform var(--transition);
}

.fomo-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}

.fomo-number {
  display: block;
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.fomo-card p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  line-height: 1.5;
}

.fomo-objections {
  max-width: 560px;
  margin: 0 auto 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.objection {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

.objection span {
  color: var(--white);
  font-weight: 600;
}

.fomo-closing {
  text-align: center;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.75);
  max-width: 44ch;
  margin: 0 auto;
  line-height: 1.6;
}

.fomo-closing strong {
  color: var(--white);
}

@media (min-width: 768px) {
  .fomo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   CTA
============================================================ */
#cta {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 80vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(30,58,138,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-container {
  text-align: center;
}

.cta-container .section-label {
  display: block;
  text-align: center;
}

#cta h2 {
  margin-bottom: 1.25rem;
}

.cta-desc {
  max-width: 48ch;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  color: var(--gray-600);
}

.cta-subtext {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--gray-600);
}

.cta-subtext a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   CONTACTO
============================================================ */
#contacto {
  background: var(--off-white);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contacto-info h2 {
  margin-bottom: 1.75rem;
}

.contacto-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contacto-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1rem;
  color: var(--gray-900);
}

.contacto-list li svg {
  width: 20px;
  height: 20px;
  color: var(--navy);
  flex-shrink: 0;
}

.contacto-list a {
  color: var(--navy);
  font-weight: 500;
  transition: color var(--transition);
}

.contacto-list a:hover {
  color: var(--accent);
}

/* Form */
.contacto-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30,58,138,0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-300);
}

.form-success[hidden] { display: none; }

.form-success {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius);
  color: #166534;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-success svg {
  width: 20px;
  height: 20px;
  color: var(--green);
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .contacto-grid { grid-template-columns: 1fr 1.2fr; }
}

/* ============================================================
   FOOTER
============================================================ */
#footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-logo {
  height: 44px;
  width: auto;
  opacity: 0.85;
}

.footer-container p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}

.footer-location {
  font-size: 0.8rem !important;
  color: rgba(255,255,255,0.35) !important;
}

/* ============================================================
   WHATSAPP FLOTANTE
============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
  z-index: 999;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulse 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 22px rgba(37,211,102,0.6);
  animation: none;
}

.whatsapp-float svg {
  width: 56px;
  height: 56px;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 4px 28px rgba(37,211,102,0.7); }
}

/* ============================================================
   MOBILE OVERRIDES (max 767px)
============================================================ */
@media (max-width: 767px) {

  /* Reduce vertical section padding */
  .section-container {
    padding: 3.5rem 1.25rem;
  }

  /* Consecuencias: reduce gap and stat min-width so text has room */
  .consecuencia-item {
    gap: 1.25rem;
  }

  .consecuencia-stat {
    min-width: 90px;
  }

  .stat-number {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .stat-prefix,
  .stat-suffix {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  /* Solucion: reduce custom block padding */
  .solucion-custom {
    padding: 1.5rem 1.25rem;
  }

  /* Features list: clean up border on single column */
  .features-list {
    border-radius: var(--radius);
  }

  .features-list li {
    padding: 0.85rem 1rem;
    font-size: 0.93rem;
  }

  /* Chat mockup: add side breathing room */
  .chat-mockup-wrapper {
    padding: 0 0.25rem;
  }

  /* CTA button full width on mobile */
  #cta .btn-large {
    width: 100%;
    text-align: center;
  }

  /* WhatsApp float: smaller on mobile to avoid covering form button */
  .whatsapp-float {
    width: 48px;
    height: 48px;
    bottom: 1.25rem;
    right: 1.25rem;
  }

  .whatsapp-float svg {
    width: 48px;
    height: 48px;
  }

  /* Hero: reduce bottom padding */
  .hero-content {
    padding-bottom: 3rem;
  }

  /* FOMO closing text */
  .fomo-closing {
    font-size: 1rem;
  }
}

/* ============================================================
   REDUCED MOTION
============================================================ */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .whatsapp-float {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
