/* ==========================================
   SALUD PLUS - LANDING PAGE STYLES
   ========================================== */

/* --- Variables & Reset --- */
:root {
  --green-wa: #25D366;
  --green-wa-dark: #128C7E;
  --green-wa-darker: #075E54;
  --green-wa-light: #DCF8C6;
  --green-500: #22c55e;
  --blue-600: #2563eb;
  --indigo-600: #4f46e5;
  --dark-900: #0f172a;
  --dark-800: #1e293b;
  --dark-700: #334155;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-900: #0f172a;
  --font: 'Poppins', sans-serif;
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

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

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

body {
  font-family: var(--font);
  color: var(--dark-800);
  line-height: 1.6;
  overflow-x: hidden;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
  justify-content: center;
}

.btn-whatsapp {
  background: var(--green-wa);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.55);
}

.btn-outline {
  background: transparent;
  color: var(--green-wa);
  border: 2px solid var(--green-wa);
}

.btn-outline:hover {
  background: var(--green-wa);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--green-wa-dark);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-white:hover {
  background: var(--gray-100);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.btn-lg { padding: 1.1rem 2.75rem; font-size: 1.125rem; }

/* --- Section Layout --- */
.section { padding: 5.5rem 0; }

.section-label {
  display: inline-block;
  background: rgba(37, 211, 102, 0.12);
  color: var(--green-wa-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 2.875rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark-900);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.75;
}

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

.text-gradient {
  background: linear-gradient(135deg, var(--green-wa), var(--green-wa-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================
   NAVIGATION
   ========================================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.3s ease;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
  padding: 0.875rem 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  transition: color 0.3s;
}

#navbar.scrolled .nav-logo { color: var(--dark-900); }

.nav-logo span { color: var(--green-wa); }

.logo-icon {
  width: 42px; height: 42px;
  background: var(--green-wa);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

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

#navbar.scrolled .nav-links a { color: var(--gray-600); }
.nav-links a:hover { color: var(--green-wa); }

.nav-cta { display: flex; align-items: center; gap: 1rem; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}

.nav-hamburger span {
  width: 25px; height: 2px;
  background: #fff;
  transition: all 0.3s;
  border-radius: 2px;
  display: block;
}

#navbar.scrolled .nav-hamburger span { background: var(--dark-900); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--dark-900);
  z-index: 999;
  padding: 5rem 2rem 2rem;
  flex-direction: column;
  gap: 0;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: rgba(255,255,255,0.85);
  font-size: 1.25rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
  transition: color 0.3s;
}

.mobile-menu a:hover { color: var(--green-wa); }

.mobile-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.mobile-close:hover { background: rgba(255,255,255,0.2); }

/* ==========================================
   HERO SECTION
   ========================================== */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark-900) 0%, #0d2137 45%, #0a3d2e 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 8rem 0 5rem;
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(37, 211, 102, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 10%, rgba(18, 140, 126, 0.2) 0%, transparent 45%),
    radial-gradient(ellipse at 60% 90%, rgba(7, 94, 84, 0.15) 0%, transparent 40%);
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: var(--green-wa);
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.7s ease both;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.625rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.7s ease 0.15s both;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--green-wa) 0%, #4ade80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 2.5rem;
  line-height: 1.75;
  animation: fadeInUp 0.7s ease 0.3s both;
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.45s both;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  animation: fadeInUp 0.7s ease 0.6s both;
}

.hero-stat-number {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--green-wa);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 0.25rem;
}

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fadeInRight 0.9s ease 0.3s both;
}

.phone-mockup {
  width: 285px;
  background: #1a1a2e;
  border-radius: 42px;
  padding: 14px;
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,0.08),
    0 30px 80px rgba(0,0,0,0.55),
    0 0 60px rgba(37, 211, 102, 0.18);
  position: relative;
  z-index: 2;
}

.phone-notch {
  width: 110px; height: 28px;
  background: #0f172a;
  border-radius: 0 0 18px 18px;
  margin: 0 auto 10px;
}

.phone-screen {
  background: #ECE5DD;
  border-radius: 30px;
  overflow: hidden;
  height: 530px;
  display: flex;
  flex-direction: column;
}

