/* ProStudioDigital — soft glass / periwinkle theme */
/* Inter (self-hosted, variable weight) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("assets/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("assets/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --brand: #10208f;
  --brand-2: #8a9cc4;
  --ink: #0b1030;
  --ink-soft: #3b4468;
  --ink-mute: #6b7497;
  --bg-top: #a9b5cb;
  --bg-bot: #eaf0fb;
  --paper: #f4f7fd;
  --glass: rgba(255,255,255,.55);
  --glass-line: rgba(255,255,255,.7);
  --line: rgba(11,16,48,.14);
  --accent: #3d5afe;
  --radius: 28px;
  --ease: cubic-bezier(.22,.8,.24,1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); line-height: 1.5;
  background: var(--bg-bot); overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.03em; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Glass */
.glass { background: rgba(255,255,255,.75); border: 1px solid var(--glass-line); border-radius: var(--radius); box-shadow: 0 10px 40px -18px rgba(16,32,143,.25); }
@supports (backdrop-filter: blur(20px)) {
  .glass { background: var(--glass); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .7rem; padding: .95rem 1.6rem; border-radius: 999px; font-weight: 500; font-size: 1rem; border: 0; cursor: pointer; font-family: inherit; transition: transform .35s var(--ease), background .25s, box-shadow .25s; will-change: transform; }
.btn-dark { background: #05060f; color: #fff; }
.btn-dark:hover { background: var(--brand); box-shadow: 0 14px 30px -12px rgba(16,32,143,.7); }
.btn-glass { background: rgba(255,255,255,.55); color: var(--ink); border: 1px solid var(--glass-line); }
.btn-glass:hover { background: #fff; }
.btn-lg { padding: 1.15rem 2rem; font-size: 1.08rem; }
.arr { color: #7fa0ff; transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Nav */
.nav-wrap { position: fixed; inset: 18px 24px auto; z-index: 50; display: flex; justify-content: space-between; align-items: center; gap: 12px; pointer-events: none; }
.nav-wrap > * { pointer-events: auto; }
.nav { display: flex; align-items: center; gap: 8px; margin-inline: auto; }
.nav-wrap .nav-cta { position: absolute; right: 0; }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; height: 56px; padding: 6px; border-radius: 999px; background: rgba(240,244,252,.92); }
.lang-switch button { height: 100%; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 600 .85rem/1 var(--font); letter-spacing: .04em; cursor: pointer; transition: background .25s, color .25s; }
.lang-switch button:hover { background: rgba(16,32,143,.12); }
.lang-switch button[aria-pressed="true"] { background: #05060f; color: #fff; }
.lang-switch button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
html.i18n-wait body { opacity: 0; }
.nav-logo { background: rgba(255,255,255,.8); border-radius: 999px; height: 56px; padding: 0 22px; display: grid; place-items: center; border: 1px solid var(--glass-line); backdrop-filter: blur(12px); transition: transform .3s var(--ease); }
.nav-logo:hover { transform: scale(1.03); }
.nav-logo img { height: 22px; width: auto; }
.pill { white-space: nowrap; height: 56px; padding: 0 28px; display: inline-flex; align-items: center; border-radius: 999px; font-weight: 500; transition: background .25s, color .25s, transform .3s var(--ease); }
.pill-dark { background: #05060f; color: #fff; }
.pill-light { background: rgba(240,244,252,.92); color: var(--ink); }
.pill:hover { transform: translateY(-2px); background: var(--brand); color: #fff; }
.nav.is-scrolled .nav-logo, .nav-wrap.is-scrolled .nav-logo { box-shadow: 0 8px 30px -14px rgba(11,16,48,.4); }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; padding: 140px 6vw 80px; overflow: clip; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, var(--bg-top) 0%, #c6cfe2 45%, var(--bg-bot) 100%); }
.hero-bg::before, .hero-bg::after { content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: drift 24s ease-in-out infinite; }
.hero-bg::before { width: 42vw; height: 42vw; left: -8vw; top: 18%; background: #8ea2d9; }
.hero-bg::after { width: 36vw; height: 36vw; right: 6vw; bottom: -10%; background: #c9d6ff; animation-delay: -12s; }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(5vw,-4vh) scale(1.15); } }
.hero-copy { position: relative; z-index: 2; max-width: 780px; }
.tags { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.tag { border: 1.5px solid var(--ink); border-radius: 999px; padding: .55rem 1.2rem; font-size: .95rem; background: rgba(255,255,255,.18); }
.hero-title { font-size: clamp(2.6rem, 6.2vw, 5.6rem); line-height: 1; font-weight: 800; letter-spacing: -.045em; text-wrap: balance; }
.hero-title .light { font-weight: 300; color: #2a3050; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-sub { margin-top: 56px; max-width: 520px; color: var(--ink-soft); font-size: 1.1rem; }
.hero-figure { position: relative; z-index: 1; margin: 0; align-self: end; justify-self: end; width: min(100%, 640px); border-radius: 40px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(11,16,48,.55); border: 1px solid rgba(255,255,255,.5); align-self: center; animation: float 9s ease-in-out infinite; }
.hero-figure img { width: 100%; height: auto; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-chip { position: absolute; z-index: 3; right: 6vw; bottom: 9vh; padding: .8rem 1.3rem; font-size: .95rem; font-weight: 500; display: flex; align-items: center; gap: .6rem; border-radius: 999px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #2bd47a; box-shadow: 0 0 0 0 rgba(43,212,122,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(43,212,122,0); } 100% { box-shadow: 0 0 0 0 rgba(43,212,122,0); } }

/* Strip */
.strip { background: #05060f; color: #dfe6ff; overflow: hidden; padding: 1.1rem 0; }
.marquee-track { display: flex; align-items: center; gap: 2.2rem; width: max-content; animation: marquee 38s linear infinite; font-weight: 500; white-space: nowrap; }
.marquee-track i { width: 7px; height: 7px; border-radius: 50%; background: #7fa0ff; display: block; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(72px, 10vw, 140px) 6vw; background: var(--bg-bot); position: relative; }
.section-narrow { max-width: 920px; margin-inline: auto; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--brand); margin-bottom: 14px; }
.section h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.05; font-weight: 700; text-wrap: balance; }
.lead { margin-top: 18px; color: var(--ink-soft); font-size: 1.12rem; max-width: 60ch; }

/* Reveal — content stays visible if JS fails; JS adds .js-ready to opt in */
.js-ready .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js-ready .reveal.is-in { opacity: 1; transform: none; }

/* Products grid + cards */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { border: 1.5px solid var(--ink); background: transparent; border-radius: 999px; padding: .5rem 1.1rem; font: inherit; font-size: .92rem; cursor: pointer; transition: background .2s, color .2s; }
.chip:hover { background: rgba(16,32,143,.08); }
.chip.is-active { background: var(--ink); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(11,16,48,.08); box-shadow: 0 18px 44px -26px rgba(16,32,143,.35); transition: transform .45s var(--ease), box-shadow .45s var(--ease); transform-style: preserve-3d; }
.card:hover { box-shadow: 0 30px 60px -24px rgba(16,32,143,.5); }
.price-soon { font-size: 1rem; font-weight: 600; color: var(--brand); letter-spacing: 0; }
.card-media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: linear-gradient(135deg, #c3cde6, #e8eefc); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-fallback { width: 100%; height: 100%; display: grid; place-items: center; }
.card-fallback img { width: 60%; height: auto; opacity: .5; object-fit: contain; }
.badge { position: absolute; top: 14px; left: 14px; background: #05060f; color: #fff; font-size: .75rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.lang-tag { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.92); color: var(--ink); font-size: .75rem; font-weight: 600; letter-spacing: .03em; padding: .35rem .75rem; border-radius: 999px; box-shadow: 0 4px 14px -6px rgba(11,16,48,.35); }
.lang-tag svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-cat { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); font-weight: 600; }
.card h3 { font-size: 1.35rem; line-height: 1.15; }
.card-tag { color: var(--ink-soft); font-size: .97rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-mute); font-size: .85rem; }
.card-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.price s { font-size: 1rem; font-weight: 400; color: var(--ink-mute); margin-left: 6px; }
.card .btn { padding: .75rem 1.3rem; font-size: .95rem; white-space: nowrap; flex: none; }
.card-foot .price { min-width: 0; }
.grid.is-single { grid-template-columns: minmax(0, 420px); justify-content: center; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-link:focus-visible { outline-offset: 6px; }
.card:has(.card-link) { cursor: pointer; }
.card .btn { position: relative; z-index: 2; }

/* Empty state */
.empty { text-align: center; padding: clamp(32px, 6vw, 72px) 6vw; max-width: 900px; margin-inline: auto; }
.empty h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-top: 28px; }
.empty p { color: var(--ink-soft); max-width: 52ch; margin: 14px auto 28px; }
.empty-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 640px; margin-inline: auto; }
.ghost-card { background: rgba(255,255,255,.7); border-radius: 20px; padding: 12px; display: grid; gap: 10px; }
.ghost-card:nth-child(2) { transform: translateY(-10px); }
.ghost-img, .ghost-line, .ghost-pill { background: linear-gradient(90deg, #dbe3f5 25%, #eef2fc 50%, #dbe3f5 75%); background-size: 200% 100%; animation: shimmer 2.4s linear infinite; border-radius: 12px; }
.ghost-img { aspect-ratio: 4/3; }
.ghost-line { height: 10px; border-radius: 6px; }
.ghost-pill { height: 22px; width: 50%; border-radius: 999px; }
.w60 { width: 60%; } .w90 { width: 90%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Steps & features */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 34px 30px 38px; }
.step-num { display: inline-block; font-size: 3.2rem; font-weight: 800; letter-spacing: -.05em; color: var(--brand-2); line-height: 1; margin-bottom: 20px; }
.step h3, .feature h3 { font-size: 1.35rem; margin-bottom: 10px; }
.step p, .feature p { color: var(--ink-soft); }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 32px 26px; transition: transform .4s var(--ease), box-shadow .4s; transform-style: preserve-3d; }
.feature:hover { box-shadow: 0 30px 60px -28px rgba(16,32,143,.5); }
.f-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #05060f; color: #9db5ff; font-size: 1.4rem; margin-bottom: 22px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { padding: 0 28px; border-radius: 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-weight: 600; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; font-weight: 300; transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-soft); max-width: 62ch; }

/* CTA */
.cta { position: relative; overflow: hidden; text-align: center; padding: clamp(48px, 8vw, 100px) 6vw; max-width: 1100px; margin-inline: auto; background: linear-gradient(135deg, #dfe6fb, #f6f8ff); }
.cta > *:not(.cta-mesh) { position: relative; z-index: 1; }
.cta .lead { margin-inline: auto; }
.cta-mesh { position: absolute; inset: -30%; background: radial-gradient(at 20% 30%, rgba(16,32,143,.28), transparent 45%), radial-gradient(at 80% 70%, rgba(138,156,196,.6), transparent 45%); filter: blur(40px); animation: drift 22s ease-in-out infinite; }
.join-form { display: flex; gap: 10px; max-width: 520px; margin: 34px auto 0; }
.join-form input { flex: 1; min-width: 0; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.9); padding: 0 1.4rem; height: 56px; font: inherit; font-size: 1rem; }
.form-msg { margin-top: 16px; min-height: 1.5em; font-weight: 500; color: var(--brand); }
.form-msg.is-error { color: #b3261e; }

/* Footer */
.footer { background: #05060f; color: #c9d2f0; padding: 56px 6vw 40px; }
.footer-inner { display: grid; gap: 28px; justify-items: center; text-align: center; }
.footer-logo { background: #fff; border-radius: 999px; padding: 12px 26px; }
.footer-logo img { height: 24px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.footer-mail { color: #fff; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.join-form .btn:disabled { opacity: .6; cursor: progress; }
.form-note { margin-top: 10px; font-size: .88rem; color: var(--ink-mute); }
.form-note a { text-decoration: underline; }
.footer-nav a:hover, .footer-legal a:hover { color: #fff; }
.footer-legal { font-size: .88rem; color: #8b95bd; }

/* Responsive */
@media (max-width: 1360px) { .nav-wrap .nav-cta { display: none; } }
@media (max-width: 1020px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; padding-top: 130px; gap: 20px; }
  .hero-figure { justify-self: center; width: min(100%, 520px); margin-top: 10px; }
  .hero-sub { margin-top: 32px; }
  .hero-chip { right: 6vw; bottom: 4vh; }
  .nav-wrap .nav-cta { display: none; }
}
@media (max-width: 720px) {
  .nav-wrap { inset: 12px 12px auto; }
  .nav-wrap { justify-content: center; }
  .nav { margin-inline: auto; gap: 6px; justify-content: center; }
  .nav-logo { height: 48px; padding: 0 16px; }
  .nav-logo img { height: 18px; }
  .pill { height: 48px; padding: 0 18px; font-size: .92rem; }
  .lang-switch { height: 48px; padding: 5px; }
  .lang-switch button { padding: 0 11px; }
  .nav-hide-sm { display: none; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .join-form { flex-direction: column; }
  .join-form .btn { justify-content: center; height: 56px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero-chip { display: none; }
  .faq details { padding: 0 20px; }
}
@media (max-width: 560px) { .pill-light { display: none; } }

/* Legal pages */
.legal-page { background: linear-gradient(180deg, var(--bg-top) 0, #cfd8ea 360px, var(--bg-bot) 720px) no-repeat, var(--bg-bot); }
.legal { padding: 130px 6vw 80px; }
.legal-card { max-width: 820px; margin-inline: auto; padding: clamp(28px, 5vw, 64px); background: rgba(255,255,255,.85); }
.legal-card h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.05; font-weight: 800; }
.legal-meta { margin-top: 10px; color: var(--ink-mute); font-size: .92rem; }
.legal-card h2 { font-size: 1.25rem; margin: 2.2rem 0 .6rem; letter-spacing: -.02em; }
.legal-card p, .legal-card li { color: var(--ink-soft); }
.legal-card p { margin: .7rem 0; }
.legal-card ul, .legal-card ol { padding-left: 1.3rem; margin: .6rem 0; display: grid; gap: .45rem; }
.legal-card a { color: var(--brand); text-decoration: underline; }
.ph { background: #fff3a8; color: #5a4a00; padding: 0 .3em; border-radius: 4px; font-weight: 600; }

/* Only genuinely intrusive loops are gated */
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .dot { animation: none; }
  .hero-figure { animation: none; }
}

/* English / Spanish blocks on pages that carry both languages in the HTML (see lang.js) */
html[lang="es"] .l-en, html:not([lang="es"]) .l-es { display: none !important; }
