/* =========================================================================
   MySaaSLux — Site CSS v2 (dark tech)
   Base + Chrome (header/nav/footer) + Buttons + Cards + Sections + Reveals.
   Single source of truth for the NEW dark pages. Loaded after tokens.css.
   ========================================================================= */

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--lima); outline-offset: 3px; border-radius: 4px; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .shell { padding: 0 18px; } }

.skip-link { position: absolute; top: -100px; left: 16px; background: var(--lima); color: #0B0D10; padding: 8px 16px; z-index: 9999; border-radius: 0 0 8px 8px; font-weight: 600; font-size: .85rem; }
.skip-link:focus { top: 0; }

/* ---------- Mono label / eyebrow ---------- */
.mono-label { font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--lima); }
.eyebrow { font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-weight: 600; font-size: .93rem; padding: 12px 22px; border-radius: var(--radius-s); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .18s var(--ease), transform .18s var(--ease), border-color .18s, box-shadow .18s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--lima); color: #0B0D10; font-weight: 700; box-shadow: 0 0 0 rgba(174,246,57,0); }
.btn-primary:hover { background: var(--lima-dark); box-shadow: 0 8px 30px var(--lima-glow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--lima); box-shadow: 0 8px 30px var(--lima-glow); }
.btn-sm { font-size: .82rem; padding: 8px 15px; }
.btn-full { width: 100%; }
.btn svg { width: 17px; height: 17px; }

/* ---------- Header / Nav ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 1000; background: rgba(11,13,16,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.site-header.is-scrolled { border-bottom-color: var(--border); background: rgba(11,13,16,.9); }
.header-inner { max-width: var(--shell); margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; margin-right: auto; flex-shrink: 0; }
.brand__mark { width: 26px; height: 26px; flex-shrink: 0; }
.brand__word { font-family: var(--font-head); font-weight: 700; font-size: 1.06rem; color: var(--text); letter-spacing: -0.01em; }
.brand__dot { color: var(--lima); }
.main-nav ul { display: flex; align-items: center; gap: 2px; }
.main-nav a { font-size: .87rem; font-weight: 500; color: var(--text-2); padding: 7px 12px; border-radius: 7px; transition: color .15s, background .15s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.05); }
.header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.lang-switch { display: flex; align-items: center; gap: 1px; font-family: var(--font-mono); }
.lang-switch a, .lang-switch span { font-size: .72rem; font-weight: 600; color: var(--text-3); padding: 3px 5px; border-radius: 4px; transition: color .15s, background .15s; }
.lang-switch a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.lang-switch [aria-current="true"] { color: var(--lima); }
.lang-switch .sep { color: var(--border); padding: 0; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .22s var(--ease); }
.nav-toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 900px) {
  .main-nav { position: fixed; inset: var(--nav-h) 0 auto 0; background: rgba(11,13,16,.98); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 18px 20px; gap: 2px; }
  .main-nav a { padding: 12px 12px; font-size: 1rem; border-radius: 8px; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 96px; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand__word { font-size: 1.2rem; }
.footer-tag { color: var(--text-2); font-size: .92rem; margin-top: 14px; max-width: 30ch; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); color: var(--text-2); transition: color .15s, border-color .15s; }
.footer-social a:hover, .footer-social a:focus-visible { color: var(--lima); border-color: var(--lima); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.footer-col h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; font-weight: 600; }
.footer-col a { display: block; color: var(--text-2); font-size: .9rem; padding: 4px 0; transition: color .15s; }
.footer-col a:hover { color: var(--lima); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-legal { color: var(--text-3); font-size: .82rem; }
.footer-lang { display: flex; gap: 4px; font-family: var(--font-mono); font-size: .78rem; }
.footer-lang a { color: var(--text-3); padding: 2px 5px; border-radius: 4px; }
.footer-lang a:hover { color: var(--text); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
main { display: block; }
.section { padding: 92px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin: 14px 0 0; }
.section-head p { color: var(--text-2); font-size: 1.05rem; margin-top: 16px; }
.section-head--left { text-align: left; margin-left: 0; }

/* decorative grid backdrop */
.grid-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%); }
.section > .shell { position: relative; z-index: 1; }