/* WhatsApp Chat UI */
.wa-header {
  background: var(--green-wa-darker);
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wa-avatar {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--green-wa), var(--green-wa-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.wa-contact-info .name { color: #fff; font-weight: 600; font-size: 0.875rem; }
.wa-contact-info .status { color: rgba(255,255,255,0.65); font-size: 0.72rem; }

.wa-messages {
  flex: 1;
  padding: 1rem 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  overflow: hidden;
}

.wa-date {
  text-align: center;
  font-size: 0.68rem;
  color: var(--gray-500);
  background: rgba(255,255,255,0.7);
  padding: 0.2rem 0.75rem;
  border-radius: 10px;
  align-self: center;
  margin-bottom: 0.25rem;
}

.msg {
  max-width: 85%;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.5;
}

.msg-time {
  font-size: 0.62rem;
  color: rgba(0,0,0,0.38);
  text-align: right;
  margin-top: 0.2rem;
}

.msg-received {
  background: #fff;
  align-self: flex-start;
  border-radius: 0 8px 8px 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.msg-sent {
  background: var(--green-wa-light);
  align-self: flex-end;
  border-radius: 8px 8px 0 8px;
}

.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 0.25rem 0;
}

.typing-dots span {
  width: 6px; height: 6px;
  background: var(--gray-400);
  border-radius: 50%;
  animation: typingBounce 1.4s ease-in-out infinite;
}

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

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

.wa-input-bar {
  padding: 0.625rem;
  background: #F0F0F0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wa-input-field {
  flex: 1;
  background: #fff;
  border-radius: 22px;
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  color: var(--gray-400);
  border: none;
  font-family: var(--font);
}

.wa-send {
  width: 36px; height: 36px;
  background: var(--green-wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Floating Cards */
.hero-float {
  position: absolute;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 0.875rem 1.125rem;
  box-shadow: 0 20px 45px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: floatCard 3.5s ease-in-out infinite;
  z-index: 3;
}

.hero-float-1 { bottom: 20%; left: -8%; animation-delay: 0s; }
.hero-float-2 { top: 12%; right: -6%; animation-delay: 1.8s; }

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

.float-icon-box {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.float-icon-green { background: rgba(37, 211, 102, 0.15); }
.float-icon-blue { background: rgba(37, 99, 235, 0.12); }

.float-label { font-size: 0.68rem; color: var(--gray-400); }
.float-value { font-size: 0.875rem; font-weight: 700; color: var(--dark-900); line-height: 1.2; }

/* Keyframes */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-24px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==========================================
   TRUST BAR
   ========================================== */
.trust-bar {
  background: var(--dark-800);
  padding: 1.125rem 0;
  border-top: 1px solid rgba(37, 211, 102, 0.15);
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
}

/* ==========================================
   PROBLEM SECTION
   ========================================== */
#problema { background: var(--gray-50); }

.problema-intro {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-left: 4px solid #ef4444;
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.problema-intro p {
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.75;
}

.problema-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.problema-card {
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.problema-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ef4444, #f97316);
}

.problema-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.problema-icon {
  width: 56px; height: 56px;
  background: #fee2e2;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.problema-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
  color: var(--dark-900);
}

.problema-card p {
  color: var(--gray-500);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ==========================================
   SOLUTION SECTION
   ========================================== */
#solucion {
  background: linear-gradient(150deg, var(--green-wa-darker) 0%, var(--dark-900) 100%);
  position: relative;
  overflow: hidden;
}

#solucion::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 25% 60%, rgba(37, 211, 102, 0.22) 0%, transparent 60%);
}

#solucion::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

.solucion-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.solucion-content .section-label {
  background: rgba(37, 211, 102, 0.2);
  color: var(--green-wa);
}

.solucion-content .section-title { color: #fff; }
.solucion-content .section-subtitle { color: rgba(255,255,255,0.65); max-width: 100%; }

.solucion-features {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  margin-top: 2rem;
}

.solucion-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-check {
  width: 26px; height: 26px;
  background: var(--green-wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.solucion-feature p { color: rgba(255,255,255,0.8); font-size: 0.975rem; }
.solucion-feature p strong { color: #fff; }

/* Animated WA Visual */
.solucion-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.wa-orbit-wrapper {
  width: 320px; height: 320px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-ring {
  position: absolute;
  border: 1px dashed rgba(37, 211, 102, 0.3);
  border-radius: 50%;
}

.orbit-ring-1 { width: 220px; height: 220px; animation: spinRing 18s linear infinite; }
.orbit-ring-2 { width: 300px; height: 300px; animation: spinRing 30s linear infinite reverse; }

@keyframes spinRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.orbit-dot {
  position: absolute;
  width: 12px; height: 12px;
  background: var(--green-wa);
  border-radius: 50%;
  top: -6px;
  left: calc(50% - 6px);
  box-shadow: 0 0 8px var(--green-wa);
}

.wa-center-icon {
  width: 160px; height: 160px;
  background: linear-gradient(135deg, var(--green-wa), var(--green-wa-dark));
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 20px rgba(37, 211, 102, 0.1),
    0 0 0 40px rgba(37, 211, 102, 0.05),
    0 20px 60px rgba(37, 211, 102, 0.4);
  animation: iconGlow 3s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes iconGlow {
  0%, 100% { box-shadow: 0 0 0 20px rgba(37,211,102,0.1), 0 0 0 40px rgba(37,211,102,0.05), 0 20px 60px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 0 0 25px rgba(37,211,102,0.15), 0 0 0 50px rgba(37,211,102,0.07), 0 20px 80px rgba(37,211,102,0.6); }
}

/* ==========================================
   STATS COUNTER
   ========================================== */
#stats {
  background: var(--dark-900);
  padding: 4rem 0;
  border-top: 1px solid rgba(37, 211, 102, 0.1);
  border-bottom: 1px solid rgba(37, 211, 102, 0.1);
}

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

.stat-item { padding: 1.5rem 1rem; }

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--green-wa);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-suffix { font-size: 2.25rem; }
.stat-label { color: rgba(255,255,255,0.55); font-size: 0.875rem; }

/* ==========================================
   BENEFITS SECTION
   ========================================== */
#beneficios { background: #fff; }

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}

.beneficio-card {
  background: var(--gray-50);
  border-radius: 22px;
  padding: 2.25rem;
  border: 1px solid var(--gray-100);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.beneficio-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-wa), var(--green-wa-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.beneficio-card:hover {
  background: #fff;
  box-shadow: 0 24px 60px rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.25);
  transform: translateY(-6px);
}

.beneficio-card:hover::after { transform: scaleX(1); }

.beneficio-icon {
  width: 66px; height: 66px;
  background: linear-gradient(135deg, var(--green-wa), var(--green-wa-dark));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.875rem;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.beneficio-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark-900); margin-bottom: 0.75rem; }
.beneficio-card p { color: var(--gray-500); font-size: 0.9rem; line-height: 1.7; }

/* ==========================================
   HOW IT WORKS
   ========================================== */
#como-funciona {
  background: var(--dark-900);
  position: relative;
  overflow: hidden;
}

#como-funciona::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(37, 211, 102, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

#como-funciona .section-title { color: #fff; }
#como-funciona .section-subtitle { color: rgba(255,255,255,0.55); }

.steps-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

.steps-connector {
  position: absolute;
  top: 40px;
  left: calc(12.5% + 1.5rem);
  right: calc(12.5% + 1.5rem);
  height: 2px;
  background: linear-gradient(90deg,
    var(--green-wa) 0%,
    rgba(37, 211, 102, 0.5) 50%,
    rgba(37, 211, 102, 0.15) 100%);
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number-box {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--green-wa), var(--green-wa-dark));
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.875rem;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover .step-number-box {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}

.step-num-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.step-card h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.step-card p { color: rgba(255,255,255,0.55); font-size: 0.875rem; line-height: 1.65; }

/* ==========================================
   TRAMITES
   ========================================== */
#tramites { background: var(--gray-50); }

.tramites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.tramite-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.75rem;
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: all 0.3s ease;
  cursor: default;
}

.tramite-card:hover {
  border-color: var(--green-wa);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.1);
  transform: translateY(-4px);
}

.tramite-icon-wrap {
  width: 54px; height: 54px;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(18, 140, 126, 0.1));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.tramite-card:hover .tramite-icon-wrap {
  background: linear-gradient(135deg, var(--green-wa), var(--green-wa-dark));
}

.tramite-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark-900); margin-bottom: 0.35rem; }
.tramite-card p { font-size: 0.85rem; color: var(--gray-500); line-height: 1.55; }

.tramite-badge {
  display: inline-block;
  background: rgba(37, 211, 102, 0.1);
  color: var(--green-wa-dark);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  margin-top: 0.5rem;
}

/* ==========================================
   WHATSAPP EXPERIENCE
   ========================================== */
#experiencia-whatsapp {
  background: linear-gradient(160deg, #f0fdf4 0%, #ecfdf5 40%, #f0f9ff 100%);
  overflow: hidden;
  position: relative;
}

#experiencia-whatsapp::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.08) 0%, transparent 70%);
  top: -200px; right: -200px;
  pointer-events: none;
}

.experiencia-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.experiencia-content .section-title { text-align: left; }
.experiencia-content .section-subtitle { text-align: left; max-width: 100%; }

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

.experiencia-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.95rem;
  color: var(--gray-600);
}

.exp-check {
  width: 26px; height: 26px;
  background: var(--green-wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Large phone for experience section */
.phone-experience {
  width: 300px;
  background: #1a1a2e;
  border-radius: 48px;
  padding: 14px;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.08),
    0 40px 100px rgba(0,0,0,0.25),
    0 0 80px rgba(37, 211, 102, 0.12);
  margin: 0 auto;
}

.phone-experience .phone-screen {
  height: 590px;
}

/* Animated messages in experience */
.msg-anim {
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.5s ease;
}

.msg-anim.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   TESTIMONIALS
   ========================================== */
#testimonios { background: #fff; }

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}

.testimonio-card {
  background: var(--gray-50);
  border-radius: 22px;
  padding: 2.25rem;
  border: 1px solid var(--gray-200);
  transition: all 0.35s ease;
  position: relative;
}

.testimonio-card::before {
  content: '"';
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  font-size: 5rem;
  color: rgba(37, 211, 102, 0.12);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonio-card:hover {
  box-shadow: 0 24px 50px rgba(0,0,0,0.08);
  transform: translateY(-6px);
  border-color: rgba(37, 211, 102, 0.2);
}

.stars { display: flex; gap: 3px; margin-bottom: 1rem; color: #f59e0b; font-size: 1rem; }

.testimonio-text {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 1.75rem;
  font-style: italic;
}

.testimonio-author { display: flex; align-items: center; gap: 0.875rem; }

.author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.author-info .name { font-weight: 700; color: var(--dark-900); font-size: 0.95rem; }
.author-info .role { font-size: 0.8rem; color: var(--gray-400); }

/* ==========================================
   FAQ
   ========================================== */
#faq { background: var(--gray-50); }

.disclaimer {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 780px;
  margin: 3rem auto 0;
}

.disclaimer-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 0.1rem; }
.disclaimer p { font-size: 0.875rem; color: #92400e; line-height: 1.65; }
.disclaimer p strong { color: #78350f; }

.faq-container {
  max-width: 780px;
  margin: 3rem auto 0;
}

.faq-item {
  background: #fff;
  border-radius: 16px;
  margin-bottom: 0.875rem;
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.open {
  border-color: var(--green-wa);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.1);
}

.faq-question {
  padding: 1.375rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 1rem;
  user-select: none;
}

.faq-question h3 { font-size: 0.975rem; font-weight: 600; color: var(--dark-900); }

.faq-toggle {
  width: 32px; height: 32px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  color: var(--gray-500);
}

.faq-item.open .faq-toggle {
  background: var(--green-wa);
  color: #fff;
  transform: rotate(45deg);
}

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

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

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem;
  padding-top: 1rem;
  color: var(--gray-500);
  font-size: 0.925rem;
  line-height: 1.75;
  border-top: 1px solid var(--gray-100);
}

/* ==========================================
   CTA FINAL
   ========================================== */
#cta-final {
  background: linear-gradient(135deg, var(--green-wa-darker), var(--green-wa-dark) 50%, var(--green-wa));
  position: relative;
  overflow: hidden;
}

#cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(0,0,0,0.1) 0%, transparent 60%);
}

.cta-final-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-final-inner h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.cta-final-inner p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.75rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.cta-guarantee {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
  background: var(--dark-900);
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(37, 211, 102, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  color: rgba(255,255,255,0.45);
  font-size: 0.875rem;
  line-height: 1.75;
  margin: 1rem 0 1.5rem;
  max-width: 280px;
}

.social-links { display: flex; gap: 0.625rem; }

.social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--green-wa);
  color: #fff;
  transform: translateY(-3px);
}

