/* ─────────────────────────────────────────────────────────────────────────────
   Fleviath landing — paleta §4ter Leviathan + estructura coherente con
   neoarcadiacore.com (dark, Inter, gradients).
   ──────────────────────────────────────────────────────────────────────────── */

:root {
  --bg: #0A0E1A;
  --bg-deep: #0D1424;
  --bg-card: #111a2e;
  --brand: #0B3D91;
  --brand-deep: #123A6B;
  --ice: #27E0E0;
  --ice-soft: #5CD6FF;
  --ice-text: #E8F4FF;
  --ice-text-soft: #94a3b8;
  --teal: #2FBfA0;
  --warn: #F5A623;
  --danger: #FF5C7A;
  --line: rgba(39, 224, 224, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ice-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.wrap-narrow { max-width: 760px; }

/* ═════════════ NAVBAR ═════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(10, 14, 26, 0.85);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--ice), var(--ice-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-logo { width: 28px; height: 28px; flex-shrink: 0; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.92rem;
  color: var(--ice-text-soft);
}
.nav-links a:hover { color: var(--ice); }

/* ═════════════ BOTONES ═════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, color .2s;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-lg { padding: 0.95rem 1.8rem; font-size: 1rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--ice), var(--ice-soft));
  color: var(--bg);
  box-shadow: 0 6px 20px rgba(39, 224, 224, 0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(39, 224, 224, 0.4); }
.btn-outline {
  border-color: rgba(39, 224, 224, 0.4);
  color: var(--ice-text);
}
.btn-outline:hover { border-color: var(--ice); color: var(--ice); background: rgba(39, 224, 224, 0.05); }
.btn-ghost {
  color: var(--ice-text);
  border-color: rgba(232, 244, 255, 0.15);
}
.btn-ghost:hover { background: rgba(232, 244, 255, 0.05); border-color: rgba(232, 244, 255, 0.3); }

/* ═════════════ HERO ═════════════ */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(39, 224, 224, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(11, 61, 145, 0.30), transparent 60%);
  z-index: 0;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  background: rgba(39, 224, 224, 0.08);
  border: 1px solid rgba(39, 224, 224, 0.3);
  color: var(--ice);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 1.75rem;
}
.badge a { color: var(--ice); border-bottom: 1px dotted rgba(39, 224, 224, 0.4); }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero h1 .ink {
  background: linear-gradient(135deg, var(--ice), var(--ice-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  font-size: 1.15rem;
  color: var(--ice-text-soft);
  max-width: 720px;
  margin: 0 auto 2rem;
}
.hero p strong { color: var(--ice-text); font-weight: 600; }
.cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-sub {
  margin-top: 2.5rem !important;
  font-size: 0.88rem !important;
  color: var(--ice-text-soft);
  opacity: 0.75;
}

/* ═════════════ Secciones genéricas ═════════════ */
section { padding: 5rem 0; }
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}
.section-sub {
  text-align: center;
  color: var(--ice-text-soft);
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto 3rem;
}

/* ═════════════ FEATURES ═════════════ */
.features { border-top: 1px solid var(--line); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.feature {
  background: rgba(13, 20, 36, 0.6);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.75rem;
  transition: border-color .2s, transform .2s;
}
.feature:hover { border-color: rgba(39, 224, 224, 0.35); transform: translateY(-2px); }
.feature-ico {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  display: inline-block;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  background: rgba(39, 224, 224, 0.1);
  border: 1px solid rgba(39, 224, 224, 0.2);
}
.feature h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--ice-text);
}
.feature p {
  color: var(--ice-text-soft);
  font-size: 0.95rem;
}

/* ═════════════ COMPARATIVA ═════════════ */
.comparativa { background: linear-gradient(to bottom, transparent, rgba(11, 61, 145, 0.08), transparent); }
.table-scroll { overflow-x: auto; margin: 0 -1.5rem; padding: 0 1.5rem; }
.comp {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: rgba(13, 20, 36, 0.6);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.comp thead {
  background: rgba(11, 61, 145, 0.15);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ice-text-soft);
}
.comp th, .comp td {
  padding: 0.9rem 1.2rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.comp th { font-weight: 600; }
.comp tbody tr:last-child td { border-bottom: none; }
.comp tbody td:first-child { text-align: left; color: var(--ice-text); font-weight: 500; }
.comp .us { background: rgba(39, 224, 224, 0.06); color: var(--ice); font-weight: 600; }

/* ═════════════ PLANES ═════════════ */
.planes { border-top: 1px solid var(--line); }
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.plan {
  position: relative;
  background: rgba(13, 20, 36, 0.6);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.plan-pro {
  border-color: rgba(39, 224, 224, 0.5);
  background: linear-gradient(180deg, rgba(39, 224, 224, 0.07), rgba(13, 20, 36, 0.6));
}
.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--ice), var(--ice-soft));
  color: var(--bg);
  padding: 0.25rem 1rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.plan h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ice);
  margin-bottom: 0.5rem;
}
.price {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.price span { font-size: 0.95rem; font-weight: 400; color: var(--ice-text-soft); }
.price-yr { font-size: 0.8rem; color: var(--ice-text-soft); margin-bottom: 1.25rem; }
.plan ul {
  margin: 1.25rem 0 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--ice-text-soft);
}
.plan ul li::before {
  content: '✓';
  color: var(--teal);
  display: inline-block;
  width: 1.2rem;
  font-weight: 700;
}
.plan .btn { width: 100%; justify-content: center; }
.planes-foot { text-align: center; color: var(--ice-text-soft); font-size: 0.92rem; }
.planes-foot em { color: var(--ice); font-style: normal; }

