/* ========================================================
   REMI — Landing CSS
   Dark premium: #0A0A0A base · #22C55E verde · blanco
   Space Grotesk (headings) + Inter (cuerpo)
   ======================================================== */

/* --- Variables globales --- */
:root {
  --bg:        #0A0A0A;
  --bg2:       #111111;
  --bg3:       #161616;
  --border:    #222222;
  --green:     #22C55E;
  --green-dim: #16A34A;
  --green-glow:rgba(34,197,94,0.18);
  --white:     #FFFFFF;
  --gray:      #A1A1AA;
  --gray2:     #71717A;
  --text:      #E4E4E7;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow:    0 4px 32px rgba(0,0,0,0.5);
}

/* --- Reset mínimo --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- Tipografía base --- */
h1, h2, h3, h4, .heading {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }

/* --- Utilidades --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-glow);
  color: var(--green);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--green);
  color: #000;
  padding: 14px 28px;
  box-shadow: 0 0 24px var(--green-glow);
}
.btn-primary:hover { box-shadow: 0 0 36px rgba(34,197,94,0.35); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
  padding: 13px 26px;
}
.btn-secondary:hover { border-color: var(--green); color: var(--green); }

/* --- Navbar --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1120px;
  margin: 0 auto;
  gap: 16px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { width: 32px; height: 32px; }
.nav-logo-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--white); text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--gray);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  font-family: 'Space Grotesk', sans-serif;
}
.lang-toggle:hover { border-color: var(--green); color: var(--green); }

/* --- Hero --- */
.hero {
  padding: 90px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(34,197,94,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero-tag { margin: 0 auto 24px; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--white);
  margin-bottom: 20px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 .hl { color: var(--green); }
.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 64px;
}
.hero-note {
  font-size: 0.82rem;
  color: var(--gray2);
  margin-top: 14px;
}

/* --- Mock WhatsApp Chat --- */
.chat-demo {
  max-width: 360px;
  margin: 0 auto;
  background: #1A1A1A;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px var(--border);
}
.chat-demo-header {
  background: #1F1F1F;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.chat-avatar {
  width: 36px; height: 36px;
  background: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.chat-demo-info { text-align: left; }
.chat-demo-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
}
.chat-demo-status { font-size: 0.75rem; color: var(--green); }
.chat-messages {
  padding: 16px 14px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #111111;
}
.msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.msg.visible { opacity: 1; transform: translateY(0); }
.msg-out {
  align-self: flex-end;
  background: #2A3E2A;
  color: #E4E4E7;
  border-bottom-right-radius: 4px;
}
.msg-in {
  align-self: flex-start;
  background: #1F1F1F;
  color: #E4E4E7;
  border-bottom-left-radius: 4px;
  border: 1px solid #2A2A2A;
}
.msg-time {
  font-size: 0.68rem;
  color: var(--gray2);
  margin-top: 4px;
  text-align: right;
}
.msg-in .msg-time { text-align: left; }
.chat-day-divider {
  text-align: center;
  font-size: 0.73rem;
  color: var(--gray2);
  padding: 2px 10px;
  background: #1A1A1A;
  border-radius: 100px;
  align-self: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.chat-day-divider.visible { opacity: 1; }
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: #1F1F1F;
  border: 1px solid #2A2A2A;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  opacity: 0;
  transition: opacity 0.3s;
  max-width: 70px;
}
.typing-indicator.visible { opacity: 1; }
.typing-dot {
  width: 7px; height: 7px;
  background: var(--gray2);
  border-radius: 50%;
  animation: typingBounce 1.2s ease 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(-5px); }
}

/* --- Section base --- */
section {
  padding: 96px 0;
}
.section-label {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  text-align: center;
  margin-bottom: 14px;
}
.section-sub {
  text-align: center;
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 56px;
}

/* --- Features --- */
#features { background: var(--bg2); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(34,197,94,0.4);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px; height: 44px;
  background: var(--green-glow);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  color: var(--green);
}
.feature-card h3 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 7px;
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.55;
}
.feature-new {
  display: inline-block;
  background: var(--green);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0.05em;
}

/* --- Cómo funciona --- */
#how { background: var(--bg); }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  counter-reset: steps;
}
.step {
  text-align: center;
  padding: 32px 24px;
  position: relative;
}
.step-number {
  width: 52px; height: 52px;
  background: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #000;
  margin: 0 auto 18px;
}
.step h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 10px;
}
.step p { font-size: 0.9rem; color: var(--gray); }

