/* Tribe Code Analyzer: estilos de la página pública */
:root {
  --bg: #ffffff;
  --bg-alt: #f3f6fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #dbe3ef;
  --accent: #0e7490;
  --accent-2: #4f46e5;
  --accent-ink: #ffffff;
  --hero-bg: linear-gradient(160deg, #0b1220 0%, #12203f 60%, #1b2a5c 100%);
  --hero-text: #f8fafc;
  --hero-muted: #b6c2d8;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f1c;
    --bg-alt: #0f1628;
    --surface: #111b30;
    --text: #e8edf6;
    --muted: #a3b0c6;
    --border: #1f2c47;
    --accent: #22d3ee;
    --accent-2: #818cf8;
    --accent-ink: #04202a;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0f1c;
  --bg-alt: #0f1628;
  --surface: #111b30;
  --text: #e8edf6;
  --muted: #a3b0c6;
  --border: #1f2c47;
  --accent: #22d3ee;
  --accent-2: #818cf8;
  --accent-ink: #04202a;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand img.brand-icono { width: auto; height: 30px; border-radius: 0; }
.nav-links { display: flex; gap: 22px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { background: transparent; border: 1px solid var(--border); color: var(--text); width: 40px; height: 40px; border-radius: 10px; cursor: pointer; font-size: 1.05rem; line-height: 1; }
.icon-btn:hover { background: var(--bg-alt); }
.menu-btn { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 12px 20px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-sm { padding: 9px 14px; font-size: .9rem; }

/* Hero */
.hero { background: var(--hero-bg); color: var(--hero-text); padding: 84px 0 92px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #67e8f9; margin-bottom: 14px; }
.hero h1 { color: var(--hero-text); }
.hero p.lead { color: var(--hero-muted); font-size: 1.15rem; max-width: 56ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn-primary { background: #22d3ee; color: #04202a; }
.hero .btn-ghost { color: #f8fafc; border-color: #3b4c73; }
.hero .btn-ghost:hover { background: #ffffff14; }
.hero-note { margin-top: 18px; color: var(--hero-muted); font-size: .9rem; }
.hero-visual { background: #0f172a; border-radius: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); border: 1px solid #1e293b; }
.hero-visual img { display: block; width: 100%; }

/* Franja de estándares */
.strip { background: var(--bg-alt); border-block: 1px solid var(--border); }
.strip .container { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: center; padding-block: 18px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.strip span.tag::before { content: "▪"; color: var(--accent); margin-right: 8px; }

/* Secciones */
section { padding: 84px 0; }
section.alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card .kicker { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 0; }
.step-num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 700; margin-bottom: 14px; }

/* Carrusel */
.carousel { position: relative; max-width: 1040px; margin-inline: auto; }
.slides { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); background: #0b1220; }
.slide { display: none; }
.slide.active { display: block; }
.slide img { display: block; width: 100%; }
.car-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.dots { display: flex; gap: 8px; }
.dot { width: 11px; height: 11px; border-radius: 50%; border: 0; background: var(--border); cursor: pointer; padding: 0; }
.dot[aria-current="true"] { background: var(--accent); }

/* Estándares */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 7px 14px; font-size: .9rem; font-weight: 600; }
.chip.sec { border-color: var(--accent); color: var(--accent); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.list { padding-left: 1.1em; margin: 0; }
.list li { margin-bottom: .55em; color: var(--muted); }
.list li strong { color: var(--text); }

/* Créditos */
.price-box { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: stretch; }
.big { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.notice { border-left: 4px solid var(--accent-2); background: var(--bg-alt); padding: 14px 18px; border-radius: 0 10px 10px 0; color: var(--muted); font-size: .95rem; }

/* Contacto y pie */
.cta-band { background: var(--hero-bg); color: var(--hero-text); text-align: center; }
.cta-band p { color: var(--hero-muted); max-width: 60ch; margin-inline: auto; }
.cta-band .btn-primary { background: #22d3ee; color: #04202a; }
.site-footer { background: #070b15; color: #b6c2d8; padding: 56px 0 28px; font-size: .94rem; }
.site-footer a { color: #b6c2d8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; border-top: 1px solid #1a2438; margin-top: 36px; padding-top: 22px; }
.social { display: flex; gap: 12px; margin-left: auto; }
.social a, .social span { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid #243250; border-radius: 10px; color: #b6c2d8; }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.social span[aria-disabled="true"] { opacity: .85; cursor: default; }

/* Páginas legales */
.legal { padding: 56px 0 84px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); }
.draft { background: #fff7e0; color: #5b4300; border: 1px solid #f1d98a; border-radius: 10px; padding: 12px 16px; margin-bottom: 28px; font-size: .92rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .draft { background: #2b2410; color: #f3deaa; border-color: #5b4a17; } }
:root[data-theme="dark"] .draft { background: #2b2410; color: #f3deaa; border-color: #5b4a17; }
.ph { background: #fde68a55; padding: 0 4px; border-radius: 4px; }

@media (max-width: 960px) {
  .hero-grid, .two-col, .price-box { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--bg); flex-direction: column; gap: 0; padding: 8px 16px 16px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 0; }
  .menu-btn { display: inline-block; }
  .nav { gap: 12px; }
  .nav-actions { margin-left: auto; }
  .nav-actions .btn-ghost { display: none; }
  section { padding: 60px 0; }
  .hero { padding: 56px 0 64px; }
}
@media (max-width: 560px) {
  .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .social { margin-left: 0; }
  .nav-actions .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

.slide { margin: 0; }
.site-footer .brand { color: #fff; }
.site-footer .brand + p { margin-top: 14px; }
.fine { margin-top: 18px; color: var(--muted); font-size: .93rem; }
.notice { margin-top: 18px; }
.mt { margin-top: 22px; }
.unit { font-size: 1.1rem; font-weight: 600; color: var(--muted); }
.nav-actions.push { margin-left: auto; }
.footer-bottom.plain { border-top: 0; margin-top: 0; padding-top: 0; }
#theme-btn { width: auto; min-width: 40px; padding: 0 10px; font-size: .85rem; font-weight: 600; }
