/* ==========================================================
   My Communications — Desarrollo de software a medida
   Página sencilla para recorrer bajando:
   inicio → cinta → clientes → conversación → qué desarrollamos
   → marketing (secundario) → cierre por WhatsApp.
   Tema oscuro por defecto; tema claro con ?tema=claro.
   ========================================================== */

:root {
  /* Marca */
  --pink: #E84090;           /* rosa del logo (decorativo y textos grandes) */
  --pink-strong: #CC2A78;    /* botones con texto blanco (AA) */
  --pink-deep: #D02C7C;      /* fondos de sección con texto blanco (AA) */
  --pink-ink: #B8236C;       /* rosa para texto sobre fondos claros */
  --pink-soft: #FFE3EF;
  --yellow: #FFC93C;         /* amarillo girasol de las ilustraciones 3D */

  /* Neutros */
  --cream: #FFF6EE;
  --paper: #FFFFFF;
  --ink: #1A1220;
  --text: #1A1220;
  --muted: #5E5468;
  --line: #EEDFE5;

  --radius: 26px;
  --container: 1200px;
  --header-h: 80px;

  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', Consolas, monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: hidden;
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  color: var(--text); background: var(--cream);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 300; background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 8px; }

.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i--fill { fill: currentColor; stroke: none; }

/* ---------- Botón ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translate(-2px, -2px); }
.btn:active { transform: translate(0, 0); box-shadow: none; }
.btn--lg { padding: 1.1rem 1.7rem; font-size: 1.0625rem; }
.btn--xl { padding: 1.25rem 2.2rem; font-size: 1.2rem; }
.btn--xl .i { width: 1.45em; height: 1.45em; }
.btn--primary { background: var(--pink-strong); color: #fff; border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn--primary:hover { box-shadow: 6px 6px 0 var(--ink); }

/* ---------- Piezas tipográficas ---------- */
.eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pink-ink); }
.eyebrow--light { color: #FFE0EE; }

.sticker {
  display: inline-block; padding: .5rem 1rem; border-radius: 999px;
  background: var(--yellow); color: var(--ink); font-size: .85rem; font-weight: 700; letter-spacing: .02em;
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transform: rotate(-2deg);
}

.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section--compact { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 50rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head--center { text-align: center; margin-inline: auto; }
.section-title { margin-top: .85rem; font-size: clamp(2.2rem, 4.8vw, 3.8rem); font-weight: 800; font-stretch: 84%; letter-spacing: -.025em; line-height: .98; text-wrap: balance; }

/* Resaltado tipo marcador */
.marker { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); padding: 0 .08em; }

/* Palabra dentro de un globo de diálogo (como el logo) */
.bubble-word {
  position: relative; display: inline-block; margin-top: .12em; padding: .02em .22em .1em;
  background: var(--pink); color: #fff; border: 3px solid var(--ink); border-radius: .32em;
  box-shadow: 6px 6px 0 var(--ink); transform: rotate(-2.5deg); white-space: nowrap;
}
.bubble-word::after {
  content: ""; position: absolute; left: .45em; bottom: -.32em; width: .42em; height: .42em;
  background: var(--pink); border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  transform: skewX(-25deg) rotate(45deg); border-bottom-right-radius: 4px;
}

/* ---------- Encabezado ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 100; transition: background-color .3s ease, box-shadow .3s ease; }
.header.is-scrolled {
  background: rgba(255, 246, 238, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }
.progress { position: absolute; inset: 0 0 auto; height: 3px; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--pink), #8B5CFF); transform-origin: left; transform: scaleX(0); }

.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; font-stretch: 88%; letter-spacing: -.02em; }
.brand__name span { font-weight: 500; }
.brand--light { color: #fff; }

/* Barra de administración de WordPress (solo la ven los usuarios conectados) */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }

@media (max-width: 420px) {
  .brand__name { font-size: 1.1rem; }
  .header .btn { padding: .8rem; }
  .header .btn__label { display: none; }
}

/* ---------- 1. Hero ---------- */
.hero {
  position: relative; overflow: hidden; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  background: radial-gradient(circle at 1px 1px, rgba(26, 18, 32, .09) 1px, transparent 0) 0 0 / 22px 22px, var(--cream);
}
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero__title { margin: 1.5rem 0 2.4rem; font-size: clamp(2.8rem, 6vw, 5.3rem); font-weight: 800; font-stretch: 82%; line-height: 1.04; letter-spacing: -.028em; text-wrap: balance; }
.hero__lead { max-width: 33rem; margin-bottom: 2.25rem; font-size: clamp(1.0625rem, 1.5vw, 1.2rem); color: var(--muted); text-wrap: pretty; }
.hero__lead strong { color: var(--ink); }

