/* ── Variables ─────────────────────────────────────────────── */
:root {
  --brand:       #2563eb;
  --brand-dark:  #1d4ed8;
  --brand-light: #eff6ff;
  --accent:      #10b981;
  --dark:        #0f172a;
  --dark-2:      #1e293b;
  --muted:       #64748b;
  --border:      #e2e8f0;
  --bg:          #f8fafc;
  --white:       #ffffff;
  --radius:      12px;
  --shadow:      0 4px 24px rgba(0,0,0,.08);
  --shadow-sm:   0 1px 6px rgba(0,0,0,.06);
}

/* ── Reset base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, sans-serif;
       color: var(--dark-2); background: var(--white); line-height: 1.6; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.navbar-brand {
  font-size: 1.3rem; font-weight: 800; color: var(--dark);
  display: flex; align-items: center; gap: .5rem;
}
.navbar-brand .logo-icon {
  width: 32px; height: 32px; background: var(--brand);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 900; font-size: .9rem;
}
.navbar-links { display: flex; align-items: center; gap: 1.5rem; }
.navbar-links a { color: var(--muted); font-size: .95rem; font-weight: 500; }
.navbar-links a:hover { color: var(--dark); text-decoration: none; }
.btn-nav {
  background: var(--brand); color: white !important;
  padding: .45rem 1.1rem; border-radius: 8px; font-weight: 600;
  font-size: .9rem; transition: background .15s;
}
.btn-nav:hover { background: var(--brand-dark) !important; text-decoration: none !important; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .7rem 1.5rem; border-radius: 10px; font-weight: 600;
  font-size: 1rem; cursor: pointer; border: none; transition: all .15s;
  text-decoration: none;
}
.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover { background: var(--brand-dark); color: white; text-decoration: none; }
.btn-outline { background: transparent; color: var(--brand);
               border: 2px solid var(--brand); }
.btn-outline:hover { background: var(--brand-light); text-decoration: none; }
.btn-white { background: white; color: var(--brand); }
.btn-white:hover { background: var(--brand-light); color: var(--brand-dark); text-decoration: none; }
.btn-lg { padding: .85rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .4rem 1rem; font-size: .88rem; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  background:
    linear-gradient(to bottom, rgba(10,18,35,.78) 0%, rgba(10,18,35,.62) 60%, rgba(10,18,35,.80) 100%),
    url('/img/hero.jpg') center center / cover no-repeat;
  color: white;
  padding: 6rem 2rem 5rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(37,99,235,.18) 0%, transparent 65%);
}
.hero-content { position: relative; max-width: 760px; margin: 0 auto; }
.hero-badge {
  display: inline-block; background: rgba(37,99,235,.25);
  border: 1px solid rgba(37,99,235,.5);
  color: #93c5fd; font-size: .82rem; font-weight: 600;
  padding: .3rem .9rem; border-radius: 999px; margin-bottom: 1.5rem;
  letter-spacing: .04em; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900;
  line-height: 1.15; margin: 0 0 1.2rem;
  letter-spacing: -.02em;
}
.hero h1 span { color: #60a5fa; }
.hero p { font-size: 1.15rem; color: #94a3b8; margin: 0 auto 2.5rem;
          max-width: 580px; }

/* Login box */
.login-box {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 1.5rem 2rem;
  max-width: 480px; margin: 0 auto;
  backdrop-filter: blur(8px);
}
.login-box p { color: #94a3b8; font-size: .9rem; margin: 0 0 .75rem; }
.login-input-row {
  display: flex; align-items: center; gap: 0;
  background: white; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; transition: border-color .15s;
}
.login-input-row:focus-within { border-color: var(--brand); }
.login-input-row input {
  flex: 1; border: none; outline: none; padding: .7rem 1rem;
  font-size: 1rem; color: var(--dark-2); background: transparent;
  min-width: 0;
}
.login-input-row .domain-suffix {
  padding: .7rem .75rem .7rem 0;
  color: var(--muted); font-size: .9rem; white-space: nowrap;
  background: white;
}
.login-input-row button {
  background: var(--brand); color: white; border: none;
  padding: .7rem 1.2rem; font-weight: 600; cursor: pointer;
  font-size: .95rem; transition: background .15s; white-space: nowrap;
}
.login-input-row button:hover { background: var(--brand-dark); }
.login-box .login-note { font-size: .78rem; color: #64748b; margin: .6rem 0 0;
                          text-align: center; }

/* ── Sections ──────────────────────────────────────────────── */
section { padding: 5rem 2rem; }
section.alt { background: var(--bg); }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand);
  margin-bottom: .6rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800;
  color: var(--dark); margin: 0 0 .75rem; letter-spacing: -.02em;
}
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 560px; }

