/* Portafolio David Nin · piel del sitio (ronda 5).
   Va DESPUÉS de tokens.css (sistema visual v3, sin tocar).
   La piel sale de sus dos páginas de referencia:
   · propuesta_cris_ione.html → fondos, ondas, recorrido, tarjetas-etapa, puentes, extras, preguntas, cierre.
   · kapta-landing.html       → portada con foto, pastillas con orbe, tarjetas de problema, «tiene sentido si», botón con resplandor.
   Móvil primero: la base es 360–390 px; min-width para crecer. */

:root {
  --ink: #0b0c0e;
  --teja: #963415;          /* palabra clave sobre crema */
  --teja-2: #a63d15;        /* acento de titular sobre crema */
  --melo: #ffbe98;          /* palabra clave sobre oscuro */
  --melo-2: #ffa474;        /* antetítulo sobre oscuro */
  --wave-h: clamp(2.75rem, 5.4vw, 4rem);
  --wave-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L1440,0 L1440,26 C1140,64 1020,10 720,28 C420,46 300,64 0,30 Z'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { padding-top: 60px; background: var(--ink); font: 500 1rem/1.62 Inter, system-ui, sans-serif; }
h1, h2, h3, h4 { font-family: Poppins, Inter, system-ui, sans-serif; font-weight: 800; letter-spacing: -0.045em; word-spacing: .09em; line-height: 1.1; text-wrap: balance; color: inherit; }
p { text-wrap: pretty; }
blockquote, figure { margin: 0; }
:is(a, button, summary):focus-visible { outline: 3px solid var(--accent-light); outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

/* ── Estructura ── */
.wrap { width: min(100% - 2 * clamp(1rem, 6vw, 5rem), 72rem); margin-inline: auto; }
.wrap--t { max-width: 46rem; }
.sec { position: relative; padding-block: clamp(3.75rem, 7vw, 7rem); background: var(--bg-primary); color: var(--text-primary); }
.sec--alt { background: var(--bg-secondary); }
.sec--osc { color: #fff; background: radial-gradient(ellipse at 88% 40%, #301c18 0%, transparent 58%), var(--ink); }
.sec--cierre { color: #fff; text-align: center; background: radial-gradient(ellipse at 50% 4%, #63331d, transparent 70%), #111113; }
.centro { text-align: center; }

/* Onda arriba: pinta el color de la sección anterior */
.onda { padding-top: calc(var(--wave-h) + clamp(2.6rem, 5vw, 4.5rem)); }
.onda::before { content: ""; position: absolute; inset: -1px 0 auto; height: var(--wave-h); pointer-events: none; background: var(--onda, var(--ink)); -webkit-mask: var(--wave-shape) center / 100% 100% no-repeat; mask: var(--wave-shape) center / 100% 100% no-repeat; }
.onda--ink { --onda: var(--ink); }
.onda--crema { --onda: var(--bg-primary); }
.onda--alt { --onda: var(--bg-secondary); }
.onda--cierre { --onda: #111113; }

/* ── Texto ── */
.tit { font-size: clamp(2.05rem, 5.6vw, 4.2rem); font-weight: 900; line-height: 1.04; text-align: center; }
.tit + * { margin-top: 1.1rem; }
.ac { color: var(--teja-2); }
:is(.sec--osc, .sec--cierre, .hero, .step--dark, .plan, .fit, .bonus, .poster, .popup) .ac { color: var(--accent-light); }
.k { color: var(--teja); font-weight: 800; }
:is(.sec--osc, .sec--cierre, .hero, .step--dark, .plan, .fit, .bonus, .visual--osc, .poster, .popup) .k { color: var(--melo); }
:is(.step:not(.step--dark), .fit p, .mr, .faq) .k { color: var(--teja); }
.fit p .k { color: var(--accent); }
.step:not(.step--dark) .visual .k { color: var(--teja); }
.lead { font-size: 1.06rem; line-height: 1.6; color: #4c3931; }
:is(.sec--osc, .sec--cierre) .lead { color: #eee1d9; }
.lead + .lead { margin-top: .9rem; }
.kicker { display: block; margin-bottom: .65rem; color: #a63310; font-size: .82rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; line-height: 1.35; }
:is(.sec--osc, .sec--cierre, .hero, .plan, .step--dark) .kicker { color: var(--melo-2); }

/* ── Botones ── */
.btn { text-align: center; }
.btn-primary { border: 1px solid rgba(255, 255, 255, .28); background: linear-gradient(180deg, #ff6d28, var(--accent)); color: #fff; box-shadow: 0 0 0 1px rgba(240, 90, 24, .34), 0 0 26px rgba(240, 90, 24, .34), 0 14px 34px rgba(0, 0, 0, .28); }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(240, 90, 24, .5), 0 0 40px rgba(240, 90, 24, .5), 0 16px 38px rgba(0, 0, 0, .3); }
.btn-suave { min-height: 3rem; padding: .55rem 1.4rem; border: 1px solid #ffaf84; background: #ffc09b; color: #331306; font-weight: 900; font-size: .95rem; }
.btn-suave:hover { background: #ffdac5; transform: translateY(-1px); }
.btn-ancho { display: flex; width: min(100%, 26rem); margin-inline: auto; min-height: 60px; font-size: 1.02rem; }
.flecha::after { content: "→"; display: inline-block; margin-left: .35em; transition: transform .2s var(--ease); }
a:hover .flecha::after { transform: translateX(3px); }

/* ── Barra fija ── */
.bar { position: fixed; inset: 0 0 auto 0; z-index: var(--z-fixed); display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; padding: 0 12px 0 16px; background: rgba(11, 12, 14, .84); -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%); border-bottom: 1px solid rgba(255, 255, 255, .09); color: #fff; }
.bar__marca { font-family: Poppins, sans-serif; font-weight: 800; font-size: 15px; letter-spacing: -0.04em; word-spacing: .09em; white-space: nowrap; }
.bar__cta { min-height: 38px; padding: 8px 15px; font-size: 13px; white-space: nowrap; box-shadow: 0 0 18px rgba(240, 90, 24, .34); }
.bar__enl { min-height: 38px; padding: 8px 15px; border-radius: 999px; border: 1px solid #ffffff38; background: #ffffff0a; color: #fff3e7; font-size: 13px; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; }

/* ── Pastillas ── */
.pill-k { display: inline-flex; align-items: center; justify-content: center; padding: .5rem 1rem; border: 1px solid #ffffff38; border-radius: 999px; background: #ffffff0a; color: #fff3e7; font-size: .72rem; font-weight: 800; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; text-wrap: balance; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pill-orbe { display: inline-flex; align-items: center; gap: .8rem; padding: .45rem 1.3rem .45rem .45rem; border-radius: 999px; background: #3a3633; border: 1px solid #ffffff2e; color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 10px 26px rgba(0, 0, 0, .22); }
.orbe { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: linear-gradient(135deg, #ff9a5c, #f05a18, #c74610); color: #fff; font: 900 1.05rem Poppins, sans-serif; box-shadow: 0 8px 22px rgba(240, 90, 24, .34); }
.orbe svg { width: 1.15rem; height: 1.15rem; }
/* Puente: pastilla unida por una línea a lo de arriba y a lo de abajo */
.puente { position: relative; width: fit-content; max-width: 94%; margin: 1.65rem auto; padding: .55rem 1.2rem; border: 1px solid #bd542c; border-radius: 999px; background: #592615; box-shadow: 0 0 1.4rem #f05a182e; color: #ffcab0; font: 700 .92rem/1.3 Inter, sans-serif; text-align: center; text-wrap: balance; }
.puente::before, .puente::after { content: ""; position: absolute; left: 50%; width: 1px; height: 1.65rem; background: #f05a1859; }
.puente::before { bottom: 100%; }
.puente::after { top: 100%; }
.hilo { width: 1px; height: 2.4rem; margin: 0 auto; background: #f05a1859; }
.sec:not(.sec--osc) .hilo { background: #c98a6a; }

/* ── Portada ── */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; min-height: calc(100svh - 60px); padding: 26px 0 40px; text-align: center; color: #fff; background: radial-gradient(ellipse at 82% 23%, #40241a 0%, #151212 44%, #090a0c 78%); }
.hero__foto { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.hero__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; filter: grayscale(.25) saturate(.82) contrast(1.04) brightness(.54); }
.hero__foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 12, 14, .7) 0%, rgba(11, 12, 14, .38) 26%, rgba(11, 12, 14, .2) 44%, rgba(11, 12, 14, .82) 66%, var(--ink) 90%); }
.hero .wrap { display: flex; flex-direction: column; align-items: center; }
.hero h1 { margin-top: 1.1rem; font-size: clamp(1.86rem, 7.9vw, 3.75rem); font-weight: 900; line-height: 1.05; text-shadow: 0 2px 22px rgba(0, 0, 0, .55); }
.hero__sub { margin-top: 1rem; max-width: 34rem; font-size: 1.06rem; font-weight: 600; line-height: 1.45; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .7); }
.hero__aire { flex: 1; min-height: clamp(9.5rem, 46vw, 15rem); }
.hero-card { position: relative; width: min(35rem, 100%); padding: 1.55rem 1.4rem 1.3rem; border: 1px solid rgba(255, 255, 255, .1); border-radius: 26px; background: rgba(16, 14, 12, .88); -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px rgba(240, 90, 24, .18); font-size: 1.12rem; font-weight: 600; line-height: 1.42; }
.hero-card .orbe { position: absolute; top: -15px; left: 50%; margin-left: -15px; width: 30px; height: 30px; }
.hero-card .orbe svg { width: 14px; height: 14px; }
.hero-card strong { color: var(--accent-light); font-weight: 800; }
.hero .btn-ancho { margin-top: 1.25rem; }
/* A/B de portada: por defecto B; ?v=a enseña la A */
[data-portada="a"] { display: none; }
html[data-v="a"] [data-portada="a"] { display: block; }
html[data-v="a"] [data-portada="b"] { display: none; }

/* ── Problemas (selector + tarjetas) ── */
.probl { padding-top: clamp(2.5rem, 5vw, 4rem); background: radial-gradient(ellipse at 50% 0%, #2b1710 0%, transparent 55%), var(--ink); }
.selector { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; width: min(30rem, 100%); margin: 1.6rem auto 0; }
.selector button { display: flex; align-items: center; gap: .7rem; min-height: 62px; padding: .4rem 1rem .4rem .45rem; border-radius: 999px; cursor: pointer; border: 1px solid #ffffff2e; background: #26221f; color: #fff; font: 800 1rem Inter, sans-serif; letter-spacing: -0.01em; text-align: left; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.selector .orbe { background: #3a3633; box-shadow: none; }
.selector button[aria-selected="true"], .selector button[aria-pressed="true"] { border-color: #f0905f; background: linear-gradient(145deg, #4a2617, #26221f 70%); box-shadow: 0 0 1.4rem #f05a1840; }
.selector button[aria-selected="true"] .orbe, .selector button[aria-pressed="true"] .orbe { background: linear-gradient(135deg, #ff9a5c, #f05a18, #c74610); box-shadow: 0 8px 22px rgba(240, 90, 24, .34); }
html.js .panel[hidden] { display: none !important; }
.panel + .panel { margin-top: 2.5rem; }
html.js .panel + .panel { margin-top: 0; }
.panel .puente { margin-top: 2.2rem; }
.suena { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: .7rem; max-width: 40rem; }
.suena li { text-align: left; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); align-items: start; gap: .2rem .85rem; padding: .95rem 1rem; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; background: rgba(255, 255, 255, .07); color: #fff; font: 800 1.04rem/1.28 Poppins, Inter, sans-serif; letter-spacing: -0.025em; }
.suena .ico { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 10px; background: rgba(240, 90, 24, .14); color: var(--accent-light); }
.suena .ico svg { width: 1.2rem; height: 1.2rem; }
.suena li.joya { padding: 1.2rem 1.1rem; border-color: #f0905f; background: radial-gradient(ellipse at 95% 0%, #4b291c 0%, transparent 60%), linear-gradient(148deg, #1c1614, #0f1012); box-shadow: 0 0 2rem #f05a1830, 0 18px 50px #0006; font-size: 1.16rem; }
.suena li.joya .ico { background: linear-gradient(135deg, #ff9a5c, #f05a18, #c74610); color: #fff; }
.suena li.joya small { grid-column: 2; display: block; margin-top: .45rem; font: 500 .95rem/1.5 Inter, sans-serif; letter-spacing: 0; color: #eee1d9; }
.asi-fila { margin-top: 1.3rem; text-align: center; color: #eee1d9; font-weight: 600; font-size: .96rem; line-height: 2; }
.asi { color: var(--melo); font-weight: 800; text-decoration: underline; text-decoration-color: #f0905f80; text-underline-offset: .22em; }

/* ── Recorrido numerado ── */
.recorrido { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem .5rem; list-style: none; max-width: 52rem; margin: clamp(1.8rem, 4vw, 3rem) auto 0; padding: 0; }
.recorrido li { flex: 0 0 calc((100% - 1rem) / 3); min-width: 0; display: grid; gap: .45rem; justify-items: center; text-align: center; font-size: .82rem; font-weight: 800; line-height: 1.3; text-wrap: balance; }
.nodo { display: inline-grid; place-items: center; width: 2.48rem; height: 2.48rem; border: 1px solid #bd4c1d; border-radius: 50%; background: #fff4e8; color: #9a2f0e; font-size: .9rem; font-weight: 900; box-shadow: 0 0 0 .28rem var(--bg-primary); }
.nota-tilt { width: fit-content; max-width: 100%; margin: 2rem auto 0; padding: .9rem 1.2rem; border: 1px solid var(--accent); border-radius: 16px; background: #fffaf2; color: var(--text-primary); font: 800 1.12rem/1.3 Poppins, sans-serif; letter-spacing: -0.035em; word-spacing: .09em; text-align: center; box-shadow: 0 12px 34px rgba(240, 90, 24, .14); transform: rotate(-1.4deg); }
.nombre { font-size: clamp(2.1rem, 8vw, 4rem); font-weight: 900; line-height: 1.02; text-align: center; }
.nombre em { font-style: normal; color: var(--accent-light); }

/* ── Tarjeta-etapa (crema u oscura) ── */
.step { position: relative; overflow: hidden; padding: clamp(1.15rem, 3vw, 2.3rem); border: 1px solid #d2ab97; border-radius: var(--r-panel); color: var(--text-primary); background: linear-gradient(122deg, #fffcf7, #f3e3d5); box-shadow: var(--shadow-form); text-align: left; }
.step--dark { color: #fff; border-color: #925234; background: radial-gradient(ellipse at 95% 0%, #4b291c 0%, transparent 53%), linear-gradient(148deg, #161416, #0f1012); box-shadow: var(--shadow-dark-card); }
.step__cab { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .35rem .65rem; padding-bottom: .75rem; border-bottom: 1px solid #a8745a50; }
.step--dark .step__cab { border-color: #ffd0ad33; }
.step__cab h3 { font-size: clamp(1.45rem, 3vw, 2.2rem); }
.step__n { align-self: start; padding-top: .42em; color: #9b3714; font: 900 .9rem/1.25 Poppins, sans-serif; letter-spacing: .09em; }
.step__tag { grid-column: 2; width: max-content; padding: .26rem .58rem; border: 1px solid #a64b293b; border-radius: 999px; color: #8e2c0e; font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.step--dark :is(.step__n, .step__tag) { color: #ffb488; border-color: #ffb48850; }
.step__ico { grid-area: 1 / 3 / span 2; width: clamp(3.4rem, 15vw, 5rem); aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 .5rem .9rem #f05a1838); }
.step__lead { margin-top: .85rem; font-size: 1.03rem; line-height: 1.55; color: #4c3931; }
.step--dark .step__lead { color: #eee1d9; }
.step__fantasma { position: absolute; z-index: 0; right: -.02em; bottom: -.24em; font: 900 clamp(6rem, 30vw, 11rem)/1 Poppins, sans-serif; letter-spacing: -0.06em; color: #7a2d0f; opacity: .05; pointer-events: none; }
.step--dark .step__fantasma { color: #fff; opacity: .05; }
.step > :not(.step__fantasma) { position: relative; z-index: 1; }
.filas > p { padding: .7rem 0; border-top: 1px solid #ab725858; line-height: 1.5; }
.filas > p:first-child { border-top: 0; }
.step--dark .filas > p, .plan .filas > p { border-top-color: #fff3; }
.visual { margin-top: 1rem; padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid #ab725855; border-radius: var(--r-card); background: #fff7ec; color: #2b1e1b; box-shadow: var(--shadow-card); }
.step--dark .visual, .visual--osc { background: #242020; color: #fff4eb; border-color: #f0905f5e; }
.visual--mini { position: relative; margin-top: 4rem; padding-top: 1.6rem; }
.mini { position: absolute; top: -4.4rem; right: .55rem; width: 6.2rem; height: auto; pointer-events: none; filter: drop-shadow(0 .5rem .8rem #0006); }

/* ── Mapa de roturas navegable (details nativo, sin JS) ── */
.mapa { max-width: 44rem; margin: 2rem auto 0; }
.mapa__cab { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-bottom: .8rem; margin-bottom: .9rem; border-bottom: 1px solid #a8745a50; }
.mapa__cab b { display: block; font: 800 1.2rem/1.15 Poppins, sans-serif; letter-spacing: -0.035em; word-spacing: .09em; }
.mapa__cab span { display: block; margin-top: .3rem; font-size: .86rem; font-weight: 600; color: #6b5146; line-height: 1.35; }
.mr { border-radius: var(--r-sm); border: 1px solid #ab72583b; background: #fffdf9; overflow: hidden; }
.mr + .mr { margin-top: .45rem; }
.mr summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .65rem; padding: .8rem .75rem; font-weight: 750; font-size: .96rem; line-height: 1.25; }
.mr summary::-webkit-details-marker { display: none; }
.mr summary::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--mr-c); box-shadow: 0 0 0 4px var(--mr-bg); }
.mr summary span { flex: 1; }
.mr summary i { flex: none; font-style: normal; padding: .25rem .58rem; border-radius: 999px; background: var(--mr-bg); color: var(--mr-c); font-size: .72rem; font-weight: 800; letter-spacing: .02em; }
.mr summary::after { content: ""; flex: none; width: .8rem; height: .8rem; background: linear-gradient(#a64320, #a64320) center / 100% 2px no-repeat, linear-gradient(#a64320, #a64320) center / 2px 100% no-repeat; }
.mr[open] summary::after { background-size: 100% 2px, 0 0; }
.mr p { padding: 0 .75rem .9rem 2rem; font-size: .96rem; color: #4c3931; line-height: 1.45; }
.mr p b { color: var(--text-primary); }
.mr--ok  { --mr-c: #2e7d32; --mr-bg: #d9ead3; }
.mr--vig { --mr-c: #9a6700; --mr-bg: #fff2cc; }
.mr--rot { --mr-c: #b42318; --mr-bg: #f4cccc; border-color: #e3a79f; }

/* ── Casos: tarjetas oscuras sobre crema (como «Dos formas de trabajar») ── */
.casos { display: grid; gap: 1rem; margin-top: 2rem; }
.plan { position: relative; overflow: hidden; display: grid; align-content: start; gap: .8rem; padding: clamp(1.25rem, 3.5vw, 2.1rem); border: 1px solid #b7866a87; border-radius: var(--r-card); color: #fff4eb; background: #1f1c1e; text-align: left; transition: transform .22s var(--ease), border-color .22s ease, box-shadow .22s ease; }
.plan:first-child { border-color: #fa854e; background: linear-gradient(145deg, #39261f, #201b1c 65%); box-shadow: 0 .8rem 2.5rem #f05a181a; }
a.plan:hover { transform: translateY(-3px); border-color: #fa854e; box-shadow: 0 1rem 2.8rem #f05a1830; }
.plan .kicker { margin: 0; }
.plan__antes { font: 800 clamp(1.3rem, 3vw, 1.75rem)/1.14 Poppins, sans-serif; letter-spacing: -0.04em; word-spacing: .09em; }
.plan__rot { padding: .7rem .9rem; border: 1px solid #fff2; border-radius: var(--r-sm); background: #fff1; line-height: 1.5; font-size: .98rem; }
.plan__res { color: #ffac7d; font: 900 clamp(1.4rem, 3.4vw, 1.9rem)/1.1 Poppins, sans-serif; letter-spacing: -0.045em; word-spacing: .09em; }
.plan .btn-suave { justify-self: start; margin-top: .2rem; }

/* ── Extras («Y si hace falta») ── */
.bonos { display: grid; gap: 1rem; max-width: 46rem; margin: 0 auto; padding: 0; list-style: none; }
.bonus { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: clamp(1.1rem, 3.5vw, 1.8rem); border: 1px solid #ba6d46; border-radius: var(--r-card); background: linear-gradient(150deg, #31221e, #1a1718 65%); box-shadow: var(--shadow-dark-card); color: #f0e0d7; text-align: left; }
.bonus q { display: block; quotes: "«" "»"; color: #fff4eb; font: 800 1.14rem/1.2 Poppins, sans-serif; letter-spacing: -0.035em; word-spacing: .09em; }
.bonus span { display: block; margin-top: .5rem; line-height: 1.5; }
.bonus span::before { content: "→ "; color: var(--accent-light); font-weight: 800; }
.bonus img { width: clamp(4rem, 17vw, 5.6rem); aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 .55rem 1rem #f05a1840); }

/* ── Vídeos verticales: se cargan al tocar ── */
.vids { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.vids--2 { grid-template-columns: repeat(2, 1fr); max-width: 24rem; margin-inline: auto; }
.vids--1 { grid-template-columns: 1fr; max-width: 12.5rem; margin-inline: auto; }
.vid { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--r-md); overflow: hidden; background: #111; border: 1px solid #a75732; box-shadow: 0 0 1.4rem #f05a1826, 0 12px 30px #0006; }
.vid img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.86) contrast(1.04) brightness(.86); }
.vid::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2.9rem; height: 2.9rem; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid #ffbb94; background: #f05a18 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%232c1309'/%3E%3C/svg%3E") center / 1.5rem no-repeat; box-shadow: 0 0 0 .36rem #f05a1830, 0 0 2rem #f05a1866; }
.vid span { position: absolute; inset: auto 0 0 0; padding: 1.4rem .5rem .5rem; background: linear-gradient(transparent, #000d); color: #fff; font-size: .72rem; font-weight: 700; line-height: 1.2; text-align: left; }
dialog.cine { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100dvh; }
dialog.cine::backdrop { background: rgba(9, 10, 12, .92); }
.cine__in { width: 100%; height: 100%; display: grid; place-items: center; padding: 56px 14px 18px; }
.cine video { height: min(100%, 760px); max-width: 100%; aspect-ratio: 9 / 16; border: 1px solid #a75732; border-radius: var(--r-card); background: #000; box-shadow: 0 0 80px var(--accent-glow); }
.cine__x { position: absolute; top: 10px; right: 12px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-dark); background: var(--bg-dark-card); color: #fff; font-size: 20px; cursor: pointer; }

/* ── Captura ── */
.captura { border-radius: var(--r-md); overflow: hidden; border: 1px solid #f0905f63; background: #1d1614; }
.captura img { width: 100%; }

/* ── Para quién es ── */
.fit { max-width: 42rem; margin: 1.8rem auto 0; padding: clamp(1.4rem, 4vw, 2.4rem); border: 1px solid rgba(240, 90, 24, .55); border-radius: 22px; background: linear-gradient(145deg, #17181b, #090a0c); color: #fff; box-shadow: 0 18px 46px rgba(0, 0, 0, .18); text-align: left; }
.fit p { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 10px; padding: .85rem .9rem; border-radius: 12px; background: var(--bg-secondary); color: var(--text-secondary); font-size: 1.02rem; font-weight: 500; line-height: 1.5; }
.fit p::before { content: ""; width: .5rem; height: .95rem; margin: .12rem 0 0 .35rem; border: solid #16834a; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.fit .k { color: var(--accent); }
.remate { max-width: 42rem; margin: 1.2rem auto 0; padding: .95rem 1.25rem; border: 1px solid var(--accent); border-radius: 16px; background: rgba(240, 90, 24, .07); color: var(--text-primary); font-size: 1.02rem; font-weight: 750; line-height: 1.45; text-align: center; box-shadow: 0 12px 34px rgba(240, 90, 24, .10); }

/* ── Quién soy ── */
.yo__mini { width: 9rem; margin: 0 auto .6rem; filter: drop-shadow(0 .8rem 1.2rem #0003); }
.yo .step { max-width: 44rem; margin: 1.6rem auto 0; }

/* ── La llamada ── */
.lleva { list-style: none; width: fit-content; max-width: 100%; margin: 1rem auto; padding: 0; display: grid; gap: .55rem; text-align: left; }
.lleva li { position: relative; padding-left: 1.6rem; font-size: 1.06rem; font-weight: 700; line-height: 1.4; }
.lleva li::before { content: ""; position: absolute; inset: .3em auto auto .25em; width: .4em; height: .7em; border: solid var(--accent-light); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.abanico { position: relative; height: 300px; margin: 2rem auto .5rem; max-width: 340px; }
.abanico img { position: absolute; left: 50%; top: 0; width: 190px; border-radius: 10px; border: 1px solid #f0905f63; box-shadow: 0 18px 50px rgba(240, 90, 24, .22), 0 4px 14px rgba(0, 0, 0, .4); transform-origin: 50% 120%; }
.abanico img:nth-child(1) { transform: translateX(-50%) rotate(-11deg) translateX(-34px); }
.abanico img:nth-child(2) { transform: translateX(-50%) rotate(9deg) translateX(34px); }
.abanico img:nth-child(3) { transform: translateX(-50%); z-index: 2; }
.nota { font-size: .86rem; font-weight: 600; color: #e6c4b4; }
.sec:not(.sec--osc):not(.sec--cierre) .nota { color: #6b5146; }

/* ── Preguntas ── */
.faq { display: grid; gap: .75rem; max-width: 49rem; margin: 2rem auto 0; }
.faq details { border: 1px solid #d3b3a1; border-radius: var(--r-md); background: #fffaf2; box-shadow: var(--shadow-card); text-align: left; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: .7rem; padding: .95rem 1.15rem; color: #69250e; font: 800 1.06rem/1.3 Poppins, Inter, sans-serif; letter-spacing: -0.03em; word-spacing: .09em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: .85rem; height: .85rem; background: linear-gradient(#a64320, #a64320) center / 100% 2px no-repeat, linear-gradient(#a64320, #a64320) center / 2px 100% no-repeat; }
.faq details[open] summary::after { background-size: 100% 2px, 0 0; }
.faq p { padding: 0 1.15rem 1rem; color: #44352f; line-height: 1.6; }

/* ── Letra pequeña ── */
.letra { margin-top: 1.4rem; font-size: .86rem; color: #e6c4b4; text-align: left; }
.letra summary { cursor: pointer; font-weight: 700; color: var(--melo); }
.letra p { margin-top: .5rem; line-height: 1.55; }

/* ── Página de caso ── */
.hero--caso { min-height: 0; padding: 30px 0 calc(var(--wave-h) + 1.6rem); }
.hero--caso h1 { font-size: clamp(1.9rem, 7.6vw, 3.4rem); }
.volver { display: inline-flex; gap: .4rem; margin-bottom: 1.1rem; font-size: .86rem; font-weight: 700; color: #ffcab0; }
.volver::before { content: "←"; }
.roturas { display: grid; gap: 0; max-width: 44rem; margin: 1.8rem auto 0; }
.chip-rot { display: inline-flex; align-items: center; gap: .5rem; width: max-content; max-width: 100%; padding: .28rem .7rem; border-radius: 999px; background: #f4cccc; color: #b42318; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.step--dark .chip-rot { background: #5a1f17; color: #ffb4a8; }
.step .chip-rot + h3 { margin-top: .7rem; font-size: clamp(1.35rem, 3vw, 1.9rem); }
.arreglo { margin-top: .9rem; padding-top: .85rem; border-top: 1px dashed #a8745a80; font-weight: 700; line-height: 1.5; }
.step--dark .arreglo { border-top-color: #ffd0ad55; }
.arreglo::before { content: "→ "; color: var(--accent); font-weight: 800; }
.step--dark .arreglo::before { color: var(--accent-light); }
.res { display: grid; gap: .8rem; max-width: 40rem; margin: 1.6rem auto; }
.res div { padding: 1.1rem 1.25rem; border: 1px solid #ba6d46; border-radius: var(--r-card); background: linear-gradient(150deg, #31221e, #1a1718 65%); box-shadow: var(--shadow-dark-card); text-align: left; }
.res strong { display: block; color: #ffac7d; font: 900 clamp(1.8rem, 5vw, 2.6rem)/1.02 Poppins, sans-serif; letter-spacing: -0.055em; word-spacing: .09em; }
.res span { display: block; margin-top: .3rem; font-size: .92rem; font-weight: 600; color: #eee1d6; }
.embudo { max-width: 40rem; margin: 1.4rem auto 0; font: 800 clamp(1.2rem, 3vw, 1.6rem)/1.45 Poppins, sans-serif; letter-spacing: -0.035em; word-spacing: .09em; }
.embudo b { color: #ffac7d; }
.familia { max-width: 40rem; margin: 1rem auto 0; font-size: .95rem; font-weight: 600; color: #eee1d9; }
.otros { display: grid; gap: .7rem; max-width: 44rem; margin: 1.6rem auto 0; }
.otros a { display: flex; justify-content: space-between; gap: .7rem; padding: 1rem 1.15rem; border: 1px solid #d3b3a1; border-radius: var(--r-md); background: #fffaf2; box-shadow: var(--shadow-card); color: #69250e; font: 800 1.02rem/1.3 Poppins, sans-serif; letter-spacing: -0.03em; word-spacing: .09em; }

/* ── Formulario (panel oscuro con borde naranja) ── */
.pag-form { min-height: 100svh; background: radial-gradient(ellipse at 82% 12%, #40241a 0%, #151212 44%, #090a0c 78%); color: #fff; }
.form { max-width: 34rem; margin: 0 auto; padding: 1.6rem 1rem 3.5rem; }
.form__panel { padding: clamp(1.3rem, 4vw, 2.2rem); border: 1px solid #925234; border-radius: var(--r-panel); background: radial-gradient(ellipse at 95% 0%, #4b291c 0%, transparent 53%), linear-gradient(148deg, #161416, #0f1012); box-shadow: var(--shadow-dark-card), 0 0 2rem #f05a1826; }
.form__paso { color: var(--melo-2); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.form h1 { margin: .7rem 0 .5rem; font-size: clamp(1.75rem, 7vw, 2.5rem); font-weight: 900; line-height: 1.06; }
.form__por { font-size: .95rem; color: #e6c4b4; margin-bottom: 1.1rem; }
.campo { display: block; margin-top: .9rem; }
.campo span { display: block; margin-bottom: .4rem; font-size: .88rem; font-weight: 700; color: #ffcab0; }
.campo input { width: 100%; min-height: 56px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid #ffffff2e; background: #1b1818; font: 600 17px Inter, sans-serif; color: #fff; }
.campo input::placeholder { color: #ffffff59; }
.campo input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow-soft); }
.ops { display: grid; gap: .6rem; margin-top: 1rem; }
.ops button { min-height: 58px; padding: 14px 18px; text-align: left; border-radius: var(--r-md); border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06); font: 700 1.02rem Inter, sans-serif; color: #fff; cursor: pointer; transition: transform .18s var(--ease), border-color .18s ease, background .18s ease; }
.ops button:hover, .ops button[aria-pressed="true"] { border-color: #f0905f; background: rgba(240, 90, 24, .14); transform: translateY(-1px); }
.form__nav { display: flex; gap: .6rem; margin-top: 1.3rem; }
.form__nav .btn-primary { flex: 1; }
.btn-atras { min-height: 54px; padding: 0 1.2rem; border-radius: 999px; border: 1px solid #ffffff38; background: #ffffff0a; color: #fff3e7; font: 700 .95rem Inter, sans-serif; cursor: pointer; }
.form__err { margin-top: .7rem; font-size: .92rem; font-weight: 700; color: #ff9d8f; }
.acepto { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1rem; font-size: .9rem; color: #eee1d9; }
.acepto input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); }
.acepto a { text-decoration: underline; color: var(--melo); }
.trampa { position: absolute; left: -9999px; }
.prueba { margin-top: 1rem; padding: 14px; border-radius: var(--r-md); border: 1px solid #ffffff1f; background: #0c0c0e; color: #e9e4da; font: 500 12.5px/1.5 ui-monospace, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.agenda { margin-top: 1rem; border-radius: var(--r-card); overflow: hidden; border: 1px solid #925234; background: #fff; min-height: 620px; }
.agenda iframe { width: 100%; min-height: 720px; border: 0; }

/* ── Privacidad ── */
.legal { text-align: left; }
.legal h2 { margin: 1.8rem 0 .5rem; font-size: 1.25rem; color: #69250e; }
.legal p, .legal li { font-size: .98rem; line-height: 1.62; color: #44352f; }
.legal p + p { margin-top: .6rem; }
.legal ul { padding-left: 1.2rem; }

/* ── Pie ── */
.pie { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 2.6rem; padding-top: 1.2rem; border-top: 1px solid #fff3; color: #ddc7b9; font-size: .9rem; text-align: left; }
.pie a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pie b { color: #fff; font-family: Poppins, sans-serif; font-weight: 800; letter-spacing: -0.03em; }

/* ── Entradas: visibles sin JS; con JS y movimiento permitido, aparecen al llegar ── */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-entra] { opacity: 0; transform: translateY(24px); filter: blur(7px); transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease); transition-delay: var(--d, 0s); }
  html.js [data-entra].visto { opacity: 1; transform: none; filter: none; }
  html.js .nota-tilt[data-entra].visto { transform: rotate(-1.4deg); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ── A partir de tableta ── */
@media (min-width: 760px) {
  body { padding-top: 66px; }
  .bar { height: 66px; padding: 0 28px; gap: 18px; }
  .bar__marca { font-size: 17px; }
  .hero { min-height: calc(100svh - 66px); }
  .hero--caso { min-height: 0; }
  .recorrido { flex-wrap: nowrap; gap: 1rem; }
  .recorrido li { flex: 1; font-size: .92rem; }
  .recorrido::before { content: ""; position: absolute; top: 1.4rem; left: 10%; right: 10%; height: 1px; background: #dca685; }
  .recorrido li { position: relative; }
  .nodo { width: 2.8rem; height: 2.8rem; }
  .res { grid-template-columns: repeat(2, 1fr); }
  .otros { grid-template-columns: repeat(2, 1fr); }
  .abanico { height: 360px; max-width: 460px; }
  .abanico img { width: 230px; }
  .etapas { max-width: 46rem; margin-inline: auto; }
  .vids { max-width: 30rem; margin-inline: auto; }
  .step__tag { grid-column: auto; }
  .step__cab { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .step__ico { grid-area: auto; }
}
@media (min-width: 1000px) {
  .hero__foto { inset: 0 0 0 38%; }
  .hero__foto img { object-position: 50% 26%; filter: grayscale(.25) saturate(.82) brightness(.62); -webkit-mask-image: linear-gradient(90deg, transparent, #000 36%); mask-image: linear-gradient(90deg, transparent, #000 36%); }
  .hero__foto::after { background: linear-gradient(180deg, transparent 62%, var(--ink)), linear-gradient(90deg, var(--ink) 0%, rgba(11, 12, 14, .5) 40%, rgba(11, 12, 14, .15) 100%); }
  .hero:not(.hero--caso) .wrap { align-items: flex-start; text-align: left; max-width: 72rem; }
  .hero:not(.hero--caso) h1 { max-width: 15.5em; }
  .hero__aire { min-height: 1.6rem; flex: 0; }
  .hero-card { text-align: left; }
  .hero-card .orbe { left: 2.2rem; }
  .hero .btn-ancho { margin-inline: 0; }
}

/* ── Pie de página (cierre oscuro) ── */
.fin { padding-bottom: 2rem; text-align: left; }
.fin .pie { margin-top: 0; }

/* ── Pop-up «¿Inviertes ya en publicidad?» (dialog nativo) ── */
.popup { width: min(26rem, calc(100% - 2rem)); padding: 0; border: 1px solid #925234; border-radius: var(--r-panel); background: radial-gradient(ellipse at 95% 0%, #4b291c 0%, transparent 53%), linear-gradient(148deg, #161416, #0f1012); color: #fff; box-shadow: var(--shadow-dark-card), 0 0 3rem #f05a1840; }
.popup::backdrop { background: rgba(9, 10, 12, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.popup__in { position: relative; display: grid; justify-items: center; gap: 1rem; padding: 2.2rem 1.4rem 1.6rem; text-align: center; }
.popup__tit { font-size: clamp(1.7rem, 7vw, 2.3rem); font-weight: 900; line-height: 1.05; }
.popup__ops { display: grid; gap: .7rem; width: 100%; margin-top: .4rem; }
.popup__ops .btn { width: 100%; min-height: 58px; font-size: 1.05rem; }
.popup__x { position: absolute; top: .6rem; right: .6rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid #ffffff2e; background: #ffffff0a; color: #fff; font-size: 1.3rem; cursor: pointer; }

/* ── Casos: pósters con la foto del negocio (como su landing original) ── */
.casos { display: flex; gap: .9rem; margin: 2rem calc(-1 * clamp(1rem, 6vw, 5rem)) 0; padding: 0 clamp(1rem, 6vw, 5rem) 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.casos::-webkit-scrollbar { display: none; }
.poster { position: relative; isolation: isolate; overflow: hidden; flex: 0 0 min(84%, 22rem); scroll-snap-align: center; display: flex; flex-direction: column; justify-content: space-between; min-height: 33rem; padding: 1rem; border: 1px solid #fa854e; border-radius: var(--r-card); color: #fff4eb; background: #1a1515; box-shadow: 0 .8rem 2.5rem #f05a182a; transition: transform .22s var(--ease), box-shadow .22s ease; }
a.poster:hover { transform: translateY(-3px); box-shadow: 0 1rem 2.8rem #f05a1845; }
.poster__img { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.04) brightness(.62); }
.poster::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(11, 12, 14, .15) 0%, rgba(11, 12, 14, .05) 30%, rgba(11, 12, 14, .82) 62%, #0b0c0e 100%); }
.poster__nombre { align-self: flex-start; padding: .45rem .85rem; border: 1px solid #ffffff38; border-radius: 999px; background: rgba(12, 10, 8, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.poster__cuerpo { display: grid; gap: .7rem; }
.poster .btn-suave { justify-self: start; }


@media (min-width: 760px) {
  .casos { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-inline: 0; padding-inline: 0; overflow: visible; }
  .poster { min-height: 34rem; }
}

/* ── Hasta que se responde el pop-up, lo que va después de los problemas no existe ── */
.js body.bloqueada #problemas ~ *:not(.popup), .js body.bloqueada footer { display: none; }
.js body.bloqueada #problemas .panel, .js body.bloqueada #problemas .selector { visibility: hidden; }

/* ── Carrusel (problemas, casos): una idea cada vez, flechas y puntos. Sin JS se desliza con el dedo ── */
.carr { margin-top: 1.4rem; }
.carr__pista { position: relative; display: flex; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-block: .3rem .6rem; }
.carr__pista::-webkit-scrollbar { display: none; }
.carr__s { flex: 0 0 100%; scroll-snap-align: center; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .6rem .9rem; align-content: start; padding: 1.2rem 1.1rem; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-card); background: rgba(255, 255, 255, .07); color: #fff; text-align: left; }
.carr__s .ico { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: rgba(240, 90, 24, .16); color: var(--accent-light); }
.carr__s .ico svg { width: 1.35rem; height: 1.35rem; }
.carr__s h3 { align-self: center; font: 800 clamp(1.05rem, 3.6vw, 1.3rem)/1.25 Poppins, Inter, sans-serif; letter-spacing: -0.025em; }
.carr__s--joya { border-color: #f0905f; background: radial-gradient(ellipse at 95% 0%, #4b291c 0%, transparent 60%), linear-gradient(148deg, #1c1614, #0f1012); box-shadow: 0 0 2rem #f05a1830; }
.carr__s--joya .ico { background: linear-gradient(135deg, #ff9a5c, #f05a18, #c74610); color: #fff; }
.cmp { grid-column: 1 / -1; display: grid; gap: .6rem; margin-top: .3rem; }
.cmp > div { padding: .85rem .95rem; border-radius: var(--r-sm); border: 1px solid #ffffff1f; background: #ffffff0d; }
.cmp b { display: block; margin-bottom: .3rem; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #cdbdb2; }
.cmp p { font-size: .98rem; line-height: 1.45; color: #eee1d9; }
.cmp .cmp__con { border-color: #f0905f80; background: linear-gradient(145deg, #4a261766, #26221f55); }
.cmp .cmp__con b { color: var(--accent-light); }
.cmp .cmp__con p { color: #fff; font-weight: 600; }
.carr__ctl { display: none; align-items: center; justify-content: center; gap: 1rem; margin-top: .9rem; }
html.js .carr__ctl { display: flex; }
html.js .carr__ctl[hidden] { display: none; }
.carr__b { flex: none; width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 1px solid #f0905f; background: #ffffff0f; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background .2s ease, opacity .2s ease; }
.carr__b:hover:not(:disabled) { background: #f05a1855; }
.carr__b:disabled { opacity: .3; cursor: default; }
.carr__puntos { display: flex; gap: .5rem; align-items: center; }
.carr__p { width: .6rem; height: .6rem; padding: 0; border: 0; border-radius: 999px; background: #ffffff40; cursor: pointer; transition: width .25s var(--ease), background .25s ease; }
.carr__p[aria-current="true"] { width: 1.6rem; background: var(--accent-light); }
.sec:not(.sec--osc):not(.sec--cierre) .carr__b { color: var(--text-primary); background: #fff8; }
.sec:not(.sec--osc):not(.sec--cierre) .carr__p { background: #00000030; }
.sec:not(.sec--osc):not(.sec--cierre) .carr__p[aria-current="true"] { background: var(--accent); }
@media (min-width: 760px) {
  .cmp { grid-template-columns: 1fr 1fr; }
  .panel .carr__s { flex-basis: min(100%, 44rem); }
  .panel .carr__pista { justify-content: flex-start; scroll-padding: 0; }
}

/* Casos: pósters dentro del carrusel; en escritorio caben los tres */
.carr__pista.casos { margin: 0; padding: .3rem 0 .6rem; }
.poster__rot { justify-self: start; padding: .4rem .75rem; border: 1px solid #ffb48866; border-radius: 999px; background: #ffb4881a; color: #ffd0ad; font-size: .8rem; font-weight: 800; }
.poster__ver { color: var(--melo); font-weight: 800; font-size: .95rem; }
@media (min-width: 1000px) {
  .carr__pista.casos .poster { flex: 1 1 0; }
}

/* ── El sistema: bloques con medios en bucle ── */
.step--med { display: grid; gap: 1.4rem; }
.step__txt { min-width: 0; }
.step__med { min-width: 0; align-self: center; }
.med { position: relative; margin-top: 3.6rem; }
.med .mini { top: -4.4rem; z-index: 2; }
.marco { overflow: hidden; border: 1px solid #f0905f63; border-radius: var(--r-card); background: #1d1614; box-shadow: 0 .8rem 2.4rem #f05a1830; }
.marco video { display: block; width: 100%; height: auto; }
.nota--izq { margin-top: .8rem; text-align: left; }
.step__med .vids { margin-top: .6rem; max-width: none; }
.demo { display: grid; gap: .7rem; padding: 1.1rem; border: 1px solid #f0905f63; border-radius: var(--r-card); background: #1d1816; color: #fff4eb; }
.demo__cab { display: flex; align-items: center; gap: .6rem; font-size: .95rem; }
.demo__cab i { margin-left: auto; font-style: normal; font-size: .78rem; color: #cdbdb2; }
.demo__form, .demo__msg { padding: .8rem .9rem; border-radius: var(--r-sm); font-size: .95rem; line-height: 1.4; }
.demo__form { display: grid; gap: .15rem; border: 1px solid #ffffff1f; background: #ffffff0d; }
.demo small { display: block; margin-bottom: .15rem; font-size: .7rem; font-weight: 800; letter-spacing: .08em; color: #cdbdb2; }
.demo__msg { margin-left: 1.6rem; background: #1f4d2e; border: 1px solid #3f8a58; }
.demo__sello { justify-self: start; margin-top: .2rem; padding: .45rem .8rem; border-radius: 999px; background: #2e7d32; color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
@media (prefers-reduced-motion: no-preference) {
  html.js .demo.visto .demo__form, html.js .demo.visto .demo__msg, html.js .demo.visto .demo__sello { animation: demo-in .5s var(--ease) both; }
  html.js .demo.visto .demo__msg { animation-delay: .7s; }
  html.js .demo.visto .demo__sello { animation-delay: 1.4s; }
  html.js .demo:not(.visto) .demo__form, html.js .demo:not(.visto) .demo__msg, html.js .demo:not(.visto) .demo__sello { opacity: 0; }
}
@keyframes demo-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (min-width: 1000px) {
  .etapas { max-width: 70rem; }
  .etapas > .step:not(.step--med) { max-width: 46rem; margin-inline: auto; }
  .step--med { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 2.6rem; }
  .step--inv .step__med { order: -1; }
  .step--med .step__txt { align-self: start; position: sticky; top: 6rem; }
  .step--med .marco { max-width: 28rem; margin-inline: auto; }
}

/* Cine: flechas entre vídeos */
.cine__nav { position: absolute; top: 50%; width: 2.9rem; height: 2.9rem; margin-top: -1.45rem; border-radius: 50%; border: 1px solid #ffffff38; background: #00000066; color: #fff; font-size: 1.6rem; cursor: pointer; }
.cine__nav--prev { left: 10px; }
.cine__nav--next { right: 10px; }

/* ── Dos caminos: «flujo» (más clientes) y «roturas» (dónde se rompe). Sin JS se ven los dos ── */
html[data-camino="flujo"] [data-camino="roturas"], html[data-camino="roturas"] [data-camino="flujo"] { display: none !important; }
.probl { overflow-x: clip; }
.popup__op { display: grid; gap: .2rem; min-height: 64px !important; padding: .7rem 1rem; text-align: center; }
.popup__op b { font-size: 1.02rem; line-height: 1.2; }
.popup__op small { font-size: .82rem; font-weight: 600; opacity: .85; }
.recorrido--4 li { flex-basis: calc((100% - .5rem) / 2); }
.sec--osc .recorrido li { color: #fff4eb; }
.sec--osc .recorrido::before { background: #f0905f55; }
.remate-k { margin-top: .9rem; padding-top: .8rem; border-top: 1px dashed #a8745a80; font-weight: 800; line-height: 1.4; }
.step--dark .remate-k { border-top-color: #ffd0ad55; color: var(--melo); }
.cambio-sec { padding-block: 2rem; }
.cambio { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: .3rem .6rem; padding: .9rem 1.3rem; border: 1px solid #f0905f80; border-radius: 999px; background: #ffffff0a; color: #eee1d9; font: 600 .96rem Inter, sans-serif; cursor: pointer; }
.cambio .flecha { color: var(--melo); font-weight: 800; }
.cambio:hover { background: #f05a1826; }

/* ── Carrusel 3D (como la landing original): la del centro enfocada, las de los lados giradas y desenfocadas ── */
.cf { position: relative; margin-top: 1.2rem; }
.cf__escena { display: grid; gap: .9rem; }
html.js .cf__escena { position: relative; display: block; min-height: 20rem; perspective: 1200px; isolation: isolate; transition: height .3s var(--ease); }
html.js .cf__escena::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 32rem; height: 32rem; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(240, 90, 24, .16), transparent 68%); filter: blur(36px); pointer-events: none; }
.cf__s { background: radial-gradient(circle at 16% 0%, rgba(240, 90, 24, .14), transparent 44%), #17181b; box-shadow: var(--shadow-dark-card); }
.cf__s.carr__s--joya { background: radial-gradient(ellipse at 95% 0%, #4b291c 0%, transparent 60%), linear-gradient(148deg, #1c1614, #0f1012); }
html.js .cf__s { position: absolute; top: 0; left: 0; right: 0; width: min(30rem, 84vw); margin-inline: auto; transform-style: preserve-3d; will-change: transform, opacity; }
@media (prefers-reduced-motion: no-preference) {
  html.js .cf__s { transition: transform .52s cubic-bezier(.2, .8, .2, 1), opacity .52s ease, filter .52s ease, visibility .52s ease; }
}
.cf .carr__ctl { margin-top: 1.1rem; }
@media (min-width: 760px) { html.js .cf__s { width: 32rem; } }

/* ── Casos en móvil: cinta en bucle (como la original). Los clones los pone sitio.js ── */
.carr--cinta { overflow: hidden; margin-inline: calc(-1 * clamp(1rem, 6vw, 5rem)); }
.carr__pista.casos.cinta { width: max-content; overflow: visible; scroll-snap-type: none; padding-inline: clamp(1rem, 6vw, 5rem); animation: cinta 42s linear infinite; }
.carr__pista.casos.cinta .poster { flex: 0 0 76vw; }
.carr__pista.casos.cinta:hover, .carr__pista.casos.cinta:active { animation-play-state: paused; }
@keyframes cinta { to { transform: translateX(calc(-50% - .45rem)); } }

/* ── Testimonio en tarjeta (como un post) ── */
.tuit { max-width: 34rem; margin: 1.1rem auto 0; padding: 1.25rem 1.4rem 1.15rem; border: 1px solid #e4dcd6; border-radius: 18px; background: #fff; color: #111; text-align: left; box-shadow: 0 .4rem 1.4rem #0000000f; }
.tuit blockquote { font: 400 clamp(1.15rem, 3.4vw, 1.4rem)/1.42 Georgia, "Times New Roman", serif; letter-spacing: 0; }
.tuit blockquote .k { color: inherit !important; font-weight: inherit; }
.tuit figcaption { display: flex; align-items: center; gap: .8rem; margin-top: 1.1rem; }
.tuit img { flex: none; width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; }
.tuit b { display: block; font: 700 1rem/1.2 Inter, sans-serif; color: #111; }
.tuit small { display: block; margin-top: .1rem; font-size: .9rem; color: #6b6b6b; }
.visual .tuit { margin-top: 1rem; box-shadow: none; }