/* ═════════════ FAQ ═════════════ */
.faq { border-top: 1px solid var(--line); }
.faq details {
  background: rgba(13, 20, 36, 0.6);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 1rem 1.3rem;
  font-weight: 600;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ice-text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--ice); font-weight: 400; font-size: 1.4rem; }
.faq details[open] summary::after { content: '−'; }
.faq details p {
  padding: 0 1.3rem 1.2rem;
  color: var(--ice-text-soft);
  font-size: 0.95rem;
}
.faq code {
  background: rgba(39, 224, 224, 0.1);
  border: 1px solid rgba(39, 224, 224, 0.25);
  color: var(--ice);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.85em;
}
.faq a { color: var(--ice); border-bottom: 1px dotted rgba(39, 224, 224, 0.4); }

/* ═════════════ CTA FINAL ═════════════ */
.cta-final {
  background: linear-gradient(135deg, rgba(11, 61, 145, 0.25), rgba(39, 224, 224, 0.08));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-final h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 2rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.015em;
}

/* ═════════════ FOOTER ═════════════ */
.footer { background: rgba(13, 20, 36, 0.4); padding-top: 4rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 3rem;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
.brand-foot { font-size: 1.1rem; margin-bottom: 0.75rem; }
.footer-tag { color: var(--ice-text-soft); font-size: 0.9rem; margin-bottom: 0.5rem; }
.footer-tag a { color: var(--ice); border-bottom: 1px dotted rgba(39, 224, 224, 0.4); }
.footer h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ice-text-soft);
  margin-bottom: 1rem;
}
.footer ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer ul a { color: var(--ice-text); font-size: 0.92rem; }
.footer ul a:hover { color: var(--ice); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.3rem 0;
  font-size: 0.85rem;
  color: var(--ice-text-soft);
  opacity: 0.7;
}

/* ═════════════ Responsive ═════════════ */
@media (max-width: 720px) {
  .nav-links { gap: 0.6rem; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 4rem 0 3rem; }
  section { padding: 3.5rem 0; }
  .comp { font-size: 0.88rem; }
  .comp th, .comp td { padding: 0.65rem 0.8rem; }
}
