/* =============================================================
   Duma Creativa — web v2
   Marca: paleta Noche + Urbanist (ver marca/manual-de-marca.html)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --hueso: #F1EEE8;
  --papel: #FAF8F4;
  --blanco: #FFFFFF;
  --pintura: #3A70C4;   /* azul de la pintura de la portada (de la familia del noche, más claro para que se vea sobre el video) */
  --tinta: #16181D;
  --noche: #23395B;
  --arena: #D5CCBD;
  --gris: #5C5F66;
  --linea: rgba(22, 24, 29, 0.14);
  --linea-clara: rgba(241, 238, 232, 0.18);

  --sans: "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 16px;
  --max: 1440px;
  --radius: 18px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset y base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; line-height: 1.04; letter-spacing: -0.02em; }
::selection { background: var(--noche); color: var(--hueso); }
:focus-visible { outline: 2px solid var(--noche); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilidades
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 999;
  padding: .6rem 1rem; background: var(--tinta); color: var(--hueso); border-radius: 8px;
}
.skip-link:focus { top: 1rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.label {
  font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gris);
}
.label-light { color: rgba(241, 238, 232, .6); }
.section-title { margin-top: .6rem; font-size: clamp(2.4rem, 7vw, 5.2rem); letter-spacing: -0.03em; }
[data-split-lines] > div { padding-bottom: .16em; margin-bottom: -.16em; }

