:root {
  --bg: #0b0e17;
  --bg2: #10141f;
  --surface: #161b28;
  --surface2: #1c2232;
  --border: #262d3d;
  --text: #e8ebf2;
  --muted: #9aa3b5;
  --dim: #6b7383;
  --accent: #2ecc71;
  --accent2: #27ae60;
  --blue: #4f8cff;
  --warn: #f1c40f;
  --radius: 14px;
  font-size: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 5vw, 3.4rem); font-weight: 800; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 760; text-align: center; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-family: Menlo, SFMono-Regular, Consolas, monospace; background: var(--surface2); padding: .05em .4em; border-radius: 6px; font-size: .92em; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.hero-inner > *, .engines-inner > *, .security-inner > * { min-width: 0; }
.card > div { min-width: 0; } .card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub { color: var(--muted); text-align: center; max-width: 720px; margin: 0 auto 2rem; font-size: 1.05rem; }
.fine { color: var(--dim); font-size: .85rem; }
.center { text-align: center; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; font-weight: 650; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .08s ease, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: #07140c; }
.btn.primary:hover { background: #3ddb7f; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn.ghost:hover { background: var(--surface); }
.btn.big { padding: 14px 24px; font-size: 1.02rem; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); background: rgba(11,14,23,.75); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.1rem; }
.links { display: flex; gap: 22px; margin-left: 8px; }
.links a { color: var(--muted); font-weight: 550; font-size: .95rem; }
.links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.lang { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 7px 8px; font-size: .9rem; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 8px; font-size: 1.2rem; padding: 4px 10px; }

/* Hero */
.hero { padding: 84px 0 56px; background: radial-gradient(1200px 600px at 70% -10%, rgba(46,204,113,.14), transparent 60%), radial-gradient(900px 500px at 10% 20%, rgba(79,140,255,.12), transparent 60%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 650; letter-spacing: .04em; text-transform: uppercase; font-size: .78rem; margin-bottom: 14px; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; margin: 22px 0 12px; flex-wrap: wrap; }

/* Mock de la app */
.window { max-width: 100%; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); overflow: hidden; }
.titlebar { height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: var(--bg2); border-bottom: 1px solid var(--border); }
.titlebar i { width: 11px; height: 11px; border-radius: 50%; background: #3a4154; display: inline-block; }
.titlebar i:first-child { background: #ff5f57; } .titlebar i:nth-child(2) { background: #febc2e; } .titlebar i:nth-child(3) { background: #28c840; }
.app { display: flex; min-height: 360px; font-size: 11px; }
.rail { width: 44px; background: var(--bg2); border-right: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; padding-top: 10px; gap: 14px; }
.rail-logo { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, #1F2430, #0C0F14); border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center; margin-bottom: 6px; }
.rail b { width: 16px; height: 12px; border-radius: 3px; background: #2b3346; display: block; }
.rail b.on { background: var(--accent); }
.pane { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pane-head { display: flex; align-items: center; gap: 10px; }
.pane-head strong { font-size: 14px; }
.search { flex: 1; min-width: 0; background: var(--bg2); border: 1px solid var(--border); border-radius: 7px; padding: 5px 8px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill-btn { background: var(--accent); color: #07140c; font-weight: 800; padding: 5px 9px; border-radius: 7px; font-size: 10px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips em { font-style: normal; border: 1px solid var(--border); border-radius: 7px; padding: 3px 8px; color: var(--muted); }
.chips em.sel { background: rgba(46,204,113,.18); border-color: transparent; color: var(--accent); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.card { display: flex; gap: 8px; background: var(--bg2); border: 1px solid var(--border); border-radius: 9px; padding: 8px; }
.card b { display: block; font-size: 11.5px; }
.card small { color: var(--muted); font-family: Menlo, monospace; font-size: 9.5px; }
.ico { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; flex: none; }
.ico.ssh { background: rgba(79,140,255,.18); color: var(--blue); }
.ico.pg { background: rgba(46,204,113,.18); color: var(--accent); }
.ico.redis { background: rgba(231,76,60,.18); color: #e74c3c; }
.ico.mongo { background: rgba(39,174,96,.2); color: #2ecc71; }
.ico.ora { background: rgba(241,196,15,.18); color: var(--warn); }
.tags { display: flex; gap: 4px; margin-top: 5px; }
.tags i { font-style: normal; background: var(--surface2); border-radius: 5px; padding: 1px 6px; font-size: 9px; color: var(--muted); }
.tags i.t { color: var(--accent); }
.term { background: #0a0d14; border: 1px solid var(--border); border-radius: 9px; padding: 10px; font-family: Menlo, monospace; font-size: 10.5px; line-height: 1.6; color: #d8dce6; }
.term .g { color: var(--accent); } .term .b { color: var(--blue); } .term .dim { color: var(--dim); }
.cursor { display: inline-block; width: 7px; height: 12px; background: #d8dce6; vertical-align: middle; animation: blink 1s steps(2) infinite; }
@keyframes blink { to { opacity: 0; } }

/* Logos */
.logos { padding: 30px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg2); }
.logos p { text-align: center; color: var(--dim); margin: 0 0 12px; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.logos ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; color: var(--muted); font-weight: 650; }

/* Features */
.features { padding: 80px 0; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.grid article p { color: var(--muted); font-size: .93rem; margin: 0; }
.fi { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(46,204,113,.14); color: var(--accent); font-weight: 800; margin-bottom: 12px; font-family: Menlo, monospace; }

/* Motores */
.engines { padding: 60px 0 80px; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.engines-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.engines h2, .engines .sub { text-align: left; margin-left: 0; }
.engine-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.engine-list li { display: flex; flex-direction: column; border-left: 2px solid var(--accent); padding-left: 10px; }
.engine-list span { color: var(--dim); font-size: .85rem; }
.window.small .sql { padding: 12px; font-size: 11.5px; }
.sql-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.sql-tabs em { font-style: normal; padding: 4px 10px; border-radius: 7px 7px 0 0; color: var(--muted); border: 1px solid transparent; }
.sql-tabs em.sel { background: var(--bg2); border-color: var(--border); color: var(--text); }
.sql pre { margin: 0 0 10px; overflow-x: auto; font-family: Menlo, monospace; background: #0a0d14; border: 1px solid var(--border); border-radius: 8px; padding: 10px; color: #d8dce6; }
.sql .k { color: var(--blue); font-weight: 700; } .sql .s { color: var(--warn); }
.sql table { width: 100%; display: block; overflow-x: auto; border-collapse: collapse; font-family: Menlo, monospace; font-size: 10.5px; }
.sql th { text-align: left; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--border); padding: 4px 6px; }
.sql td { padding: 4px 6px; border-bottom: 1px solid rgba(38,45,61,.6); }
.sql small { color: var(--dim); display: block; margin-top: 8px; }

/* Precios */
.pricing { padding: 80px 0; }
.toggle { display: flex; justify-content: center; margin-bottom: 28px; }
.toggle button { background: var(--surface); border: 1px solid var(--border); color: var(--muted); padding: 8px 16px; font-weight: 650; cursor: pointer; font-size: .92rem; }
.toggle button:first-child { border-radius: 999px 0 0 999px; }
.toggle button:last-child { border-radius: 0 999px 999px 0; border-left: 0; }
.toggle button.sel { background: var(--surface2); color: var(--text); }
.toggle .save { color: var(--accent); font-weight: 600; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.plan.hl { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan h3 { font-size: 1.1rem; }
.price { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 0; }
.price small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.per { color: var(--dim); font-size: .82rem; margin-bottom: 14px; min-height: 2.4em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 18px; color: var(--muted); font-size: .92rem; display: grid; gap: 6px; }
.plan ul li::before { content: "✓"; color: var(--accent); margin-right: 8px; font-weight: 700; }
.plan .btn { margin-top: auto; }
.students { margin-top: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.students h3 { margin-bottom: 4px; } .students p { margin: 0; color: var(--muted); }

/* Descargas */
.downloads { padding: 70px 0; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.platforms { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.platform { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 16px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.platform .pi { font-size: 2rem; }
.platform b { font-size: 1rem; }
.platform span { color: var(--dim); font-size: .82rem; min-height: 2.4em; }
.platform .btn { width: 100%; }

/* Seguridad */
.security { padding: 80px 0; }
.security-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.security h2, .security .sub { text-align: left; margin-left: 0; }
.security ol { color: var(--muted); padding-left: 20px; display: grid; gap: 10px; }
.security ol b { color: var(--text); }
.shield { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; text-align: center; }
.lock { font-size: 3rem; margin-bottom: 12px; }
.flow { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: .9rem; }
.flow span { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; }
.flow i { color: var(--accent); font-style: normal; font-size: .8rem; }
.shield p { color: var(--dim); margin: 14px 0 0; }

/* FAQ */
.faq { padding: 60px 0 80px; background: var(--bg2); border-top: 1px solid var(--border); }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin: 0 auto 10px; max-width: 820px; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* CTA */
.cta { padding: 90px 0; text-align: center; background: radial-gradient(800px 300px at 50% 100%, rgba(46,204,113,.16), transparent 70%); }
.cta p { color: var(--muted); max-width: 560px; margin: 0 auto 22px; }

footer { border-top: 1px solid var(--border); padding: 30px 0; }
.foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot nav a { color: var(--muted); font-size: .9rem; }
.foot p { margin-left: auto; color: var(--dim); font-size: .85rem; margin-bottom: 0; }

/* Responsive */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .platforms { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .hero-inner, .engines-inner, .security-inner { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 48px; }
  .links, .nav-cta { display: none; }
  .burger { display: block; }
  .nav.open .links { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg2); padding: 16px; border-bottom: 1px solid var(--border); gap: 14px; }
  .nav.open .nav-cta { display: flex; position: absolute; top: 230px; left: 16px; right: 16px; }
  .cards { grid-template-columns: 1fr; }
  .students { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .grid, .plans, .platforms { grid-template-columns: 1fr; }
  .engine-list { grid-template-columns: 1fr; }
  .foot p { margin-left: 0; }
}

/* Environment badge (staging / development), injected by app.js. */
.env-badge { margin-left: 10px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #0D0D0D; background: var(--warning, #F5A524); align-self: center; }