.footer-col h4 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 1.25rem;
  font-size: 0.925rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col ul a { color: rgba(255,255,255,0.45); font-size: 0.875rem; transition: color 0.3s; }
.footer-col ul a:hover { color: var(--green-wa); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { color: rgba(255,255,255,0.35); font-size: 0.8rem; }

.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255,255,255,0.35); font-size: 0.8rem; transition: color 0.3s; }
.footer-legal a:hover { color: var(--green-wa); }

/* ==========================================
   FLOATING WHATSAPP BUTTON
   ========================================== */
.whatsapp-float-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 64px; height: 64px;
  background: var(--green-wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
  z-index: 998;
  transition: all 0.3s ease;
}

.whatsapp-float-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.65);
}

.wa-float-pulse {
  position: absolute;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--green-wa);
  animation: floatPulse 2.5s ease-out infinite;
}

@keyframes floatPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

.wa-float-tooltip {
  position: absolute;
  right: calc(100% + 1rem);
  background: var(--dark-900);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  font-family: var(--font);
}

.wa-float-tooltip::after {
  content: '';
  position: absolute;
  top: 50%; right: -5px;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid var(--dark-900);
}

.whatsapp-float-btn:hover .wa-float-tooltip { opacity: 1; }

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-cta-group { justify-content: center; }
  .hero-stats { justify-content: center; }
  .solucion-inner { grid-template-columns: 1fr; }
  .solucion-visual { order: -1; }
  .experiencia-inner { grid-template-columns: 1fr; }
  .phone-experience { order: -1; }
  .experiencia-content .section-title,
  .experiencia-content .section-subtitle { text-align: center; }
  .steps-container { grid-template-columns: repeat(2, 1fr); }
  .steps-connector { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta .btn { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 4rem 0; }
  .steps-container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .trust-inner { gap: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-cta-group { flex-direction: column; align-items: stretch; }
  .btn-lg { text-align: center; justify-content: center; }
  .phone-experience { width: 280px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-actions { flex-direction: column; align-items: center; }
}
