/* Hoja de estilos de la web pública (Fase 7c, RF-PUB-01…06; rediseño
   comercial de 2026-09-30). Sitio estático independiente de la SPA
   (web/src/css/app.scss): sin paso de compilación, solo custom properties.
   Misma paleta que el panel de la aplicación (obsidiana, oro y bronce)
   sobre un papel marfil: la página es clara y en ella flotan tres bandas
   de obsidiana (héroe, rutinas y cierre) con un campo de partículas.
   Un solo tema, a propósito: la web no sigue el modo oscuro del sistema.

   Las clases que comparten las páginas legales (.site-header, .brand,
   .main-nav, .header-actions, .btn*, .legal-*, .site-footer, .footer-*,
   .cookie-notice*) conservan su nombre: esas páginas no se maquetan aparte. */

/* Tipografías autoalojadas: la CSP de la web (`font-src 'self'`) no deja
   cargar Google Fonts. Son ficheros variables, latín, bajados una vez. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/fonts/manrope-latin.woff2") format("woff2"); }

/* Layout: página blanca y muy limpia en la que flotan paneles de obsidiana
   con bordes redondeados. El bronce es el único color: en el blanco va cobre
   oscuro, sobre la obsidiana va oro. Poco texto, mucha imagen dibujada en
   código (canvas y SVG) y una maqueta viva de la aplicación. */
:root {
  color-scheme: light;
  --bg: #f7f5f0;
  --bg-2: #f1eee7;
  --surface: #fcfbf8;
  --line: #e4dfd5;
  --heading: #14120f;
  --text: #5f5a52;
  --muted: #8f8a80;
  --bronze: #a8641f;
  --bronze-2: #c47c2e;
  --bronze-soft: rgba(168, 100, 31, .10);
  --obsidian: #0b0d11;
  --obsidian-2: #13161c;
  --obsidian-3: #1b1f27;
  --on-obs: #ece8e1;
  --on-obs-muted: rgba(236, 232, 225, .62);
  --gold: #d9a94f;
  --gold-2: #f0c66b;
  --gold-soft: rgba(217, 169, 79, .16);
  --line-obs: rgba(236, 232, 225, .10);
  --shadow: 0 40px 80px rgba(20, 16, 10, .14);
  --shadow-sm: 0 14px 34px rgba(20, 16, 10, .10);
  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --r: 28px;
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Escala de lectura: en pantallas de escritorio la página se ve como al 150 % de zoom. */
@media (min-width: 1100px) { html { zoom: 1.2; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); color: var(--heading); margin: 0; text-wrap: balance; letter-spacing: -.025em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.06; font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); line-height: 1.12; font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 700; line-height: 1.3; }
p { margin: 0; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.section { padding-block: clamp(52px, 7vw, 96px); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .7rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze); margin-bottom: 18px; }
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--bronze); border-radius: 2px; }
.center { text-align: center; }
.center .kicker { justify-content: center; }
.head { max-width: 600px; margin-bottom: clamp(24px, 3vw, 40px); }
.head.center { margin-inline: auto; }
.head p { margin-top: 12px; font-size: 1rem; }
.gold { color: var(--bronze); }
.shimmer {
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-2) 30%, #fff2cf 50%, var(--gold-2) 70%, var(--gold) 100%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer { to { background-position: 220% center; } }

/* Aparición al hacer scroll: se parte de un estado visible y solo se desplaza. */
.rv { transform: translateY(26px); transition: transform .9s var(--ease); }
.rv.in { transform: none; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font-family: var(--font-display); font-weight: 700; font-size: 1rem; border: 0; cursor: pointer; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s; }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-gold { background: linear-gradient(100deg, var(--gold), var(--bronze-2)); color: #1a1206; box-shadow: 0 14px 34px rgba(217,169,79,.35); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(217,169,79,.45); }
.btn-ghost { background: transparent; color: var(--on-obs); border: 1px solid rgba(236,232,225,.28); }
.btn-ghost:hover { background: rgba(236,232,225,.08); }
.btn-dark { background: var(--obsidian); color: var(--on-obs); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-bronze { background: var(--bronze); color: #fff; }
.btn-bronze:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(168,100,31,.35); }
.btn-sm { height: 42px; padding: 0 18px; font-size: .9rem; }
.btn-xs { height: 34px; padding: 0 14px; font-size: .78rem; }

/* Cabecera */
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--heading); letter-spacing: -.02em; }
.app-bar .who .sym { width: 20px; height: 20px; object-fit: contain; display: block; margin-right: -3px; }
.mark svg { width: 17px; height: 17px; }
@media (max-width: 480px) { .header-actions .login span { display: none; } }