/* Textura de grano muy sutil sobre todo */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Cursor (solo con mouse; invisible hasta que se mueve) */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--noche); opacity: 0;
  display: grid; place-items: center;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), opacity .3s, background-color .3s;
}
.cursor.is-on { opacity: 1; }
.cursor-label { font-size: .85rem; font-weight: 600; color: var(--hueso); opacity: 0; transition: opacity .25s; }
.cursor.is-view { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.cursor.is-view .cursor-label { opacity: 1; }
.cursor.is-light { background: var(--hueso); }
.cursor.is-light .cursor-label { color: var(--tinta); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* =============================================================
   4. Componentes
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 46px; padding: .75rem 1.35rem; border-radius: 999px;
  font-weight: 500; font-size: .95rem; letter-spacing: .01em; white-space: nowrap;
  transition: background-color .3s var(--ease-soft), color .3s var(--ease-soft), border-color .3s var(--ease-soft);
  will-change: transform;
}
.btn-light { background: var(--hueso); color: var(--tinta); }
.btn-light:hover { background: #fff; }
.btn-dark { background: var(--tinta); color: var(--hueso); }
.btn-dark:hover { background: var(--noche); }
.btn-outline { border: 1px solid rgba(241, 238, 232, .75); color: var(--hueso); background: rgba(22, 24, 29, .15); }
.btn-outline:hover { background: var(--hueso); color: var(--tinta); border-color: var(--hueso); }
.btn-lg { min-height: 56px; padding: 1rem 1.7rem; font-size: 1.02rem; }
.btn-xl { min-height: 64px; padding: 1.1rem 2rem; font-size: 1.1rem; }
.ico-wa { width: 20px; height: 20px; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow::after { content: "→"; transition: transform .4s var(--ease-out); }
.link-arrow:hover::after { transform: translateX(4px); }

/* =============================================================
   5. Barra superior
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  color: var(--tinta);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linea);
  transition: background-color .4s var(--ease-soft), color .4s var(--ease-soft), border-color .4s var(--ease-soft);
}
.nav.is-over-dark {
  color: var(--hueso); background: transparent; border-bottom-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; gap: 1rem;
}
.nav-mark { display: block; width: 40px; height: 40px; margin-left: -6px; color: inherit; }
.nav-mark svg { width: 100%; height: 100%; fill: currentColor; }
.nav-links { display: none; gap: 1.9rem; margin-left: auto; font-size: .93rem; }
.nav-links a { position: relative; padding: .3rem 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); }
.btn-pill { background: var(--tinta); color: var(--hueso); }
.btn-pill:hover { background: var(--noche); }
.nav.is-over-dark .btn-pill { background: var(--hueso); color: var(--tinta); }
.nav-cta { display: none; }
.nav-menu { margin-left: auto; position: relative; }
.nav-menu summary {
  list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center;
  padding: 0 1rem; border: 1px solid currentColor; border-radius: 999px; font-size: .9rem; font-weight: 500;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu nav {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px;
  display: flex; flex-direction: column; padding: .5rem;
  background: var(--blanco); color: var(--tinta); border: 1px solid var(--linea); border-radius: 14px;
  box-shadow: 0 18px 40px -20px rgba(22, 24, 29, .35);
}
.nav-menu nav a { padding: .75rem .8rem; border-radius: 8px; }
.nav-menu nav a:hover { background: var(--hueso); }

/* =============================================================
   6. Portada
   ============================================================= */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 620px;
  color: var(--hueso); background: var(--blanco); overflow: hidden;
}
.hero-media { position: absolute; inset: 0; overflow: hidden; transform-origin: 50% 0; }
.hero-cols { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-cols .hero-video:nth-child(n+2) { display: none; }
.hero-shade {
  position: absolute; inset: 0;
  /* Velo oscuro parejo (sin desenfoque) para que el título resalte; un poco más arriba por el menú y abajo por el texto */
  background:
    linear-gradient(180deg, rgba(14, 16, 20, .32) 0%, rgba(14, 16, 20, 0) 24%, rgba(14, 16, 20, 0) 50%, rgba(14, 16, 20, .55) 100%),
    rgba(14, 16, 20, 0.45);
}
.hero-content {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  margin: 0 auto; padding: 84px var(--gutter) 44px; text-align: center;
}
.hero-word {
  display: flex; justify-content: center; gap: .16em;   /* letras espaciadas como en el logo */
  font-weight: 600; font-size: clamp(5rem, 17vw, 30rem); line-height: .78; letter-spacing: 0;
  margin: 0 0 .16em;
}
.hero-letter { display: inline-block; overflow: hidden; padding-top: .04em; }
.hero-letter > span { display: inline-block; }
.hero-bottom { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.hero-title { font-size: clamp(2rem, max(4.1vw, min(5.6vw, 3.9rem)), 7.5rem); max-width: 16ch; margin-inline: auto; letter-spacing: -0.03em; }
/* Pintura azul al pasar el mouse (la activa el JS): el color base de cada texto queda debajo de la pintura */
.is-paintable { color: transparent; -webkit-background-clip: text; background-clip: text; background-image: linear-gradient(var(--paint-base), var(--paint-base)); }
.hero-word, .hero-title { --paint-base: var(--hueso); }
.hero-title .is-paintable { padding-bottom: .14em; margin-bottom: -.14em; }   /* que la pintura no corte la cola de la g */
.hero-cta-text { --paint-base: var(--tinta); }
/* El botón de la portada crece con la pantalla (en un monitor grande no se queda pequeño) */
.hero-cta { font-size: max(1.02rem, 1.12vw); min-height: 3.45em; padding: .98em 1.67em; }
.hero-cta .ico-wa { width: 1.25em; height: 1.25em; }

/* =============================================================
   7. Resultados (cifras + videos)
   ============================================================= */
.stats { padding: 110px 0 40px; }
.stats-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 64%;
  gap: 14px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  padding: 48px var(--gutter) 40px; scrollbar-width: none;
}
.stats-row::-webkit-scrollbar { display: none; }
.stat {
  position: relative; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden;
  padding: 22px; display: flex; flex-direction: column; scroll-snap-align: center;
  transform: rotate(calc(var(--tilt, 0) * 1deg));
  box-shadow: 0 30px 50px -35px rgba(22, 24, 29, .45);
}
.stat-num { font-size: clamp(2.8rem, 9vw, 4rem); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.stat-label { margin-top: auto; font-size: 1rem; line-height: 1.35; font-weight: 500; }
.stat-source { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid currentColor; font-size: .78rem; opacity: .7; }
.stats-note { margin-top: 2.2rem; max-width: 46ch; font-size: .85rem; line-height: 1.5; opacity: .65; }
.stat-noche { background: var(--noche); color: var(--hueso); }
.stat-arena { background: var(--arena); color: var(--tinta); }
.stat-hueso { background: var(--hueso); color: var(--tinta); }
.stat-tinta { background: var(--tinta); color: var(--hueso); }
.stat-media { padding: 0; background: var(--arena); }
.stat-media video { width: 100%; height: 100%; object-fit: cover; }

/* =============================================================
   8. Franja de marcas
   ============================================================= */
.brands { padding: 30px 0 70px; }
.brands .label { text-align: center; padding: 0 var(--gutter); }
.marquee {
  margin-top: 30px; 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; flex-wrap: wrap; justify-content: center; align-items: center; }
.marquee-track.is-looping { flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { flex: none; display: flex; align-items: center; height: 80px; padding: 0 clamp(30px, 5vw, 70px); }
.marquee-track img { height: calc(var(--h) * .85); width: auto; }
.marquee-name { font-weight: 700; font-size: 1.45rem; letter-spacing: .04em; text-transform: uppercase; color: var(--tinta); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =============================================================
   9. Servicios (tarjetas con video, estilo AMD)
   ============================================================= */
.services { background: var(--tinta); color: var(--hueso); padding: 110px 0 120px; border-radius: 28px 28px 0 0; }
.services-head { margin-bottom: 44px; }
.services-grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%;
  gap: 14px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 6px; scrollbar-width: none;
}
.services-grid::-webkit-scrollbar { display: none; }
.svc {
  position: relative; aspect-ratio: 3 / 4.6; border-radius: var(--radius); overflow: hidden;
  scroll-snap-align: center; background: #0e1014; isolation: isolate;
}
.svc-media { position: absolute; inset: 0; z-index: -2; }
.svc-media video, .svc-media img {
  width: 100%; height: 100%; object-fit: cover; transform: scale(1.04);
  transition: transform 1.2s var(--ease-out);
}
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(14, 16, 20, .92) 0%, rgba(14, 16, 20, .4) 48%, rgba(14, 16, 20, .55) 100%);
  transition: opacity .6s var(--ease-soft);
}
.svc:hover .svc-media video, .svc:hover .svc-media img { transform: scale(1.1); }
.svc:hover::before { opacity: .78; }
.svc-body {
  position: absolute; inset: 0; padding: 26px 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center;
}
.svc-num { position: absolute; top: 22px; left: 22px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.svc-title { font-size: clamp(1.8rem, 6vw, 2.3rem); max-width: 12ch; }
.svc-lead { margin-top: .5rem; font-style: italic; opacity: .85; max-width: 24ch; }
.svc-more { margin-top: 1.3rem; }
.svc-more > summary { list-style: none; }
.svc-more > summary::-webkit-details-marker { display: none; }
/* Sin JS: el detalle se abre dentro de la tarjeta */
.svc-detail {
  position: absolute; inset: 0; padding: 70px 24px 24px; overflow: auto; text-align: left;
  background: rgba(14, 16, 20, .96); display: flex; flex-direction: column; gap: 1.2rem;
}
.svc-more[open] > summary { position: relative; z-index: 2; }
/* Encabezado con texto corto al lado */
.services-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; }
.services-intro { max-width: 34ch; font-size: 1.05rem; line-height: 1.5; color: rgba(241, 238, 232, .68); }

/* Pauta: un reel real dentro de un celular, como anuncio */
.svc-ad { background: radial-gradient(120% 75% at 50% 22%, #2b4268 0%, #0e1014 72%); }
.svc-ad::before, .svc-chat::before {
  background: linear-gradient(0deg, rgba(14, 16, 20, .97) 0%, rgba(14, 16, 20, .84) 32%, rgba(14, 16, 20, 0) 60%);
}
.ad-phone {
  position: absolute; left: 50%; top: 10%; width: 48%; aspect-ratio: 9 / 18.6;
  translate: -50% 0; rotate: -5deg; container-type: inline-size;
  border: 5px solid #08090c; border-radius: 15% / 7.4%; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px rgba(241, 238, 232, .16), 0 40px 60px -20px rgba(0, 0, 0, .7);
  transition: rotate 1s var(--ease-out), scale 1s var(--ease-out);
}
.svc:hover .ad-phone { rotate: -2deg; scale: 1.04; }
.ad-phone::before {
  content: ""; position: absolute; z-index: 3; top: 2.2%; left: 50%; translate: -50% 0;
  width: 30%; height: 2.8%; border-radius: 99px; background: #000;
}
.svc-media .ad-phone video { position: absolute; inset: 0; }
.ad-top {
  position: absolute; z-index: 2; inset: 0 0 auto; display: flex; align-items: center; gap: 4cqi;
  padding: 15cqi 6cqi 8cqi; color: #fff; font-size: 5.6cqi; line-height: 1.15;
  background: linear-gradient(rgba(0, 0, 0, .6), transparent);
}
.svc .svc-media .ad-avatar {
  width: 12cqi; height: 12cqi; flex: none; border-radius: 50%; background: #fff;
  object-fit: contain; padding: 1.2cqi; transform: none;
}
.ad-top b { display: block; font-weight: 700; }
.ad-top small { display: block; font-size: 4.6cqi; opacity: .85; }
.ad-cta {
  position: absolute; z-index: 2; left: 6cqi; right: 6cqi; top: 50%;
  display: flex; justify-content: space-between; align-items: center;
  padding: 3.6cqi 5cqi; border-radius: 3cqi; background: rgba(250, 248, 244, .94); color: var(--tinta);
  font-size: 5.6cqi; font-weight: 700;
}
.ad-cta span { font-size: 8cqi; line-height: 1; }

/* Automatización: conversación de ejemplo con el asistente */
.svc-chat {
  background-color: var(--noche);
  background-image: radial-gradient(rgba(241, 238, 232, .08) 1px, transparent 1px);
  background-size: 14px 14px;
}
.chat {
  position: absolute; left: 8%; right: 8%; top: 54px; bottom: 54%;
  display: flex; flex-direction: column; gap: 8px;
}
.chat-head {
  display: flex; align-items: center; gap: 9px; padding-bottom: 8px;
  border-bottom: 1px solid var(--linea-clara); font-size: .78rem; line-height: 1.2;
}
.chat-head b { display: block; }
.chat-head small { display: block; opacity: .7; font-size: .72rem; }
.chat-avatar {
  width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--arena); color: var(--tinta); font-size: .95rem;
}
.chat-log {
  flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  -webkit-mask-image: linear-gradient(transparent, #000 34%); mask-image: linear-gradient(transparent, #000 34%);
  transition: opacity .4s var(--ease-soft);
}
.msg { max-width: 86%; padding: 6px 10px; font-size: .76rem; line-height: 1.35; border-radius: 14px; }
.msg-in { align-self: flex-start; background: var(--papel); color: var(--tinta); border-bottom-left-radius: 4px; }
.msg-out { align-self: flex-end; background: var(--arena); color: var(--tinta); border-bottom-right-radius: 4px; }
.chat-log.is-animated .msg:not(.is-shown):not(.msg-typing) { display: none; }
.chat-log.is-animated .msg { animation: msg-in .45s var(--ease-out) both; }
.chat-log.is-clearing { opacity: 0; }
.msg-typing { display: flex; gap: 4px; padding: 10px 12px; }
.msg-typing i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .45; animation: typing 1s infinite; }
.msg-typing i:nth-child(2) { animation-delay: .15s; }
.msg-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(.96); } }
@keyframes typing { 50% { opacity: 1; transform: translateY(-2px); } }

/* "Ideal si…" dentro del detalle de cada servicio */
.svc-ideal { padding: .8rem 1rem; border-radius: 12px; background: rgba(241, 238, 232, .08); }
.svc-ideal strong { font-weight: 700; }
.panel-body .svc-ideal { background: rgba(35, 57, 91, .07); border-left: 3px solid var(--noche); border-radius: 4px 12px 12px 4px; }
.panel-body .svc-ideal strong { color: var(--noche); }

/* Cierre de la sección: plan a la medida */
.services-cta {
  margin-top: 26px; padding: 30px 24px; border-radius: var(--radius);
  border: 1px solid var(--linea-clara); background: rgba(241, 238, 232, .04);
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
}
.services-cta-title { font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: -0.02em; }
.services-cta p { margin-top: .6rem; max-width: 54ch; line-height: 1.55; color: rgba(241, 238, 232, .72); }
@media (min-width: 960px) {
  .services-cta { flex-direction: row; align-items: center; justify-content: space-between; margin-top: 18px; padding: 40px 44px; }
  .services-cta .btn { flex: none; }
}

/* Panel del detalle (con JS) */
.panel {
  margin: auto; padding: 0; border: 0; border-radius: 22px; width: min(92vw, 560px);
  background: var(--blanco); color: var(--tinta); overflow: visible;
}
.panel::backdrop { background: rgba(14, 16, 20, .78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.panel-body { padding: 40px 32px 34px; }
.panel-body .svc-num { position: static; color: var(--noche); opacity: 1; }
.panel-body h3 { font-size: clamp(2rem, 6vw, 2.6rem); }
.panel-body .svc-lead { color: var(--noche); opacity: 1; max-width: none; }
.panel-body p:not(.svc-num):not(.svc-lead) { margin-top: 1rem; color: #34373e; }
.panel-body .link-arrow { margin-top: 1.6rem; color: var(--noche); }
.panel-close, .viewer-close {
  position: absolute; top: -18px; right: -10px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--tinta); color: var(--hueso); font-size: 1.6rem; line-height: 1; z-index: 2;
}

/* =============================================================
   10. Trabajos (galería horizontal)
   ============================================================= */
.works { padding: 110px 0 60px; }
.works-head { margin-bottom: 40px; }
.works-track {
  display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 10px; scrollbar-width: none;
}
.works-track::-webkit-scrollbar { display: none; }
.works-track > li { flex: none; width: 62vw; max-width: 300px; scroll-snap-align: start; }
.work { display: block; }
.work-media {
  position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden;
  border-radius: var(--radius); background: var(--arena);
}
.work-media img, .work-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease-out), opacity .35s var(--ease-soft);
}
.work-media video { opacity: 0; }
.work.is-playing .work-media video { opacity: 1; }
.work:hover .work-media img, .work:hover .work-media video { transform: scale(1.04); }
.work-brand { display: block; margin-top: .8rem; font-weight: 600; font-size: 1.05rem; }
.work-kind { display: block; font-size: .9rem; color: var(--gris); }
.work-cta-cell { display: flex; }
.work-cta {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 1rem; width: 100%;
  aspect-ratio: 9 / 16; padding: 22px; border-radius: var(--radius);
  background: var(--noche); color: var(--hueso); transition: background-color .3s var(--ease-soft);
}
.work-cta:hover { background: var(--tinta); }
.work-cta-title { font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 600; line-height: 1.08; }
.work-cta .link-arrow { align-self: flex-start; }

/* =============================================================
   11. Cómo trabajamos
   ============================================================= */

/* =============================================================
   12. Quiénes somos
   ============================================================= */
.about { padding: 110px 0 130px; }
.about-grid { display: grid; gap: 22px; }
.about-text { font-size: clamp(1.6rem, 5.4vw, 3rem); line-height: 1.22; letter-spacing: -0.02em; font-weight: 500; max-width: 28ch; }
.about-text .word { opacity: .16; }
/* =============================================================
   El método DUMA (Cómo trabajamos): collages con material real
   ============================================================= */
.method { padding: 88px 0 84px; background: var(--hueso); }
.method-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; }
.method-intro { max-width: 34ch; font-size: 1.05rem; line-height: 1.5; color: var(--gris); }

/* Cada collage es un lienzo cuadrado; todo se mide en cqw para que se vea igual de grande o de pequeño */
.m-art { position: relative; container-type: inline-size; aspect-ratio: 1 / 1; }
.m-art > * { position: absolute; margin: 0; }
.ma-photo { overflow: hidden; border-radius: 3.2cqw; background: var(--arena); box-shadow: 0 5cqw 9cqw -6cqw rgba(22, 24, 29, .5); }
.ma-photo img { width: 100%; height: 100%; object-fit: cover; }
.ma-card {
  border-radius: 3cqw; background: var(--blanco); padding: 4.6cqw 5cqw;
  box-shadow: 0 0 0 1px rgba(22, 24, 29, .06), 0 6cqw 11cqw -6cqw rgba(22, 24, 29, .42);
}
.ma-title { font-size: 4.1cqw; font-weight: 700; line-height: 1.2; color: var(--tinta); }
.ma-chip {
  display: inline-flex; align-items: center; gap: 1.6cqw; padding: 2cqw 3.4cqw 2cqw 2.6cqw; border-radius: 99px;
  background: var(--blanco); color: var(--noche); font-size: 3.4cqw; font-weight: 700; line-height: 1.2; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(22, 24, 29, .06), 0 3cqw 7cqw -3cqw rgba(22, 24, 29, .45);
}
.ma-chip svg { width: 4cqw; height: 4cqw; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ma-chip-dark { background: var(--noche); color: var(--blanco); }

/* D · Descubrimos */
.m-art-d .ma-photo { left: 3%; top: 3%; width: 60%; height: 78%; }
.m-art-d .ma-photo img { object-position: 50% 62%; }
.ma-chip-pin { left: 7.5%; top: 7.5%; }
.ma-chip-search { right: 4%; top: 17%; }
.ma-aud { right: 3%; bottom: 4%; width: 57%; }
.ma-aud ul { margin-top: 3cqw; display: grid; gap: 2.5cqw; }
.ma-aud li { display: grid; grid-template-columns: 1fr auto; row-gap: 1.1cqw; font-size: 3.2cqw; line-height: 1.2; color: var(--gris); }
.ma-aud em { font-style: normal; font-weight: 700; color: var(--tinta); }
.ma-aud b { position: relative; grid-column: 1 / -1; height: 1.5cqw; border-radius: 99px; background: var(--hueso); overflow: hidden; }
.ma-aud b::after { content: ""; position: absolute; inset: 0; width: calc(var(--v) * 100%); border-radius: inherit; background: var(--noche); transform-origin: left; }

/* U · Unimos: el plan real de octubre (5 videos y en qué va cada uno), con el mismo estilo de la tarjeta de Analizamos */
.ma-plan { left: 5%; top: 15%; width: 90%; padding: 5cqw 5.4cqw 4.4cqw; }
.ma-plan-bar { display: flex; gap: .8cqw; height: 1.8cqw; margin-top: 3cqw; }
.ma-plan-bar i { width: var(--w); border-radius: 99px; background: var(--c); }
.ma-plan-list { margin-top: 2.6cqw; }
.ma-plan-list li { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; padding: 1.55cqw 0; border-top: 1px solid var(--hueso); }
.ma-plan-list b { font-size: 3cqw; font-weight: 600; line-height: 1.2; color: var(--tinta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ma-plan-list em { flex: none; display: inline-flex; align-items: center; gap: 1cqw; font-style: normal; font-size: 2.6cqw; font-weight: 700; line-height: 1; color: var(--noche); }
.ma-plan-list em::before { content: ""; width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: var(--noche); }
.ma-plan-list em.ok { color: var(--pintura); } .ma-plan-list em.ok::before { background: var(--pintura); }
.ma-plan-list em.wait { color: #9a8f7c; } .ma-plan-list em.wait::before { background: var(--arena); }
.ma-chip-estr { right: 3%; top: 8%; }
.ma-chip-plan { left: 10%; top: 84%; }

/* M · Materializamos */
.m-art-m .ma-photo { left: 4%; top: 4%; width: 60%; height: 76%; }
.ma-rec {
  left: 7.5%; top: 7.5%; display: inline-flex; align-items: center; gap: 1.4cqw; padding: 1.5cqw 2.8cqw; border-radius: 99px;
  background: rgba(22, 24, 29, .62); color: var(--blanco); font-size: 3cqw; font-weight: 800; letter-spacing: .14em; line-height: 1;
}
.ma-rec::before { content: ""; width: 2cqw; height: 2cqw; border-radius: 50%; background: #E5484D; animation: ma-blink 1.2s steps(2, jump-none) infinite; }
@keyframes ma-blink { 50% { opacity: .15; } }
.ma-phone {
  right: 5%; top: 13%; width: 33%; aspect-ratio: 9 / 18.5; border-radius: 5.6cqw; border: 1.3cqw solid var(--tinta);
  background: var(--tinta); overflow: hidden; box-shadow: 0 7cqw 12cqw -6cqw rgba(22, 24, 29, .6);
}
.ma-phone video { width: 100%; height: 100%; object-fit: cover; }
.ma-chip-ok { right: 22%; bottom: 7%; }
.ma-chip-ok svg { stroke: var(--pintura); stroke-width: 3; }

/* M · Materializamos: video propio de rodaje, edición y entrega (4:5) */
.ma-video { left: 12.2%; top: 2.75%; width: 75.6%; aspect-ratio: 4 / 5; border-radius: 3.2cqw; overflow: hidden; background: var(--tinta);
  box-shadow: 0 6cqw 12cqw -6cqw rgba(22, 24, 29, .6); }
.ma-video video { width: 100%; height: 100%; object-fit: cover; }

/* A · Analizamos (curva real de visualizaciones de Instagram, últimos 90 días) */
.ma-report { left: 5%; top: 19%; width: 90%; padding: 5cqw 5.4cqw 4cqw; }
.ma-report-head { display: flex; justify-content: space-between; gap: 2cqw; font-size: 3.2cqw; line-height: 1.2; color: var(--gris); }
.ma-report-head span:first-child { font-weight: 700; color: var(--tinta); }
.ma-big { display: flex; align-items: center; gap: 2.4cqw; margin-top: 1.4cqw; font-size: 9cqw; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; color: var(--tinta); }
.ma-big em { font-style: normal; font-size: 3.3cqw; font-weight: 700; letter-spacing: 0; padding: 1cqw 2.2cqw; border-radius: 99px; color: var(--pintura); background: rgba(58, 112, 196, .1); }
.ma-chart { display: block; width: 100%; height: 25cqw; margin-top: 3cqw; overflow: visible; }
.ma-area { fill: url(#ma-grad); }
.ma-line { fill: none; stroke: var(--noche); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ma-axis { display: flex; justify-content: space-between; margin-top: 2cqw; font-size: 2.8cqw; line-height: 1; color: var(--gris); }
.ma-chip-reach { right: 3%; top: 12%; gap: 1.2cqw; color: var(--gris); font-weight: 600; }
.ma-chip-reach b { color: var(--pintura); font-weight: 800; }
.ma-chip-adj { left: 10%; top: 74%; }

/* Entrada de las piezas (solo con JS). Se usan translate/scale/rotate sueltos para no pisar el giro de cada pieza. */
.m-art > *, .ma-join li, .ma-aud b::after, .ma-chart {
  transition: opacity .7s var(--ease-soft), translate 1s var(--ease-out), scale .8s var(--ease-out), rotate 1s var(--ease-out),
    transform 1.1s var(--ease-out), clip-path 1.6s var(--ease-out), filter .8s var(--ease-soft);
}
.ma-photo img, .ma-phone video { transition: filter .8s var(--ease-soft); }
.js-ok .m-art:not(.is-on) > * { opacity: 0; translate: 0 6cqw; }
.js-ok .m-art:not(.is-on) > .ma-chip, .js-ok .m-art:not(.is-on) > .ma-rec { translate: 0 0; scale: .7; }
.js-ok .m-art:not(.is-on) .ma-join li { opacity: 0; scale: .7; }
.js-ok .m-art:not(.is-on) .ma-aud b::after { transform: scaleX(0); }
.js-ok .m-art:not(.is-on) .ma-chart { clip-path: inset(0 100% 0 0); }
.m-art.is-on > * { transition-delay: calc(var(--s, 0s) + .1s); }
.m-art.is-on > .ma-photo, .m-art.is-on > .ma-doc-2 { transition-delay: var(--s, 0s); }
.m-art.is-on > .ma-card, .m-art.is-on > .ma-phone, .m-art.is-on > .ma-doc-1 { transition-delay: calc(var(--s, 0s) + .18s); }
.m-art.is-on > .ma-chip, .m-art.is-on > .ma-rec { transition-delay: calc(var(--s, 0s) + .42s); }
.m-art.is-on > .ma-chip + .ma-chip { transition-delay: calc(var(--s, 0s) + .54s); }
.m-art.is-on .ma-join li { transition-delay: calc(var(--s, 0s) + .3s); }
.m-art.is-on .ma-join li:nth-child(2) { transition-delay: calc(var(--s, 0s) + .38s); }
.m-art.is-on .ma-join li:nth-child(3) { transition-delay: calc(var(--s, 0s) + .46s); }
.m-art.is-on .ma-join li:nth-child(4) { transition-delay: calc(var(--s, 0s) + .54s); }
.m-art.is-on .ma-join li:nth-child(5) { transition-delay: calc(var(--s, 0s) + .7s); }
.m-art.is-on .ma-aud b::after { transition-delay: calc(var(--s, 0s) + .5s); }
.m-art.is-on .ma-chart { transition-delay: calc(var(--s, 0s) + .45s); }
.m-art.is-done *, .m-art.is-done *::after { transition-delay: 0s !important; }   /* ya entró: el hover responde sin espera */
@media (prefers-reduced-motion: reduce) {
  .m-art > *, .ma-join li, .ma-aud b::after, .ma-chart { transition: none; }
  .ma-rec::before { animation: none; }
}

/* Variante A: cuatro columnas; en el celular, un carrusel que se desliza */
.method-steps { margin-top: 40px; display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 16px;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 10px; scroll-padding-inline: var(--gutter);
  scrollbar-width: none; overscroll-behavior-x: contain; }
.method-steps::-webkit-scrollbar { display: none; }
.m-step { scroll-snap-align: start; display: flex; flex-direction: column; }
.m-head { text-align: center; }
.m-name { font-size: 1.3rem; letter-spacing: -0.01em; }
.m-rule { position: relative; height: 34px; margin-top: 12px; }
.m-rule::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--linea); }
.m-dot {
  position: relative; display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto; border-radius: 50%;
  border: 1px solid var(--linea); background: var(--blanco); font-size: .92rem; font-weight: 700; color: var(--noche);
  transition: background .45s var(--ease-soft), color .45s var(--ease-soft), border-color .45s var(--ease-soft);
}
.method-a .m-art { margin-top: 18px; }
.m-text { margin: 16px auto 0; max-width: 28ch; text-align: center; font-size: 1rem; line-height: 1.5; color: var(--gris); }
.method-a .m-step:is(:hover, .is-active) .m-dot { background: var(--noche); border-color: var(--noche); color: var(--blanco); }
.method-a .m-step:hover .ma-card, .method-a .m-step:hover .ma-phone { translate: 0 -2cqw; }
.method-a .m-step:hover .ma-chip { translate: 0 -1.2cqw; }
@media (min-width: 960px) {
  .method { padding: 120px 0 120px; }
  .method-steps { max-width: var(--max); margin: 64px auto 0; padding: 0 var(--gutter); overflow: visible;
    grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); gap: 28px; }
}
/* Fin del método DUMA */

/* Equipo (dentro de "Quiénes somos") */
.team { margin-top: 96px; }
.team-head { margin-bottom: 34px; }
.team-title { margin-top: .5rem; font-size: clamp(1.9rem, 4.6vw, 3rem); letter-spacing: -0.025em; }
.team-grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 16px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px;
  list-style: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.team-grid::-webkit-scrollbar { display: none; }
.member { scroll-snap-align: start; }
.member-media {
  position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--arena);
}
.member-media img, .member-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.member-media img { transition: transform 1.2s var(--ease-out); }
.member-media video { opacity: 0; transition: opacity .5s var(--ease-soft); }
.member-media.is-playing video { opacity: 1; }
.member-media:hover img { transform: scale(1.04); }
.member-play {
  position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .95rem .5rem .75rem; border-radius: 999px; background: rgba(22, 24, 29, .72); color: var(--hueso);
  font-size: .85rem; font-weight: 600; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.member-play svg { width: 16px; height: 16px; fill: currentColor; }
.member-name { margin-top: 1.05rem; font-size: 1.4rem; letter-spacing: -0.01em; }
.member-role { margin-top: .2rem; font-size: .95rem; font-weight: 600; color: var(--noche); }
.member-bio { margin-top: .65rem; font-size: .98rem; line-height: 1.55; color: var(--gris); max-width: 36ch; }
.member-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.member-links a {
  display: inline-flex; align-items: center; gap: .45rem; padding: .48rem .95rem .48rem .8rem; border-radius: 999px;
  border: 1px solid var(--linea); font-size: .88rem; font-weight: 600; color: var(--tinta); text-decoration: none;
  transition: background .3s var(--ease-soft), border-color .3s var(--ease-soft), color .3s var(--ease-soft);
}
.member-links svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.member-links svg .dot { fill: currentColor; stroke: none; }
.member-links a:hover { background: var(--noche); border-color: var(--noche); color: var(--hueso); }
.member-pending .member-media { display: grid; place-items: center; background: var(--hueso); }
.member-initials { font-size: clamp(3rem, 8vw, 4.6rem); font-weight: 600; letter-spacing: .04em; color: var(--arena); }
.member-pending .member-role { color: var(--gris); opacity: .7; }
@media (min-width: 540px) { .team-grid { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); gap: 40px 20px; margin: 0; padding: 0; overflow: visible; } }
@media (min-width: 960px) { .team-grid { grid-template-columns: repeat(4, 1fr); } .team { margin-top: 120px; } }

/* =============================================================
   13. Contacto
   ============================================================= */
.contact { background: var(--noche); color: var(--hueso); overflow: hidden; border-radius: 28px 28px 0 0; }
.contact-inner { padding-top: 120px; padding-bottom: 70px; }
.contact-title { font-size: clamp(2.6rem, 7.6vw, 7.2rem); line-height: .98; letter-spacing: -0.035em; max-width: 20ch; }   /* frase larga: dos líneas en computador */
.contact .btn { margin-top: 2.4rem; }
.contact-list { margin-top: 3.4rem; display: grid; gap: .9rem; font-size: 1.02rem; }
.contact-list li { display: flex; gap: 1rem; padding-top: .9rem; border-top: 1px solid var(--linea-clara); }
.contact-list span { min-width: 92px; color: rgba(241, 238, 232, .62); }
.contact-list a { border-bottom: 1px solid rgba(241, 238, 232, .45); }
.contact-list a:hover { border-bottom-color: var(--hueso); }
/* En pantallas táctiles, los enlaces pequeños tienen un área de toque más grande (sin cambiar cómo se ven) */
@media (pointer: coarse) {
  .contact-list a, .footer-list a { position: relative; }
  .contact-list a::after, .footer-list a::after { content: ""; position: absolute; inset: -8px -6px; }
  .member-links a { min-height: 44px; }
}
.contact-marquee { padding: 10px 0 40px; overflow: hidden; }
.contact-marquee-track {
  display: flex; gap: 3rem; width: max-content; white-space: nowrap;
  font-size: clamp(3rem, 9vw, 8rem); font-weight: 600; letter-spacing: -0.03em;
  color: transparent; -webkit-text-stroke: 1px rgba(241, 238, 232, .45);
  animation: marquee 40s linear infinite;
}

/* =============================================================
   14. Pie, botón flotante y visor
   ============================================================= */
.footer { background: var(--tinta); color: rgba(241, 238, 232, .75); }
/* Tres columnas en computador: la marca (logo, redes y línea), la navegación y el contacto */
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px 20px; padding-top: 72px; padding-bottom: 56px; }
.footer-brand { grid-column: 1 / -1; }
.footer-logo { display: block; width: 190px; height: auto; }
.footer-social { display: flex; gap: 10px; margin-top: 26px; list-style: none; }
.footer-social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(241, 238, 232, .22); color: var(--hueso);
  transition: background-color .3s var(--ease-soft), color .3s var(--ease-soft), border-color .3s var(--ease-soft);
}
.footer-social a:hover { background: var(--hueso); border-color: var(--hueso); color: var(--tinta); }
.footer-social svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.footer-social svg .dot { fill: currentColor; stroke: none; }
.footer-social svg use { fill: currentColor; stroke: none; }
.footer-line { margin-top: 22px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(241, 238, 232, .5); }
.footer-label { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(241, 238, 232, .5); margin-bottom: 18px; }
.footer-list { list-style: none; display: grid; gap: .55rem; font-size: 1rem; }
.footer-list a { display: inline-block; padding: .2rem 0; color: rgba(241, 238, 232, .82); transition: color .3s var(--ease-soft); }
.footer-list a:hover { color: var(--hueso); }
.footer-data a { color: var(--hueso); border-bottom: 1px solid rgba(241, 238, 232, .35); padding: 0; }
.footer-data a:hover { border-bottom-color: var(--hueso); }
.footer-data { gap: .8rem; }
.footer-bottom { padding-top: 22px; padding-bottom: 44px; border-top: 1px solid var(--linea-clara); }
.footer-legal { font-size: .85rem; color: rgba(241, 238, 232, .5); }

/* El fondo del fondo: una ilustración del equipo y una frase, en el vacío después del pie.
   Vive abierto debajo del pie; al tocar el final de la página se recoge (lo hace el JS). */
.fondo {
  --alto: 72vh; --dibujo: min(560px, 88vw);
  height: var(--alto); background: var(--blanco); text-align: center; padding-inline: var(--gutter);
}
/* Centrado con un margen fijo (no con grid): al recogerse, el dibujo no se mueve, solo queda tapado; así no cuenta como salto de diseño */
.fondo-caja { padding-top: max(24px, calc(var(--alto) / 2 - (var(--dibujo) * .606 + 46px) / 2)); }
@supports (height: 72dvh) { .fondo { --alto: 72dvh; } }
.fondo.is-recogido { overflow: hidden; animation: fondo-recoge .7s ease-out forwards; }
@keyframes fondo-recoge { from { height: var(--alto); opacity: 1; } to { height: 0; opacity: 0; } }
.fondo-dibujo img { display: block; width: var(--dibujo); height: auto; margin: 0 auto; }
.fondo-frase { margin-top: 18px; font-size: 1.15rem; font-style: italic; color: var(--gris); }
@media (prefers-reduced-motion: reduce) {
  .fondo.is-recogido { animation: none; height: 0; opacity: 0; overflow: hidden; }
}

.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 70;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--tinta); color: var(--hueso);
  box-shadow: 0 14px 30px -12px rgba(22, 24, 29, .55);
  transition: transform .4s var(--ease-out), background-color .3s var(--ease-soft), opacity .4s var(--ease-soft), visibility .4s;
}
.wa-float.is-hidden { opacity: 0; visibility: hidden; transform: translateY(14px); }
.wa-float:hover { transform: translateY(-3px); background: var(--noche); }
.wa-float svg { width: 26px; height: 26px; }
.wa-float span { display: none; font-weight: 500; }

.viewer {
  margin: auto; padding: 0; border: 0; background: transparent; color: var(--hueso);
  max-width: min(92vw, 460px); width: 100%; overflow: visible;
}
.viewer::backdrop { background: rgba(14, 16, 20, .9); }
.viewer-video { width: 100%; max-height: 82vh; aspect-ratio: 9 / 16; background: #000; border-radius: var(--radius); }
.viewer-caption { margin-top: .7rem; text-align: center; font-size: .95rem; }
.viewer-close { background: var(--hueso); color: var(--tinta); top: -52px; right: 0; }

/* =============================================================
   15. Aparición (red de seguridad si el JS falla)
   ============================================================= */
.js [data-reveal]:not(.is-revealed) { opacity: 0; transform: translateY(24px); animation: revealSafety .01s 3.5s forwards; }
[data-reveal] { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
@keyframes revealSafety { to { opacity: 1; transform: none; } }
.js-ok [data-reveal]:not(.is-revealed) { animation: none; }

/* =============================================================
   16. Responsive (de celular hacia arriba)
   ============================================================= */
@media (min-width: 540px) {
  .wa-float { width: auto; padding: 0 1.2rem 0 1rem; }
  .wa-float span { display: inline; }
  .stats-row { grid-auto-columns: 40%; }
  .services-grid { grid-auto-columns: 58%; }
  .works-track > li { width: 42vw; }
}

@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .hero-cols { grid-template-columns: repeat(3, 1fr); }
  .hero-cols .hero-video:nth-child(n+2) { display: block; }
  .services-grid { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); overflow: visible; gap: 18px; }
  .svc-featured { grid-column: span 2; aspect-ratio: 16 / 10; }
}

@media (min-width: 960px) {
  :root { --gutter: 40px; }
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; margin-left: 1.2rem; }
  .nav-menu { display: none; }

  .hero-content { justify-content: center; padding-bottom: 56px; }
  .hero-bottom { gap: max(32px, 2.2vw); }
  /* En computador el texto va en el centro: velo parejo y solo un toque más oscuro arriba (menú) y abajo */
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(14, 16, 20, .32) 0%, rgba(14, 16, 20, 0) 24%, rgba(14, 16, 20, 0) 76%, rgba(14, 16, 20, .3) 100%),
      rgba(14, 16, 20, 0.45);
  }

  .stats-row {
    grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible;
    max-width: var(--max); margin: 0 auto; gap: 16px; padding-top: 60px;
  }
  .stat-num { font-size: clamp(2.6rem, 3.4vw, 3.6rem); }

  .services-grid {
    grid-template-columns: repeat(4, 1fr); max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  }
  .svc { aspect-ratio: 3 / 4.3; }
  .svc-title { font-size: clamp(1.7rem, 2.2vw, 2.3rem); }
  .svc-featured { grid-row: span 2; aspect-ratio: auto; }
  .svc-featured .svc-body { padding: 40px 36px; }
  .svc-featured .svc-title { font-size: clamp(2.6rem, 3.6vw, 3.6rem); max-width: 14ch; }
  .svc-featured .svc-lead { font-size: 1.15rem; max-width: 32ch; }

  /* Trabajos: la fila se mueve de lado mientras se baja (lo activa el JS) */
  .works.is-pinned { padding: 0; height: calc(100vh + var(--works-dist, 0px)); }   /* lo que mide la fila de lado (lo pone el JS) */
  .works.is-pinned .works-head { width: 100%; }
  .works.is-pinned .works-pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
  .works.is-pinned .works-track { overflow: visible; scroll-snap-type: none; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); padding-right: 30vw; width: max-content; }
  .works-track > li { width: clamp(240px, 20vw, 300px); }


  .about-grid { grid-template-columns: 4fr 8fr; gap: 48px; align-items: start; }

  .contact-list { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .footer-grid { grid-template-columns: repeat(12, 1fr); align-items: start; padding-top: 88px; padding-bottom: 72px; }
  .footer-brand { grid-column: 1 / span 4; }
  .footer-grid > .footer-col:nth-child(2) { grid-column: 7 / span 3; }
  .footer-grid > .footer-col:nth-child(3) { grid-column: 10 / span 3; }
}