/* --- Precios --- */
#pricing { background: var(--bg2); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  align-items: start;
}
.pricing-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px 24px;
  position: relative;
  transition: border-color 0.2s;
}
.pricing-card:hover { border-color: rgba(34,197,94,0.3); }
.pricing-card.featured {
  border-color: var(--green);
  box-shadow: 0 0 32px var(--green-glow);
}
.pricing-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #000;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 100px;
  white-space: nowrap;
  font-family: 'Space Grotesk', sans-serif;
}
.pricing-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.pricing-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin: 10px 0 2px;
}
.pricing-price sup {
  font-size: 1rem;
  vertical-align: super;
}
.pricing-price-alt {
  font-size: 0.8rem;
  color: var(--gray2);
  margin-bottom: 6px;
}
.pricing-period { font-size: 0.82rem; color: var(--gray2); }
.pricing-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.pricing-features li {
  font-size: 0.85rem;
  color: var(--gray);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.pricing-features li .check { color: var(--green); flex-shrink: 0; margin-top: 1px; }
.pricing-features li .cross { color: var(--gray2); flex-shrink: 0; }
.pricing-cta {
  margin-top: 22px;
  width: 100%;
  padding: 12px;
  font-size: 0.9rem;
}
.pricing-annual-note {
  text-align: center;
  color: var(--gray2);
  font-size: 0.85rem;
  margin-top: 22px;
}
.pricing-annual-note strong { color: var(--green); }

/* --- Comparativa --- */
#compare { background: var(--bg); }
.compare-table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
}
.compare-table th, .compare-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.compare-table th {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  color: var(--gray2);
  font-weight: 600;
  background: var(--bg2);
  letter-spacing: 0.03em;
}
.compare-table th.highlight { color: var(--green); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { color: var(--text); font-weight: 500; }
.compare-table td { color: var(--gray); }
.compare-table .yes { color: var(--green); font-weight: 600; }
.compare-table .no { color: #EF4444; }
.compare-table tr:hover td { background: rgba(255,255,255,0.02); }

/* --- FAQ --- */
#faq { background: var(--bg2); }
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: var(--bg3);
  border: none;
  padding: 18px 22px;
  text-align: left;
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
}
.faq-question:hover { background: #1e1e1e; }
.faq-chevron {
  flex-shrink: 0;
  width: 18px; height: 18px;
  color: var(--gray2);
  transition: transform 0.25s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--green); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
  background: var(--bg3);
}
.faq-answer-inner {
  padding: 0 22px 18px;
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.65;
}
.faq-item.open .faq-answer { max-height: 400px; }

/* --- Early Access Form --- */
#early { background: var(--bg); padding: 96px 0; }
.early-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 52px 40px;
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow);
}
.early-box h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--white); margin-bottom: 12px; }
.early-box p { color: var(--gray); margin-bottom: 32px; font-size: 0.97rem; }
.early-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.early-form label {
  font-size: 0.83rem;
  color: var(--gray);
  font-weight: 500;
  margin-bottom: 4px;
  display: block;
}
.early-form input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--white);
  font-size: 0.97rem;
  padding: 13px 15px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.15s;
  outline: none;
}
.early-form input:focus { border-color: var(--green); }
.early-form input::placeholder { color: var(--gray2); }
.early-form .btn-primary { width: 100%; margin-top: 4px; padding: 15px; font-size: 1rem; }
.early-msg {
  display: none;
  margin-top: 18px;
  background: var(--green-glow);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 9px;
  padding: 14px 18px;
  color: var(--green);
  font-size: 0.93rem;
  font-weight: 500;
  text-align: center;
}
.early-msg.show { display: block; }

/* --- Footer --- */
footer {
  background: #080808;
  border-top: 1px solid var(--border);
  padding: 38px 20px;
  text-align: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-logo img { width: 28px; height: 28px; }
.footer-logo-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
}
.footer-text { color: var(--gray2); font-size: 0.82rem; line-height: 1.7; }

/* --- Scroll reveal ---
   Visible por defecto: solo se oculta si el JS marcó html.js-anim.
   Si el JS falla o no corre, la página se ve completa igual. */
html.js-anim .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
html.js-anim .reveal.visible { opacity: 1; transform: translateY(0); }

/* --- Mobile nav --- */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 6px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    gap: 16px;
    z-index: 99;
  }
  .nav-mobile-toggle { display: block; }
  section { padding: 68px 0; }
  .hero { padding: 60px 20px 56px; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .early-box { padding: 36px 22px; }
  .compare-table th, .compare-table td { padding: 11px 13px; font-size: 0.82rem; }
}
@media (max-width: 500px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { text-align: center; }
}
