/* ============ BASE ============ */
:root {
  --bg: #0A0A0B;
  --bg-soft: #0F0F12;
  --grafito: #17181B;
  --border: rgba(245, 245, 243, 0.1);
  --text: #F5F5F3;
  --text-dim: #8A8B90;
  --rosa: #FA1A62;
  --ambar: #FFB020;
  --radius: 12px;
  --font-display: "Archivo Black", sans-serif;
  --font-body: "Archivo", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

.container { width: min(1100px, 92%); margin-inline: auto; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.rosa { color: var(--rosa); }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; letter-spacing: -0.02em; text-transform: uppercase; }

.brand-logo { height: 38px; width: auto; border-radius: 6px; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; font-size: 0.82rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; }

.nav-links a:not(.btn) { color: var(--text-dim); transition: color 0.2s; }

.nav-links a:not(.btn):hover { color: var(--text); }

.menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.3s; }
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 2px;
  font-family: var(--font-display); font-weight: 400; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.2s; cursor: pointer; border: none;
}

.btn-primary { background: var(--rosa); color: var(--bg); }
.btn-primary:hover { background: #e00c50; transform: translateY(-2px); }

.btn-ghost { border: 1px solid var(--text-dim); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }

.btn-sm { padding: 9px 18px; font-size: 0.75rem; }
.btn-block { width: 100%; }

.btn-wa { background: #25D366; color: #0A0A0B; text-align: center; }
.btn-wa:hover { background: #1EBE5A; transform: translateY(-2px); }

/* ============ FONDO ANIMADO (TORMENTA LEJANA, SOLO EN EL HERO) ============ */
/* Vive adentro de .hero (que es position:relative), no en toda la página:
   el resto del sitio se queda en negro sólido, sin bandas grises. Un
   resplandor rosa centrado que deriva despacio, y cuatro rayos que
   flashean de a uno (a veces se pisan), como una tormenta real. */
.bg-fx {
  position: absolute; inset: 0; z-index: -2;
  overflow: hidden; pointer-events: none;
}

.bg-glow {
  position: absolute; width: 76vw; height: 76vw; border-radius: 50%;
  filter: blur(70px); opacity: 0.9;
}

/* Centrado en el ancho del hero. En vertical se queda arriba (top negativo,
   no 50%): el degradado propio de .hero-bg se pone opaco mucho antes de
   llegar a la mitad de un hero tan alto, así que centrarlo en vertical lo
   dejaría prácticamente tapado. */
.bg-glow-1 {
  top: -14vh; left: 50%; transform: translate(-50%, 0);
  background: radial-gradient(circle, rgba(250, 26, 98, 0.55), transparent 70%);
  animation: driftCenter 34s ease-in-out infinite;
}

@keyframes driftCenter {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  50% { transform: translate(calc(-50% + 3vw), 4vh) scale(1.1); }
}

.bg-bolts { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Trazo grueso y sin blur: que se lea nítido y con fuerza cuando flashea. */
.bolt {
  fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0;
}

/* Cuatro formas distintas con ciclos que no son múltiplos entre sí (6.5s,
   8.3s, 5.2s, 9.7s) y arranques desfasados: los flashes caen en momentos
   impredecibles en vez de turnarse en un patrón parejo. */
.bolt-1 { stroke: var(--rosa); animation: boltFlash 6.5s ease-in-out infinite 0s; }
.bolt-2 { stroke: var(--rosa); animation: boltFlash 8.3s ease-in-out infinite 2.1s; }
.bolt-3 { stroke: var(--rosa); animation: boltFlash 5.2s ease-in-out infinite 3.6s; }
.bolt-4 { stroke: var(--rosa); animation: boltFlash 9.7s ease-in-out infinite 1.2s; }

/* Ventana de flash más larga y más brillante: un relámpago que se nota,
   con un segundo parpadeo chico (como el rebote real de un rayo). */
@keyframes boltFlash {
  0%, 80%, 100% { opacity: 0; }
  81% { opacity: 0.95; }
  83% { opacity: 0.3; }
  85% { opacity: 0.8; }
  88% { opacity: 0; }
  90% { opacity: 0.4; }
  92% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-glow { animation: none; }
  .bolt { animation: none; opacity: 0; }
}

/* En mobile el fondo pesa menos: menos blur (más barato de pintar) */
@media (max-width: 768px) {
  .bg-glow { width: 90vw; height: 90vw; filter: blur(60px); }
}

/* ============ HERO ============ */
/* min-height 92vh en vez de 100vh: con align-items:center, el sobrante de altura
   se reparte arriba y abajo del contenido y dejaba un hueco muerto bajo los stats. */
/* Con el reel adentro, el hero ya tiene altura propia: no necesita min-height
   ni centrado vertical (era lo que dejaba el hueco muerto bajo los stats). */
.hero { position: relative; padding: 130px 0 70px; }

/* La sección que sigue al hero no necesita los 100px completos:
   se sumaban al padding inferior del hero y duplicaban el espacio. */
.hero + .section { padding-top: 60px; }

/* Reel 16:9 arriba de todo. El aspect-ratio evita el salto de layout
   mientras carga el video. */
.hero-reel {
  aspect-ratio: 16/9; margin: 34px 0 34px;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.hero-reel video { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.35), var(--bg) 90%);
}

.hero-tag {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ambar); margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 0.9; text-transform: uppercase; letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-sub { max-width: 620px; color: var(--text-dim); font-size: 1.02rem; margin-bottom: 36px; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats { display: flex; gap: 44px; flex-wrap: wrap; }

.stat { display: flex; flex-direction: column; }

.stat-num {
  font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; color: var(--ambar);
}

.stat-label { color: var(--text-dim); font-size: 0.75rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; }

/* ============ SECTIONS ============ */
.section { padding: 100px 0; }

.section:nth-of-type(even) { background: var(--bg-soft); }

/* Portfolio y Edición también llevan un rayo de fondo (ver .bg-fx en el
   hero). Un <section> con su propio background-color siempre pinta encima
   de sus hijos con z-index negativo — por eso acá el color sólido que antes
   ponía nth-of-type se mueve a .section-bg-solid (z:-1), quedando en el
   mismo nivel que el rayo (z:-2) en vez de taparlo. El ID pisa la regla de
   arriba porque tiene más especificidad. */
#portfolio, #edicion { background: none; position: relative; overflow: hidden; }
#portfolio .section-bg-solid, #edicion .section-bg-solid { position: absolute; inset: 0; z-index: -1; }
#portfolio .section-bg-solid { background: var(--bg); }
#edicion .section-bg-solid { background: var(--bg-soft); }

.section-kicker {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--rosa); margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.02; text-transform: uppercase; letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc { color: var(--text-dim); max-width: 640px; margin-bottom: 40px; }

/* ============ WORKFLOW ============ */
.wf { display: grid; grid-template-columns: minmax(220px, 280px) auto 1fr; gap: 28px; align-items: center; }

.wf-badge {
  display: block; margin-bottom: 14px;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-dim);
}

.wf-input {
  position: relative; overflow: hidden;
  background: var(--grafito); border: 1px solid var(--rosa); border-radius: var(--radius);
  padding: 26px 24px;
}

/* ---- Foto que aparece por fundido con un zoom que se relaja ----
   La imagen entra escalada 1.12 y vuelve a 1: el movimiento sigue corriendo
   después de que terminó el fundido, que es lo que lo hace ver caro.
   El velo la oscurece para que el texto encima se siga leyendo. */
.wf-shot {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.12);
  transition: opacity 0.55s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Velo suave: como el texto además se atenúa al 50%, no hace falta tapar
   tanto la foto para que se siga leyendo. */
.wf-veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.15), rgba(10, 10, 11, 0.55));
  opacity: 0; transition: opacity 0.55s ease;
}

