/* =============================================
   MARTA ENGLISH — LANDING PAGE STYLES
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #a5b4fc;
  --secondary: #f59e0b;
  --accent: #10b981;
  --danger: #ef4444;
  --text: #1e293b;
  --text2: #475569;
  --text3: #94a3b8;
  --bg: #f8fafc;
  --bg2: #f1f5f9;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,.25);
  --r: 12px;
  --r-lg: 20px;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Tipografía ── */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { color: var(--text2); }

a  { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px; font-size: .95rem;
  font-weight: 600; border: none; cursor: pointer;
  transition: all .2s ease; text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; box-shadow: 0 4px 15px rgba(99,102,241,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(99,102,241,.5); color: #fff; }
.btn-secondary { background: var(--white); color: var(--primary); border: 2px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); background: #f0f0ff; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-gold {
  background: linear-gradient(135deg, var(--secondary), #d97706);
  color: #fff; box-shadow: 0 4px 15px rgba(245,158,11,.4);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(245,158,11,.5); color: #fff; }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(248,250,252,.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0; transition: all .3s;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 800; color: var(--text); }
.nav-logo .logo-icon { width: 38px; height: 38px; background: linear-gradient(135deg,var(--primary),var(--primary-dark)); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { color: var(--text2); font-weight: 500; font-size: .9rem; transition: color .2s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 80px;
  background: linear-gradient(135deg, #f0f0ff 0%, #fdf4ff 50%, #f0fdf4 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(16,185,129,.1) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 50px; padding: 6px 16px; font-size: .8rem; font-weight: 600; color: var(--primary); margin-bottom: 24px; box-shadow: var(--shadow); }
.hero h1 { margin-bottom: 20px; }
.hero h1 span { background: linear-gradient(135deg, var(--primary), #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 1.1rem; line-height: 1.7; margin-bottom: 36px; color: var(--text2); }
.hero-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero-trust { margin-top: 40px; display: flex; align-items: center; gap: 20px; }
.hero-trust .stars { color: var(--secondary); font-size: 1rem; letter-spacing: 2px; }
.hero-trust p { font-size: .85rem; color: var(--text3); }
.hero-trust strong { color: var(--text2); }

/* Avatar de Marta */
.hero-visual { position: relative; display: flex; justify-content: center; }
.marta-card {
  background: var(--white); border-radius: var(--r-lg); padding: 32px;
  box-shadow: var(--shadow-xl); max-width: 380px; width: 100%;
  position: relative;
}
.marta-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; margin: 0 auto 16px;
  box-shadow: 0 8px 25px rgba(99,102,241,.35);
}
.marta-card h3 { text-align: center; margin-bottom: 4px; }
.marta-card .role { text-align: center; color: var(--text3); font-size: .85rem; margin-bottom: 20px; }
.chat-preview { display: flex; flex-direction: column; gap: 12px; }
.chat-bubble {
  padding: 12px 16px; border-radius: var(--r); font-size: .88rem;
  line-height: 1.5; max-width: 85%;
}
.chat-bubble.marta { background: linear-gradient(135deg,var(--primary),var(--primary-dark)); color: #fff; align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-bubble.user { background: var(--bg2); color: var(--text); align-self: flex-end; border-bottom-right-radius: 4px; }
.typing-dots { display: flex; gap: 4px; padding: 12px 16px; background: var(--bg2); border-radius: var(--r); align-self: flex-start; width: fit-content; }
.typing-dots span { width: 6px; height: 6px; background: var(--text3); border-radius: 50%; animation: blink 1.4s infinite; }
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100% { opacity: .3; } 40% { opacity: 1; } }

.floating-badge {
  position: absolute; background: var(--white); border-radius: var(--r);
  padding: 8px 14px; box-shadow: var(--shadow-lg);
  font-size: .78rem; font-weight: 600; display: flex; align-items: center; gap: 6px;
  animation: float 3s ease-in-out infinite;
}
.floating-badge.badge-1 { top: -16px; right: -16px; color: var(--accent); border: 1px solid rgba(16,185,129,.2); }
.floating-badge.badge-2 { bottom: -16px; left: -16px; color: var(--primary); border: 1px solid rgba(99,102,241,.2); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ── FEATURES ── */
.features { background: var(--white); }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 64px; }
.section-header .label { color: var(--primary); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.feature-card {
  padding: 32px; border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: all .3s; position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.feature-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { font-size: .9rem; }

/* ── LEVELS ── */
.levels { background: linear-gradient(135deg, #f0f0ff, #fdf4ff); }
.levels-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.level-chip {
  text-align: center; padding: 20px 12px; border-radius: var(--r);
  background: var(--white); border: 2px solid var(--border); transition: all .2s;
}
.level-chip:hover { border-color: var(--primary); transform: scale(1.05); }
.level-chip .badge { font-size: 1.5rem; font-weight: 800; display: block; }
.level-chip .name { font-size: .75rem; color: var(--text3); margin-top: 4px; }
.level-chip.a1 .badge { color: #10b981; }
.level-chip.a2 .badge { color: #06b6d4; }
.level-chip.b1 .badge { color: #6366f1; }
.level-chip.b2 .badge { color: #8b5cf6; }
.level-chip.c1 .badge { color: #f59e0b; }
.level-chip.c2 .badge { color: #ef4444; }

/* ── CÓMO FUNCIONA ── */
.how-it-works { background: var(--white); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-top: 60px; }
.step { text-align: center; }
.step-num {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-size: 1.4rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(99,102,241,.35);
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: .9rem; }

/* ── PRICING ── */
.pricing { background: var(--bg); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; max-width: 900px; margin: 0 auto; }
.price-card {
  background: var(--white); border: 2px solid var(--border);
  border-radius: var(--r-lg); padding: 40px; position: relative;
  transition: all .3s;
}
.price-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99,102,241,.1), var(--shadow-xl);
}
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; padding: 4px 20px; border-radius: 50px;
  font-size: .78rem; font-weight: 700; white-space: nowrap;
}
.price-card .plan-name { font-size: .9rem; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.price-card .price { font-size: 3rem; font-weight: 800; color: var(--text); line-height: 1; }
.price-card .price span { font-size: 1rem; font-weight: 500; color: var(--text3); }
.price-card .period { color: var(--text3); font-size: .85rem; margin-bottom: 28px; }
.price-features { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }
.price-features li { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; }
.price-features li .check { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.price-features li .cross { color: var(--text3); flex-shrink: 0; margin-top: 2px; }
.trial-banner {
  text-align: center; margin-top: 48px;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1px solid rgba(16,185,129,.3); border-radius: var(--r);
  padding: 24px; max-width: 500px; margin-left: auto; margin-right: auto;
}
.trial-banner .trial-icon { font-size: 2rem; margin-bottom: 8px; }
.trial-banner strong { color: var(--accent); }

/* ── TESTIMONIALS ── */
.testimonials { background: var(--white); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.testimonial-card {
  background: var(--bg); border-radius: var(--r-lg); padding: 28px;
  border: 1px solid var(--border);
}
.stars { color: var(--secondary); font-size: .9rem; margin-bottom: 14px; }
.testimonial-card p { font-size: .93rem; line-height: 1.7; margin-bottom: 20px; color: var(--text2); }
.reviewer { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.reviewer-info .name { font-weight: 600; font-size: .9rem; }
.reviewer-info .detail { color: var(--text3); font-size: .8rem; }

/* ── CTA FINAL ── */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark), #7c3aed);
  padding: 96px 0; text-align: center; color: #fff;
}
.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255,255,255,.8); font-size: 1.1rem; margin: 20px 0 40px; }
.cta-section .btn-secondary { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.3); }
.cta-section .btn-secondary:hover { background: rgba(255,255,255,.25); }

/* ── FOOTER ── */
.footer {
  background: var(--text); color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 1.2rem; font-weight: 800; margin-bottom: 16px; }
.footer-brand p { font-size: .88rem; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: rgba(255,255,255,.6); font-size: .88rem; transition: color .2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; font-size: .82rem; flex-wrap: wrap; gap: 12px; }

/* ── MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: var(--r-lg); padding: 40px;
  max-width: 440px; width: 100%; position: relative;
  box-shadow: var(--shadow-xl); animation: modalIn .2s ease;
}
@keyframes modalIn { from { transform: scale(.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; cursor: pointer; color: var(--text3); font-size: 1.3rem; line-height: 1; padding: 4px; border-radius: 6px; }
.modal-close:hover { background: var(--bg2); color: var(--text); }
.modal h2 { margin-bottom: 8px; }
.modal .subtitle { color: var(--text3); font-size: .9rem; margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: .92rem; transition: border-color .2s;
  outline: none; font-family: var(--sans);
}
.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.form-divider { text-align: center; color: var(--text3); font-size: .8rem; margin: 16px 0; }
.modal-switch { text-align: center; margin-top: 16px; font-size: .88rem; color: var(--text2); }
.error-msg { color: var(--danger); font-size: .82rem; margin-top: 4px; display: none; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { display: none; }
  .levels-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .levels-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .pricing-grid { grid-template-columns: 1fr; }
}
