/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --primary:        #4F46E5;
  --primary-dark:   #4338CA;
  --primary-light:  #EEF2FF;
  --member-color:   #059669;
  --member-light:   #ECFDF5;
  --text:           #111827;
  --text-muted:     #6B7280;
  --bg:             #FFFFFF;
  --surface:        #F9FAFB;
  --border:         #E5E7EB;
  --code-bg:        #F3F4F6;
  --radius:         12px;
  --radius-sm:      8px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:      0 4px 16px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
  --max-width:      1120px;
  --font:           'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 3px;
}
code {
  font-family: 'Courier New', Courier, monospace;
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .875em;
}

/* ── Layout ────────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font);
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background .15s, border-color .15s, transform .1s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-cta {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-cta:hover {
  background: #F5F3FF;
  border-color: #F5F3FF;
}

.btn-sm  { padding: .45rem 1rem; font-size: .875rem; }
.btn-lg  { padding: .875rem 2rem; font-size: 1.0625rem; border-radius: var(--radius); }

/* ── Header ────────────────────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--primary);
  letter-spacing: -.03em;
}
.logo:hover { text-decoration: none; }
.logo img {
  width: 28px;
  height: 28px;
  display: block;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 1;
  justify-content: center;
}
.header-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: .9375rem;
}
.header-nav a:hover { color: var(--primary); text-decoration: none; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
#hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(150deg, #fff 55%, var(--primary-light) 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-content h1 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
}
.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 460px;
}
.hero-note {
  margin-top: 1rem;
  font-size: .875rem;
  color: var(--text-muted);
}

/* Hero visual */
.hero-visual { display: flex; justify-content: flex-start; }
.hero-visual img {
  width: 100%;
  max-width: 400px;
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(79, 70, 229, .18));
}

/* ── Definición del producto ───────────────────────────────────────────────── */
#que-es-samby {
  padding: 3rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.definition-inner { max-width: 780px; }
#que-es-samby h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: .75rem;
  letter-spacing: -.02em;
}
#que-es-samby p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.8;
}
#que-es-samby em {
  font-style: normal;
  color: var(--primary);
  font-weight: 600;
}

/* ── Funcionalidades ───────────────────────────────────────────────────────── */
#funcionalidades { padding: 5rem 0; }
#funcionalidades h2 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: -.025em;
  margin-bottom: .5rem;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-bottom: 3rem;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.feature-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top-width: 4px;
  border-radius: var(--radius);
  padding: 2rem;
}
.feature-col--manager { border-top-color: var(--primary); }
.feature-col--member  { border-top-color: var(--member-color); }
.feature-col h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: .375rem;
  letter-spacing: -.015em;
}
.feature-col-desc {
  font-size: .9375rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}
.feature-list { display: flex; flex-direction: column; gap: 1.25rem; }
.feature-list li { display: flex; gap: .875rem; align-items: flex-start; }
.feature-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--primary);
  border-radius: 50%;
  margin-top: 2px;
  position: relative;
}
.feature-check--member { background: var(--member-color); }
.feature-check::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5l3 3 6-6' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.feature-list strong {
  display: block;
  font-size: .9375rem;
  margin-bottom: .125rem;
}
.feature-list p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Cómo empezar ──────────────────────────────────────────────────────────── */
#como-empezar {
  padding: 5rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
#como-empezar h2 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: -.025em;
  margin-bottom: .5rem;
}
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2.5rem auto 0;
  max-width: 680px;
}
.step { display: flex; gap: 1.25rem; align-items: flex-start; }
.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .9375rem;
}
.step-content h3 {
  font-size: 1rem;
  font-weight: 700;
  padding-top: .625rem;
  margin-bottom: .25rem;
}
.step-content p { font-size: .9375rem; color: var(--text-muted); }
.step-content a { font-weight: 600; }
.howto-cta { margin-top: .5rem; text-align: center; }

/* ── Precio ────────────────────────────────────────────────────────────────── */
#precio {
  padding: 5rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
#precio h2 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: -.025em;
  margin-bottom: .5rem;
}
.pricing-card {
  max-width: 440px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2.5rem 2rem;
  text-align: center;
}
.pricing-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: .8125rem;
  padding: .25rem .75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.pricing-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: .75rem;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .25rem;
}
.pricing-amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.pricing-period {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 600;
}
.pricing-alt {
  font-size: .9375rem;
  color: var(--text-muted);
  margin-top: .375rem;
}
.pricing-save {
  color: var(--member-color);
  font-weight: 700;
}
.pricing-note {
  font-size: .875rem;
  color: var(--text-muted);
  margin-top: .5rem;
  margin-bottom: 1.75rem;
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 2rem;
  text-align: left;
}
.pricing-features li {
  position: relative;
  padding-left: 1.75rem;
  font-size: .9375rem;
  color: var(--text);
}
.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
}
.pricing-features li::after {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5l3 3 6-6' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.pricing-cta {
  width: 100%;
  justify-content: center;
  margin-bottom: 1rem;
}
.pricing-fine-print {
  font-size: .8125rem;
  color: var(--text-muted);
}

/* ── FAQ ───────────────────────────────────────────────────────────────────── */
#faq { padding: 5rem 0; }
#faq h2 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: -.025em;
  margin-bottom: 2.5rem;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 auto;
  max-width: 780px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
}
.faq-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .625rem;
}
.faq-item p {
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}
.faq-item a { font-weight: 600; }

/* ── CTA final ─────────────────────────────────────────────────────────────── */
#cta-final {
  padding: 5rem 0;
  background: var(--primary);
  color: #fff;
}
.cta-inner { text-align: center; }
#cta-final h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: .75rem;
}
#cta-final p {
  font-size: 1.125rem;
  opacity: .85;
  margin-bottom: 2rem;
}

/* ── Páginas legales ───────────────────────────────────────────────────────── */
.legal-page { padding: 4rem 0 5rem; }
.legal-inner { max-width: 760px; }
.legal-inner h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: .5rem;
}
.legal-updated {
  color: var(--text-muted);
  font-size: .9375rem;
  margin-bottom: 2.5rem;
}
.legal-inner h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.015em;
  margin-top: 2.5rem;
  margin-bottom: .75rem;
}
.legal-inner h2:first-of-type { margin-top: 0; }
.legal-inner p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.legal-inner ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.legal-inner li {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: .5rem;
}
.legal-inner strong { color: var(--text); }
.legal-inner a { font-weight: 600; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 2rem;
}
.footer-brand {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.02em;
}
.footer-copy {
  font-size: .875rem;
  color: var(--text-muted);
  flex: 1;
}
footer nav { display: flex; gap: 1.25rem; }
footer nav a { font-size: .875rem; color: var(--text-muted); }
footer nav a:hover { color: var(--text); }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: 1; justify-content: center; }
  .hero-visual img { max-width: 280px; }
  #como-empezar h2,
  #como-empezar .section-subtitle { text-align: center; }
  #faq h2 { text-align: center; }
  .steps-list { max-width: none; }
  .pricing-card { padding: 2rem 1.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-copy { flex: none; }
  footer nav { justify-content: center; }
}

@media (max-width: 480px) {
  #hero { padding: 3rem 0 2.5rem; }
  #funcionalidades,
  #como-empezar,
  #precio,
  #faq { padding: 3.5rem 0; }
  #cta-final { padding: 3.5rem 0; }
}
