/* ==========================================================================
   Portada de demostraciones y «Cómo trabajo» — estilos compartidos
   ========================================================================== */
:root {
  --tinta: #060914;
  --tinta-2: #0A0F22;
  --tinta-3: #0F1631;
  --papel: #EEF3FF;
  --papel-2: #0F1631;
  --blanco: #0E1531;
  --texto: #EEF3FF;
  --suave: #A3B1D1;
  --suave-osc: #A3B1D1;
  --linea: rgba(150, 180, 255, .14);
  --linea-osc: rgba(150, 180, 255, .16);
  --acento: #3D7BFF;
  --acento-osc: #7AA5FF;
  --sol: #22E4FF;
  --wa: #25D366;
  --wa-osc: #1FB457;
  --radio: 22px;
  --sombra: 0 1px 2px rgba(20, 17, 15, .06), 0 12px 32px -12px rgba(20, 17, 15, .22);
  --sombra-alta: 0 2px 4px rgba(20, 17, 15, .08), 0 30px 60px -20px rgba(20, 17, 15, .45);
  --f-tit: "Exo 2", system-ui, sans-serif;
  --f-txt: "Exo 2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mano: "Exo 2", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--tinta); color: var(--texto);
  font: 400 1rem/1.6 var(--f-txt); overflow-x: clip;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--sol); outline-offset: 3px; border-radius: 8px; }
.envoltura { width: min(1200px, 100% - 32px); margin-inline: auto; }
.centro { text-align: center; }