.scroll-cue { display: inline-flex; align-items: center; gap: .6rem; margin-top: 3.5rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.scroll-cue__mouse { position: relative; width: 22px; height: 34px; border: 2px solid currentColor; border-radius: 12px; }
.scroll-cue__mouse::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--pink); animation: wheel 1.8s ease-in-out infinite; }

/* Escena: ventana de una plataforma a medida */
.hero__visual { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; min-height: 560px; }
.blob { position: absolute; border-radius: 50%; }
.blob--pink { width: 420px; height: 420px; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--pink); border: 3px solid var(--ink); }
.blob--violet { width: 140px; height: 140px; right: 2%; bottom: 6%; background: var(--yellow); border: 3px solid var(--ink); }

.app-window {
  position: relative; z-index: 2; width: min(100%, 540px); overflow: hidden;
  border-radius: 20px; background: #fff; border: 3px solid var(--ink);
  box-shadow: 12px 14px 0 var(--ink); transform: rotate(2deg);
  animation: window-in 1s cubic-bezier(.2, .8, .2, 1) both;
}
.app-window__bar { display: flex; align-items: center; gap: 6px; padding: .65rem .9rem; background: #F4ECE6; border-bottom: 2px solid var(--ink); }
.app-window__bar i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.app-window__bar i:nth-child(2) { background: #FEBC2E; }
.app-window__bar i:nth-child(3) { background: #28C840; }
.app-window__url { flex: 1; margin-left: .75rem; padding: .3rem .75rem; border-radius: 8px; background: #fff; font-size: .75rem; font-weight: 600; color: #5E5468; }
.app { display: grid; grid-template-columns: 62px 1fr; color: var(--ink); }
.app__side { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 1rem .6rem; background: var(--ink); }
.app__side b { width: 32px; height: 32px; margin-bottom: .4rem; border-radius: 10px; background: var(--pink); }
.app__side i { width: 30px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .22); }
.app__side i.on { background: #fff; }
.app__main { padding: 1rem 1.1rem 1.1rem; background: #FBF8F6; }
.app__title { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; }
.app__title span { padding: .15rem .55rem; border-radius: 999px; background: var(--pink-soft); color: var(--pink-ink); font-family: var(--font-body); font-size: .68rem; font-weight: 700; }
.app__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: .7rem; }
.kpi { padding: .55rem .65rem; border-radius: 12px; background: #fff; border: 1.5px solid #EADFE5; }
.kpi small { display: block; font-size: .66rem; font-weight: 600; color: #5E5468; }
.kpi strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; line-height: 1.1; }
.kpi--pink strong { color: var(--pink-ink); }
.app__chart { display: flex; align-items: flex-end; gap: 6px; height: 74px; margin-bottom: .7rem; padding: .55rem; border-radius: 12px; background: #fff; border: 1.5px solid #EADFE5; }
.app__chart span { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #FF7AB8, #E84090); transform-origin: bottom; animation: grow .7s cubic-bezier(.2, .8, .2, 1) var(--d, .6s) both; }
.app__rows { display: grid; gap: .4rem; }
.app__rows li {
  display: flex; align-items: center; justify-content: space-between; padding: .45rem .65rem;
  border-radius: 10px; background: #fff; border: 1.5px solid #EADFE5; font-size: .76rem; font-weight: 600;
  opacity: 0; transform: translateY(8px); animation: row-in .45s cubic-bezier(.2, .9, .3, 1.2) var(--d, 1.5s) forwards;
}
.tag { padding: .15rem .5rem; border-radius: 999px; font-size: .66rem; font-weight: 700; }
.tag--ok { background: #DDF7E7; color: #137A3C; }
.tag--way { background: #FFF1C7; color: #7A5A00; }
.tag--new { background: var(--pink-soft); color: var(--pink-ink); }

.hero__sticker {
  position: absolute; z-index: 3; top: -1%; left: -3%; width: 140px; height: 140px;
  border-radius: 28px; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-8deg); animation: bob 5s ease-in-out infinite;
}
.badge-spin { position: absolute; z-index: 3; top: 2%; right: 0; width: 128px; height: 128px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.badge-spin svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge-spin text { font: 800 10.6px var(--font-body); letter-spacing: 1.4px; fill: var(--ink); }
.badge-spin img { width: 50px; height: 50px; }
.toast {
  position: absolute; z-index: 3; left: -1rem; bottom: 1%;
  display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem .7rem .7rem;
  border-radius: 18px; background: var(--paper); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  opacity: 0; animation: toast-in .6s cubic-bezier(.2, .9, .3, 1.3) 3.2s forwards;
}
.toast__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--yellow); font-size: 1.3rem; }
.toast strong { display: block; font-size: .95rem; line-height: 1.2; }
.toast small { display: block; font-size: .78rem; color: var(--muted); }

@media (max-width: 1024px) {
  .hero { min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { margin-top: 1rem; }
  .scroll-cue { display: none; }
}
@media (max-width: 560px) {
  .hero__visual { min-height: 440px; }
  .blob--pink { width: 300px; height: 300px; }
  .blob--violet { width: 90px; height: 90px; }
  .app-window { transform: rotate(1.5deg); box-shadow: 8px 10px 0 var(--ink); }
  .app { grid-template-columns: 44px 1fr; }
  .app__side { padding: .8rem .4rem; }
  .app__side b { width: 24px; height: 24px; }
  .app__side i { width: 22px; }
  .app__main { padding: .8rem; }
  .kpi { padding: .45rem .5rem; }
  .kpi strong { font-size: 1.05rem; }
  .app__chart { height: 56px; }
  .hero__sticker { width: 92px; height: 92px; top: 0; left: -2%; }
  .badge-spin { width: 92px; height: 92px; top: 0; right: -2%; }
  .badge-spin text { font-size: 10.6px; }
  .badge-spin img { width: 36px; height: 36px; }
  .toast { left: -2%; bottom: 2%; }
  .hero .btn--lg { width: 100%; white-space: normal; }
  .sticker { font-size: .78rem; border-radius: 16px; line-height: 1.35; }
  .sticker__sep { display: none; }
  .sticker__place { display: block; font-weight: 600; opacity: .85; }
}

/* ---------- 2. Cinta ---------- */
.tape { position: relative; z-index: 4; overflow: hidden; padding: 1.5rem 0; margin-top: -1rem; }
.tape__band { transform: rotate(-2deg); margin-inline: -2%; background: var(--ink); color: #fff; border-block: 3px solid var(--ink); }
.tape__track { display: flex; align-items: center; width: max-content; padding: .9rem 0; animation: marquee 32s linear infinite; }
.tape__track span { padding: 0 1.4rem; font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 800; font-stretch: 78%; letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; }
.tape__track i { font-style: normal; font-size: clamp(1.2rem, 2.4vw, 1.8rem); color: var(--yellow); }

/* ---------- 3. Logos de clientes ---------- */
.logos { padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.logos__title { margin-bottom: 1.75rem; text-align: center; font-family: var(--font-body); font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; padding: .4rem 0 .6rem; animation: marquee 45s linear infinite reverse; }
.marquee__item {
  flex: none; width: 210px; height: 96px; margin-right: 1rem; padding: .4rem .75rem;
  display: grid; place-items: center; border-radius: 18px; background: #fff;
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
}
.marquee__item img { max-height: 84px; width: auto; object-fit: contain; }

/* ---------- 4. La conversación ---------- */
.talk { position: relative; overflow: hidden; background: var(--pink-deep); color: #fff; border-block: 3px solid var(--ink); }
.talk::before { content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none; background: radial-gradient(circle at 1px 1px, #fff 1.2px, transparent 0) 0 0 / 24px 24px; }
.talk .section-head { text-align: center; margin-inline: auto; }
.thread { position: relative; display: grid; gap: 2.5rem; max-width: 860px; margin-inline: auto; }
.thread__pair { display: grid; gap: .9rem; }
.say { max-width: min(560px, 88%); font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.45; }
.say--client {
  justify-self: start; padding: 1rem 1.25rem; border-radius: 22px 22px 22px 6px;
  background: #fff; color: var(--ink); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.25; letter-spacing: -.01em;
}
.say--my { justify-self: end; display: flex; flex-direction: row-reverse; align-items: flex-end; gap: .75rem; max-width: min(600px, 96%); }
.say--my img { flex: none; width: 44px; height: 44px; padding: 2px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); }
.say--my p { flex: 1; padding: 1rem 1.25rem; border-radius: 22px 22px 6px 22px; background: var(--ink); color: #EFE6F2; border: 3px solid var(--ink); box-shadow: 5px 5px 0 rgba(26, 18, 32, .35); }
.say--my strong { color: var(--yellow); }
.reveal-ready .thread__pair[data-reveal] { opacity: 1; transform: none; }
.reveal-ready .thread__pair .say { opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .9, .3, 1.2); }
.reveal-ready .thread__pair .say--my { transition-delay: .45s; }
.reveal-ready .thread__pair.is-visible .say { opacity: 1; transform: none; }

/* ---------- 5. Qué desarrollamos ---------- */
.dev-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.dev {
  padding: 1.25rem 1.25rem 1.6rem; border-radius: var(--radius);
  background: var(--paper); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  transition: transform .25s ease, box-shadow .25s ease;
}
.dev:hover { transform: translate(-3px, -3px) rotate(-.6deg); box-shadow: 10px 10px 0 var(--pink); }
.dev h3 { margin: 0 .25rem .5rem; font-size: 1.4rem; font-weight: 800; font-stretch: 85%; letter-spacing: -.025em; }
.dev p { margin: 0 .25rem; font-size: .98rem; color: var(--muted); }

.tech-visual { display: flex; height: 128px; margin-bottom: 1.3rem; overflow: hidden; border-radius: 16px; background: var(--ink); color: #fff; }
.tech-visual--code { flex-direction: column; justify-content: center; gap: .35rem; padding: 1rem 1.1rem; font: 500 .78rem/1.3 var(--font-mono); }
.tech-visual__dots { display: flex; gap: 5px; margin-bottom: .35rem; }
.tech-visual__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); }
.tech-visual__dots i:nth-child(2) { background: var(--yellow); }
.tech-visual__dots i:nth-child(3) { background: #fff; opacity: .5; }
.tech-visual code { color: #EFE6F2; white-space: nowrap; }
.tech-visual code b { color: #FF8CC0; font-weight: 600; }
.tech-visual code em { color: var(--yellow); font-style: normal; }
.tech-visual code s { color: #9EE6B8; text-decoration: none; }
.tech-visual--flow { align-items: center; justify-content: center; gap: .3rem; padding: 0 .6rem; }
.tech-visual--flow span { padding: .4rem .55rem; border-radius: 10px; background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .25); font-size: .74rem; font-weight: 700; white-space: nowrap; }
.tech-visual--flow span.is-hot { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.tech-visual--flow i { flex: 1; max-width: 22px; height: 2px; background: repeating-linear-gradient(90deg, #fff 0 4px, transparent 4px 8px); }
.tech-visual--roles { flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; }
.tech-visual--roles .hub { position: relative; padding: .45rem .9rem; border-radius: 999px; background: var(--pink); font-size: .8rem; font-weight: 800; }
.tech-visual--roles .hub::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: .6rem; background: rgba(255, 255, 255, .5); }
.tech-visual--roles .roles { position: relative; display: flex; gap: .45rem; }
.tech-visual--roles .roles::before { content: ""; position: absolute; left: 18%; right: 18%; top: -.5rem; height: 2px; background: rgba(255, 255, 255, .5); }
.tech-visual--roles .roles span { position: relative; padding: .3rem .6rem; border-radius: 10px; border: 2px solid rgba(255, 255, 255, .3); font-size: .72rem; font-weight: 700; }
.tech-visual--roles .roles span::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 2px; height: .5rem; background: rgba(255, 255, 255, .5); }
.tech-visual--app { align-items: center; justify-content: center; gap: .6rem; }
.mini-phone { display: grid; grid-template-columns: repeat(2, 20px); gap: 6px; align-content: center; justify-content: center; width: 66px; height: 104px; border-radius: 14px; border: 3px solid #fff; transform: rotate(-6deg); }
.mini-phone i { width: 20px; height: 20px; border-radius: 7px; background: var(--pink); }
.mini-phone i:nth-child(2), .mini-phone i:nth-child(5) { background: var(--yellow); }
.mini-phone i:nth-child(3) { background: #fff; }
.os-pill { padding: .3rem .7rem; border-radius: 999px; border: 2px solid #fff; font-size: .78rem; font-weight: 800; }

.dev { display: flex; flex-direction: column; }
.dev__more { display: inline-flex; align-items: center; gap: .35rem; align-self: flex-start; margin: 1.1rem .25rem 0; padding-bottom: 2px; font-weight: 800; color: var(--text); border-bottom: 3px solid var(--yellow); }
.dev__more::after { content: "→"; transition: transform .2s ease; }
.dev__more:hover::after { transform: translateX(4px); }
.dev-intro { margin: -1.75rem auto 2.5rem; text-align: center; }
.dev-intro a { font-weight: 700; color: var(--pink-ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1100px) { .dev-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .dev-grid { grid-template-columns: 1fr; } }

/* ---------- 6. Marketing (secundario y compacto) ---------- */
.mkt { border-top: 2px dashed var(--line); }
.mkt__head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.mkt__title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; font-stretch: 84%; letter-spacing: -.02em; }
.mkt__head .eyebrow { order: 2; }
.mkt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.mkt-item { display: flex; align-items: center; gap: .8rem; padding: .75rem 1rem .75rem .75rem; border-radius: 18px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.mkt-item img { flex: none; width: 60px; height: 60px; mix-blend-mode: multiply; }
.mkt-item span { font-size: .88rem; line-height: 1.35; color: var(--muted); }
.mkt-item strong { display: block; font-size: .98rem; color: var(--text); }

@media (max-width: 1000px) { .mkt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .mkt-grid { grid-template-columns: 1fr; } }

/* ---------- 7. Cierre ---------- */
.cta-final { position: relative; overflow: hidden; background: var(--pink-deep); color: #fff; border-top: 3px solid var(--ink); text-align: center; }
.cta-final::before { content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none; background: radial-gradient(circle at 1px 1px, #fff 1.2px, transparent 0) 0 0 / 24px 24px; }
.cta-final__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta-final__img { width: 120px; height: 120px; margin-bottom: 1.5rem; border-radius: 26px; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); transform: rotate(-6deg); animation: bob 5s ease-in-out infinite; }
.cta-final__title { font-size: clamp(2.8rem, 7vw, 5.8rem); font-weight: 800; font-stretch: 82%; line-height: 1; letter-spacing: -.028em; text-wrap: balance; }
.cta-final .bubble-word { background: #fff; color: var(--ink); }
.cta-final .bubble-word::after { background: #fff; }
.cta-final__lead { margin: 2.2rem 0 2.25rem; font-size: 1.2rem; color: #FFE6F1; }
.cta-final__phone { margin-top: 1.25rem; font-size: 1.05rem; font-weight: 700; letter-spacing: .04em; color: #FFE6F1; }
@media (max-width: 520px) { .cta-final .btn--xl { width: 100%; white-space: normal; } }

/* ---------- Páginas de servicio ---------- */
.hero--page { min-height: 0; padding-bottom: clamp(3.5rem, 7vw, 5rem); }
.hero--page .hero__title { font-size: clamp(2.6rem, 5.4vw, 4.6rem); margin: 1.2rem 0 1.6rem; }
.hero--page .hero__visual { min-height: 420px; }
.hero--page .app-window { max-width: 480px; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.crumbs span[aria-current] { color: var(--text); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.lede-note { max-width: 46rem; margin-top: 1.4rem; color: var(--muted); font-size: 1rem; }
.prose-note { margin-top: 1rem; color: var(--muted); font-size: 1.05rem; }
.section--alt { background: var(--paper); border-block: 3px solid var(--ink); }
.prose { max-width: 46rem; display: grid; gap: 1rem; font-size: 1.08rem; }
.prose p { color: var(--muted); }
.prose strong { color: var(--text); }
.answer {
  max-width: 50rem; padding: 1.4rem 1.6rem; border-radius: 22px;
  background: var(--paper); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--pink);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.5;
}
.answer strong { color: var(--pink-ink); }

.examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.ex { padding: 1.3rem 1.4rem; border-radius: 20px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.ex h3 { margin-bottom: .4rem; font-size: 1.2rem; font-weight: 800; font-stretch: 88%; }
.ex p { font-size: .97rem; color: var(--muted); }

.compare-wrap { overflow-x: auto; border-radius: 20px; border: 3px solid var(--ink); background: var(--paper); box-shadow: 6px 6px 0 var(--ink); }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .98rem; }
.compare th, .compare td { padding: .9rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; background: var(--cream); }
.compare thead th:nth-child(2) { color: var(--pink-ink); }
.compare tbody th { font-weight: 700; color: var(--text); }
.compare td { color: var(--muted); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.signals { display: grid; gap: .8rem; }
.signals li { display: flex; gap: .75rem; align-items: flex-start; font-size: 1.04rem; }
.signals li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-top: .05rem; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: .85rem; }

.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; counter-reset: paso; }
.process li { position: relative; padding: 1.3rem 1.3rem 1.4rem; border-radius: 20px; background: var(--paper); border: 2px solid var(--ink); counter-increment: paso; }
.process li::before { content: counter(paso); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: .9rem; border-radius: 50% 50% 50% 12%; background: var(--pink); color: #fff; font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; }
.process h3 { margin-bottom: .35rem; font-size: 1.15rem; font-weight: 800; }
.process p { font-size: .95rem; color: var(--muted); }

.faq-list { display: grid; gap: 2rem; max-width: 860px; }
.faq-list .say--client { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }

.related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.related a { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.2rem; border-radius: 18px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.related a:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--pink); }
.related strong { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; line-height: 1.15; }
.related span { font-size: .9rem; color: var(--muted); }
.related span::after { content: " →"; color: var(--pink-ink); font-weight: 800; }

@media (max-width: 1024px) {
  .examples, .process, .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .examples, .process, .related { grid-template-columns: minmax(0, 1fr); }
  .hero--page .hero__visual { min-height: 340px; }
}

/* ---------- Pie de página ---------- */
.footer { overflow: hidden; padding: 3rem 0 1.5rem; background: var(--ink); color: #CFC4D8; font-size: .95rem; }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.footer__giant {
  margin: 2.5rem 0 0; text-align: center; white-space: nowrap;
  font-family: var(--font-display); font-weight: 800; font-stretch: 78%;
  font-size: clamp(2.6rem, 12.4vw, 12rem); line-height: .85; letter-spacing: -.035em; color: var(--pink);
}
.footer__bottom { padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
  background: #25D366; color: #fff; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  transition: transform .2s ease, opacity .25s, visibility .25s;
}
.wa-float:hover { transform: translate(-2px, -2px) rotate(-8deg); }
.wa-float .i { width: 30px; height: 30px; }
.wa-float.is-hidden { opacity: 0; visibility: hidden; transform: scale(.6); }

/* ---------- Animaciones ---------- */
.hero-in { animation: rise .8s cubic-bezier(.2, .7, .2, 1) var(--delay, 0s) both; }
.hero-in--title { animation-name: rise-soft; }
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delay, 0s); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes rise-soft { from { transform: translateY(22px); } to { transform: none; } }
@keyframes window-in { from { opacity: 0; transform: translateY(40px) rotate(6deg); } to { opacity: 1; transform: rotate(2deg); } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes row-in { to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px) scale(.8) rotate(-6deg); } to { opacity: 1; transform: rotate(-3deg); } }
@keyframes bob { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

@media (max-width: 560px) {
  @keyframes window-in { from { opacity: 0; transform: translateY(30px) rotate(5deg); } to { opacity: 1; transform: rotate(1.5deg); } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; animation-delay: 0s !important; }
  .app__rows li, .toast { opacity: 1; transform: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { flex-wrap: wrap; justify-content: center; width: auto; gap: 1rem 0; padding-inline: 1rem; }
  .marquee__item[aria-hidden="true"] { display: none; }
}

/* ==========================================================
   TEMA OSCURO (predeterminado) — negro violáceo, rosa,
   violeta y brillos de luz. <html data-tema="oscuro">
   ========================================================== */
[data-tema="oscuro"] {
  --cream: #0E0A14;
  --paper: #17111F;
  --text: #F5F1F8;
  --muted: #B3A9BF;
  --line: rgba(255, 255, 255, .1);
  --pink-ink: #FF8CC0;
  --grad: linear-gradient(100deg, #FF5FA8 0%, #E84090 45%, #8B5CFF 100%);
  --grad-text: linear-gradient(95deg, #FF7AB8 0%, #F0509A 45%, #A98BFF 100%);
  --grad-deep: linear-gradient(135deg, #CC2A78 0%, #6D4AFF 100%); /* fondos con texto blanco (AA) */
  --grad-violet: linear-gradient(135deg, #A98BFF 0%, #6D4AFF 100%);
  --glow-pink: 0 18px 40px -14px rgba(232, 64, 144, .7);
  --glow-violet: 0 18px 40px -14px rgba(139, 92, 255, .7);
  color-scheme: dark;
}

/* Piezas */
[data-tema="oscuro"] .btn:hover { transform: translateY(-2px); }
[data-tema="oscuro"] .btn--primary { border-color: transparent; box-shadow: var(--glow-pink), inset 0 1px 0 rgba(255, 255, 255, .18); }
[data-tema="oscuro"] .btn--primary:hover { background: #B8216A; box-shadow: 0 22px 48px -14px rgba(232, 64, 144, .9), inset 0 1px 0 rgba(255, 255, 255, .18); }
[data-tema="oscuro"] .sticker { background: rgba(232, 64, 144, .14); color: #FFC2DE; border: 1px solid rgba(232, 64, 144, .4); box-shadow: none; }
[data-tema="oscuro"] .marker { padding: 0; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-tema="oscuro"] .eyebrow--light { color: #FF9CC9; }
[data-tema="oscuro"] .bubble-word { background: var(--grad); border: 0; box-shadow: 0 24px 60px -18px rgba(232, 64, 144, .8); }
[data-tema="oscuro"] .bubble-word::after { background: #F7559F; border-color: transparent; }

/* Encabezado */
[data-tema="oscuro"] .header.is-scrolled { background: rgba(14, 10, 20, .8); box-shadow: 0 1px 0 rgba(255, 255, 255, .07); }
[data-tema="oscuro"] .brand { color: #fff; }
[data-tema="oscuro"] .brand__name span { color: #CDBFDA; }

/* Hero */
[data-tema="oscuro"] .hero {
  background:
    radial-gradient(640px 420px at 88% 18%, rgba(139, 92, 255, .32), transparent 62%),
    radial-gradient(760px 520px at 6% -4%, rgba(232, 64, 144, .34), transparent 60%),
    radial-gradient(560px 420px at 62% 112%, rgba(232, 64, 144, .2), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 56px 56px,
    #0E0A14;
}
[data-tema="oscuro"] .hero__lead { color: #C6BCD1; }
[data-tema="oscuro"] .hero__lead strong { color: #fff; }
[data-tema="oscuro"] .scroll-cue { color: #B3A9BF; }
[data-tema="oscuro"] .blob--pink { border: 0; background: radial-gradient(circle at 32% 28%, #FF5FA8 0%, #E84090 42%, #8B5CFF 100%); box-shadow: 0 0 140px 10px rgba(232, 64, 144, .35); }
[data-tema="oscuro"] .blob--violet { border: 0; background: var(--grad-violet); box-shadow: 0 0 60px rgba(139, 92, 255, .5); }
[data-tema="oscuro"] .app-window { background: #17111F; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .9), 0 0 90px -20px rgba(232, 64, 144, .35); }
[data-tema="oscuro"] .app-window__bar { background: #1F1729; border-bottom: 1px solid rgba(255, 255, 255, .08); }
[data-tema="oscuro"] .app-window__url { background: #0E0A14; color: #B3A9BF; }
[data-tema="oscuro"] .app { color: #F5F1F8; }
[data-tema="oscuro"] .app__side { background: #0B0810; }
[data-tema="oscuro"] .app__main { background: #120D19; }
[data-tema="oscuro"] .app__title span { background: rgba(255, 122, 184, .15); color: #FF9CC9; }
[data-tema="oscuro"] .kpi, [data-tema="oscuro"] .app__chart, [data-tema="oscuro"] .app__rows li { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .08); }
[data-tema="oscuro"] .kpi small { color: #B3A9BF; }
[data-tema="oscuro"] .kpi--pink strong { color: #FF8CC0; }
[data-tema="oscuro"] .app__chart span { background: linear-gradient(180deg, #FF7AB8, #8B5CFF); }
[data-tema="oscuro"] .tag--ok { background: rgba(40, 200, 64, .16); color: #7EE2A0; }
[data-tema="oscuro"] .tag--way { background: rgba(255, 201, 60, .16); color: #FFD76E; }
[data-tema="oscuro"] .tag--new { background: rgba(255, 122, 184, .16); color: #FF9CC9; }
[data-tema="oscuro"] .hero__sticker, [data-tema="oscuro"] .cta-final__img { border: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 20px 44px -14px rgba(0, 0, 0, .7); }
[data-tema="oscuro"] .badge-spin { background: #17111F; border: 1px solid rgba(255, 255, 255, .16); box-shadow: var(--glow-violet); }
[data-tema="oscuro"] .badge-spin text { fill: #F5F1F8; }
[data-tema="oscuro"] .toast { background: rgba(26, 19, 35, .92); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
[data-tema="oscuro"] .toast__icon { background: var(--grad); }

/* Cinta y logos */
[data-tema="oscuro"] .tape__band { background: var(--grad); border-block: 0; }
[data-tema="oscuro"] .tape__track i { color: rgba(255, 255, 255, .8); }
[data-tema="oscuro"] .marquee__item { border-color: transparent; box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .7); }

/* La conversación */
[data-tema="oscuro"] .talk {
  background:
    radial-gradient(700px 420px at 12% 0%, rgba(232, 64, 144, .22), transparent 60%),
    radial-gradient(700px 480px at 92% 100%, rgba(139, 92, 255, .22), transparent 60%),
    #17111F;
  border-block: 1px solid rgba(255, 255, 255, .08);
}
[data-tema="oscuro"] .talk::before, [data-tema="oscuro"] .cta-final::before { opacity: .05; }
[data-tema="oscuro"] .say--client { background: rgba(255, 255, 255, .06); color: #F5F1F8; border: 1px solid rgba(255, 255, 255, .14); box-shadow: none; }
[data-tema="oscuro"] .say--my img { border: 0; }
[data-tema="oscuro"] .say--my p { background: var(--grad-deep); color: #fff; border: 0; box-shadow: 0 18px 40px -16px rgba(204, 42, 120, .6); }
[data-tema="oscuro"] .say--my strong { color: #fff; }

/* Qué desarrollamos */
[data-tema="oscuro"] .dev { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); box-shadow: none; }
[data-tema="oscuro"] .dev:hover { transform: translateY(-6px); border-color: rgba(169, 139, 255, .5); box-shadow: 0 30px 60px -28px rgba(139, 92, 255, .65); }
[data-tema="oscuro"] .tech-visual { background: linear-gradient(160deg, rgba(139, 92, 255, .2), rgba(232, 64, 144, .08)); border: 1px solid rgba(255, 255, 255, .08); }
[data-tema="oscuro"] .tech-visual--flow span.is-hot, [data-tema="oscuro"] .tech-visual--roles .hub { background: var(--grad); color: #fff; border-color: transparent; }

/* Marketing */
[data-tema="oscuro"] .mkt { border-top: 1px solid rgba(255, 255, 255, .08); }
[data-tema="oscuro"] .mkt-item { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); box-shadow: none; }
[data-tema="oscuro"] .mkt-item img { padding: 3px; border-radius: 16px; background: #fff; mix-blend-mode: normal; }

/* Cierre y pie */
[data-tema="oscuro"] .cta-final {
  background:
    radial-gradient(640px 420px at 0% 100%, rgba(232, 64, 144, .34), transparent 60%),
    radial-gradient(640px 440px at 100% 0%, rgba(139, 92, 255, .3), transparent 60%),
    #0E0A14;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
[data-tema="oscuro"] .cta-final .bubble-word { background: var(--grad); color: #fff; }
[data-tema="oscuro"] .cta-final .bubble-word::after { background: #F7559F; }
[data-tema="oscuro"] .cta-final__lead, [data-tema="oscuro"] .cta-final__phone { color: #C6BCD1; }
[data-tema="oscuro"] .footer { background: #08060C; }
[data-tema="oscuro"] .footer__giant { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-tema="oscuro"] .wa-float { border: 0; box-shadow: 0 14px 30px -8px rgba(37, 211, 102, .6); }

/* Enlaces a servicios y páginas de servicio */
[data-tema="oscuro"] .dev__more { color: #fff; border-bottom-color: var(--pink); }
[data-tema="oscuro"] .section--alt { background: #120D19; border-block: 1px solid rgba(255, 255, 255, .08); }
[data-tema="oscuro"] .answer { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 122, 184, .35); box-shadow: 0 24px 50px -28px rgba(232, 64, 144, .6); }
[data-tema="oscuro"] .ex, [data-tema="oscuro"] .process li, [data-tema="oscuro"] .related a { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); box-shadow: none; }
[data-tema="oscuro"] .related a:hover { border-color: rgba(255, 122, 184, .5); box-shadow: 0 20px 40px -24px rgba(232, 64, 144, .6); transform: translateY(-3px); }
[data-tema="oscuro"] .compare-wrap { background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .12); box-shadow: none; }
[data-tema="oscuro"] .compare thead th { background: rgba(255, 255, 255, .05); }
[data-tema="oscuro"] .signals li::before { background: var(--grad); color: #fff; }
[data-tema="oscuro"] .process li::before { background: var(--grad); }
