/* ============================================================
   CECI MANSILLA — Sistema de marca
   Violeta Lab + Lima Eléctrico + Tinta · Poppins · 60-30-10
   ============================================================ */

:root {
  /* Violeta */
  --v-50:#FAF6FF; --v-100:#F3ECFF; --v-200:#E4D4FF; --v-300:#C8A3FF;
  --v-400:#A66BFF; --v-500:#8B3DF0; --v-600:#6C2BD9; --v-700:#4A1FB8; --v-800:#2D1565;
  /* Lima */
  --l-100:#F9FFE0; --l-200:#F1FEBC; --l-300:#E6FD8A; --l-400:#D8FB5A;
  --l-500:#C6F73B; --l-600:#A8E80F; --l-700:#8BC91F;
  /* Tinta / neutros */
  --paper:#FFFFFF; --n-50:#F9F8FC; --n-100:#F1F0F6; --n-200:#E2E0EB;
  --n-300:#C4C0D4; --n-400:#9994AD; --n-500:#6B6584; --n-600:#4A4361;
  --n-700:#2D2640; --n-900:#0A0612;
  --cream:#FAF6FF;

  /* Roles */
  --bg: var(--cream);
  --ink: var(--n-900);
  --brand: var(--v-600);
  --brand-deep: var(--v-800);
  --lime: var(--l-500);
  --muted: var(--n-500);

  /* Gradientes del manual */
  --grad-hero: radial-gradient(120% 120% at 15% 0%, #2D1565 0%, #1a0d3d 38%, #0A0612 100%);
  --grad-violet: linear-gradient(135deg, #6C2BD9 0%, #4A1FB8 100%);
  --grad-night: linear-gradient(160deg, #2D1565 0%, #0A0612 100%);
  --grad-energy: linear-gradient(120deg, #8B3DF0 0%, #C6F73B 140%);

  --maxw: 1200px;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow-soft: 0 24px 60px -28px rgba(45,21,101,.30);
  --shadow-card: 0 12px 40px -20px rgba(45,21,101,.22);

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Tipografía ---- */
h1,h2,h3,h4 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
.display-xl { font-size: clamp(3rem, 8.5vw, 8.2rem); font-weight: 700; letter-spacing: -0.045em; line-height: .92; }
.display-l  { font-size: clamp(2.6rem, 6vw, 5.4rem); letter-spacing: -0.038em; line-height: .96; }
h2.section-title { font-size: clamp(2.1rem, 4.6vw, 3.9rem); letter-spacing: -0.03em; line-height: 1.02; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -0.02em; }
.italic-accent { font-style: italic; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.45; color: var(--muted); font-weight: 400; }

.eyebrow {
  font-size: .82rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: .2em; color: var(--brand);
  display: inline-flex; align-items: center; gap: .55em; white-space: nowrap;
}
.eyebrow.on-dark { color: var(--l-500); }

/* ---- Layout ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; }
.pad { padding: clamp(64px, 9vw, 132px) 0; }
.pad-sm { padding: clamp(48px, 6vw, 88px) 0; }

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; padding: 0 30px; border-radius: 999px;
  font-family: inherit; font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
  border: 0; cursor: pointer; transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  white-space: nowrap; line-height: 1;
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--lime); color: var(--n-900); box-shadow: 0 12px 30px -12px rgba(168,232,15,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(168,232,15,.7); }
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 12px 30px -14px rgba(108,43,217,.7); }
.btn-brand:hover { transform: translateY(-2px); background: var(--v-700); }
.btn-dark { background: var(--n-900); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--n-300); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ghost.on-dark:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-sm { height: 46px; font-size: 15px; padding: 0 22px; }

/* ---- Focus (accesibilidad · estado focus del manual) ---- */
a:focus-visible, button:focus-visible, input:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px;
}
.btn:focus-visible { outline-offset: 3px; }

/* ---- Chips / badges ---- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 999px;
  font-size: .85rem; font-weight: 500; letter-spacing: .01em;
}
.chip-lime { background: var(--lime); color: var(--n-900); }
.chip-soft { background: var(--v-100); color: var(--brand); }
.chip-dark { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.16); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.chip-dark .dot { background: var(--lime); box-shadow: 0 0 0 4px rgba(198,247,59,.18); }

/* ---- Cards ---- */
.card {
  background: var(--paper); border-radius: var(--radius);
  border: 1px solid var(--n-100); padding: 36px;
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}

/* ---- Texturas del kit visual ---- */
.dots {
  background-image: radial-gradient(rgba(108,43,217,.13) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
}
.dots-dark {
  background-image: radial-gradient(rgba(198,247,59,.16) 1.4px, transparent 1.4px);
  background-size: 24px 24px;
}
.foot-mark { width:48px!important; height:48px!important; border-radius:13px; background:var(--cream); padding:8px; }

/* ---- Secciones oscuras ---- */
.dark { background: var(--grad-hero); color: #fff; }
.dark .lead { color: rgba(255,255,255,.72); }
.dark .muted { color: rgba(255,255,255,.6); }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 24px;
}
.brand-logo { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -0.02em; font-size: 1.15rem; }
.brand-logo img { width: 38px; height: 38px; }
.brand-logo .nm { line-height: 1; }
.brand-logo .nm small { display: block; font-size: .62rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: .98rem; font-weight: 500; color: var(--n-700); position: relative; transition: color .2s; }
.nav-links a::after { content:""; position:absolute; left:0; bottom:-6px; height:2px; width:0; background: var(--lime); transition: width .25s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-scrolled { background: rgba(250,246,255,.82); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(45,21,101,.07); }
.nav-toggle { display:none; background:none; border:0; cursor:pointer; width:44px; height:44px; align-items:center; justify-content:center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content:""; display:block; width:24px; height:2px; background: var(--ink); border-radius:2px; transition:.3s; position:relative; }
.nav-toggle span::before { position:absolute; top:-7px; } .nav-toggle span::after { position:absolute; top:7px; }

/* ---- Marquee ---- */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 0; animation: marquee 28s linear infinite; will-change: transform; }
.marquee-track span { font-weight: 700; letter-spacing: -0.02em; padding: 0 .4em; display:inline-flex; align-items:center; }
.marquee-track .star { color: var(--lime); padding: 0 .35em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Reveal: content is ALWAYS visible; entrance is purely additive. ---- */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal.in { animation: riseIn .7s var(--ease) both; }
  .js .reveal.in[data-d="1"]{ animation-delay:.07s } .js .reveal.in[data-d="2"]{ animation-delay:.14s }
  .js .reveal.in[data-d="3"]{ animation-delay:.21s } .js .reveal.in[data-d="4"]{ animation-delay:.28s }
}
@keyframes riseIn { from { transform: translateY(22px); } to { transform: none; } }

/* ---- Footer ---- */
.footer { background: var(--grad-night); color: #fff; padding: 80px 0 36px; }
.footer a { color: rgba(255,255,255,.66); transition: color .2s; }
.footer a:hover { color: var(--lime); }

/* ---- Utilidades ---- */
.grid { display: grid; gap: 24px; }
.center { text-align: center; }
.mb-s{margin-bottom:14px} .mb-m{margin-bottom:24px} .mb-l{margin-bottom:44px}
.maxw-sm { max-width: 720px; }

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn.always { display: inline-flex; }
}
