/* VIVAGALAB — estilos */
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/jost-400.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/jost-500.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/jost-600.woff2") format("woff2"); }

:root {
  --cruz: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Crect%20x%3D%228.6%22%20y%3D%221.5%22%20width%3D%226.8%22%20height%3D%2221%22%20rx%3D%221.8%22/%3E%3Crect%20x%3D%221.5%22%20y%3D%228.6%22%20width%3D%2221%22%20height%3D%226.8%22%20rx%3D%221.8%22/%3E%3C/svg%3E");
  --bg: #050816;
  --bg-2: #0a1240;
  --surface: rgba(255,255,255,.045);
  --surface-2: rgba(255,255,255,.07);
  --text: #ffffff;
  --muted: #a9b4d8;
  --line: rgba(160,180,255,.16);
  --cyan: #00e5ff;
  --mint: #00ff8d;
  --blue: #2433ff;
  --grad: linear-gradient(45deg, var(--cyan), var(--mint));
  --accent: var(--mint);
  --c-incidencias: #ff5a3c;
  --c-opoquiz: #ffb020;
  --c-dieta: #22c06b;
  --radius: 20px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0;
  font-family: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 85% -8%, rgba(36,51,255,.55), transparent 70%),
    radial-gradient(700px 480px at -5% 18%, rgba(0,229,255,.14), transparent 70%),
    radial-gradient(800px 600px at 50% 110%, rgba(36,51,255,.35), transparent 70%),
    var(--bg);
  
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; }
img, svg { display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
::selection { background: var(--mint); color: var(--bg); }

/* Cabecera */
.site-header { border-bottom: 1px solid var(--line); background: rgba(5,8,22,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand svg.logo { width: auto; height: 42px; filter: drop-shadow(0 0 8px rgba(0,229,255,.35)); }
.wordmark { font-weight: 600; font-size: 21px; letter-spacing: .14em; }
.wordmark span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; font-size: 16px; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a.nav-cta { color: #04121a; background: var(--grad); padding: 9px 20px; border-radius: 12px; font-weight: 600; box-shadow: 0 0 22px rgba(0,255,141,.25); transition: box-shadow .2s, transform .2s; }
.nav a.nav-cta:hover { color: #04121a; box-shadow: 0 0 30px rgba(0,229,255,.5); transform: translateY(-1px); }

/* Portada */
.hero { padding: 120px 0 88px; position: relative; text-align: center; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0 -40vw; z-index: -1;
  background-image: linear-gradient(rgba(120,150,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(120,150,255,.07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%); }
.hero h1, .hero .lead { margin-left: auto; margin-right: auto; }
.hero .actions { justify-content: center; margin-top: 36px; }
.eyebrow { font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); font-weight: 500; margin: 0 0 18px; }
h1 { font-size: clamp(42px, 7.4vw, 80px); line-height: 1.04; font-weight: 600; letter-spacing: -.01em; margin: 0 0 24px; max-width: 15ch; }
h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(0,229,255,.35)); }
.lead { font-size: clamp(19px, 2.2vw, 22px); color: var(--muted); max-width: 34em; margin: 0; }

section { padding: 64px 0; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; margin: 0 0 32px; }
h3 { font-size: 21px; font-weight: 600; margin: 0 0 6px; }

/* Tarjetas de apps: carrusel */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sec-head h2 { margin: 0; }
.car-nav { display: flex; gap: 8px; }
.car-nav[hidden] { display: none; }
.car-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: #fff; display: grid; place-items: center; cursor: pointer; transition: border-color .2s, box-shadow .2s, opacity .2s; }
.car-btn svg { width: 20px; height: 20px; }
.car-btn:hover:not(:disabled) { border-color: rgba(0,229,255,.6); box-shadow: 0 0 18px rgba(0,229,255,.25); }
.car-btn:disabled { opacity: .3; cursor: default; }

.apps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 2px; padding: 8px 2px 14px; margin: -8px -2px 0; scrollbar-width: none; outline: none; }
.apps::-webkit-scrollbar { display: none; }
.apps.overflow { grid-auto-columns: 260px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.apps.overflow.at-end { -webkit-mask-image: none; mask-image: none; }
.app-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; min-width: 0; }
.app-card:hover { transform: translateY(-3px); border-color: rgba(0,229,255,.55); box-shadow: 0 0 0 1px rgba(0,229,255,.25), 0 16px 40px rgba(0,229,255,.12); }
.card-head { display: flex; align-items: center; gap: 14px; }
.card-head h3 { font-size: 19px; margin: 0 0 4px; line-height: 1.2; }
.card-head .badge { font-size: 12px; padding: 2px 9px; }
.app-card .card-head .icon { width: 52px; height: 52px; border-radius: 13px; flex: none; }
.app-card .card-head .icon svg { width: 28px; height: 28px; }
.app-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.app-card .more { margin-top: auto; font-size: 15px; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.app-card .more::after { content: " →"; }
.app-card.soon { border-style: dashed; background: transparent; color: var(--muted); }
.app-card.soon:hover { transform: none; box-shadow: none; border-color: var(--line); }
.app-card.soon h3 { color: var(--muted); margin: 0; }
.soon-cross { width: 52px; height: 52px; border-radius: 13px; border: 1px dashed var(--line); flex: none; position: relative; }
.soon-cross::after { content: ""; position: absolute; inset: 15px; background: var(--grad); opacity: .75; -webkit-mask: var(--cruz) center / contain no-repeat; mask: var(--cruz) center / contain no-repeat; }

.icon { width: 64px; height: 64px; border-radius: 15px; display: grid; place-items: center; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.icon svg { width: 34px; height: 34px; }
.icon.lg { width: 96px; height: 96px; border-radius: 22px; }
.icon.lg svg { width: 50px; height: 50px; }
.i-incidencias { background: var(--c-incidencias); box-shadow: 0 0 28px rgba(255,90,60,.35); }
.i-opoquiz { background: var(--c-opoquiz); box-shadow: 0 0 28px rgba(255,176,32,.3); }
.i-dieta { background: var(--c-dieta); box-shadow: 0 0 28px rgba(34,192,107,.35); }

.badge { display: inline-block; font-size: 13px; font-weight: 500; letter-spacing: .03em; padding: 4px 11px; border-radius: 99px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.badge.live { color: var(--mint); background: rgba(0,255,141,.08); border-color: rgba(0,255,141,.35); }

/* Principios */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.principles div { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.principles div::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--grad); }
.principles p { margin: 0; color: var(--muted); font-size: 16px; }

/* Página de app */
.app-hero { padding: 80px 0 40px; display: grid; gap: 26px; }
.app-hero h1 { margin-bottom: 10px; max-width: none; }
.meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 14px; font-size: 16px; font-weight: 600; text-decoration: none; border: 0; background: var(--grad); color: #04121a; box-shadow: 0 0 24px rgba(0,255,141,.25); transition: box-shadow .2s, transform .2s; }
.btn:hover { box-shadow: 0 0 34px rgba(0,229,255,.5); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: #fff; border: 1px solid var(--line); box-shadow: none; font-weight: 500; }
.btn.ghost:hover { border-color: rgba(0,229,255,.6); box-shadow: 0 0 20px rgba(0,229,255,.18); }
.btn[aria-disabled="true"] { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); box-shadow: none; cursor: default; transform: none; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.features li { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.features li strong { display: block; font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.features li span { color: var(--muted); font-size: 16px; }

.note { border-left: 3px solid var(--mint); padding: 4px 0 4px 18px; color: var(--muted); font-size: 16px; max-width: 46em; }

/* Texto largo (privacidad, soporte) */
.prose { max-width: 44em; padding: 72px 0 40px; }
.prose h1 { font-size: clamp(34px, 5vw, 52px); max-width: none; }
.prose h2 { font-size: 22px; margin: 40px 0 10px; }
.prose p, .prose li { color: #d3daf2; }
.prose a { color: var(--cyan); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--mint); }
.updated { color: var(--muted); font-size: 15px; }
.summary { background: rgba(0,229,255,.06); border: 1px solid rgba(0,229,255,.25); border-radius: var(--radius); padding: 22px 24px; margin: 26px 0 8px; }
.summary p { margin: 0; color: #fff; }

details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 500; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--mint); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p, details ol { color: #d3daf2; margin: 12px 0 0; }

.contact { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--mint); padding-bottom: 2px; }

/* Pie */
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 36px 0 48px; font-size: 15px; color: var(--muted); background: rgba(5,8,22,.5); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .nav { gap: 14px; }
  .wordmark { font-size: 18px; letter-spacing: .1em; }
  .brand svg.logo { height: 36px; }
  .hero { padding: 80px 0 56px; }
  section { padding: 44px 0; }
}


/* Cruces: motivo del logo */
.cruz, .hero-crosses i { display: inline-block; background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Crect%20x%3D%228.6%22%20y%3D%221.5%22%20width%3D%226.8%22%20height%3D%2221%22%20rx%3D%221.8%22/%3E%3Crect%20x%3D%221.5%22%20y%3D%228.6%22%20width%3D%2221%22%20height%3D%226.8%22%20rx%3D%221.8%22/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Crect%20x%3D%228.6%22%20y%3D%221.5%22%20width%3D%226.8%22%20height%3D%2221%22%20rx%3D%221.8%22/%3E%3Crect%20x%3D%221.5%22%20y%3D%228.6%22%20width%3D%2221%22%20height%3D%226.8%22%20rx%3D%221.8%22/%3E%3C/svg%3E") center / contain no-repeat; }
.hero-crosses { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-crosses i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); opacity: .55; filter: drop-shadow(0 0 10px rgba(0,255,141,.5)); animation: flota 9s ease-in-out infinite; animation-delay: var(--d); }
@keyframes flota { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(45deg); } }

h2::before { content: ""; display: inline-block; width: .5em; height: .5em; margin-right: .45em; vertical-align: .12em; background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Crect%20x%3D%228.6%22%20y%3D%221.5%22%20width%3D%226.8%22%20height%3D%2221%22%20rx%3D%221.8%22/%3E%3Crect%20x%3D%221.5%22%20y%3D%228.6%22%20width%3D%2221%22%20height%3D%226.8%22%20rx%3D%221.8%22/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Crect%20x%3D%228.6%22%20y%3D%221.5%22%20width%3D%226.8%22%20height%3D%2221%22%20rx%3D%221.8%22/%3E%3Crect%20x%3D%221.5%22%20y%3D%228.6%22%20width%3D%2221%22%20height%3D%226.8%22%20rx%3D%221.8%22/%3E%3C/svg%3E") center / contain no-repeat; }

.features li strong::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: 1px; background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Crect%20x%3D%228.6%22%20y%3D%221.5%22%20width%3D%226.8%22%20height%3D%2221%22%20rx%3D%221.8%22/%3E%3Crect%20x%3D%221.5%22%20y%3D%228.6%22%20width%3D%2221%22%20height%3D%226.8%22%20rx%3D%221.8%22/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Crect%20x%3D%228.6%22%20y%3D%221.5%22%20width%3D%226.8%22%20height%3D%2221%22%20rx%3D%221.8%22/%3E%3Crect%20x%3D%221.5%22%20y%3D%228.6%22%20width%3D%2221%22%20height%3D%226.8%22%20rx%3D%221.8%22/%3E%3C/svg%3E") center / contain no-repeat; }

.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 24px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 11px; height: 11px; background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Crect%20x%3D%228.6%22%20y%3D%221.5%22%20width%3D%226.8%22%20height%3D%2221%22%20rx%3D%221.8%22/%3E%3Crect%20x%3D%221.5%22%20y%3D%228.6%22%20width%3D%2221%22%20height%3D%226.8%22%20rx%3D%221.8%22/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Crect%20x%3D%228.6%22%20y%3D%221.5%22%20width%3D%226.8%22%20height%3D%2221%22%20rx%3D%221.8%22/%3E%3Crect%20x%3D%221.5%22%20y%3D%228.6%22%20width%3D%2221%22%20height%3D%226.8%22%20rx%3D%221.8%22/%3E%3C/svg%3E") center / contain no-repeat; }


@media (max-width: 600px) { .hero-crosses i:nth-child(1), .hero-crosses i:nth-child(2), .hero-crosses i:nth-child(5) { display: none; } .hero-crosses i { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .hero-crosses i { animation: none; } }
[id] { scroll-margin-top: 84px; }