/* El contenido va por encima de la foto y del velo */
.wf-input > .wf-badge,
.wf-input > .wf-num,
.wf-input > h3,
.wf-input > p,
.wf-card > h3,
.wf-card > p {
  position: relative; z-index: 2;
  transition: opacity 0.45s ease, text-shadow 0.45s ease;
}

/* Cuando entra la foto se va todo menos el título, que queda solo encima de
   la imagen. La sombra lo despega del fondo sin tener que oscurecer la foto. */
.wf-input:hover > .wf-badge,
.wf-input:hover > .wf-num,
.wf-input:hover > p,
.wf-card:hover > p { opacity: 0; }

.wf-input:hover > h3,
.wf-card:hover > h3 {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.85);
}

.wf-input:hover .wf-shot,
.wf-card:hover .wf-shot { opacity: 1; transform: scale(1); }

.wf-input:hover .wf-veil,
.wf-card:hover .wf-veil { opacity: 1; }

/* En touch no existe el hover: si dependiera de él, en el celular la demo
   no se vería nunca. Ahí queda directo el estado "foto visible". */
@media (hover: none) {
  .wf-shot { opacity: 1; transform: none; }
  .wf-veil { opacity: 1; }

  .wf-input > .wf-badge,
  .wf-input > .wf-num,
  .wf-input > p,
  .wf-card > p { opacity: 0; }

  .wf-input > h3,
  .wf-card > h3 {
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.85);
  }
}

