/* ============================================================
   CAMPUS · Landing + Login (landing.css)
   ============================================================ */

/* ---------- Marketing nav ---------- */
.lp-nav {
  position: sticky; top: 0; z-index: 50; height: 72px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
}
.lp-nav .container { display: flex; align-items: center; height: 100%; gap: 2rem; }
.lp-nav-links { display: flex; gap: .4rem; margin-left: 1rem; }
.lp-nav-links a { padding: .5rem .85rem; border-radius: 9px; font-weight: 600; font-size: .92rem; color: var(--text-2); transition: all .15s; }
.lp-nav-links a:hover { background: var(--surface-2); color: var(--text); }
.lp-nav-cta { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.lp-burger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 5rem 0 4rem; }
.hero::before {
  content: ""; position: absolute; top: -300px; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 700px; background: radial-gradient(circle at 50% 50%, rgba(139,92,246,.18), transparent 60%);
  z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.55rem); line-height: 1.08; margin: 1.1rem 0; }
.hero .lead { max-width: 540px; }
.hero-cta { display: flex; gap: .8rem; margin: 1.8rem 0 1.4rem; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 1rem; color: var(--muted); font-size: .85rem; }
.hero-trust .avatar-stack .avatar { width: 34px; height: 34px; font-size: .72rem; }
.stars { color: #f59e0b; letter-spacing: 1px; }

/* Pill badge */
.pill {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .4rem .4rem .4rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  font-size: .82rem; font-weight: 600; box-shadow: var(--shadow-xs);
}
.pill .tag { background: var(--brand-grad); color: #fff; padding: .15rem .55rem; border-radius: 999px; font-size: .72rem; }

/* Hero visual: mock app window */
.mock-window {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow-lg); overflow: hidden; transform: perspective(1600px) rotateY(-9deg) rotateX(3deg);
  transition: transform .5s var(--ease);
}
.mock-window:hover { transform: perspective(1600px) rotateY(-3deg) rotateX(1deg); }
.mock-bar { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.mock-bar .dots { display: flex; gap: .35rem; }
.mock-bar .dots i { width: 11px; height: 11px; border-radius: 50%; }
.mock-bar .url { margin-left: .6rem; font-size: .72rem; color: var(--muted); background: var(--surface); border: 1px solid var(--border); padding: .25rem .7rem; border-radius: 7px; }
.mock-body { padding: 1rem; display: grid; grid-template-columns: 56px 1fr; gap: .8rem; min-height: 300px; }
.mock-side { display: flex; flex-direction: column; gap: .5rem; }
.mock-side i { height: 36px; border-radius: 9px; background: var(--surface-3); }
.mock-side i:first-child { background: var(--primary-50); }
.mock-main { display: flex; flex-direction: column; gap: .7rem; }
.mock-row { display: grid; grid-template-columns: repeat(3,1fr); gap: .7rem; }
.mock-kpi { height: 64px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--border); padding: .6rem; }
.mock-kpi b { display: block; height: 8px; width: 50%; background: var(--surface-3); border-radius: 4px; margin-bottom: .5rem; }
.mock-kpi span { display: block; height: 16px; width: 70%; background: var(--brand-grad); border-radius: 5px; opacity: .8; }
.mock-chart { height: 120px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); display: flex; align-items: flex-end; gap: .5rem; padding: .8rem; }
.mock-chart i { flex: 1; border-radius: 6px 6px 0 0; background: var(--brand-grad); opacity: .85; }
.float-card {
  position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: .8rem 1rem; display: flex; align-items: center; gap: .7rem; font-size: .82rem;
  animation: floaty 4s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.float-card .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }

