:root {
  --bg: #ffffff;
  --bg-alt: #f4f7f6;
  --ink: #172a2a;
  --ink-soft: #4a5f5e;
  --brand: #0e7a5f;
  --brand-dark: #0a5c48;
  --accent: #f2b705;
  --card: #ffffff;
  --border: #dbe5e2;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(23, 42, 42, 0.07);
  --header-bg: rgba(255, 255, 255, 0.92);
}

:root[data-theme="dark"] {
  --bg: #0e1514;
  --bg-alt: #101c1a;
  --ink: #e6eeec;
  --ink-soft: #a3b8b3;
  --brand: #34c396;
  --brand-dark: #2aa87f;
  --accent: #f2b705;
  --card: #152220;
  --border: #274039;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  --header-bg: rgba(14, 21, 20, 0.92);
}

:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.15rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.brand-name strong { color: var(--brand); }

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

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--brand);
  color: #fff !important;
}

.btn-primary:hover { background: var(--brand-dark); }

.btn-ghost {
  border-color: var(--border);
  color: var(--ink);
}

.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn-small {
  padding: 0.45rem 1.1rem;
  background: var(--brand);
  color: #fff !important;
}

/* Selector de idioma + toggle de tema */
.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.lang-switch button {
  background: none;
  border: none;
  padding: 0.35rem 0.6rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}

.lang-switch button.active {
  background: var(--brand);
  color: #fff;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0;
}

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  background:
    radial-gradient(60rem 30rem at 50% -10rem, rgba(14, 122, 95, 0.10), transparent),
    var(--bg);
}

.hero-kicker {
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand);
}

.hero-sub {
  max-width: 44rem;
  margin: 1.5rem auto 0;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 2.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }

.section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  text-align: center;
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
}

.section-note {
  max-width: 46rem;
  margin: 2rem auto 0;
  text-align: center;
  color: var(--ink-soft);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.step { position: relative; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.step p { color: var(--ink-soft); font-size: 0.97rem; }

/* Compare */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 52rem;
  margin: 0 auto;
}

.compare-col h3 { margin-bottom: 1rem; text-align: center; }

.compare-featured {
  border-color: var(--brand);
  border-width: 2px;
}

.list-check, .list-x {
  list-style: none;
}

.list-check li, .list-x li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: 0.6rem;
  color: var(--ink-soft);
}

.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

.list-x li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #c0392b;
  font-weight: 700;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Todas las tarjetas de plan miden lo mismo (stretch por fila);
   la promo se ancla al fondo para no desalinear el contenido */
.plan {
  display: flex;
  flex-direction: column;
}

.plan-promo { margin-top: auto; }

.plan h3 { text-align: center; font-size: 1.2rem; }

/* "Por uso": tarjeta alargada que ocupa todo el ancho, debajo de los mensuales */
.plan-wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}

.plan-wide-head {
  flex: 0 0 220px;
  text-align: center;
}

.plan-wide-head .price { margin: 0.5rem 0 0; }

.plan-wide-features {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem 1.5rem;
  align-items: center;
}

.plan-wide-features li { margin-bottom: 0; }

.plan-featured {
  border-color: var(--brand);
  border-width: 2px;
}

.price {
  text-align: center;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--brand);
  margin: 0.75rem 0 1.25rem;
  white-space: nowrap;
}

.price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: normal;
}

.plan-promo {
  margin-top: 1.25rem;
  padding: 0.6rem 0.9rem;
  background: rgba(242, 183, 5, 0.15);
  border-radius: 10px;
  font-size: 0.92rem;
  text-align: center;
}

.pricing-notes {
  max-width: 46rem;
  margin: 2rem auto 0;
  color: var(--ink-soft);
  padding-left: 1.25rem;
}

.pricing-notes li { margin-bottom: 0.5rem; }

/* Contact */
.contact { text-align: center; }

.contact p {
  max-width: 38rem;
  margin: 0 auto 1.75rem;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

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

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-links a:hover { color: var(--brand); }

/* Legal pages */
.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.legal h1 { font-size: 2rem; margin-bottom: 0.5rem; letter-spacing: -0.01em; }

.legal .updated { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 2rem; }

.legal h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }

.legal p, .legal ul { margin-bottom: 1rem; color: var(--ink-soft); }

.legal ul { padding-left: 1.5rem; }

.legal li { margin-bottom: 0.4rem; }

.legal .disclaimer {
  margin-top: 3rem;
  padding: 1rem 1.25rem;
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  font-size: 0.92rem;
}

.legal a { color: var(--brand); }

/* Responsive */
@media (max-width: 980px) {
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .plan-wide-features { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .nav-links { gap: 0.5rem; }
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3rem 0; }
}

@media (max-width: 560px) {
  .pricing { grid-template-columns: 1fr; }
  .plan-wide {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .plan-wide-head { flex: none; }
  /* Nav compacto: solo el logo + controles */
  .brand-name { display: none; }
  .nav { min-height: 56px; }
}
