/* Propuesta de rebranding (2026-11-17): fondo blanco, todo en un solo azul #3B9EFF,
   titulares en Pixelify Sans adelgazada y el despegue de puntos del banner de X.
   Se carga encima de styles.css y theme-black.css solo en propuesta-blanca.html. */
/* Pixelify Sans guardada en la propia web (la CSP no permite Google Fonts). Licencia OFL. */
@font-face{font-family:"Pixelify Sans";font-style:normal;font-weight:400;font-display:swap;src:url("/media/fuentes/pixelify-sans-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root {
  --blue: #3b9eff;
  --accent: #3b9eff;
  --dot: 59, 158, 255;
  --muted: #8aa9c7;
  --line: rgba(59, 158, 255, 0.18);
}
html, body::before { background: #fff !important; }
body { color: #3b9eff; }
#dots { display: none; } /* fondo blanco liso, sin malla animada (Leo, 2026-11-19) */

.site-header { background: rgba(255, 255, 255, 0.7) !important; }
.logo { color: var(--blue) !important; display: inline-flex; align-items: center; gap: .6rem; }
.logo span { color: var(--muted) !important; }
.logo-avatar { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff; object-fit: cover; }

/* Titulares: tipografía pixel, delgada, un solo azul */
.hero h1, .about h2, .closing h2 {
  font-family: "Pixelify Sans", monospace !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em !important;
  background: none !important;
  color: var(--blue) !important;
  -webkit-text-fill-color: var(--blue) !important;
  -webkit-text-stroke: 0.022em #fff;
  paint-order: fill;
}
.hero { position: relative; }
.hero-sub { color: #6f9cc9 !important; }
/* Hero como el banner de X: despegue a la izquierda, texto alineado a la derecha */
.hero { position: relative; min-height: min(78vh, 760px); display: flex; flex-direction: column; justify-content: center; align-items: flex-end; text-align: right; }
.hero h1, .hero .hero-sub { margin-left: auto !important; margin-right: 0 !important; text-align: right !important; }
.hero h1 { max-width: 13.5ch !important; }
.hero-sub { max-width: 34ch !important; }
.hero .hero-cta { align-self: flex-end; width: auto !important; }
.hero-scene {
  position: absolute; z-index: -1; left: -160px; bottom: -3rem; width: 1100px; max-width: none; height: auto; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 52%, transparent 72%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 52%, transparent 72%);
}
@media (max-width: 820px) {
  .hero { align-items: center; text-align: center; min-height: 0; padding-bottom: 18rem; }
  .hero h1, .hero .hero-sub { margin: 0 auto !important; text-align: center !important; }
  .hero .hero-cta { align-self: center; }
  /* el cohete está al 32,7 % del ancho de la imagen: así queda centrado; 600 px de ancho para que no tape «Get in touch» */
  .hero-scene { left: 50%; transform: translateX(-32.7%); width: 600px; bottom: -2rem; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 60%, transparent 85%); mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 60%, transparent 85%); }
}

/* Botones: borde azul fino, texto azul */
.header-cta { color: var(--blue) !important; background: #fff !important; border-color: var(--line) !important; box-shadow: 0 0 0 1px rgba(59,158,255,.35) inset !important; }
.cta-glow { display: none !important; }

/* Píldoras y etiquetas */
.kicker span, .clients-pill span, .clients-label span { color: var(--blue) !important; background: none !important; -webkit-text-fill-color: var(--blue) !important; }
.clients-pill, .kicker { background: rgba(59,158,255,.06) !important; border-color: var(--line) !important; box-shadow: none !important; }
.clients-row, .clients-row * { border-color: var(--line) !important; }
.clients-glow { display: none !important; }
.client img { filter: brightness(0) saturate(100%) invert(56%) sepia(64%) saturate(2180%) hue-rotate(191deg) brightness(101%) contrast(101%) !important; opacity: .75; }
.client span, .clients-caption span { color: var(--blue) !important; }

/* Tarjetas */
.card-media { background: #eef6ff !important; }
.card-title, .card-tag, .card-bar, .card-bar * { color: var(--blue) !important; }
.card-bar { border-color: var(--line) !important; background: #fff !important; }

/* Textos del final */
.about h2 { color: var(--blue) !important; }
.about p, .about li, .about-grid p, .about-grid li { color: #6f9cc9 !important; }
.about h3 { color: var(--blue) !important; }
.about a { color: var(--blue) !important; }
.site-footer, .site-footer * { color: var(--muted) !important; }

/* Desenfoques y fundidos: a blanco en vez de negro */
body > .edge-blur::after { background: linear-gradient(rgba(255,255,255,0) 0%, rgba(255,255,255,.35) 55%, rgba(255,255,255,.85) 100%) !important; }
.top-blur::after { background: linear-gradient(rgba(255,255,255,.85), rgba(255,255,255,0)) !important; }
.card { background: #fff !important; box-shadow: inset 0 0 0 1px rgba(59,158,255,.18) !important; }
.card-meta { background: #fff !important; color: var(--blue) !important; box-shadow: inset 0 1px 0 rgba(59,158,255,.18) !important; }
.card-tag { color: #8aa9c7 !important; }

/* Nota junto al cursor y reproductor */
.cursor-note .note-pill, .cursor-pill span { background: #fff !important; color: var(--blue) !important; border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(59,158,255,.15) !important; }
.player { background: rgba(255,255,255,.92) !important; }
.player-info, .player-info * { color: var(--blue) !important; }

/* Textos que el JS pinta hacia blanco: en la versión blanca terminan en azul */
.hero-sub .word { color: #6f9cc9 !important; }
.type-char.on { color: #6f9cc9 !important; -webkit-text-fill-color: #6f9cc9 !important; }
.about-grid li span { color: var(--blue) !important; }
.work-kicker span, .kicker span { color: var(--blue) !important; opacity: 1 !important; }
@keyframes type-in-blue { from { color: #3b9eff; } to { color: #6f9cc9; } }
.type-char.on { animation-name: type-in-blue !important; }
.about h2 { -webkit-text-stroke: 0 !important; font-size: 1.05rem !important; }

/* Sin sombras (pedido de Leo, 2026-11-18): en blanco no quedan bien. Se mantienen solo los bordes finos hechos con sombra interior de 1 px. */
*, *::before, *::after { box-shadow: none !important; text-shadow: none !important; }
.cta-glow { display: none !important; }
.header-cta { filter: none !important; }
.card { box-shadow: inset 0 0 0 1px rgba(59,158,255,.18) !important; }
.card-meta { box-shadow: inset 0 1px 0 rgba(59,158,255,.18) !important; }
.cursor-note .note-pill, .cursor-pill span { box-shadow: none !important; }
/* Refuerzo: las capas ::before/::after de los botones traían sombras con selectores más específicos. */
html body [class][class][class], html body [class][class][class]::before, html body [class][class][class]::after,
html body [class]::before, html body [class]::after { box-shadow: none !important; text-shadow: none !important; }
html body .header-cta.header-cta.header-cta { box-shadow: inset 0 0 0 1px rgba(59,158,255,.35) !important; }
html body .card.card.card { box-shadow: inset 0 0 0 1px rgba(59,158,255,.18) !important; }
html body .card-meta.card-meta.card-meta { box-shadow: inset 0 1px 0 rgba(59,158,255,.18) !important; }
/* Interior animado de los botones al pasar el cursor (2026-11-18, pedido de Leo): la mancha oscura que se movía detrás del texto ahora es blanca. */
html body .header-cta.header-cta::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(45% 90% at var(--g1) var(--g1y), #fff 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(40% 80% at var(--g3) var(--g3y), #fff 0%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(55% 120% at var(--g2) var(--g2y), #8fd6fb 0%, rgba(143, 214, 251, 0) 70%),
    linear-gradient(180deg, #fdfeff 0%, #e6f5fe 100%) !important;
}
/* Titular oculto hasta que hero-digital.js lo arma en bloques (solo con JS; sin JS se ve normal). */
html.js .hero h1 { visibility: hidden; }
html.js .hero h1.hd-ready { visibility: visible; }
@media (prefers-reduced-motion: reduce) { html.js .hero h1 { visibility: visible; } }
/* Nota junto al cursor («Ready to work together?»): el texto venía blanco del tema negro y no se leía; va en el azul de la web. */
html body .cursor-note .note-text { color: #3b9eff !important; -webkit-text-fill-color: #3b9eff !important; }
/* Tarjetas de proyecto (2026-11-18, pedido de Leo): al pasar el cursor, trazo y luz suave en el azul de la marca por detrás,
   para que se note cuál está seleccionada. Selector reforzado para ganarle al «sin sombras». */
html body .card.card.card.card { transition: transform 160ms var(--ease-out), box-shadow 380ms cubic-bezier(.22,1,.36,1) !important; }
@media (hover: hover) {
  html body .card.card.card.card:hover {
    box-shadow: 0 0 0 1.5px #3b9eff, 0 0 0 6px rgba(59,158,255,.10), 0 14px 44px -10px rgba(59,158,255,.45) !important;
  }
}
html body .card.card.card.card:focus-visible {
  box-shadow: 0 0 0 1.5px #3b9eff, 0 0 0 6px rgba(59,158,255,.14), 0 14px 44px -10px rgba(59,158,255,.45) !important; outline: none;
}
/* Hover de tarjetas suave (2026-11-18, Leo: «no de golpe»): el crecimiento y el trazo con luz entran y salen lento, con la misma curva. */
html body .card.card.card.card { transition: transform 700ms cubic-bezier(.22,1,.36,1), box-shadow 700ms cubic-bezier(.22,1,.36,1) !important; will-change: transform; }
html body .card.card.card.card:active { transition-duration: 160ms !important; }
/* Sección de números con San Francisco en puntos (2026-11-18) */
.stats { position: relative; margin: 6rem auto 2rem; padding: 3rem 1.5rem calc(min(560px, 86vw) + 2rem); max-width: 1200px; text-align: center; }
.stats .sf-scene { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(1400px, 100vw); height: auto; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%); }
.stats-kicker { margin: 0 auto 2.25rem !important; }
.stats-row { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: clamp(2rem, 7vw, 6.5rem); flex-wrap: wrap; }
.stats-row li { display: flex; flex-direction: column; align-items: center; gap: .55rem; min-width: 10rem; }
.stat-num { font-family: 'Switzer', 'SF Pro Display', system-ui, sans-serif; font-weight: 600; font-size: clamp(2.8rem, 5.6vw, 4.8rem); line-height: 1; color: #3b9eff; -webkit-text-stroke: 0 !important; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.stat-label { font: 500 .78rem/1.2 "SF Mono", ui-monospace, Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; color: #6f9cc9; }
@media (max-width: 820px) { .stats { padding-bottom: calc(86vw + 2rem); } .stats-row { gap: 2.2rem; } }

.stats .globe-scene { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(560px, 86vw); height: auto; aspect-ratio: 1; pointer-events: none; }
/* Hover de tarjetas, 2ª ronda (Leo: «se prende de golpe»): curva pareja (arranca lento, no explota al inicio) y más larga.
   Incluye la línea de luz del borde que viene del tema negro (::after), que se encendía en 0,32 s. */
html body .card.card.card.card { transition: transform 1s cubic-bezier(.45,0,.25,1), box-shadow 1.1s cubic-bezier(.45,0,.25,1) !important; }
html body .card.card.card.card::after { transition: opacity 1.1s cubic-bezier(.45,0,.25,1) !important; }
html body .card.card.card.card:active { transition-duration: 160ms !important; }
/* Hover de tarjetas, 3ª ronda (Leo): el trazo y la luz entran por OPACIDAD, no de golpe. Antes iban de «none» a la sombra,
   y el navegador hacía crecer el grosor del trazo (se veía prendido al instante). Ahora la misma sombra existe siempre
   con color transparente y al pasar el cursor solo sube el alfa. El crecimiento es un poco más rápido y suave. */
html body .card.card.card.card {
  box-shadow: 0 0 0 1.5px rgba(59,158,255,0), 0 0 0 6px rgba(59,158,255,0), 0 14px 44px -10px rgba(59,158,255,0) !important;
  transition: transform 600ms cubic-bezier(.25,.8,.25,1), box-shadow 900ms cubic-bezier(.4,0,.2,1) !important;
}
@media (hover: hover) {
  html body .card.card.card.card:hover {
    box-shadow: 0 0 0 1.5px rgba(59,158,255,1), 0 0 0 6px rgba(59,158,255,.10), 0 14px 44px -10px rgba(59,158,255,.45) !important;
  }
}
html body .card.card.card.card::after { transition: opacity 900ms cubic-bezier(.4,0,.2,1) !important; }
html body .card.card.card.card:active { transition-duration: 160ms !important; }
/* Reproductor (2026-11-18, pedido de Leo): la caja del video en el azul de la marca y los textos en blanco. El botón queda blanco con texto azul. */
html body .player .player-plate { background: #3b9eff !important; }
html body .player .player-info, html body .player .player-info *:not(.header-cta):not(.header-cta *) { color: #fff !important; -webkit-text-fill-color: #fff !important; }
html body .player .player-info .info-tag { opacity: .82; }
html body .player .player-info a:not(.header-cta) { color: #fff !important; text-decoration-color: rgba(255,255,255,.5); }
html body .player .player-info kbd { border-color: rgba(255,255,255,.45) !important; background: transparent !important; }
html body .player .player-info .header-cta, html body .player .player-info .header-cta * { color: #3b9eff !important; -webkit-text-fill-color: #3b9eff !important; }

/* Páginas de proyecto (/work/…) en el tema blanco (2026-11-19, al pasar la web a blanco) */
html body.work-page .work-title{background:none!important;-webkit-background-clip:border-box;background-clip:border-box;color:#3b9eff!important;-webkit-text-fill-color:#3b9eff!important;font-family:"Pixelify Sans",monospace!important;font-weight:400!important;letter-spacing:0!important;-webkit-text-stroke:.022em #fff}
html body.work-page .work-crumb a,html body.work-page .work-tag,html body.work-page .work-facts dt,html body.work-page .work-more h2,html body.work-page .more-tag{color:#6f9cc9!important}
html body.work-page .work-crumb a:hover{color:#3b9eff!important}
html body.work-page .work-about{color:#4a6f96!important}
html body.work-page .work-facts dd,html body.work-page .work-facts a{color:#3b9eff!important}
html body.work-page .work-facts div{box-shadow:inset 0 -1px 0 #dbe8f7!important}
html body.work-page .work-facts div:first-child{box-shadow:inset 0 1px 0 #dbe8f7,inset 0 -1px 0 #dbe8f7!important}
html body.work-page .work-more a{background:#fff!important;color:#3b9eff!important;box-shadow:inset 0 0 0 1px #dbe8f7!important}
html body.work-page .more-meta{box-shadow:inset 0 1px 0 #dbe8f7!important}
html body.work-page .work-more a:hover{box-shadow:inset 0 0 0 1px #3b9eff!important}

/* Etiquetas («Trusted by teams at», «Launch videos…», «Selected motion work…»): píldora azul llena y texto blanco,
   para que destaquen sobre el blanco (Leo, 2026-11-19). Logos de clientes con su opacidad completa. */
html body .clients-pill, html body .kicker { background: #3b9eff !important; border-color: #3b9eff !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html body .clients-pill::before, html body .clients-pill::after, html body .kicker::before, html body .kicker::after { display: none !important; }
html body .kicker span, html body .clients-pill > span { color: #fff !important; -webkit-text-fill-color: #fff !important; background: none !important; animation: none !important; opacity: 1 !important; }
html body .client img { opacity: 1 !important; }

/* Celular: el canvas del cohete (hero-scene) sobresalía y ensanchaba la página a ~680 px (scroll lateral). Se recorta. */
html { overflow-x: clip; }
html body .hero { overflow-x: clip; }

/* Celular: el nombre en una sola línea; «Visualz» se oculta en pantallas angostas para dejar sitio a «Get in touch». */
html body .logo { white-space: nowrap; }
html body .logo span { margin-left: 0 !important; }
@media (max-width: 30rem) {
  html body .logo { font-size: .95rem !important; gap: .5rem; }
  html body .logo span { display: none !important; }
  html body .logo-avatar { width: 26px; height: 26px; }
}

/* ===== Revisión móvil (2026-11-19) ===== */
/* 1. Desenfoques de borde: en pantallas chicas o en horizontal tapaban hasta media pantalla (14rem abajo, 9,5rem arriba). */
@media (max-width: 48rem), (max-height: 32rem) {
  html body > .edge-blur { height: min(14rem, 16vh) !important; }
  html body .top-blur { height: min(9.5rem, 12vh) !important; }
}
/* 2. Encabezado en pantallas de 360 px o menos: nombre y «Get in touch» chocaban o se salían. */
@media (max-width: 22.5rem) {
  html body .logo { font-size: .8rem !important; gap: .4rem; }
  html body .site-header-inner { gap: .75rem; }
  html body .logo-avatar { width: 22px; height: 22px; }
  html body .header-cta { font-size: .78rem !important; padding-left: .8rem !important; padding-right: .8rem !important; }
}
/* 3. Enlaces de texto con zona de toque más alta (≥ 40 px) sin mover el diseño. */
@media (pointer: coarse) {
  #contact a, .work-crumb a, .work-facts a, .site-header .logo { position: relative; }
  #contact a::after, .work-crumb a::after, .work-facts a::after, .site-header .logo::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 40px; transform: translateY(-50%); }
  #contact p { margin-top: .35rem; margin-bottom: .35rem; }
}
/* 4. Etiquetas en mayúsculas de 10 px: a 11 px en el celular (vertical u horizontal) para que se lean. */
@media (max-width: 48rem), (pointer: coarse) {
  html body .aw-tag, html body .more-tag, html body .clients-pill > span { font-size: 11px !important; }
}
/* 5. Espacios entre secciones parejos (medidos): logos→números era 195 px y globo→trabajos 32 px.
      Objetivo: 80 px en celular y 120 px en compu, igual que botones→«Featured work». */
html body .stats { margin-top: -67px !important; }
html body .work { margin-top: 120px !important; }
@media (max-width: 820px) {
  html body .stats { margin-top: -75px !important; }
  html body .work { margin-top: 80px !important; }
}

/* 20 nov (Leo): en compu la nube del cohete se cortaba en seco en el borde izquierdo del hero. Era el recorte
   lateral (overflow-x: clip) puesto para el celular; en compu basta el de <html>. Además el borde izquierdo
   ahora se difumina en diagonal (dos máscaras que se intersecan: diagonal a la izquierda, la de siempre a la derecha). */
@media (min-width: 821px) {
  html body .hero { overflow-x: visible; }
  .hero-scene {
    -webkit-mask-image: linear-gradient(62deg, transparent 4%, #000 26%), linear-gradient(90deg, #000 52%, transparent 72%);
    mask-image: linear-gradient(62deg, transparent 4%, #000 26%), linear-gradient(90deg, #000 52%, transparent 72%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
}