.wf-num {
  display: block; font-family: var(--font-display); font-size: 3.4rem;
  line-height: 1; color: var(--rosa); margin-bottom: 6px;
}

.wf-input h3 {
  font-family: var(--font-display); font-weight: 400; font-size: 1rem;
  text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 8px;
}

.wf-input p { color: var(--text-dim); font-size: 0.88rem; }

.wf-arrow { font-size: 2rem; color: var(--rosa); line-height: 1; }

.wf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }

.wf-card {
  position: relative; overflow: hidden;
  background: var(--grafito); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; transition: border-color 0.25s, transform 0.25s;
}

.wf-card:hover { border-color: var(--rosa); transform: translateY(-3px); }

.wf-card h3 {
  font-family: var(--font-display); font-weight: 400; font-size: 0.92rem;
  text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 8px;
}

.wf-card p { color: var(--text-dim); font-size: 0.86rem; }

.wf-kicker {
  margin-top: 40px; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.3;
}

.wf-cta { margin-top: 28px; }

/* ============ CARDS ============ */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }

.card {
  position: relative; overflow: hidden;
  background: var(--grafito); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: transform 0.25s, border-color 0.25s;
}

.card:hover { transform: translateY(-4px); border-color: var(--rosa); }

.card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1rem; text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 8px; }

.card p { color: var(--text-dim); font-size: 0.92rem; }

/* ---- Rayo magenta que se dibuja al pasar por arriba ----
   Mismo gesto que las fotos del workflow, pero en SVG: arranca en el frame
   exacto del hover, pesa nada y queda nítido a cualquier tamaño.
   El rayo es la marca — el logo lleva uno atravesando la B. */
.card-fx {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0; transition: opacity 0.4s ease;
}

/* Resplandor que sube desde abajo, detrás del rayo */
.card-fx::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 85% at 50% 115%, rgba(250, 26, 98, 0.38), transparent 68%);
}

.card-fx svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* :is(:hover, .in-focus) — .in-focus la pone y saca un IntersectionObserver
   en script.js mientras la card está centrada en pantalla (no tiene hover).
   Se prende y se apaga con el scroll, igual que el mouse entra y sale en
   desktop: el párrafo se esconde, el rayo se dibuja, y vuelve al pasar de largo. */
.card:is(:hover, .in-focus) .card-fx { opacity: 1; }

/* Todo lo que se transforma lo hace alrededor de su propia caja, no del
   sistema de coordenadas del SVG entero. */
.card-fx path { transform-box: fill-box; transform-origin: center; }

/* --- Trazo que se dibuja ---
   pathLength="1" normaliza el largo del path, así el dash va de 1 a 0 sin
   tener que medir nada a mano. */