/* Héroe: panel de obsidiana con el campo de partículas */
.hero-outer { padding: 0; }
.hero { position: relative; overflow: hidden; background: var(--obsidian); color: var(--on-obs); min-height: 720px; }
.hero canvas, .routine-panel canvas, .cta-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .glow { position: absolute; width: 900px; height: 900px; border-radius: 50%; right: -300px; top: -400px; background: radial-gradient(closest-side, rgba(217,169,79,.22), transparent 70%); pointer-events: none; }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(96px, 11vw, 150px) clamp(72px, 9vw, 120px); }
.hero h1 { color: #fff; }
.hero .lead { margin-top: 20px; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--on-obs-muted); max-width: 460px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px; border: 1px solid var(--line-obs); background: rgba(255,255,255,.04); font-size: .76rem; font-weight: 700; color: var(--on-obs-muted); margin-bottom: 20px; }
.hero-pill .sparkles { width: 13px; height: 13px; margin: 0 2px 0 4px; fill: var(--gold); overflow: visible; }
.hero-pill .sparkles path { transform-origin: center; transform-box: fill-box; animation: twinkle 2.6s ease-in-out infinite; }
.hero-pill .sparkles .s1 { animation-delay: 0s; }
.hero-pill .sparkles .s2 { animation-delay: .6s; }
.hero-pill .sparkles .s3 { animation-delay: 1.2s; }
@keyframes twinkle { 0%,100% { opacity: .45; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }
@media (max-width: 960px) { .hero .container { grid-template-columns: 1fr; } }

/* Maqueta de la aplicación: chat en claro sobre la banda de obsidiana. */
.device { position: relative; perspective: 1400px; }
.app { transform-style: preserve-3d; transition: transform .6s var(--ease); background: #f4f1ea; border-radius: 22px; box-shadow: 0 50px 100px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); overflow: hidden; max-width: 520px; margin-inline: auto; color: var(--heading); }
.app-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .82rem; color: var(--muted); font-weight: 700; }
.app-bar .dots { display: flex; gap: 6px; }
.app-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.app-bar .who { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--heading); }
.app-body { padding: 20px 18px; display: grid; gap: 12px; min-height: 400px; align-content: start; transition: opacity .6s var(--ease); }
.app.flip-out { animation: flipOut .55s cubic-bezier(.55, 0, .8, .4) forwards; }
.app.flip-in { animation: flipIn .65s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes flipOut { to { transform: rotateY(-90deg) scale(.96); } }
@keyframes flipIn { from { transform: rotateY(90deg) scale(.96); } to { transform: rotateY(0) scale(1); } }
.m { max-width: 90%; padding: 11px 15px; border-radius: 14px; font-size: .94rem; line-height: 1.45; }
.m-user { justify-self: end; background: var(--bronze); color: #fff7ea; border-bottom-right-radius: 4px; font-weight: 600; min-height: 42px; }
.m-user .caret { display: inline-block; width: 2px; height: 1em; background: #fff7ea; vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.m-bot { background: #e9e4da; color: var(--heading); border-bottom-left-radius: 4px; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.m-bot .steps { display: grid; gap: 8px; margin-top: 10px; }
.st { display: flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--text); transform: translateX(-6px); opacity: 0; transition: all .6s var(--ease); }
.st.on { transform: none; opacity: 1; }
.st .chip { display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 800; letter-spacing: .02em; padding: 3px 8px 3px 5px; border-radius: 999px; background: #fcfbf8; border: 1px solid var(--line); color: var(--heading); white-space: nowrap; }
.st .chip svg { width: 13px; height: 13px; }
.st .tick { width: 16px; height: 16px; border-radius: 50%; background: var(--bronze); display: grid; place-items: center; flex: none; }
.st .tick svg { width: 9px; height: 9px; }
.ask { border: 1px solid rgba(168,100,31,.45); background: rgba(217,169,79,.12); border-radius: 12px; padding: 11px 13px; display: grid; gap: 6px; font-size: .9rem; color: var(--heading); transform: translateY(8px); opacity: 0; transition: all .6s var(--ease); }
.ask.on { transform: none; opacity: 1; }
.ask .t { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--bronze); }
.ask .acts { display: flex; gap: 8px; }
.ask .acts span { padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.ask .acts .ok { background: var(--bronze); color: #fff7ea; }
.ask .acts .no { border: 1px solid var(--line); color: var(--text); }
.hidden-at-rest { visibility: hidden; }
.app.rest .st, .app.rest .ask { opacity: 1; transform: none; }
.app.rest .hidden-at-rest { visibility: visible; }
.app.rest .caret { display: none; }

/* Marquesina de conectores */
.marquee { padding-block: 32px 4px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee p { text-align: center; font-size: .7rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.track { display: flex; gap: 14px; width: max-content; animation: slide 34s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.track span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-family: var(--font-display); font-weight: 700; color: var(--heading); font-size: .96rem; white-space: nowrap; }
.track svg { width: 18px; height: 18px; flex: none; }

/* Tres piezas */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
.tile { position: relative; overflow: hidden; border-radius: 20px; padding: 30px 28px; background: var(--bg-2); border: 1px solid var(--line); min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tile p { font-size: .98rem; }
.tile .art { position: absolute; inset: 0; pointer-events: none; }
.tile.dark { background: var(--obsidian); border-color: transparent; color: var(--on-obs-muted); }
.tile.dark h3 { color: #fff; }
.tile .num { font-family: var(--font-display); font-weight: 800; font-size: .8rem; letter-spacing: .16em; color: var(--bronze); }
.tile.dark .num { color: var(--gold); }

/* Órbita de conectores */
.orbit-sec .container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .orbit-sec .container { grid-template-columns: 1fr; } }
.orbit { position: relative; aspect-ratio: 1; max-width: 470px; margin-inline: auto; width: 100%; }
.orbit svg { width: 100%; height: 100%; overflow: visible; }
.ring { fill: none; stroke: var(--line); stroke-width: 1.2; }
.ring-dash { fill: none; stroke: var(--bronze); stroke-width: 1.4; stroke-dasharray: 3 9; opacity: .55; }
.spin { transform-origin: 250px 250px; animation: spin 40s linear infinite; }
.spin.rev { animation-direction: reverse; animation-duration: 58s; }
.unspin { animation: spin 40s linear infinite reverse; }
.unspin.rev { animation-direction: normal; animation-duration: 58s; }
@keyframes spin { to { transform: rotate(360deg); } }
.node { fill: #fcfbf8; stroke: var(--line); stroke-width: 1.2; filter: drop-shadow(0 8px 16px rgba(20,16,10,.12)); }
.node-t { font-family: var(--font-display); font-weight: 700; font-size: 11px; fill: var(--heading); text-anchor: middle; }
.node-t { paint-order: stroke; stroke: #f7f5f0; stroke-width: 4px; stroke-linejoin: round; }
.core { fill: var(--obsidian); }
.core-glow { fill: var(--gold); opacity: .18; animation: pulse2 3s ease-in-out infinite; transform-origin: 250px 250px; }
@keyframes pulse2 { 0%,100% { transform: scale(1); opacity: .18; } 50% { transform: scale(1.18); opacity: .08; } }
.steps-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.steps-list li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: center; }
.steps-list b { width: 38px; height: 38px; border-radius: 12px; background: var(--obsidian); color: var(--gold); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; }
.steps-list h3 { font-size: 1.08rem; }

/* Rutinas: panel obsidiana con animación de compresión */
.routine { padding-inline: 0; }
.routine-panel { position: relative; overflow: hidden; background: var(--obsidian); color: var(--on-obs-muted); padding: clamp(40px, 5.5vw, 72px) 0; }
.routine-panel::before { content: ""; position: absolute; width: 700px; height: 700px; border-radius: 50%; left: -250px; bottom: -400px; background: radial-gradient(closest-side, rgba(217,169,79,.18), transparent 70%); }
.routine-panel .container { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .routine-panel .container { grid-template-columns: 1fr; } }
.routine-panel h2 { color: #fff; }
.routine-panel .kicker { color: var(--gold); } .routine-panel .kicker::before { background: var(--gold); }
.routine-panel .lead { margin-top: 14px; font-size: 1rem; }
.squash { display: grid; gap: 14px; min-width: 0; }
.squash .row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-obs); background: rgba(255,255,255,.04); font-size: .78rem; font-weight: 600; color: var(--on-obs); white-space: nowrap; opacity: .5; transition: all .6s var(--ease); }
.pill svg { width: 16px; height: 16px; flex: none; }
.pill .tk { width: 11px; height: 11px; border-radius: 50%; background: var(--gold); flex: none; margin-left: 4px; transform: scale(0); transition: transform .4s var(--ease); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1206' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>"); background-repeat: no-repeat; background-position: center; background-size: 62% 62%; }
.pill.active { opacity: 1; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); transform: translateY(-2px); background: rgba(217,169,79,.08); }
.pill.done { opacity: .85; }
.pill.done .tk { transform: scale(1); }
.squash.dim .pill { opacity: .22; }
.squash .lab { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--on-obs-muted); transition: color .5s; }
.squash .lab-n { font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--gold); }
.squash .lab.hot { color: var(--gold); }
.one { display: inline-flex; align-items: center; padding: 12px 18px; border-radius: 999px; background: linear-gradient(100deg, var(--gold), var(--bronze-2)); color: #1a1206; font-family: var(--font-display); font-weight: 800; font-size: clamp(.95rem, 1.6vw, 1.12rem); width: fit-content; max-width: 100%; min-height: 2.9em; opacity: 0; transition: opacity .5s var(--ease); box-shadow: 0 20px 50px rgba(217,169,79,.35); }
.one .caret { display: inline-block; width: 2px; height: 1em; background: #1a1206; margin-left: 3px; animation: blink 1s steps(1) infinite; opacity: 0; }
.one.typing .caret { opacity: 1; }
.one.show { opacity: 1; }
.auto { display: flex; align-items: center; gap: 8px; min-height: 34px; flex-wrap: wrap; }
.auto span { width: 30px; height: 30px; border-radius: 50%; background: var(--obsidian-3); border: 1px solid var(--line-obs); display: grid; place-items: center; position: relative; opacity: 0; transform: scale(.5); transition: all .45s var(--ease); }
.auto span svg { width: 15px; height: 15px; }
.auto span::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); border: 1.5px solid var(--obsidian); transform: scale(0); transition: transform .3s var(--ease) .15s; }
.auto span.on { opacity: 1; transform: none; }
.auto span.on::after { transform: scale(1); }
.auto em { font-style: normal; font-size: .8rem; font-weight: 700; color: var(--on-obs-muted); margin-left: 6px; opacity: 0; transition: opacity .5s; }
.auto em.on { opacity: 1; }
.squash.rest .pill { opacity: .85; }
.squash.rest .pill .tk { transform: scale(1); }
.squash.rest .one { opacity: 1; }
.squash.rest .auto span, .squash.rest .auto em { opacity: 1; transform: none; }
.squash.rest .auto span::after { transform: scale(1); }

/* Confianza: seis piezas cortas */
.six { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .six { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .six { grid-template-columns: 1fr; } }
.six div { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px; font-size: 1rem; border: 1px solid var(--line); background: var(--surface); font-family: var(--font-display); font-weight: 700; color: var(--heading); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.six div:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.six div:nth-child(1) { --c: #5b8cff; }
.six div:nth-child(2) { --c: #a583ff; }
.six div:nth-child(3) { --c: #ff7a6b; }
.six div:nth-child(4) { --c: #3ccfbf; }
.six div:nth-child(5) { --c: #ffb03b; }
.six div:nth-child(6) { --c: #5fd07f; }
.six div:hover { border-color: var(--c); }
.six i { width: 38px; height: 38px; border-radius: 11px; background: #2a2e38; color: var(--c); display: grid; place-items: center; flex: none; }
.six i svg { width: 19px; height: 19px; }

/* Marketplace: imagen de cristal */
.partner .container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .partner .container { grid-template-columns: 1fr; } }
.glass { position: relative; aspect-ratio: 4/3; max-width: 500px; margin-inline: auto; width: 100%; border-radius: 20px; overflow: hidden; background: var(--obsidian); box-shadow: var(--shadow); padding: 22px; display: grid; }
.store-glow { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(217,169,79,.30), transparent 70%); left: 0; top: 0; transform: translate(-40px, -40px); transition: transform .7s var(--ease); pointer-events: none; }
.store-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 12px; }
.tile-s { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; border-radius: 14px; background: var(--obsidian-2); border: 1px solid var(--line-obs); padding: 12px 8px; color: var(--on-obs); transition: transform .45s var(--ease), border-color .45s, box-shadow .45s; min-width: 0; }
.tile-s svg { width: 28px; height: 28px; margin-bottom: 4px; }
.tile-s b { font-family: var(--font-display); font-size: .78rem; font-weight: 700; line-height: 1.2; }
.tile-s small { font-size: .66rem; color: var(--on-obs-muted); }
.tile-s .ib { position: relative; margin-top: 6px; height: 22px; width: 82px; border-radius: 999px; border: 1px solid var(--line-obs); overflow: hidden; isolation: isolate; font-size: .66rem; font-weight: 800; letter-spacing: .04em; background: rgba(255,255,255,.04); transition: border-color .6s; }
.tile-s .ib::before { content: ""; position: absolute; top: -1px; bottom: -1px; left: -1px; width: 140%; background: linear-gradient(90deg, var(--gold) 0%, var(--gold) 68%, #fff3d1 80%, rgba(255,243,209,0) 100%); transform: translateX(-100%); transition: transform 1.5s cubic-bezier(.4, 0, .2, 1); }
.tile-s .ib::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.7) 50%, transparent 65%); transform: translateX(-110%); }
.tile-s .ib span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 4px; line-height: 1; letter-spacing: 0; padding: 2px 0 0 1px; transition: opacity .35s var(--ease); }
.tile-s .ib-b svg { width: 9px; height: 9px; flex: none; position: relative; top: 1.5px; }
.tile-s .ib-a { color: var(--on-obs); }
.tile-s .ib-b { color: rgba(26,18,6,.62); font-weight: 600; letter-spacing: .02em; opacity: 0; }
.tile-s.active { transform: translateY(-4px) scale(1.04); border-color: rgba(217,169,79,.6); box-shadow: 0 16px 34px rgba(0,0,0,.45); }
.tile-s.done .ib { border-color: transparent; }
.tile-s.done .ib::before { transform: translateX(0); }
.tile-s.done .ib::after { transition: transform 1.1s ease-in-out 1.4s; transform: translateX(110%); }
.tile-s.done .ib-a { opacity: 0; transition-delay: .5s; }
.tile-s.done .ib-b { opacity: 1; transition-delay: 1.1s; transition-duration: .6s; }
.glass.rest .tile-s .ib { border-color: transparent; }
.glass.rest .tile-s .ib::before { transform: translateX(0); }
.glass.rest .tile-s .ib-a { opacity: 0; }
.glass.rest .tile-s .ib-b { opacity: 1; }
@media (max-width: 420px) { .tile-s b { font-size: .7rem; } .tile-s .ib { width: 74px; } }
/* En el móvil la proporción fija (4:3) dejaba la segunda fila de aplicaciones
   cortada: la caja crece con su contenido. */
@media (max-width: 600px) { .glass { aspect-ratio: auto; } }

/* Conectores a medida */
.custom-box { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 44px); }
@media (max-width: 900px) { .custom-box { grid-template-columns: 1fr; } }
.custom-copy .lead { margin-top: 14px; font-size: 1.08rem; }
.custom-copy .btn { margin-top: 22px; }
.custom-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ctile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 1; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; font-size: .72rem; color: var(--heading); text-align: center; padding: 8px; }
.ctile svg { width: 26px; height: 26px; }
.ctile.plus { background: var(--bronze-soft); border: 1.5px dashed var(--bronze); color: var(--bronze); }
.ctile.plus i { width: 26px; height: 26px; border-radius: 50%; background: var(--bronze); color: #fff7ea; display: grid; place-items: center; animation: plus 2.6s ease-in-out infinite; }
.ctile.plus i svg { width: 14px; height: 14px; }
@keyframes plus { 0%,100% { box-shadow: 0 0 0 0 rgba(168,100,31,.35); } 50% { box-shadow: 0 0 0 8px rgba(168,100,31,0); } }

/* CTA: el texto se desplaza a la izquierda y el formulario se abre a la derecha. */
.cta { padding: 0; }
.cta-box { position: relative; overflow: hidden; background: var(--obsidian); color: var(--on-obs-muted); padding: clamp(44px, 6vw, 80px) clamp(20px, 5vw, 80px); display: grid; grid-template-columns: 1fr 0fr; gap: 0; align-items: center; transition: grid-template-columns .7s var(--ease), gap .7s var(--ease); }
.cta-box::before { content: ""; position: absolute; width: 1000px; height: 500px; border-radius: 50%; left: 50%; bottom: -380px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(217,169,79,.28), transparent 70%); }
.cta-box > * { position: relative; }
.cta-text { text-align: center; transition: text-align .3s; }
.cta-box h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); }
.cta-box p { margin: 14px auto 0; max-width: 460px; font-size: 1rem; }
.cta-box .acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; transition: opacity .3s; }
.cta-form { min-width: 0; overflow: hidden; opacity: 0; transform: translateX(24px); transition: opacity .5s var(--ease) .25s, transform .6s var(--ease) .2s; }
.cta-box.open { grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.cta-box.open .cta-text { text-align: left; }
.cta-box.open .cta-text p { margin-inline: 0; }
.cta-box.open .acts { justify-content: flex-start; opacity: .0; pointer-events: none; height: 0; margin-top: 0; overflow: hidden; }
.cta-box.open .cta-form { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .cta-box.open { grid-template-columns: 1fr; }
  .cta-box.open .cta-text { text-align: center; }
  .cta-box.open .cta-text p { margin-inline: auto; }
}
.cta-form form { display: grid; gap: 12px; }
.f-row { display: grid; gap: 5px; }
.f-row.two { grid-template-columns: 1fr 1fr; gap: 10px; }
.f-row.two > div { display: grid; gap: 5px; min-width: 0; }
@media (max-width: 480px) { .f-row.two { grid-template-columns: 1fr; } }
.cta-form label { font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: var(--on-obs-muted); }
.cta-form input[type="email"], .cta-form input[type="tel"], .cta-form input[type="text"], .cta-form textarea { width: 100%; background: rgba(255,255,255,.05); border: 1px solid var(--line-obs); border-radius: 10px; padding: 10px 12px; color: var(--on-obs); font-family: var(--font-body); font-size: .9rem; transition: border-color .2s, box-shadow .2s; }
.cta-form input::placeholder, .cta-form textarea::placeholder { color: rgba(236,232,225,.35); }
.cta-form input:focus, .cta-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.cta-form textarea { resize: vertical; min-height: 74px; }
.cta-form .invalid { border-color: #e06a5a !important; }
.f-check { display: flex; align-items: flex-start; gap: 9px; font-size: .8rem; color: var(--on-obs-muted); font-weight: 500; letter-spacing: 0; cursor: pointer; }
.f-check input { margin: 3px 0 0; accent-color: var(--gold); width: 15px; height: 15px; flex: none; }
.f-check a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.f-acts { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.f-msg { font-size: .84rem; color: var(--gold); font-weight: 600; }

/* Pie */
.footer { padding: 24px 0 28px; }
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: .74rem; color: var(--muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer nav a:hover { color: var(--bronze); }

/* Mi espacio: banda de obsidiana con una maqueta del panel que se monta sola. */
.space-sec .container { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .space-sec .container { grid-template-columns: 1fr; } }
.space-sec .lead { margin-top: 14px; font-size: 1.05rem; max-width: 440px; }
.space-sec .steps-list h3 { font-size: 1.02rem; }
.space-sec .steps-list p { font-size: .9rem; margin-top: 2px; }
.space-sec .ro { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 8px 14px; border-radius: 999px; background: var(--bronze-soft); color: var(--bronze); font-size: .8rem; font-weight: 700; }
.space-sec .ro svg { width: 15px; height: 15px; }
.sp-app { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; color: var(--heading); min-width: 0; }
.sp-top { display: flex; align-items: center; gap: 12px; padding: 16px 20px 12px; flex-wrap: wrap; }
.sp-top h4 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.sp-top small { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--muted); flex-wrap: wrap; }
.sp-top small svg { width: 14px; height: 14px; }
.sp-top .ref { margin-left: auto; width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text); }
.sp-top .ref svg { width: 15px; height: 15px; }
.sp-app.refreshing .sp-top .ref svg { animation: spin 1s linear infinite; }
.sp-ask { margin: 0 20px 14px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); font-size: .86rem; color: var(--muted); min-height: 44px; }
.sp-ask .sym { width: 18px; height: 18px; flex: none; }
.sp-ask .q { color: var(--heading); font-weight: 600; }
.sp-ask .q:empty::before { content: "Cambia algo del panel o pregunta…"; color: var(--muted); font-weight: 500; }
.sp-ask .caret { display: none; width: 2px; height: 1em; background: var(--bronze); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.sp-app.typing .sp-ask .caret { display: inline-block; }
.sp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 20px 20px; }
@media (max-width: 560px) { .sp-grid { grid-template-columns: 1fr; } }
.sp-b { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 12px 14px; display: grid; gap: 8px; align-content: start; min-width: 0; transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .6s var(--ease), border-color .6s; }
.sp-b header { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: .86rem; }
.sp-b header svg { width: 16px; height: 16px; flex: none; }
.sp-b header em { margin-left: auto; font-style: normal; font: 700 .68rem var(--font-body); color: var(--muted); }
.sp-row { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--text); min-width: 0; }
.sp-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-row time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--heading); flex: none; font-size: .76rem; }
.sp-row .now { margin-left: auto; flex: none; font-size: .64rem; font-weight: 800; color: var(--bronze); background: var(--bronze-soft); padding: 2px 7px; border-radius: 999px; }
.sp-row .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.sp-row .open { margin-left: auto; flex: none; font-size: .68rem; font-weight: 700; color: var(--bronze); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; }
.sp-row b { color: var(--heading); font-weight: 700; }
.sp-row .amt { margin-left: auto; flex: none; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--heading); }
.sp-b.notes { background: #fbf8f1; }
.sp-b.notes .stack { display: flex; align-items: flex-start; justify-content: center; gap: 22px; padding: 10px 0 4px; flex-wrap: wrap; }
.pile { position: relative; width: 128px; height: 112px; flex: none; }
.pile .pi { position: absolute; }
.pi.solo { margin-top: 6px; }
.pi { width: 96px; height: 96px; display: flex; flex-direction: column; justify-content: space-between; padding: 10px 10px 8px; transform: rotate(var(--r, 0deg)); font-family: var(--font-display); font-weight: 700; font-size: .68rem; line-height: 1.25; color: #2e2410; border-radius: 2px 2px 14px 2px / 2px 2px 6px 2px; background: linear-gradient(170deg, var(--pi) 0%, var(--pi) 72%, var(--pi-2) 100%); box-shadow: 0 1px 1px rgba(20,16,10,.08), 0 8px 12px -6px rgba(20,16,10,.28); position: relative; }
.pi::before { content: ""; position: absolute; top: -6px; left: 50%; width: 34px; height: 12px; transform: translateX(-50%) rotate(-2deg); background: rgba(255,255,255,.55); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.pi small { font: 600 .62rem var(--font-body); color: rgba(46,36,16,.6); }
.pi.y { --pi: #f6dc84; --pi-2: #ecc962; }
.pi.p { --pi: #f7c2d2; --pi-2: #eea9be; }
.pi.b { --pi: #c4d6ff; --pi-2: #aac3fb; }
.pi.g { --pi: #b6ecd0; --pi-2: #98dfba; }
.sp-b.fresh { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.sp-b.wide { grid-column: 1 / -1; }
.sp-app.building .sp-b.new { opacity: 0; transform: translateY(14px) scale(.98); }

/* Como Rutinas: margen blanco fuera y la banda negra con su propio relleno dentro. */
.space-sec.dark { position: relative; overflow: hidden; background: var(--obsidian); color: var(--on-obs-muted); padding-block: clamp(52px, 7vw, 96px); }
.space-sec.dark::before { content: ""; position: absolute; width: 760px; height: 760px; border-radius: 50%; right: -260px; top: -360px; background: radial-gradient(closest-side, rgba(217,169,79,.20), transparent 70%); pointer-events: none; }
.space-sec.dark canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.space-sec.dark .container { position: relative; z-index: 1; }
.space-sec.dark h2, .space-sec.dark .steps-list h3 { color: #fff; }
.space-sec.dark .gold { color: var(--gold); }
.space-sec.dark .kicker { color: var(--gold); } .space-sec.dark .kicker::before { background: var(--gold); }
.space-sec.dark .lead, .space-sec.dark .steps-list p { color: var(--on-obs-muted); }
.space-sec.dark .steps-list b { background: var(--obsidian-3); border: 1px solid var(--line-obs); }
.space-sec.dark .ro { background: var(--gold-soft); color: var(--gold); }
.space-sec.dark .sp-app { border-color: transparent; box-shadow: 0 50px 100px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .rv { transform: none; }
}

/* ─── Cabecera y pie compartidos con las páginas legales ───────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: color-mix(in srgb, var(--surface) 92%, transparent); border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(20,16,10,.08); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.site-header .container { display: flex; align-items: center; gap: 34px; height: 64px; }
.main-nav { display: flex; gap: 22px; font-weight: 600; font-size: .8rem; }
.main-nav a { color: var(--text); transition: color .2s; }
.main-nav a:hover { color: var(--bronze); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-actions .login { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--bronze); font-family: var(--font-display); font-weight: 700; font-size: .78rem; color: var(--bronze); transition: background .2s, color .2s; }
.header-actions .login svg { width: 15px; height: 15px; }
.header-actions .login:hover { background: var(--bronze); color: #fff7ea; }
.brand .logo { height: 28px; width: auto; display: block; }
@media (max-width: 860px) { .main-nav { display: none; } }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; background: var(--obsidian); color: var(--gold); border-radius: 8px; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-footer { padding: 24px 0 28px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: .74rem; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a:hover { color: var(--bronze); }

/* ─── Páginas legales ──────────────────────────────────────────────── */
.legal-main { max-width: 760px; margin-inline: auto; padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 32px) 80px; }
.legal-main h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 8px; }
.legal-main .legal-updated { color: var(--muted); font-size: .9rem; margin-bottom: 36px; }
.legal-main h2 { font-size: 1.3rem; margin: 40px 0 10px; }
.legal-main p, .legal-main li { color: var(--text); font-size: .98rem; margin-bottom: 10px; }
.legal-main ul { padding-inline-start: 1.2rem; }
.legal-main a { color: var(--bronze); text-decoration: underline; text-underline-offset: 2px; }
.legal-notice { background: var(--bronze-soft); border: 1px solid rgba(168,100,31,.3); border-radius: 14px; padding: 14px 18px; font-size: .92rem; margin-bottom: 32px; color: var(--heading); }
.legal-notice strong { color: var(--bronze); }

/* ─── Aviso de cookies (RF-PUB-06) ─────────────────────────────────── */
.cookie-notice { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--obsidian); color: var(--on-obs-muted); border-top: 1px solid var(--line-obs); padding-block: 14px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
.cookie-notice[hidden] { display: none; }
.cookie-notice .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cookie-notice p { margin: 0; font-size: .86rem; max-width: 64ch; }
.cookie-notice a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.cookie-notice-actions { display: flex; gap: 10px; flex: none; }
.btn-primary { background: linear-gradient(100deg, var(--gold), var(--bronze-2)); color: #1a1206; }
