:root {
  --bg: #0a0e1a;
  --bg2: #111827;
  --card: #1a2233;
  --card2: #232c42;
  --border: #2a3349;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --dim: #64748b;
  --brand: #14b8a6;       /* cyan/teal del logo */
  --brand2: #0ea5e9;
  --brand-green: #1c7f3a; /* verde del logo */
  --ok: #22c55e;
  --warn: #f59e0b;
  --err: #ef4444;
  --shadow: 0 10px 40px rgba(20,184,166,.12);
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }

/* Container */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,14,26,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; }
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.logo img.logo-img {
  height: 36px; width: auto; display: block;
  filter: brightness(1.05);
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-green));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 18px;
  box-shadow: var(--shadow);
}
@media (max-width: 600px) {
  .logo img.logo-img { height: 30px; }
}

/* Hero */
.hero {
  padding: 70px 0 40px;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(20,184,166,.08), transparent 60%);
}
.hero h1 {
  font-size: clamp(28px, 6vw, 52px);
  line-height: 1.1; letter-spacing: -.02em;
  font-weight: 900; margin-bottom: 18px;
}
.hero h1 .gradient {
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .sub {
  font-size: clamp(15px, 2.4vw, 18px); color: var(--muted);
  max-width: 640px; margin: 0 auto 30px;
}
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 10px;
  font-weight: 700; font-size: 15px;
  cursor: pointer; border: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  color: #04141a;
  box-shadow: var(--shadow);
}
.btn-ghost {
  background: var(--card); color: var(--text);
  border: 1px solid var(--border);
}
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* Features grid */
.features {
  padding: 50px 0 30px;
}
.features h2 {
  font-size: clamp(22px, 4vw, 32px); text-align: center;
  font-weight: 800; margin-bottom: 30px;
}
.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.tile {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px;
  transition: border-color .2s ease, transform .15s ease;
}
.tile:hover { border-color: var(--brand); transform: translateY(-2px); }
.tile .ico {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(20,184,166,.18), rgba(14,165,233,.12));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
}
.tile h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 14px; }

/* Pricing card */
.pricing {
  padding: 50px 0; text-align: center;
}
.pricing h2 {
  font-size: clamp(22px, 4vw, 32px); font-weight: 800; margin-bottom: 8px;
}
.pricing .sub {
  color: var(--muted); margin-bottom: 30px;
}
.price-card {
  max-width: 420px; margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--brand); border-radius: 16px;
  padding: 30px; text-align: left;
  box-shadow: var(--shadow);
}
.price-card .plan-name {
  font-size: 13px; color: var(--brand);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 800;
}
.price-card .price {
  font-size: 44px; font-weight: 900; margin: 8px 0 4px;
}
.price-card .price small {
  font-size: 16px; color: var(--muted); font-weight: 500;
}
.price-card ul {
  list-style: none; margin: 18px 0;
}
.price-card li {
  padding: 8px 0; font-size: 14px; display: flex; align-items: start; gap: 10px;
}
.price-card li::before {
  content: "✓"; color: var(--brand); font-weight: 900; flex-shrink: 0;
}

/* Login card */
.center-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 30px 20px;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px;
}
.auth-card h2 {
  font-size: 22px; font-weight: 800; margin-bottom: 6px; text-align: center;
}
.auth-card .sub { color: var(--muted); font-size: 13px; text-align: center; margin-bottom: 22px; }
.input {
  width: 100%; background: var(--bg2); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; font-size: 15px; margin-bottom: 12px;
  font-family: inherit;
}
.input:focus { outline: none; border-color: var(--brand); }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }

.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0; color: var(--dim); font-size: 12px;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

.toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  background: var(--card); border: 1px solid var(--border);
  padding: 12px 18px; border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
  z-index: 200; font-size: 14px;
  animation: slideIn .25s ease;
}
.toast.err { border-color: var(--err); color: var(--err); }
.toast.ok { border-color: var(--ok); color: var(--ok); }
@keyframes slideIn {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 0; text-align: center;
  color: var(--dim); font-size: 12px; margin-top: 60px;
}
footer a { color: var(--dim); margin: 0 8px; }

/* Responsive */
@media (max-width: 600px) {
  .hero { padding: 50px 0 30px; }
  .features { padding: 30px 0; }
  .auth-card { padding: 24px; }
}