/* glow behind titles */
.glow-title { position: relative; }
.glow-title::before { content: ""; position: absolute; left: 50%; top: -30%; width: min(420px, 82vw); height: 220px; transform: translateX(-50%); background: radial-gradient(circle, var(--lima-glow), transparent 70%); filter: blur(28px); z-index: -1; opacity: .5; pointer-events: none; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 28px; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); border-color: #333a44; box-shadow: var(--shadow-card); }

/* price card */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.price-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 30px 26px; position: relative; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.price-card--featured { border-color: var(--lima); box-shadow: 0 0 0 1px var(--lima), 0 24px 70px var(--lima-glow); }
.price-badge { position: absolute; top: -12px; left: 26px; font-family: var(--font-mono); font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #0B0D10; background: var(--lima); padding: 4px 12px; border-radius: 100px; }
.price-card h3 { font-size: 1.25rem; }
.price-card .price { font-family: var(--font-mono); font-weight: 700; font-size: 2rem; color: var(--text); margin: 14px 0 4px; letter-spacing: -0.02em; }
.price-card .price small { font-size: .95rem; color: var(--text-2); font-weight: 400; }
.price-card .price-desc { color: var(--text-2); font-size: .92rem; margin-bottom: 18px; min-height: 40px; }
.feat-list { display: flex; flex-direction: column; gap: 9px; margin: 6px 0 24px; flex: 1; }
.feat-list li { display: flex; gap: 9px; font-size: .9rem; color: var(--text); line-height: 1.45; }
.feat-list .ck { color: var(--lima); flex-shrink: 0; font-weight: 700; }
.price-card .btn { margin-top: auto; }
.tax-note { font-family: var(--font-mono); font-size: .74rem; color: var(--text-3); text-align: center; margin-top: 22px; }

/* feature tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .tiles { grid-template-columns: 1fr; } }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 26px; transition: transform .2s var(--ease), border-color .2s; }
.tile:hover { transform: translateY(-4px); border-color: #333a44; }
.tile .num { font-family: var(--font-mono); font-size: .8rem; color: var(--lima); font-weight: 600; }
.tile h3 { font-size: 1.15rem; margin: 12px 0 8px; }
.tile p { color: var(--text-2); font-size: .93rem; }

/* ---------- Reveals (visible por defecto) ---------- */
.reveal-init { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal-init { opacity: 1; transform: none; transition: none; } }

/* generic hero for interior pages */
.page-hero { padding: calc(var(--nav-h) + 72px) 0 24px; position: relative; }
.page-hero__inner { max-width: 760px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 16px 0 0; }
.page-hero p { color: var(--text-2); font-size: 1.12rem; margin-top: 18px; max-width: 56ch; }

.accent { color: var(--lima); }
.text-2 { color: var(--text-2); }
.center { text-align: center; }

/* ---------- Utilities (evitar style="" inline) ---------- */
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-22 { margin-top: 22px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mw-420 { max-width: 420px; }
.mw-760 { max-width: 760px; }
.narrow-copy { max-width: 46ch; margin-left: auto; margin-right: auto; }
.copy-52 { max-width: 52ch; }
.lead-15 { font-size: 1.05rem; }
.h2-sm { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.h2-md { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.self-center { align-self: center; }
.text-right { text-align: right; }
.unit { font-size: 1rem; color: var(--text-2); }

/* Sello LegalClaro en footer (02/08/2026) */
.footer-legalclaro-seal { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); font-size: .74rem; line-height: 1.5; color: var(--text-3); }
.footer-legalclaro-seal a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.footer-legalclaro-seal a:hover, .footer-legalclaro-seal a:focus-visible { color: var(--lima); }

