:root {
  --bg-light:     #F8FAFC;
  --bg-white:     #FFFFFF;
  --bg-dark:      #0F172A;
  --bg-dark-card: #1E293B;

  --text-main:    #0F172A;
  --text-muted:   #64748B;
  --text-light:   #F8FAFC;

  --emerald:      #1EB08B;
  --emerald-dark: #168D6F;
  --emerald-light:rgba(30, 176, 139, 0.08);

  --border-light: #E2E8F0;
  --border-dark:  rgba(255, 255, 255, 0.1);

  --radius-pill:  100px;
  --radius-card:  24px;

  --shadow-sm:    0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md:    0 12px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg:    0 24px 48px -12px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.55;
  font-size: 15px;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

a { text-decoration: none; color: inherit; transition: all 0.25s ease; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  position: sticky; top: 0; z-index: 1000;
  padding: 16px 0;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo-container { display: flex; align-items: center; gap: 10px; }
.logo-icon { height: 38px; width: 38px; object-fit: contain; }
.logo-text { font-size: 1.4rem; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; color: var(--text-main); }
.logo-text span { color: var(--emerald); }
.brand-accent { color: #00A86B; }
.header-actions { display: flex; align-items: center; gap: 14px; }

nav { display: flex; gap: 32px; align-items: center; }
nav a { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); }
nav a:hover { color: var(--emerald); }

.btn-login {
  background: var(--text-main); color: var(--bg-white) !important;
  padding: 10px 24px; border-radius: 12px; font-weight: 700; font-size: 0.9rem;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}
.btn-login:hover { background: #1e293b; transform: translateY(-2px); }

.lang-toggle-pill {
  display: flex; align-items: center; gap: 2px;
  background: var(--bg-light); border: 1px solid var(--border-light);
  border-radius: var(--radius-pill); padding: 3px;
}
.lang-toggle-pill button {
  border: none; background: transparent; cursor: pointer;
  padding: 6px 14px; border-radius: var(--radius-pill);
  font-family: inherit; font-size: 0.78rem; font-weight: 600;
  color: var(--text-muted); transition: all 0.2s ease;
}
.lang-toggle-pill button.active {
  background: var(--emerald); color: var(--bg-white); font-weight: 700;
}

/* Hero Section */
.hero { padding: 80px 0 64px; background: linear-gradient(180deg, rgba(30, 176, 139, 0.04) 0%, rgba(248, 250, 252, 0) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--emerald-light); color: var(--emerald);
  padding: 8px 18px; border-radius: 100px; font-size: 0.82rem; font-weight: 700;
  border: 1px solid rgba(30, 176, 139, 0.25); margin-bottom: 24px;
}

.hero-title { font-size: 3.6rem; font-weight: 800; line-height: 1.1; margin-bottom: 24px; color: var(--text-main); }
.hero-title span { color: var(--emerald); }
.hero-subtitle { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 36px; max-width: 540px; line-height: 1.6; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-hero-primary {
  background: var(--emerald); color: var(--bg-white);
  padding: 16px 36px; border-radius: 14px; font-weight: 700; font-size: 1.05rem;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 10px 28px rgba(30, 176, 139, 0.35);
}
.btn-hero-primary:hover { background: var(--emerald-dark); transform: translateY(-3px); }

.btn-hero-secondary {
  background: var(--bg-white); color: var(--text-main);
  padding: 16px 32px; border-radius: 14px; font-weight: 600; font-size: 1.05rem;
  border: 1px solid var(--border-light); display: inline-flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-sm);
}
.btn-hero-secondary:hover { background: #F1F5F9; transform: translateY(-3px); }

/* Interactive Simulator */
.sim-box {
  background: var(--bg-white); border-radius: var(--radius-card);
  border: 1px solid var(--border-light); box-shadow: var(--shadow-lg);
  overflow: hidden; max-width: 440px; margin: 0 auto;
}
.sim-head {
  background: var(--text-main); color: var(--bg-white);
  padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 0.9rem;
}
.sim-head-title { display: flex; align-items: center; gap: 8px; }
.whatsapp-icon { color: #25D366; font-size: 1.2rem; }
.sim-status { font-size: 0.8rem; opacity: 0.8; }
.sim-body {
  padding: 20px; height: 390px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px; background: #E5DDD5;
}
@keyframes bubblePop {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.bubble { max-width: 88%; padding: 12px 16px; border-radius: 16px; font-size: 0.88rem; line-height: 1.45; animation: bubblePop 0.35s ease forwards; }
.bubble.in { background: #FFFFFF; color: #0F172A; align-self: flex-start; border-bottom-left-radius: 2px; }
.bubble.out { background: #DCF8C6; color: #0F172A; align-self: flex-end; border-bottom-right-radius: 2px; }

/* Metrics Strip */
.metrics-bar {
  background: var(--bg-dark); color: var(--bg-white);
  border-radius: var(--radius-card); padding: 40px; margin: 40px 0 80px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.metric-number { font-size: 3rem; font-weight: 800; color: var(--emerald); line-height: 1; margin-bottom: 8px; }
.metric-label { font-size: 0.92rem; color: #94A3B8; font-weight: 500; }

/* Features Grid */
.features-section { padding: 40px 0 80px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.feature-card {
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: var(--radius-card); padding: 36px 30px;
  transition: all 0.3s ease; box-shadow: var(--shadow-sm);
}
.feature-card:hover { border-color: var(--emerald); transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.feat-icon {
  width: 54px; height: 54px; background: var(--emerald-light); color: var(--emerald);
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 10px; color: var(--text-main); }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* Bloque introductorio de sección (eyebrow + título) reutilizado en 3 secciones */
.section-intro { text-align: center; max-width: 720px; margin: 0 auto; }
.section-intro.mb-48 { margin-bottom: 48px; }
.section-intro.mb-32 { margin-bottom: 32px; }
.section-eyebrow { color: var(--emerald); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; }
.section-title { font-weight: 800; margin-top: 8px; font-size: 2.6rem; }
.section-title.sm { font-size: 2.5rem; }
.section-title.on-dark { color: #fff; }
.section-subtitle { color: var(--text-muted); font-size: 1.1rem; margin-top: 8px; }

/* Dark Showcase (El Choque de Eras) */
.dark-showcase {
  background: var(--bg-dark); color: var(--bg-white);
  padding: 96px 0; position: relative;
}
.split-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }

.showcase-card {
  border-radius: var(--radius-card); padding: 40px; border: 1px solid var(--border-dark);
}
.showcase-card.old { background: rgba(239, 68, 68, 0.05); border-color: rgba(239, 68, 68, 0.2); }
.showcase-card.new { background: rgba(30, 176, 139, 0.08); border-color: rgba(30, 176, 139, 0.3); }

.showcase-card h3 { font-size: 1.5rem; margin-bottom: 24px; display: flex; align-items: center; gap: 12px; color: #FFF; }
.showcase-card.old h3 { color: #EF4444; }
.showcase-card.new h3 { color: var(--emerald); }
.showcase-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.showcase-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; line-height: 1.5; }
.showcase-card.old .showcase-list i { color: #EF4444; }
.showcase-card.new .showcase-list i { color: var(--emerald); }

/* Pricing Architecture */
.pricing-section { padding: 96px 0; }
.pricing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }

.price-card {
  background: var(--bg-white); border-radius: var(--radius-card); padding: 48px 36px;
  border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; transition: all 0.3s ease;
}
.price-card:hover { border-color: var(--emerald); transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.price-card.featured { border: 2.5px solid var(--emerald); box-shadow: var(--shadow-lg); }
.price-card.featured .btn-buy { background: var(--emerald); }

.price-badge {
  position: absolute; top: -16px; right: 32px; background: var(--emerald);
  color: var(--bg-white); padding: 6px 18px; border-radius: 100px; font-size: 0.8rem; font-weight: 800; text-transform: uppercase;
}

.price-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.price-sub { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 24px; min-height: 44px; }
.price-val { font-size: 3.5rem; font-weight: 800; color: var(--text-main); margin-bottom: 32px; }
.price-val span { font-size: 1rem; color: var(--text-muted); font-weight: 500; }

.price-feats { list-style: none; margin-bottom: 40px; display: flex; flex-direction: column; gap: 16px; font-size: 0.98rem; }
.price-feats li { display: flex; align-items: flex-start; gap: 12px; color: var(--text-main); }
.price-feats li i { color: var(--emerald); font-size: 1.25rem; margin-top: 2px; flex-shrink: 0; }

.btn-buy {
  width: 100%; background: var(--text-main); color: var(--bg-white);
  padding: 16px; border-radius: 14px; font-weight: 700; border: none;
  cursor: pointer; font-size: 1rem; transition: all 0.25s ease; text-align: center;
}
.btn-buy:hover { opacity: 0.92; transform: translateY(-2px); }
.btn-buy.on-emerald { background: var(--emerald); }

/* Modal Checkout */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(8px);
  z-index: 9999; display: none; align-items: center; justify-content: center;
}
.modal-box {
  background: var(--bg-white); border-radius: 24px; padding: 36px;
  max-width: 460px; width: 90%; position: relative; box-shadow: var(--shadow-lg);
}
.modal-close { position: absolute; top: 24px; right: 24px; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }

.checkout-modal-head {
  font-weight: 800; color: var(--emerald); font-size: 1.15rem; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.checkout-modal-desc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 20px; }
.checkout-modal-desc strong { color: var(--text-main); }
.checkout-field { margin-bottom: 14px; }
.checkout-field.mb-20 { margin-bottom: 20px; }
.checkout-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text-main); }
.checkout-field input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border-light); font-size: 0.95rem;
}
.btn-checkout-submit { width: 100%; justify-content: center; padding: 14px; }
.checkout-success { display: none; text-align: center; padding: 10px 0; }
.checkout-success-icon { font-size: 3.5rem; color: var(--emerald); display: block; margin-bottom: 12px; }
.checkout-success h3 { margin-bottom: 8px; font-weight: 700; }
.checkout-success p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }

/* Footer */
footer { padding: 48px 0; background: var(--bg-dark); color: #94A3B8; font-size: 0.92rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
footer a { color: #94A3B8; } footer a:hover { color: var(--bg-white); }
.footer-links { display: flex; gap: 24px; }

/* Selector de idioma minimalista estilo Airbnb */
.lang-modal-overlay {
  align-items: center; justify-content: center;
  background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(8px); z-index: 99999;
}
.lang-modal-box { max-width: 440px; border-radius: 24px; padding: 32px; text-align: left; background: #ffffff; }
.lang-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.lang-modal-title { font-size: 1.25rem; font-weight: 800; color: #0F172A; display: flex; align-items: center; gap: 8px; }
.lang-modal-title i { color: var(--emerald); }
.lang-modal-close { font-size: 1.5rem; cursor: pointer; color: #64748B; }
.lang-options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lang-option-btn {
  padding: 16px; border-radius: 12px; border: 1px solid #E2E8F0;
  background: #F8FAFC; text-align: left; font-weight: 700; cursor: pointer;
  color: #334155; display: flex; align-items: center; gap: 10px; transition: all 0.2s;
}
.lang-option-btn.lang-active {
  border: 1.5px solid var(--emerald); background: #F0FDF4; color: #166534;
}
.lang-flag { font-size: 1.4rem; }

@media (max-width: 992px) {
  html, body { overflow-x: hidden; width: 100%; position: relative; }
  .container { padding: 0 16px; width: 100%; max-width: 100%; box-sizing: border-box; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 32px; width: 100%; }
  .hero-subtitle { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; flex-wrap: wrap; }
  .hero-title { font-size: 2.2rem; word-break: break-word; }
  .sim-box { width: 100%; max-width: 100%; margin: 0 auto; box-sizing: border-box; }
  .sim-body { padding: 16px; height: 360px; }
  .metrics-bar { padding: 24px 16px; gap: 20px; grid-template-columns: 1fr 1fr; width: 100%; box-sizing: border-box; }
  .metric-number { font-size: 2.2rem; }
  .split-showcase { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .footer-inner div { flex-wrap: wrap; justify-content: center; gap: 14px; }
  nav { display: none; }
  .btn-login { padding: 8px 14px; font-size: 0.82rem; border-radius: 10px; }
  .logo-text { font-size: 1.2rem; }
}