/* ---------- Logos strip ---------- */
.logos { padding: 2.5rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.logos p { text-align: center; color: var(--muted); font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1.4rem; }
.logos-row { display: flex; justify-content: center; align-items: center; gap: 2.5rem; flex-wrap: wrap; opacity: .7; }
.logo-item { font-weight: 800; font-size: 1.15rem; color: var(--muted); display: flex; align-items: center; gap: .5rem; }
.logo-item svg { width: 24px; height: 24px; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-head h2 { margin: .7rem 0; }

/* Features */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.feat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow-sm); transition: all .2s var(--ease);
}
.feat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.feat-ic { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 1.1rem; color: #fff; box-shadow: var(--shadow); }
.feat-ic svg { width: 27px; height: 27px; }
.feat-card h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.feat-card p { color: var(--muted); font-size: .92rem; line-height: 1.65; }

/* Showcase split */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.showcase.rev .show-visual { order: 2; }
.show-list { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1.5rem; }
.show-list li { display: flex; gap: .9rem; align-items: flex-start; }
.show-list .ck { width: 26px; height: 26px; border-radius: 8px; background: var(--success-bg); color: var(--success); display: grid; place-items: center; flex: none; }
.show-list .ck svg { width: 16px; height: 16px; }
.show-list strong { display: block; font-size: .98rem; }
.show-list span { color: var(--muted); font-size: .88rem; }
.show-visual {
  background: var(--brand-grad-soft); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 2rem; box-shadow: var(--shadow); aspect-ratio: 4/3; display: grid; place-items: center; position: relative; overflow: hidden;
}

/* API section */
.api-block { background: #0b1020; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.api-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; align-items: center; }
.api-copy { padding: 3rem; color: #e6e9f2; }
.api-copy .eyebrow { color: #a5b4fc; }
.api-copy h2 { color: #fff; margin: .7rem 0 1rem; }
.api-copy p { color: #94a3b8; line-height: 1.7; margin-bottom: 1.4rem; }
.code-window { background: #0f1528; border-left: 1px solid #1e2742; padding: 1.5rem; font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace; font-size: .82rem; line-height: 1.7; overflow-x: auto; min-height: 100%; }
.code-window .ln { color: #475569; user-select: none; display: inline-block; width: 1.8em; }
.tk-key { color: #c084fc; } .tk-str { color: #6ee7b7; } .tk-fn { color: #93c5fd; } .tk-com { color: #475569; } .tk-num { color: #fca5a5; } .tk-pn { color: #cbd5e1; }

/* Stats band */
.stats-band { background: var(--brand-grad); border-radius: var(--radius-xl); padding: 2.5rem; color: #fff; }
.stats-band-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; text-align: center; }
.stats-band .v { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; }
.stats-band .l { opacity: .85; font-size: .9rem; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.3rem; align-items: stretch; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; position: relative; transition: all .2s; }
.price-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.price-card.featured { border-color: var(--primary); box-shadow: var(--shadow-brand); transform: scale(1.03); }
.price-card.featured::before { content: "Más popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand-grad); color: #fff; font-size: .72rem; font-weight: 700; padding: .3rem .9rem; border-radius: 999px; box-shadow: var(--shadow); }
.price-name { font-weight: 700; font-size: 1.05rem; }
.price-amt { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; margin: .6rem 0 .1rem; }
.price-amt small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.price-feats { display: flex; flex-direction: column; gap: .7rem; margin: 1.4rem 0; flex: 1; }
.price-feats li { display: flex; gap: .6rem; font-size: .9rem; align-items: center; }
.price-feats svg { width: 18px; height: 18px; color: var(--success); flex: none; }

/* Testimonial */
.quote-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 3rem; box-shadow: var(--shadow); text-align: center; max-width: 820px; margin: 0 auto; }
.quote-card .mark { font-size: 3rem; color: var(--primary); line-height: .5; font-weight: 800; }
.quote-card blockquote { font-size: 1.35rem; line-height: 1.55; font-weight: 600; margin: 1rem 0 1.5rem; letter-spacing: -.01em; }
.quote-author { display: flex; align-items: center; justify-content: center; gap: .8rem; }

/* CTA */
.cta-band { background: var(--brand-grad); border-radius: var(--radius-xl); padding: 3.5rem; text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); }
.cta-band::before { width: 240px; height: 240px; top: -100px; left: -60px; }
.cta-band::after { width: 300px; height: 300px; bottom: -150px; right: -80px; }
.cta-band h2 { color: #fff; font-size: 2.2rem; position: relative; }
.cta-band p { opacity: .9; max-width: 540px; margin: 1rem auto 1.8rem; position: relative; }

/* Footer */
.lp-footer { border-top: 1px solid var(--border); padding: 3.5rem 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-col h5 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 1rem; }
.footer-col a { display: block; padding: .35rem 0; color: var(--text-2); font-size: .9rem; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; flex-wrap: wrap; gap: 1rem; }

/* ---------- Brand logo ---------- */
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-grad); display: grid; place-items: center; box-shadow: var(--shadow-brand); flex: none; }
.brand-mark svg { width: 21px; height: 21px; color: #fff; }
.brand-sm .brand-mark { width: 30px; height: 30px; }
.brand-sm { font-size: 1.05rem; }

/* ---------- Login ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { background: var(--brand-grad); color: #fff; padding: 3rem; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-aside::before { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,.1); top: -120px; right: -120px; }
.auth-aside::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.08); bottom: -100px; left: -80px; }
.auth-aside .brand { color: #fff; position: relative; }
.auth-aside .brand-mark { background: rgba(255,255,255,.2); }
.auth-hero { margin: auto 0; position: relative; }
.auth-hero h2 { font-size: 2.2rem; color: #fff; margin-bottom: 1rem; }
.auth-hero p { opacity: .9; font-size: 1.05rem; line-height: 1.7; max-width: 440px; }
.auth-feats { display: flex; flex-direction: column; gap: .9rem; margin-top: 2rem; }
.auth-feats li { display: flex; align-items: center; gap: .7rem; font-size: .95rem; }
.auth-feats .ck { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.2); display: grid; place-items: center; flex: none; }
.auth-feats svg { width: 15px; height: 15px; }
.auth-testimonial { position: relative; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 16px; padding: 1.2rem; backdrop-filter: blur(8px); }
.auth-testimonial p { font-size: .92rem; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-form { width: min(400px, 100%); }
.auth-form h1 { font-size: 1.8rem; margin-bottom: .4rem; }
.auth-form .sub { color: var(--muted); margin-bottom: 1.8rem; }
.sso-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1.3rem; }
.sso-btn { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem; border: 1px solid var(--border); border-radius: 11px; font-weight: 600; font-size: .88rem; background: var(--surface); transition: all .15s; }
.sso-btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.sso-btn svg { width: 18px; height: 18px; }
.or-divider { display: flex; align-items: center; gap: 1rem; color: var(--muted-2); font-size: .8rem; margin: 1.3rem 0; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.demo-note { background: var(--primary-50); border: 1px dashed var(--primary-100); border-radius: 12px; padding: .8rem 1rem; font-size: .82rem; color: var(--primary-700); margin-bottom: 1.3rem; }
.demo-note strong { color: var(--primary); }
.field-link { font-size: .82rem; color: var(--primary); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero .mock-window { transform: none; }
  .feat-grid { grid-template-columns: repeat(2,1fr); }
  .showcase, .api-grid { grid-template-columns: 1fr; }
  .showcase.rev .show-visual { order: 0; }
  .price-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .stats-band-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .lp-nav-links { display: none; }
  .api-copy { padding: 2rem; }
  .code-window { border-left: 0; border-top: 1px solid #1e2742; }
}
@media (max-width: 560px) {
  .feat-grid { grid-template-columns: 1fr; }
  .stats-band-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .section { padding: 3.5rem 0; }
}
