/* =========================================================
   Vasi — estilos compartidos (nav, botones, tiles, footer)
   Lienzo casi blanco con tinte frío. Un acento: cobalto.
   Verde solo para lo que ya salió bien. Ámbar para tiempo/agenda.
========================================================= */
@font-face { font-family: 'Open Sauce Sans'; src: url('/fonts/OpenSauceSans-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Open Sauce Sans'; src: url('/fonts/OpenSauceSans-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Open Sauce Sans'; src: url('/fonts/OpenSauceSans-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Open Sauce Sans'; src: url('/fonts/OpenSauceSans-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Open Sauce Sans'; src: url('/fonts/OpenSauceSans-ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Google Sans Code'; src: url('/fonts/GoogleSansCode-VariableFont_MONO_wght.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f7f8fc;
  --bg-2: #eef1fa;
  --card: #ffffff;
  --ink: #0b0b14;
  --ink-2: #3d3f4e;
  --ink-3: #6f7284;
  --line: rgba(11,11,20,.08);
  --line-2: rgba(11,11,20,.16);
  --cobalt: #3f00ff;
  --cobalt-2: #6a4dff;
  --cobalt-light: #ede6ff;
  --green: #00b800;
  --green-deep: #007a00;
  --green-light: #e6f9e6;
  --amber: #f5a623;
  --amber-deep: #8a4f00;
  --amber-light: #fff3dc;
  --font: 'Open Sauce Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Google Sans Code', ui-monospace, Menlo, monospace;
  --nav-h: 72px;
  --container: 1120px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --spring: cubic-bezier(.34,1.3,.64,1);
  --shadow-tile: 0 24px 50px rgba(28,34,90,.14), 0 4px 10px rgba(28,34,90,.06), inset 0 1px 0 rgba(255,255,255,.7);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { font-family: var(--font); font-weight: 500; font-size: 17px; line-height: 1.5; color: var(--ink); background: var(--bg); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--cobalt); color: #fff; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.02em; line-height: 1.15; }
p { text-wrap: pretty; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }
.kicker { display: inline-block; font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--cobalt); margin-bottom: 14px; letter-spacing: .01em; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); line-height: 1.5; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 24px; border-radius: 14px; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; transition: transform .25s var(--spring), background .2s, color .2s, box-shadow .25s, border-color .2s; }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--cobalt); color: #fff; box-shadow: 0 8px 22px rgba(63,0,255,.30); }
.btn-primary:hover { background: #3400d4; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(63,0,255,.34); }
.btn-primary .arrow { transition: transform .25s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-ghost { background: var(--card); color: var(--ink); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-wa { background: var(--green); color: #fff; }
.btn-wa:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 11px; }
.btn-lg { padding: 18px 30px; font-size: 17px; border-radius: 16px; }
.notes { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--ink-3); }
.notes span { display: inline-flex; align-items: center; gap: 6px; }
.notes svg { width: 14px; height: 14px; color: var(--green); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h); display: flex; align-items: center; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(247,248,252,.85); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { color: var(--cobalt); height: 42px; display: flex; align-items: center; }
.nav-logo svg { height: 100%; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { white-space: nowrap; font-size: 14.5px; font-weight: 600; color: var(--ink-2); padding: 8px 12px; border-radius: 9px; transition: background .2s, color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: rgba(11,11,20,.05); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; }
.nav-burger svg { width: 24px; height: 24px; }
.nav-burger .x { display: none; }
.menu-open .nav-burger .x { display: block; } .menu-open .nav-burger .bars { display: none; }
@media (max-width: 860px) { .nav-links, .nav-cta .btn-primary { display: none; } .nav-burger { display: inline-flex; } }
.mobile-menu { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99; background: var(--bg); padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); display: none; flex-direction: column; gap: 4px; overflow-y: auto; }
.menu-open .mobile-menu { display: flex; }
.menu-open .nav { background: var(--bg); border-color: var(--line); }
.menu-open { overflow: hidden; }
.mobile-menu a.item { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; padding: 14px 4px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.mobile-menu a.item svg { width: 20px; height: 20px; color: var(--ink-3); }
.mobile-menu .menu-ctas { display: grid; gap: 10px; margin-top: 24px; }
.mobile-menu .menu-foot { margin-top: auto; padding-top: 24px; font-size: 13px; color: var(--ink-3); }

/* Tiles: tarjetas flotantes "glossy" */
.tile { position: absolute; left: 50%; top: 50%; border-radius: 18px; background: linear-gradient(160deg, #ffffff 0%, #f1f3fb 100%); box-shadow: var(--shadow-tile); padding: 14px 16px; font-size: 14px; line-height: 1.35; color: var(--ink); will-change: transform, opacity; }
.tile.amber { background: linear-gradient(160deg, #ffd978 0%, #f5a623 100%); color: #3a2000; }
.tile.cobalt { background: linear-gradient(160deg, #7e66ff 0%, #3f00ff 100%); color: #fff; }
.tile.green { background: linear-gradient(160deg, #6ee77f 0%, #00b800 100%); color: #063d06; }
.tile.ink { background: linear-gradient(160deg, #2a2a36 0%, #0b0b14 100%); color: #fff; }
.tile.stack::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: inherit; opacity: .55; transform: translate(-9px, 9px) rotate(-3deg); z-index: -1; filter: saturate(.9); }
.tile .lbl { display: block; font-family: var(--mono); font-size: 11px; font-weight: 600; opacity: .7; margin-bottom: 3px; }
.tile .big { display: block; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; line-height: 1.1; }
.tile .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.55); margin-bottom: 8px; }
.tile .ic svg { width: 18px; height: 18px; }
.tile.cobalt .ic, .tile.ink .ic { background: rgba(255,255,255,.18); }
.bub { position: absolute; left: 50%; top: 50%; max-width: 230px; padding: 10px 14px; border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgba(28,34,90,.12), 0 2px 6px rgba(28,34,90,.05); font-size: 14.5px; line-height: 1.38; color: var(--ink); will-change: transform, opacity; }
.bub.in { border-bottom-left-radius: 6px; }
.bub.out { border-bottom-right-radius: 6px; background: var(--cobalt-light); color: #1b0070; }
.bub .who { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--cobalt); margin-bottom: 4px; }
.bub .who svg { width: 13px; height: 13px; }
.bub .t { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); margin-top: 4px; text-align: right; }
.spark { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; will-change: transform, opacity; }
.spark.blur { filter: blur(7px); opacity: .55; width: 70px; height: 70px; }
.spark svg { width: 100%; height: 100%; }
.wave { display: inline-flex; align-items: center; gap: 2.5px; height: 20px; }
.wave i { width: 3px; border-radius: 2px; background: currentColor; height: var(--h, 8px); opacity: .85; }
.wave.anim i { animation: wv 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * .08s); }
@keyframes wv { 0%,100% { transform: scaleY(.6) } 50% { transform: scaleY(1.25) } }

/* Sello Meta Tech Provider */
.meta-badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); color: var(--ink); line-height: 1.1; }
.meta-badge svg { height: 18px; width: 90px; flex-shrink: 0; color: #1c2b33; }
.meta-badge .sep { width: 1px; height: 18px; background: var(--line-2); }
.meta-badge b { font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.meta-badge small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); margin-top: 2px; white-space: nowrap; }
.meta-badge.sm { padding: 6px 12px 6px 10px; }
.meta-badge.sm svg { height: 15px; width: 75px; }
.meta-badge.sm b { font-size: 12.5px; }
.meta-badge.sm small { font-size: 10.5px; }
/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Secciones genéricas de páginas interiores */
.page { padding-top: calc(var(--nav-h) + 56px); padding-bottom: 80px; }
.page-head { max-width: 720px; margin-bottom: 56px; }
.page-head h1 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 16px; }
.section { padding: 72px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }

[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 4px; font-weight: 700; font-size: 17.5px; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex-shrink: 0; transition: transform .3s var(--ease), background .2s, border-color .2s, color .2s; }
.faq summary .pm svg { width: 14px; height: 14px; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); color: #fff; }
.faq .ans { padding: 0 4px; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; max-width: 680px; overflow: hidden; transition: height .32s var(--ease), opacity .25s ease; }
.faq .ans::after { content: ""; display: block; height: 22px; }
.faq .ans a { color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; }

/* Cierre + footer */
.final { padding: 100px 0; text-align: center; position: relative; overflow: hidden; }
.final h2 { font-size: clamp(36px, 5.5vw, 68px); margin-bottom: 18px; }
.final p { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 540px; margin: 0 auto 30px; }
.final .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.final .notes { justify-content: center; }
.footer { border-top: 1px solid var(--line); padding: 56px 0 36px; font-size: 14px; color: var(--ink-3); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; margin-bottom: 40px; }
.footer-logo { color: var(--cobalt); height: 44px; margin-bottom: 14px; }
.footer-logo svg { height: 100%; width: auto; }
.footer-tag { max-width: 300px; line-height: 1.5; }
.footer h4 { color: var(--ink); font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.footer-col a { display: block; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--ink); }
.footer address { font-style: normal; line-height: 1.55; font-size: 13.5px; margin-top: 6px; }
.footer .lb { color: var(--ink); font-weight: 600; }
.footer-bot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }

/* CTA fija móvil */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(247,248,252,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s var(--ease); }
.sticky-cta.show { transform: none; }
.sticky-cta .btn-primary { flex: 1; }
.sticky-cta .btn-wa { width: 52px; padding: 0; }
.sticky-cta .btn-wa svg { width: 22px; height: 22px; }
@media (max-width: 720px) { .sticky-cta { display: flex; } .footer { padding-bottom: 120px; } }

/* Páginas interiores en móvil: misma escala que el home */
@media (max-width: 860px) {
  body { font-size: 15px; }
  .page { padding-top: calc(var(--nav-h) + 32px); }
  .page-head { margin-bottom: 32px; }
  .page-head h1 { font-size: 30px; }
  h2 { font-size: 26px; }
  h3 { font-size: 19px; }
  .lead { font-size: 15px; }
  .card p, .card li { font-size: 14px; }
  .card { padding: 22px; border-radius: 20px; }
  .section { padding: 48px 0; }
  .final { padding: 72px 0; }
  .final h2 { font-size: 32px; }
  .final p { font-size: 15.5px; }
  .faq summary { font-size: 15.5px; padding: 16px 2px; }
  .faq .ans { font-size: 14.5px; }
  .btn-lg { padding: 15px 24px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