.fx-draw, .fx-cut {
  fill: none; stroke: var(--rosa); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:is(:hover, .in-focus) .fx-draw, .card:is(:hover, .in-focus) .fx-cut { stroke-dashoffset: 0; }

/* El corte es más finito y punteado, para que se lea como un tijeretazo */
.fx-cut { stroke-width: 1.5; stroke-dasharray: 0.04 0.03; opacity: 0.85; }
.card:is(:hover, .in-focus) .fx-cut { animation: cutIn 0.45s ease 0.35s both; }

@keyframes cutIn { from { opacity: 0; } to { opacity: 0.85; } }

/* --- Bloque que aparece --- */
.fx-pop {
  fill: var(--rosa); stroke: none;
  opacity: 0; transform: scale(0.55);
  transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:is(:hover, .in-focus) .fx-pop { opacity: 1; transform: none; }

/* --- Cabezal que barre la línea de tiempo --- */
.fx-play {
  fill: none; stroke: var(--rosa); stroke-width: 2;
  opacity: 0; transform: translateX(20px);
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1) 0.35s, opacity 0.25s ease 0.35s;
}

.card:is(:hover, .in-focus) .fx-play { opacity: 1; transform: translateX(178px); }

/* --- Líquido que llena la botella ---
   Va en dos capas: el <g> de afuera sube por traslación (nada de escalar, que
   es lo que hacía que la superficie se estirara desde el centro), y la onda de
   adentro se mece con su propia animación. Separarlas es lo que permite que
   las dos cosas pasen a la vez sobre la misma forma. */
.fx-liquid {
  transform: translateY(56px);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}

.card:is(:hover, .in-focus) .fx-liquid { transform: translateY(0); }

.fx-wave { fill: var(--rosa); stroke: none; opacity: 0.8; }

/* El vaivén es de 44px, que es exactamente un período de la onda: así el
   desplazamiento no se nota como un corte. */
.card:is(:hover, .in-focus) .fx-wave { animation: sway 3.4s ease-in-out infinite; }

@keyframes sway {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-44px); }
}

/* --- Likes que flotan hacia arriba --- */
.fx-float {
  fill: var(--rosa); stroke: none;
  opacity: 0; transform: translateY(16px) scale(0.7);
  transition: opacity 0.5s ease, transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:is(:hover, .in-focus) .fx-float { opacity: 1; transform: translateY(-8px) scale(1); }

/* --- Long form → Shorts: los costados se cortan y caen, queda el del medio ---
   Va con keyframes y no con transition porque necesita tres tiempos:
   aparecer, esperar el corte, y recién ahí irse. */
.fx-away-l, .fx-away-r, .fx-keep { fill: var(--rosa); stroke: none; opacity: 0; }

.card:is(:hover, .in-focus) .fx-away-l { animation: dropL 1.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.card:is(:hover, .in-focus) .fx-away-r { animation: dropR 1.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.card:is(:hover, .in-focus) .fx-keep { animation: keepIt 1.5s cubic-bezier(0.22, 1, 0.36, 1) both; }

@keyframes dropL {
  0%, 20% { opacity: 0; }
  35%, 52% { opacity: 0.45; transform: none; }
  100% { opacity: 0; transform: translate(-16px, 30px) rotate(-14deg); }
}

@keyframes dropR {
  0%, 20% { opacity: 0; }
  35%, 52% { opacity: 0.45; transform: none; }
  100% { opacity: 0; transform: translate(16px, 30px) rotate(14deg); }
}

@keyframes keepIt {
  0%, 20% { opacity: 0; transform: none; }
  35%, 60% { opacity: 0.45; transform: none; }
  100% { opacity: 1; transform: scale(1.12); }
}

/* Escalona las capas de cada animación */
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.32s; }
.d4 { transition-delay: 0.44s; }
.d5 { transition-delay: 0.56s; }

/* El texto va por encima, y el párrafo se va cuando entra el rayo */
.card > h3, .card > p {
  position: relative; z-index: 1;
  transition: opacity 0.45s ease, text-shadow 0.45s ease;
}

.card:is(:hover, .in-focus) > p { opacity: 0; }

.card:is(:hover, .in-focus) > h3 { text-shadow: 0 2px 16px rgba(0, 0, 0, 0.95); }

.portfolio-card { padding: 12px; }

/* Cuadrado por defecto: cualquier formato (reel vertical, banner horizontal,
   placa 1:1) recorta decente a 1:1 y la grilla queda pareja. */
.portfolio-media { border-radius: 8px; overflow: hidden; margin-bottom: 14px; aspect-ratio: 1/1; }

.portfolio-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }

.portfolio-card:hover .portfolio-media img { transform: scale(1.06); }

/* Grilla del portfolio. El tope de 260px es lo que evita que los reels
   verticales (9:16) se estiren a media pantalla cuando hay pocos: sin él,
   tres cards se reparten los 1100px del container y quedan de 600px de alto.
   Centrada, así 3 o 4 cards se ven igual de deliberadas. */
.grid-works {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 260px));
  justify-content: center;
}