/* =============================================================
   17. Movimiento reducido: solo se apagan los bucles de video y los
       movimientos grandes (lo maneja el JS); lo demás sigue igual.
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stat { transform: none; }
}

/* =============================================================
   Liquid glass (vidrio líquido): menú, botón flotante, "Ver más" de los servicios y pasos del método.
   En Chrome/Edge (clase lg-refract) el vidrio dobla lo que hay detrás en los bordes; en Safari queda esmerilado.
   ============================================================= */
.lg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Borde de luz, como el reflejo de un vidrio */
.nav::before, .wa-float::before, .svc .btn-outline::before, .method .m-step::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .14) 28%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
/* Menú: una barra de vidrio flotante */
.nav {
  top: 12px; left: 0; right: 0; margin: 0 auto; width: min(calc(100% - 2 * var(--gutter)), 1360px);
  border: 0; border-radius: 999px; background: rgba(255, 255, 255, .74);
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .6), 0 12px 32px -14px rgba(22, 24, 29, .35);
}
.nav.is-over-dark {
  background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(8px) saturate(170%); backdrop-filter: blur(8px) saturate(170%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .35), 0 12px 32px -14px rgba(0, 0, 0, .45);
}
.nav-inner { max-width: none; padding: 7px 7px 7px 18px; }
/* Al bajar, el menú se aparta hacia arriba; vuelve al subir, al acercar el mouse al borde de arriba o al usar el teclado */
.nav { transition: background-color .4s var(--ease-soft), color .4s var(--ease-soft), box-shadow .4s var(--ease-soft), transform .55s var(--ease-out), opacity .35s var(--ease-soft); }
.nav.is-tucked { transform: translateY(calc(-100% - 20px)); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .nav { transition: none; } }
html.lg-refract .nav { backdrop-filter: blur(10px) url(#lg-barra) saturate(180%); }
html.lg-refract .nav.is-over-dark { backdrop-filter: blur(4px) url(#lg-barra) saturate(170%); }
/* Botón flotante de WhatsApp: vidrio oscuro */
.wa-float {
  background: rgba(22, 24, 29, .72);
  -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .3), 0 14px 30px -12px rgba(22, 24, 29, .5);
}
.wa-float:hover { background: rgba(35, 57, 91, .82); }
html.lg-refract .wa-float { backdrop-filter: blur(8px) url(#lg-boton) saturate(180%); }
/* "Ver más" de los servicios: vidrio claro encima del video */
.svc .btn-outline {
  position: relative; border-color: transparent; background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(10px) saturate(180%); backdrop-filter: blur(10px) saturate(180%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .35), 0 8px 20px -10px rgba(0, 0, 0, .5);
}
.svc .btn-outline:hover { background: var(--hueso); color: var(--tinta); }
html.lg-refract .svc .btn-outline { backdrop-filter: blur(5px) url(#lg-boton) saturate(180%); }
/* Método: fondo con luces que se mueven despacio y cada paso en un panel de vidrio */
.method { position: relative; isolation: isolate; overflow: clip; background: #E3EAF4; --glow-1: rgba(58, 112, 196, .5); --glow-2: rgba(255, 255, 255, .95); --glow-3: rgba(213, 204, 189, .6); --panel: rgba(255, 255, 255, .4); --panel-borde: .9; }
.method::before, .method::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(40px);
}
.method::before { width: 60vw; height: 60vw; left: -14vw; top: -18vw; background: radial-gradient(circle, var(--glow-1), transparent 66%); animation: lg-luz-1 24s ease-in-out infinite alternate; }
.method::after { width: 52vw; height: 52vw; right: -12vw; bottom: -20vw; background: radial-gradient(circle, var(--glow-2), transparent 66%); animation: lg-luz-2 28s ease-in-out infinite alternate; }
.method-steps { position: relative; }
.method-steps::before {
  content: ""; position: absolute; z-index: -1; left: 30%; top: 20%; width: 40vw; height: 40vw; max-width: 620px; max-height: 620px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow-3), transparent 66%); filter: blur(40px); animation: lg-luz-3 20s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes lg-luz-1 { to { transform: translate(22vw, 12vw) scale(1.12); } }
@keyframes lg-luz-2 { to { transform: translate(-20vw, -10vw) scale(.9); } }
@keyframes lg-luz-3 { to { transform: translate(-14vw, 6vw) scale(1.15); } }
.method .m-step {
  position: relative; padding: 24px 16px 28px; border-radius: 30px; background: var(--panel);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, var(--panel-borde)), 0 24px 50px -30px rgba(0, 0, 0, .45);
}
/* Los paneles del método van solo esmerilados: el vidrio que dobla, en paneles tan grandes, ponía lenta la página */
@media (prefers-reduced-motion: reduce) { .method::before, .method::after, .method-steps::before { animation: none; } }
@media (min-width: 960px) { .method .m-step { padding: 28px 20px 32px; } .method-steps { gap: 22px; } }
/* Fin del vidrio líquido */