/* ── Feature grid ──────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem; margin-top: 3rem;
}
.feature-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .4rem; color: var(--dark); }
.feature-card p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.5; }
.feature-badge {
  display: inline-block; font-size: .68rem; font-weight: 700;
  padding: .15rem .5rem; border-radius: 999px;
  margin-left: .4rem; vertical-align: middle;
}
.badge-basico   { background: #dcfce7; color: #166534; }
.badge-estandar { background: #dbeafe; color: #1e40af; }
.badge-premium  { background: #f3e8ff; color: #6b21a8; }

/* ── Pricing ───────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; margin-top: 3rem; align-items: start;
}
.plan-card {
  background: white; border: 2px solid var(--border);
  border-radius: 16px; padding: 2rem 1.75rem;
  position: relative;
}
.plan-card.featured {
  border-color: var(--brand);
  box-shadow: 0 8px 32px rgba(37,99,235,.15);
}
.plan-featured-tag {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: white;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em;
  padding: .25rem .9rem; border-radius: 0 0 8px 8px;
  text-transform: uppercase;
}
.plan-name { font-size: .8rem; font-weight: 700; text-transform: uppercase;
             letter-spacing: .08em; color: var(--muted); margin-bottom: .5rem; }
.plan-price { font-size: 2.4rem; font-weight: 900; color: var(--dark);
              line-height: 1; margin-bottom: .3rem; }
.plan-price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan-desc { font-size: .88rem; color: var(--muted); margin-bottom: 1.5rem;
             padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.plan-features { list-style: none; padding: 0; margin: 0 0 2rem; }
.plan-features li {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .9rem; padding: .4rem 0; color: var(--dark-2);
}
.plan-features li .icon-check { color: var(--accent); font-size: 1rem; flex-shrink: 0; margin-top: .1rem; }
.plan-features li .icon-x { color: #cbd5e1; font-size: 1rem; flex-shrink: 0; margin-top: .1rem; }
.plan-features li.muted { color: #94a3b8; }
.plan-cta { width: 100%; text-align: center; }

/* ── Steps ─────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
         gap: 2rem; margin-top: 3rem; }
.step { text-align: center; }
.step-num {
  width: 48px; height: 48px; background: var(--brand); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 900; margin: 0 auto 1rem;
}
.step h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .4rem; color: var(--dark); }
.step p  { font-size: .9rem; color: var(--muted); margin: 0; }

/* ── CTA final ─────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--brand) 0%, #1d4ed8 100%);
  color: white; text-align: center; padding: 5rem 2rem;
}
.cta-section h2 { font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 800;
                  margin: 0 0 1rem; letter-spacing: -.02em; }
.cta-section p  { color: #bfdbfe; margin: 0 auto 2rem; max-width: 500px; }

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--dark); color: #94a3b8;
  padding: 3rem 2rem 2rem;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 2rem;
  justify-content: space-between; align-items: flex-start;
}
.footer-brand { font-size: 1.1rem; font-weight: 800; color: white;
                display: flex; align-items: center; gap: .5rem; }
.footer-brand .logo-icon { background: var(--brand); }
.footer-tagline { font-size: .85rem; color: #64748b; margin-top: .3rem; }
.footer-copy { margin-top: 2rem; padding-top: 1.5rem;
               border-top: 1px solid #1e293b;
               max-width: 1100px; margin-left: auto; margin-right: auto;
               font-size: .82rem; color: #475569; text-align: center; }

/* ── Docs layout ───────────────────────────────────────────── */
.docs-wrapper { display: flex; min-height: calc(100vh - 64px); }

