/* ============================================================================
 * FractBrochure — Estética web profesional para páginas pre-login
 * ============================================================================
 * Ley suprema 2026-04-28 (Juan, corrección):
 *   La web pública (fractaill.com) y las landing pages NO son iOS ni macOS.
 *   Son web profesional de empresa: clara, sobria, comunica qué hace
 *   FractAIll y sus productos. El OS aparece DESPUÉS del login.
 *
 * Cargar como (1 línea):
 *   <link rel="stylesheet" href="/css/fract-brochure.css">
 *
 * Depende de fract-tokens.css para colores/typography brand.
 *
 * Versión: 1.0.0 · 2026-04-28
 * ============================================================================ */

:root {
  /* Brochure-specific layout tokens */
  --brochure-max-w:    1180px;
  --brochure-section-y: 80px;
  --brochure-h1:       clamp(34px, 5vw, 56px);
  --brochure-h2:       clamp(26px, 3.5vw, 38px);
  --brochure-h3:       22px;
  --brochure-lead:     clamp(17px, 1.6vw, 20px);
  --brochure-body:     16px;
}

/* ─── Body brochure (limpio, sobrio, ni iOS ni macOS) ──────────────────── */
body.brochure,
body[data-fract-brochure] {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: var(--brochure-body);
  line-height: 1.6;
  color: var(--fract-text);
  background: var(--fract-bg);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

/* ─── Container ────────────────────────────────────────────────────────── */
.brochure-container {
  max-width: var(--brochure-max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Sections ─────────────────────────────────────────────────────────── */
.brochure-section {
  padding: var(--brochure-section-y) 0;
}
.brochure-section + .brochure-section {
  border-top: 1px solid var(--fract-border);
}

/* ─── Header / nav (marketing nav — minimal, profesional) ─────────────── */
.brochure-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--fract-border);
}
.brochure-nav-inner {
  max-width: var(--brochure-max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}
.brochure-nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
  font-weight: 700; font-size: 17px; letter-spacing: -0.012em;
}
.brochure-nav-brand img { width: 28px; height: 28px; border-radius: 6px; }
.brochure-nav-links {
  display: flex; gap: 4px; flex: 1; justify-content: center;
  list-style: none; margin: 0; padding: 0;
}
.brochure-nav-links a {
  display: inline-block;
  padding: 8px 14px;
  color: var(--fract-text-soft);
  text-decoration: none;
  font-size: 14px; font-weight: 500;
  border-radius: 8px;
  transition: color 160ms, background 160ms;
}
.brochure-nav-links a:hover {
  color: var(--fract-text);
  background: var(--fract-surface);
}
.brochure-nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: var(--fract-text);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px; font-weight: 600;
  transition: opacity 160ms, transform 160ms;
}
.brochure-nav-cta:hover { opacity: 0.86; }
.brochure-nav-cta:active { transform: scale(0.97); }
@media (max-width: 720px) {
  .brochure-nav-links { display: none; }
}

/* ─── Hero ─────────────────────────────────────────────────────────────── */
.brochure-hero {
  padding: 96px 0 64px;
  text-align: center;
}
.brochure-hero h1 {
  font-size: var(--brochure-h1);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  color: var(--fract-text);
}
.brochure-hero .lead {
  font-size: var(--brochure-lead);
  line-height: 1.5;
  color: var(--fract-text-soft);
  max-width: 640px;
  margin: 0 auto 32px;
}
.brochure-hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ─── Buttons brochure (profesionales, no iOS/macOS) ───────────────────── */
.brochure-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px; font-weight: 600;
  text-decoration: none;
  border: 0; cursor: pointer;
  transition: transform 160ms, opacity 160ms, background 160ms, border-color 160ms;
}
.brochure-btn-primary {
  background: linear-gradient(135deg, var(--fract-accent), var(--fract-accent-2));
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,122,41,0.30);
}
.brochure-btn-primary:hover { transform: translateY(-1px); }
.brochure-btn-primary:active { transform: translateY(0); }
.brochure-btn-secondary {
  background: var(--fract-bg-elev);
  color: var(--fract-text);
  border: 1px solid var(--fract-border-strong);
}
.brochure-btn-secondary:hover { border-color: var(--fract-text); }
.brochure-btn-ghost {
  background: transparent;
  color: var(--fract-text);
  padding: 12px 14px;
}
.brochure-btn-ghost:hover { background: var(--fract-surface); }

/* ─── Section heading ──────────────────────────────────────────────────── */
.brochure-section-head {
  text-align: center;
  margin: 0 auto 48px;
  max-width: 720px;
}
.brochure-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: var(--fract-accent-soft);
  color: var(--fract-accent-deep);
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.brochure-section-head h2 {
  font-size: var(--brochure-h2);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.brochure-section-head p {
  color: var(--fract-text-soft);
  font-size: 17px;
  margin: 0;
}

/* ─── Grids (productos / features) ─────────────────────────────────────── */
.brochure-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.brochure-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px;
  background: var(--fract-bg-elev);
  border: 1px solid var(--fract-border);
  border-radius: 14px;
  transition: transform 200ms, border-color 200ms, box-shadow 200ms;
  text-decoration: none;
  color: inherit;
}
.brochure-card:hover {
  transform: translateY(-2px);
  border-color: var(--fract-border-strong);
  box-shadow: 0 12px 28px rgba(10,10,13,0.06);
}
.brochure-card .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--fract-accent-soft);
  color: var(--fract-accent-deep);
  font-size: 22px;
}
.brochure-card h3 {
  margin: 0;
  font-size: var(--brochure-h3);
  font-weight: 600;
  letter-spacing: -0.012em;
}
.brochure-card p {
  margin: 0;
  color: var(--fract-text-soft);
  font-size: 15px; line-height: 1.55;
}
.brochure-card .cta {
  margin-top: auto;
  font-size: 14px; font-weight: 600;
  color: var(--fract-accent-deep);
}

/* ─── Footer brochure ─────────────────────────────────────────────────── */
.brochure-footer {
  padding: 48px 24px;
  background: var(--fract-surface);
  border-top: 1px solid var(--fract-border);
  color: var(--fract-text-soft);
  font-size: 14px;
}
.brochure-footer .inner {
  max-width: var(--brochure-max-w);
  margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.brochure-footer .col h4 {
  font-size: 13px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fract-text);
  margin: 0 0 12px;
}
.brochure-footer .col a {
  display: block;
  color: var(--fract-text-soft);
  text-decoration: none;
  font-size: 14px; line-height: 1.9;
  transition: color 160ms;
}
.brochure-footer .col a:hover { color: var(--fract-text); }
.brochure-footer .legal {
  width: 100%;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--fract-border);
  font-size: 12px;
  color: var(--fract-text-faint);
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* ─── Anti-OS hint: brochure NO debe verse como iOS ni macOS ──────────── */
body.brochure .fract-traffic-lights,
body.brochure .ios-tabbar,
body.brochure .ios-navbar,
body.brochure .fract-dock {
  display: none !important;
}

/* ─── Dark mode brochure (sobrio, no agresivo) ────────────────────────── */
[data-theme="dark"] body.brochure,
[data-theme="dark"] body[data-fract-brochure] {
  background: var(--fract-bg);
}
[data-theme="dark"] .brochure-nav {
  background: rgba(14,14,16,0.86);
}
[data-theme="dark"] .brochure-card {
  background: var(--fract-bg-elev);
}