/* Para un reel vertical, agregale la clase "vertical" al .portfolio-media */
.portfolio-media.vertical { aspect-ratio: 9/16; }

.portfolio-media video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }

.badge {
  display: inline-block; margin-top: 10px; padding: 4px 12px; border-radius: 2px;
  background: var(--rosa); color: var(--bg);
  font-size: 0.68rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em;
}

/* Adentro de .portfolio-meta el margen ya lo pone el wrapper */
.portfolio-meta .badge { margin-top: 0; }

/* Trabajo real de cliente: contorno ámbar en vez de relleno rosa, para que
   se distinga de un vistazo de las piezas "Demo · UGC con IA". */
.badge-cliente {
  background: transparent; color: var(--ambar); border: 1px solid var(--ambar);
}

/* Badge + link a Instagram (cuando la pieza está publicada de verdad) en la
   misma fila, así se ve de un vistazo que existe y se puede ir a ver. */
.portfolio-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; }

.portfolio-ig {
  font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-dim); text-decoration: none; border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.portfolio-ig:hover { color: var(--rosa); border-color: var(--rosa); }

/* ============ SOBRE MÍ ============ */
.about { position: relative; }

.about-card { max-width: 640px; }

.about-card p { color: var(--text-dim); margin-bottom: 14px; }

.about-lema {
  font-family: var(--font-display); font-weight: 400; font-size: 1.5rem;
  text-transform: uppercase; letter-spacing: -0.02em; color: var(--rosa) !important;
  margin: 26px 0 0 !important;
}

.about-list { list-style: none; margin-top: 18px; display: grid; gap: 10px; }

.about-list li { color: var(--text); font-size: 0.95rem; }

/* ============ FORM ============ */
.form { max-width: 640px; display: grid; gap: 18px; }

.btn-wa.btn-block { max-width: 640px; }

.form-alt {
  max-width: 640px; text-align: center; color: var(--text-dim);
  font-size: 0.75rem; font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin: 18px 0;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-field { display: grid; gap: 8px; }

.form-field label { font-size: 0.72rem; color: var(--text-dim); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; }

.form-field input, .form-field textarea {
  background: var(--grafito); border: 1px solid var(--border); border-radius: 8px;
  padding: 13px 16px; color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.2s; resize: vertical;
}

.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--rosa); }

.form-ok { color: var(--ambar); font-size: 0.9rem; }

.form-error { color: var(--rosa); font-size: 0.9rem; }

#formBtn:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--border); padding: 50px 0; background: var(--bg-soft); text-align: center; }

.footer-inner { display: grid; gap: 16px; justify-items: center; }

.footer-inner .brand-text { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; text-transform: uppercase; }

.footer-inner p { color: var(--text-dim); font-size: 0.9rem; }

/* Tira de logos de clientes: chica y discreta, separada del resto del
   footer con su propia línea. En escala de grises hasta que pasás el mouse. */