.saltar { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sol); color: var(--tinta); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; transition: top .2s; }
.saltar:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--tinta); --fg: var(--papel);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg); font-weight: 700; font-size: 1rem; letter-spacing: .005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .45); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .i { width: 1.2em; height: 1.2em; }
.btn--wa { --bg: var(--wa); --fg: #03230F; }
.btn--wa:hover { --bg: var(--wa-osc); }
.btn--luz { --bg: var(--papel); --fg: var(--tinta); }
.btn--tinta { --bg: var(--tinta); --fg: var(--papel); }
.btn--color { --bg: var(--c, var(--acento)); --fg: #fff; }
.btn--linea { --bg: transparent; --fg: var(--texto); box-shadow: inset 0 0 0 1.5px var(--linea); }
.btn--linea:hover { box-shadow: inset 0 0 0 1.5px var(--texto); }
.btn--chico { min-height: 42px; padding: 0 16px; font-size: .92rem; }
.btn--grande { min-height: 58px; padding: 0 30px; font-size: 1.08rem; }

/* ---------- Encabezado ---------- */
.cab { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .3s, box-shadow .3s, backdrop-filter .3s; }
.cab__in { width: min(1200px, 100% - 32px); margin-inline: auto; height: 72px; display: flex; align-items: center; gap: 16px; }
.cab.is-solida { background: rgba(20, 17, 15, .86); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--linea-osc); }
.marca { display: inline-flex; align-items: center; gap: 10px; color: var(--papel); text-decoration: none; margin-right: auto; }
.marca__sello { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(140deg, #1B3FA8, #0B1430 70%); color: var(--sol); border: 1px solid rgba(34, 228, 255, .45); box-shadow: 0 0 18px -4px rgba(34, 228, 255, .6); font: 800 1.35rem/1 var(--f-tit); position: relative; }
.marca__sello::after { content: ""; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--acento); }
.marca__txt { display: flex; flex-direction: column; line-height: 1.1; }
.marca__txt b { font: 700 1.1rem/1.1 var(--f-tit); }
.marca__txt small { font-size: .72rem; color: var(--suave-osc); letter-spacing: .04em; }
.cab__nav { display: flex; gap: 4px; }
.cab__nav a { color: var(--papel); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 10px 14px; border-radius: 999px; transition: background-color .2s; }
.cab__nav a:hover { background: rgba(150, 180, 255, .1); }
.cab__acc { display: flex; align-items: center; gap: 8px; }
.cab__menu { display: none; width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(150, 180, 255, .1); color: var(--papel); cursor: pointer; place-items: center; }
.cab__menu .i { width: 24px; height: 24px; }

@media (max-width: 899px) {
  .cab__menu { display: grid; }
  .cab__nav {
    position: absolute; top: 72px; left: 12px; right: 12px; flex-direction: column; gap: 2px;
    padding: 10px; border-radius: 18px; background: rgba(20, 17, 15, .97); box-shadow: var(--sombra-alta);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .cab__nav.is-abierto { opacity: 1; visibility: visible; transform: none; }
  .cab__nav a { padding: 14px 16px; font-size: 1.05rem; }
}
@media (max-width: 479px) {
  .cab .btn--chico span { display: none; }
  .cab .btn--chico { width: 44px; padding: 0; }
  .marca__txt small { display: none; }
}

/* ---------- Kicker y títulos ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sol); }
.kicker::before { content: ""; width: 26px; height: 1.5px; background: currentColor; }
.kicker__punto { display: none; }
.kicker--osc { color: var(--acento-osc); }
.sec-cab { max-width: 760px; margin-bottom: clamp(28px, 5vw, 48px); }
.sec-titulo { font: 600 clamp(2rem, 1.3rem + 3vw, 3.4rem)/1.04 var(--f-tit); letter-spacing: -.02em; margin-top: 12px; }
.sec-titulo em, .hero__titulo em, .cierre__titulo em, .demo__titulo em { font-style: italic; color: var(--acento); }
.sec-sub { margin-top: 14px; font-size: 1.08rem; color: var(--suave); max-width: 640px; }
.seccion { padding: clamp(64px, 10vw, 120px) 0; position: relative; }
.seccion--papel { background: var(--papel-2); }
.seccion--osc { background: var(--tinta); color: var(--papel); }
.seccion--osc .sec-sub { color: var(--suave-osc); }
.seccion--osc .sec-titulo em { color: var(--sol); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--tinta); color: var(--papel); overflow: hidden; padding: 120px 0 72px; min-height: min(100svh, 920px); display: flex; align-items: center; }
.hero__fondo { position: absolute; inset: 0; pointer-events: none; }
.hero__fondo::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(150, 180, 255, .07) 1px, transparent 1.2px); background-size: 22px 22px; mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); }
.hero__brillo { position: absolute; width: 60vmax; height: 60vmax; right: -18vmax; top: -22vmax; border-radius: 50%; background: radial-gradient(circle, rgba(61, 123, 255, .45), transparent 62%); filter: blur(10px); animation: respira 9s ease-in-out infinite; }
.hero__brillo--2 { left: -26vmax; right: auto; top: auto; bottom: -34vmax; background: radial-gradient(circle, rgba(139, 92, 246, .3), transparent 62%); animation-delay: -4s; }
@keyframes respira { 50% { transform: scale(1.12) translate(-2%, 3%); } }
.hero__in { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero__in { grid-template-columns: 1.05fr .95fr; } }
.hero__titulo { font: 600 clamp(2.6rem, 1.4rem + 5.6vw, 5.4rem)/.98 var(--f-tit); letter-spacing: -.03em; margin-top: 18px; }
.hero__titulo em { color: var(--sol); display: inline-block; }
.hero__sub { margin-top: 22px; font-size: clamp(1.04rem, .98rem + .3vw, 1.2rem); color: #C4CFEA; max-width: 560px; }
.hero__sub b { color: var(--papel); font-weight: 700; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__datos { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #A3B1D1; font-size: .93rem; }
.hero__datos li { display: inline-flex; align-items: center; gap: 8px; }
.hero__datos .i { color: var(--sol); }

/* Escenario 3D de teléfonos */
.escenario { position: relative; height: clamp(420px, 62vw, 600px); perspective: 1400px; }
.abanico { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -14deg)); transition: transform .6s var(--ease); animation: flota 7s ease-in-out infinite; }
@keyframes flota { 50% { translate: 0 -12px; } }
.tel { position: absolute; left: 50%; top: 50%; margin: 0; width: clamp(160px, 23vw, 250px); aspect-ratio: 360 / 779; border-radius: 30px; padding: 7px; background: linear-gradient(145deg, #2A3A6E, #050814); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .08); transform-style: preserve-3d; }
.tel img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 24px; }
.tel::after { content: ""; position: absolute; top: 13px; left: 50%; width: 30%; height: 14px; margin-left: -15%; border-radius: 99px; background: #050814; }
.tel--1 { transform: translate(-50%, -50%) translateX(-62%) translateZ(-120px) rotateY(18deg) rotateZ(-4deg); }
.tel--2 { transform: translate(-50%, -50%) translateZ(40px); z-index: 2; }
.tel--3 { transform: translate(-50%, -50%) translateX(62%) translateZ(-120px) rotateY(-18deg) rotateZ(4deg); }
.burbuja { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 16px; background: #EEF3FF; color: #050816; font-weight: 700; font-size: .88rem; box-shadow: var(--sombra-alta); transform: translateZ(120px); white-space: nowrap; }
.burbuja .i { color: var(--wa); width: 20px; height: 20px; }
.burbuja--1 { left: 4%; top: 18%; animation: burbuja 6s var(--ease) infinite; }
.burbuja--2 { right: 2%; bottom: 16%; animation: burbuja 6s var(--ease) -3s infinite; }
@keyframes burbuja { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.nota-mano { position: absolute; bottom: -6px; left: 50%; translate: -50% 0; font: 600 1.35rem/1 var(--f-mano); color: var(--sol); white-space: nowrap; transform: rotate(-3deg); }
@media (max-width: 599px) {
  .escenario { height: 440px; margin-inline: -16px; }
  .tel { width: 168px; border-radius: 24px; padding: 6px; }
  .tel img { border-radius: 19px; }
  .burbuja { font-size: .8rem; padding: 8px 11px; }
  .burbuja--1 { left: 10%; top: 6%; }
  .burbuja--2 { right: 8%; bottom: 12%; }
}

/* Entrada (intro) */
.js .entra { opacity: 0; translate: 0 26px; animation: entra 1s var(--ease) var(--d, 0s) forwards; }
@keyframes entra { to { opacity: 1; translate: 0 0; } }

/* ---------- Cinta de rubros ---------- */
.cinta-rubros { background: var(--acento); color: #fff; overflow: hidden; padding: 16px 0; transform: rotate(-1.2deg); margin: -14px -10px 0; position: relative; z-index: 2; box-shadow: 0 10px 30px -14px rgba(178, 62, 24, .7); }
.cinta-rubros__pista { display: flex; width: max-content; animation: corre 32s linear infinite; }
.cinta-rubros span { font: italic 600 1.3rem/1 var(--f-tit); padding: 0 22px; display: inline-flex; align-items: center; gap: 44px; white-space: nowrap; }
.cinta-rubros span::after { content: "✦"; font-style: normal; font-size: .8rem; color: var(--sol); margin-left: 22px; }
@keyframes corre { to { transform: translateX(-50%); } }

/* ---------- Tarjetas de demos ---------- */
.demos { display: grid; gap: clamp(20px, 3vw, 32px); grid-template-columns: 1fr; }
@media (min-width: 720px) { .demos { grid-template-columns: 1fr 1fr; } .demo--ancha, .demo--media { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .demos { grid-template-columns: repeat(3, 1fr); } .demo--media { grid-column: auto; } }

.demo {
  --c: var(--acento); --c-suave: var(--papel-2);
  position: relative; display: flex; flex-direction: column; background: var(--blanco); border-radius: var(--radio);
  box-shadow: var(--sombra); overflow: hidden; transform-style: preserve-3d;
  transform: perspective(1200px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform .5s var(--ease), box-shadow .4s var(--ease);
}
.demo:hover { box-shadow: var(--sombra-alta); }
.demo::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .35), transparent 45%); opacity: 0; transition: opacity .4s; }
.demo:hover::after { opacity: 1; }
.vitrina { position: relative; aspect-ratio: 16 / 11; background: var(--c-suave); overflow: hidden; transition: background-color .5s; }
.vitrina::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 90%, color-mix(in srgb, var(--c) 30%, transparent), transparent 55%); transition: background .5s; }
.vitrina--osc { background: #0B1130; }
.navegador { position: absolute; left: 7%; top: 9%; width: 84%; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 24px 50px -24px rgba(20, 17, 15, .55), 0 0 0 1px rgba(20, 17, 15, .06); transform: rotate(-1.5deg); transition: transform .6s var(--ease); }
.navegador__barra { height: 26px; display: flex; align-items: center; gap: 5px; padding: 0 10px; background: #141C3A; border-bottom: 1px solid rgba(20, 17, 15, .06); }
.navegador__barra i { width: 8px; height: 8px; border-radius: 50%; background: rgba(150, 180, 255, .35); }
.navegador__barra i:first-child { background: #EE6A5F; } .navegador__barra i:nth-child(2) { background: #F5BE4F; } .navegador__barra i:nth-child(3) { background: #62C554; }
.navegador__url { margin-left: 10px; flex: 1; max-width: 60%; height: 16px; border-radius: 99px; background: #0B1130; font-size: .62rem; line-height: 16px; padding: 0 9px; color: #7E8DB0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.navegador__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.telefono { position: absolute; right: 6%; bottom: -14%; width: 25%; aspect-ratio: 360 / 779; padding: 5px; border-radius: 20px; background: #0C1430; box-shadow: 0 26px 40px -18px rgba(20, 17, 15, .7); transform: rotate(4deg); transition: transform .6s var(--ease); }
.telefono img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 15px; }
.demo:hover .navegador { transform: rotate(0deg) translateY(-4px) scale(1.015); }
.demo:hover .telefono { transform: rotate(0deg) translateY(-16%); }
.cambia { animation: cambia .55s var(--ease); }
@keyframes cambia { from { opacity: 0; transform: scale(1.03); filter: blur(4px); } }

.demo__cuerpo { padding: clamp(20px, 3vw, 30px); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.demo__rubro { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c); transition: color .4s; }
.demo__titulo { font: 600 clamp(1.55rem, 1.2rem + 1.3vw, 2.1rem)/1.08 var(--f-tit); letter-spacing: -.015em; }
.demo__titulo em { color: var(--c); transition: color .4s; }
.demo__txt { color: var(--suave); }
.demo__lista { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: .95rem; }
.demo__lista li { display: flex; gap: 9px; align-items: flex-start; }
.demo__lista .i { color: var(--c); margin-top: 3px; stroke-width: 2.4; }
.demo__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
.demo__btns .btn { flex: 1 1 auto; }

.variantes { display: flex; flex-wrap: wrap; gap: 8px; }
.variante { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 0; background: rgba(120, 150, 255, .06); box-shadow: inset 0 0 0 1.5px var(--linea); font-weight: 600; font-size: .93rem; cursor: pointer; transition: background-color .25s, color .25s, box-shadow .25s, transform .2s; }
.variante:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1.5px var(--c); }
.variante.is-activa { background: var(--c); color: #fff; box-shadow: none; }

@media (min-width: 720px) {
  .demo--ancha, .demo--media { flex-direction: row; align-items: stretch; }
  .demo--ancha .vitrina, .demo--media .vitrina { flex: 1.25; aspect-ratio: auto; min-height: 420px; }
  .demo--ancha .demo__cuerpo, .demo--media .demo__cuerpo { flex: 1; justify-content: center; }
  .demo--ancha .navegador, .demo--media .navegador { top: 12%; }
  .demo--ancha .telefono, .demo--media .telefono { width: 22%; bottom: -6%; }
}
@media (min-width: 1100px) {
  .demo--media { flex-direction: column; }
  .demo--media .vitrina { flex: none; aspect-ratio: 16 / 11; min-height: 0; }
  .demo--media .navegador { top: 9%; }
  .demo--media .telefono { width: 25%; bottom: -14%; }
  .demo--ancha .vitrina { min-height: 480px; }
}

/* ---------- Beneficios ---------- */
.beneficios { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.beneficio { background: var(--blanco); border-radius: var(--radio); padding: 26px; box-shadow: var(--sombra); }
.beneficio__ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--tinta); color: var(--sol); margin-bottom: 18px; transition: transform .5s var(--ease); }
.beneficio:hover .beneficio__ico { transform: rotate(-8deg) scale(1.06); }
.beneficio__ico .i { width: 26px; height: 26px; }
.beneficio h3 { font: 600 1.3rem/1.15 var(--f-tit); margin-bottom: 8px; }
.beneficio p { color: var(--suave); font-size: .97rem; }

/* ---------- Trabajos reales ---------- */
.reales { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.real {
  display: flex; flex-direction: column; text-decoration: none; color: var(--papel); background: var(--tinta-2);
  border-radius: var(--radio); overflow: hidden; box-shadow: inset 0 0 0 1px var(--linea-osc);
  transform: perspective(1200px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .5s var(--ease), box-shadow .3s;
}
.real:hover { box-shadow: inset 0 0 0 1px rgba(34, 228, 255, .55), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.real__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.real__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.real:hover .real__img img { transform: scale(1.05); }
.real__cuerpo { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; }
.real__rubro { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sol); }
.real__nombre { font: 600 1.6rem/1.1 var(--f-tit); }
.real__txt { color: var(--suave-osc); font-size: .96rem; }
.real__url { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 700; font-size: .9rem; color: var(--papel); text-decoration: underline; text-decoration-color: rgba(244, 183, 64, .6); text-underline-offset: 4px; overflow-wrap: anywhere; }

/* ---------- Pasos (resumen) ---------- */
.pasitos { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: p; }
.pasito { position: relative; padding: 26px 24px; border-radius: var(--radio); background: var(--blanco); box-shadow: var(--sombra); }
.pasito__n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--acento); color: #fff; font: 700 1.3rem/1 var(--f-tit); margin-bottom: 16px; }
.pasito h3 { font: 600 1.25rem/1.15 var(--f-tit); margin-bottom: 6px; }
.pasito p { color: var(--suave); font-size: .96rem; }

/* ---------- Cierre ---------- */
.cierre { background: var(--tinta); color: var(--papel); padding: clamp(70px, 10vw, 120px) 0; text-align: center; position: relative; overflow: hidden; }
.cierre::before { content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; translate: -50% -50%; background: radial-gradient(circle, rgba(15, 122, 67, .35), transparent 60%); pointer-events: none; }
.cierre__in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 680px; }
.cierre__chispa { width: 46px; height: 46px; color: var(--sol); animation: gira 12s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.cierre__titulo { font: 600 clamp(2.2rem, 1.4rem + 4vw, 4rem)/1 var(--f-tit); letter-spacing: -.02em; }
.cierre__titulo em { color: var(--sol); }
.cierre p { color: #C4CFEA; font-size: 1.1rem; }

/* ---------- Pie ---------- */
.pie { background: #04060E; color: var(--suave-osc); padding: 40px 0 110px; font-size: .92rem; }
.pie__in { display: grid; gap: 16px; }
.pie__marca { display: flex; align-items: center; gap: 12px; color: var(--papel); }
.pie__nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.pie__nav a { color: var(--papel); text-underline-offset: 4px; padding: 6px 0; }
@media (min-width: 900px) { .pie__in { grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; } .pie { padding-bottom: 40px; } }

/* ---------- Botón flotante y aviso ---------- */
.flotante {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px 10px 12px; min-height: 54px; border-radius: 999px; border: 0; background: var(--wa); color: #03230F; cursor: pointer;
  box-shadow: 0 16px 34px -12px rgba(11, 94, 51, .7); font-weight: 700; translate: -50% 140%; opacity: 0;
  transition: translate .5s var(--ease), opacity .4s, background-color .2s;
}
.flotante.is-visible { translate: -50% 0; opacity: 1; }
.flotante:hover { background: var(--wa-osc); }
.flotante .i { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.flotante span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; white-space: nowrap; }
.flotante small { font-weight: 500; font-size: .74rem; opacity: .85; }
@media (min-width: 900px) { .flotante { left: auto; right: 24px; translate: 0 140%; } .flotante.is-visible { translate: 0 0; } }
.aviso { position: fixed; left: 50%; top: 88px; z-index: 60; translate: -50% -20px; opacity: 0; pointer-events: none; max-width: min(92vw, 460px); padding: 14px 18px; border-radius: 14px; background: #EEF3FF; color: #050816; box-shadow: var(--sombra-alta); font-weight: 600; text-align: center; transition: opacity .3s, translate .3s var(--ease); }
.aviso.is-visible { opacity: 1; translate: -50% 0; }

/* ---------- Revelado al hacer scroll ---------- */
.js .revela { opacity: 0; translate: 0 34px; transition: opacity .9s var(--ease) var(--rd, 0ms), translate .9s var(--ease) var(--rd, 0ms), transform .5s var(--ease), box-shadow .4s var(--ease); }
.js .revela.visto { opacity: 1; translate: 0 0; }

/* ==========================================================================
   Página «Cómo trabajo»
   ========================================================================== */
.hero--corto { min-height: auto; padding: 140px 0 90px; }
.hero--corto .hero__in { grid-template-columns: 1fr; max-width: 860px; gap: 0; }
.migas { display: flex; width: fit-content; align-items: center; gap: 8px; color: var(--suave-osc); text-decoration: none; font-weight: 600; font-size: .95rem; margin-bottom: 26px; }
.migas:hover { color: var(--papel); }
.migas .i { transform: scaleX(-1); }
.indice { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding: 0; list-style: none; }
.indice a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; background: rgba(150, 180, 255, .08); color: var(--papel); text-decoration: none; font-weight: 600; font-size: .92rem; box-shadow: inset 0 0 0 1px var(--linea-osc); transition: background-color .2s; }
.indice a:hover { background: rgba(150, 180, 255, .16); }
.indice b { color: var(--sol); font-family: var(--f-tit); }

.camino { position: relative; }
.camino__lista { display: grid; gap: clamp(22px, 4vw, 40px); padding-left: 0; list-style: none; margin: 0; }
.camino__linea { position: absolute; left: 27px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--linea); overflow: hidden; }
.camino__linea::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--acento), var(--sol)); transform-origin: top; transform: scaleY(var(--avance, 0)); }
.paso { position: relative; padding-left: 78px; }
.paso__n { position: absolute; left: 0; top: 0; width: 57px; height: 57px; border-radius: 50%; display: grid; place-items: center; background: var(--tinta); color: var(--sol); font: 700 1.5rem/1 var(--f-tit); box-shadow: 0 0 0 6px var(--tinta), 0 0 22px -4px rgba(34, 228, 255, .6); transition: background-color .4s, color .4s, transform .5s var(--ease); }
.paso.visto .paso__n { background: var(--acento); color: #fff; }
.paso__caja { background: var(--blanco); border-radius: var(--radio); padding: clamp(22px, 3.4vw, 34px); box-shadow: var(--sombra); }
.paso__ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--papel-2); color: var(--acento-osc); margin-bottom: 14px; }
.paso__ico .i { width: 24px; height: 24px; }
.paso h2 { font: 600 clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem)/1.1 var(--f-tit); letter-spacing: -.015em; margin-bottom: 12px; }
.paso p + p, .paso p + ul, .paso ul + p, .paso .opciones + p { margin-top: 12px; }
.paso p { color: var(--suave); }
.paso ul { margin: 12px 0 0; padding-left: 0; list-style: none; display: grid; gap: 9px; }
.paso li { position: relative; padding-left: 28px; color: var(--suave); }
.paso li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--acento); box-shadow: 0 0 0 4px rgba(61, 123, 255, .2); }
.pc { display: inline-block; padding: 2px 10px; border-radius: 999px; background: rgba(139, 92, 246, .16); color: #C9B6FF; box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .35); font-size: .78rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; vertical-align: .1em; }
.dato { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 16px; padding: 12px 16px; border-radius: 14px; background: rgba(120, 150, 255, .07); font-size: .95rem; }
.dato b { font-weight: 700; }
.opciones { display: grid; gap: 14px; margin-top: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.opcion { border-radius: 18px; padding: 20px; background: rgba(120, 150, 255, .05); box-shadow: inset 0 0 0 1px var(--linea); }
.opcion h3 { font: 600 1.2rem/1.15 var(--f-tit); margin-bottom: 4px; }
.opcion__url { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .86rem; color: var(--acento-osc); display: block; margin-bottom: 10px; overflow-wrap: anywhere; }
.opcion ul { margin-top: 8px; }
.opcion li { font-size: .95rem; }
.opcion .dato { background: var(--blanco); }
.canales { display: grid; gap: 12px; margin-top: 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.canal { padding: 18px; border-radius: 18px; background: rgba(120, 150, 255, .06); box-shadow: inset 0 0 0 1px var(--linea); }
.canal .i { width: 28px; height: 28px; color: var(--acento-osc); margin-bottom: 10px; }
.canal h3 { font: 600 1.1rem/1.15 var(--f-tit); margin-bottom: 4px; }
.canal p { font-size: .94rem; }

/* Mensaje de ejemplo (chat) */
.chat { margin-top: 18px; max-width: 420px; border-radius: 20px; overflow: hidden; background: #0B1130; box-shadow: inset 0 0 0 1px var(--linea); }
.chat__cab { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #0B5E33; color: #fff; font-weight: 700; font-size: .92rem; }
.chat__av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); font-size: .78rem; }
.chat__cuerpo { padding: 14px; display: grid; gap: 8px; }
.chat__msj { justify-self: end; max-width: 88%; padding: 9px 12px 18px; border-radius: 12px 12px 2px 12px; background: #0F5C3A; color: #EAFBF0; font-size: .92rem; white-space: pre-line; position: relative; }
.chat__msj small { position: absolute; right: 10px; bottom: 3px; font-size: .68rem; color: #A6E3C2; }
.chat__msj--in { justify-self: start; background: #fff; border-radius: 12px 12px 12px 2px; color: var(--texto); }

/* Preguntas frecuentes */
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq details { background: var(--blanco); border-radius: 18px; box-shadow: var(--sombra); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font: 600 1.12rem/1.3 var(--f-tit); min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--papel-2); font: 500 1.3rem/1 var(--f-txt); transition: transform .35s var(--ease), background-color .3s, color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--acento); color: #fff; }
.faq .faq__r { padding: 0 22px 22px; color: var(--suave); }
.faq .faq__r p + p { margin-top: 10px; }
.faq details[open] .faq__r { animation: abre .45s var(--ease); }
@keyframes abre { from { opacity: 0; translate: 0 -8px; } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .entra, .js .revela { opacity: 1; translate: none; }
  .cinta-rubros__pista { animation: none; }
  .abanico { animation: none; }
}

/* «Cómo trabajo» en teléfono: más espacio para el texto */
@media (max-width: 599px) {
  .paso { padding-left: 54px; }
  .paso__n { width: 42px; height: 42px; font-size: 1.15rem; box-shadow: 0 0 0 5px var(--tinta); }
  .camino__linea { left: 19.5px; }
  .paso__caja { padding: 20px 18px; }
}

/* Marca Jhoz: titulares en Exo 2 Black Italic, como la portada */
h1, h2 { font-family: var(--f-tit); font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: 0; }