.docs-sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  position: sticky; top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}
.docs-sidebar-section {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted);
  padding: .9rem 1.5rem .3rem;
}
.docs-sidebar a {
  display: block; padding: .42rem 1.5rem;
  font-size: .9rem; color: var(--dark-2);
  border-left: 3px solid transparent;
  transition: all .1s;
}
.docs-sidebar a:hover { background: var(--border); color: var(--brand);
                         text-decoration: none; }
.docs-sidebar a.active { color: var(--brand); font-weight: 600;
                          border-left-color: var(--brand);
                          background: var(--brand-light); }

.docs-content {
  flex: 1; min-width: 0; padding: 2.5rem 3rem;
  max-width: 820px;
}
.docs-content h1 { font-size: 1.9rem; font-weight: 800; color: var(--dark);
                    margin: 0 0 .5rem; letter-spacing: -.02em; }
.docs-content .docs-lead { font-size: 1.05rem; color: var(--muted);
                             margin: 0 0 2rem; padding-bottom: 1.5rem;
                             border-bottom: 1px solid var(--border); }
.docs-content h2 { font-size: 1.25rem; font-weight: 700; color: var(--dark);
                    margin: 2rem 0 .75rem; padding-top: .5rem; }
.docs-content h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark-2);
                    margin: 1.5rem 0 .5rem; }
.docs-content p  { margin: 0 0 1rem; color: var(--dark-2); }
.docs-content ul, .docs-content ol { padding-left: 1.4rem; margin: 0 0 1rem; }
.docs-content li { margin-bottom: .35rem; color: var(--dark-2); }

.callout {
  border-left: 4px solid var(--brand); background: var(--brand-light);
  padding: .9rem 1.2rem; border-radius: 0 8px 8px 0; margin: 1.25rem 0;
}
.callout.warn { border-color: #f59e0b; background: #fffbeb; }
.callout.success { border-color: var(--accent); background: #f0fdf4; }
.callout strong { color: var(--dark); }
.callout p { margin: 0; font-size: .92rem; }

.step-list { counter-reset: steps; list-style: none; padding: 0; }
.step-list li {
  counter-increment: steps; padding: .6rem 0 .6rem 3rem;
  position: relative; border-bottom: 1px solid var(--border); font-size: .95rem;
}
.step-list li:last-child { border-bottom: none; }
.step-list li::before {
  content: counter(steps);
  position: absolute; left: 0; top: .55rem;
  width: 26px; height: 26px; background: var(--brand); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 800;
}

.docs-nav-footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.docs-nav-footer a {
  display: flex; align-items: center; gap: .4rem;
  font-size: .9rem; font-weight: 600; color: var(--brand);
}
.docs-nav-footer a:hover { text-decoration: underline; }

table.docs-table {
  width: 100%; border-collapse: collapse; margin: 1rem 0;
  font-size: .9rem;
}
.docs-table th { background: var(--bg); padding: .6rem .9rem;
                  font-size: .78rem; text-transform: uppercase;
                  letter-spacing: .04em; color: var(--muted);
                  border-bottom: 2px solid var(--border); text-align: left; }
.docs-table td { padding: .6rem .9rem; border-bottom: 1px solid var(--border); }
.docs-table tr:last-child td { border-bottom: none; }

kbd {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 4px; padding: .1rem .45rem;
  font-size: .82rem; font-family: monospace; color: var(--dark-2);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar-links a:not(.btn-nav) { display: none; }
  .docs-sidebar { display: none; }
  .docs-content { padding: 1.5rem; }
  .footer-inner { flex-direction: column; }
}