.clients-strip {
  width: 100%; max-width: 720px;
  padding-bottom: 34px; margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.clients-label {
  font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 20px;
}

.clients-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 34px; }

.clients-logos img {
  height: 26px; width: auto; opacity: 0.55;
  transition: opacity 0.2s;
}

.clients-logos img:hover { opacity: 1; }

.socials { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }

.socials a { color: var(--text-dim); font-size: 0.82rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; transition: color 0.2s; }

.socials a:hover { color: var(--rosa); }

.footer-copy { font-size: 0.8rem !important; opacity: 0.6; }

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(10, 10, 11, 0.94);
}

.lightbox[hidden] { display: none; }

.lightbox img { max-width: 90%; max-height: 85vh; border-radius: 8px; }

.lightbox-close {
  position: absolute; top: 22px; right: 28px; background: none; border: none;
  color: var(--text); font-size: 1.6rem; cursor: pointer;
}

/* ============ ANIMACIONES ============ */
/* Curva "expo out": sale rápido y frena suave. Es la que le da el aire caro
   al movimiento — una curva lineal se nota barata enseguida. */
/* El reveal usa `translate` y no `transform` a propósito: las cards ya usan
   `transform` para el levantón del hover, y como `.reveal-up.visible` viene
   más abajo en el archivo con la misma especificidad que `.card:hover`, se lo
   comía. Son propiedades independientes que el browser compone, así que cada
   animación corre por su carril y con su propia duración. */
.reveal-up {
  opacity: 0; translate: 0 28px;
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              translate 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up.visible { opacity: 1; translate: none; }

/* Revelado por palabra: cada palabra es una ventana con overflow oculto y el
   span de adentro sube desde abajo. El padding/margin compensado da lugar a
   las colas de la g y la y, que si no quedan cortadas por la máscara. */
.word {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding-bottom: 0.14em; margin-bottom: -0.14em;
}

.word-i {
  display: inline-block; transform: translateY(115%);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-text.visible .word-i { transform: none; }

/* Cifras de ancho fijo: evita el temblequeo mientras el contador sube */
.stat-num { font-variant-numeric: tabular-nums; }

/* Accesibilidad: si el sistema pide menos movimiento, se muestra todo quieto */
@media (prefers-reduced-motion: reduce) {
  .reveal-up, .reveal-text .word-i {
    opacity: 1 !important; translate: none !important;
    transform: none !important; transition: none !important;
  }
  .wf-shot { opacity: 1 !important; transform: none !important; }
  .wf-veil { opacity: 1 !important; }
  .card-fx { display: none !important; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .menu-btn { display: block; }
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 6px; padding: 18px;
    background: rgba(10, 10, 11, 0.97); border-bottom: 1px solid var(--border);
    transform: translateY(-130%); transition: transform 0.3s;
  }
  .nav-links.open { transform: none; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .hero { padding: 120px 0 50px; min-height: auto; }
  .hero + .section { padding-top: 50px; }
  .hero-stats { gap: 26px; }

  /* El flujo pasa de horizontal a vertical: input arriba, flecha abajo, outputs al final */
  .wf { grid-template-columns: 1fr; gap: 20px; }
  .wf-arrow { transform: rotate(90deg); justify-self: center; }

  /* Portfolio y Edición en carrusel horizontal: en vez de una columna larga
     de videos, se desliza con el dedo. El -4vw/4vw es matemática exacta del
     "width: min(1100px, 92%)" de .container: en mobile eso deja 4vw de
     margen de cada lado, y este negativo lo cancela para que el carrusel
     llegue hasta el borde real de la pantalla (y se asome el próximo video). */
  .grid-works {
    display: flex; flex-wrap: nowrap;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: -4vw; padding: 4px 4vw 10px;
  }
  .grid-works::-webkit-scrollbar { display: none; }
  .grid-works > .portfolio-card {
    flex: 0 0 auto; width: 80vw; max-width: 320px;
    scroll-snap-align: center;
  }
}