/* ==========================================================================
   Andrés Moyano — Portfolio
   Paleta heredada de monxismedia.com · regla 60-30-10
   60% negro (fondos) · 30% rojo #EF233C (marca: antetítulos, palabras clave,
   detalles) · 10% azul #3A86FF (solo puntos clave: botones, play, flechas,
   cursor, progreso)
   ========================================================================== */

/* Fuentes propias (variables, alfabeto latino). Licencia SIL OFL 1.1 */
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --bg: #0a0a0c;
  --bg-2: #111116;
  --surface: #16161c;
  --line: rgba(237, 242, 244, 0.1);
  --line-2: rgba(237, 242, 244, 0.18);
  --text: #edf2f4;
  --muted: #8d99ae;
  --dim: #5c6375;
  --accent: #ef233c;
  --accent-2: #ff4d5e;
  --accent-btn: #d81b34;  /* rojo para fondos con texto blanco (contraste AA) */
  --navy: #2b2d42;
  --blue: #3a86ff;        /* 10%: solo acciones clave */
  --blue-2: #5c9bff;      /* azul claro (brillos) */
  --blue-btn: #2b70e4;    /* azul para fondos con texto blanco (contraste AA 4.6:1) */
  --blue-btn-2: #2563eb;  /* hover de botones (5.2:1) */

  --f-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --f-body: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --f-mono: var(--f-body); /* una sola familia de texto: Inter */

  /* Escala tipográfica (úsala siempre que añadas texto) */
  --fs-h1: clamp(2.3rem, 5.2vw, 4.8rem);     /* titular del inicio */
  --fs-h2: clamp(2rem, 4.2vw, 3.8rem);       /* títulos de sección */
  --fs-h3: clamp(1.4rem, 2.4vw, 2.1rem);     /* subtítulos / servicios */
  --fs-h4: clamp(1.15rem, 1.6vw, 1.45rem);   /* títulos de tarjeta */
  --fs-lead: clamp(1.1rem, 1.5vw, 1.4rem);   /* entradillas */
  --fs-body: 1rem;                           /* texto */
  --fs-small: 0.875rem;                      /* datos, pies */
  --fs-label: clamp(0.88rem, 1.1vw, 1.05rem);/* antetítulos en mayúsculas */
  --fs-tag: 0.75rem;                         /* etiquetas pequeñas en mayúsculas */
  --text-2: rgba(237, 242, 244, 0.76);       /* color de entradillas */

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --radius: 14px;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 40px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-loading, body.menu-open, body.player-open { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-size: var(--fs-small); }
.tag { font-size: var(--fs-tag); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow {
  font-family: var(--f-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 22px;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(239, 35, 60, 0.6); }

/* ------------------------------- Intro ------------------------------- */
.intro { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.intro__bar {
  position: absolute; left: 0; right: 0; height: 50.5vh; background: #000;
  transition: transform 1.1s var(--ease-io);
}
.intro__bar--top { top: 0; }
.intro__bar--bottom { bottom: 0; }
.intro__logo {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px;
  transform: translate(-50%, -50%) scale(0.9); opacity: 0;
  animation: introLogo 0.9s var(--ease) 0.1s forwards;
  transition: opacity 0.4s ease, transform 0.6s var(--ease);
}
@keyframes introLogo { to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
body.is-ready .intro__logo { animation: introOut 0.5s var(--ease) forwards; }
@keyframes introOut { from { opacity: 1; transform: translate(-50%, -50%) scale(1); } to { opacity: 0; transform: translate(-50%, -50%) scale(1.15); visibility: hidden; } }
body.is-ready .intro__bar--top { transform: translateY(-100%); transition-delay: 0.25s; }
body.is-ready .intro__bar--bottom { transform: translateY(100%); transition-delay: 0.25s; }

/* ------------------------------- Grain / progress / cursor ------------------------------- */
.grain {
  position: fixed; inset: -50%; z-index: 150; pointer-events: none; opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); }

.cursor {
  position: fixed; top: 0; left: 0; z-index: 180; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--text); mix-blend-mode: difference;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.3s, box-shadow 0.3s, opacity 0.3s;
  display: grid; place-items: center; opacity: 0;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-hover { width: 48px; height: 48px; margin: -24px 0 0 -24px; background: transparent; mix-blend-mode: normal; box-shadow: inset 0 0 0 1.5px rgba(237, 242, 244, 0.85); }
.cursor.has-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--blue-btn); mix-blend-mode: normal; }
.cursor__label { font-size: var(--fs-tag); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity 0.2s; }
.cursor.has-label .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ------------------------------- Nav ------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  transition: background 0.5s var(--ease), border-color 0.5s, transform 0.6s var(--ease), backdrop-filter 0.5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 12, 0.62);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; justify-self: start; }
.nav__brand img { width: 28px; height: 28px; transition: transform 0.6s var(--ease); }
.nav__brand:hover img { transform: rotate(-8deg) scale(1.06); }
.nav__links { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(10, 10, 12, 0.5); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--line); }
.nav__links a {
  position: relative; padding: 7px 16px; border-radius: 999px; font-size: var(--fs-small); font-weight: 500; color: rgba(237, 242, 244, 0.72);
  transition: color 0.3s, background 0.3s;
}
.nav__links a:hover { color: var(--text); }
.nav__links a.is-active { color: var(--text); background: rgba(237, 242, 244, 0.1); }
.nav__right { display: flex; align-items: center; gap: 6px; justify-self: end; }
.icon-link { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); transition: color 0.3s, background 0.3s; }
.icon-link:hover { color: var(--text); background: rgba(237, 242, 244, 0.08); }

.lang { display: flex; align-items: center; }
.lang button { position: relative; display: grid; place-items: center; width: 36px; height: 44px; }
.lang img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; opacity: 0.5; transition: opacity 0.3s, transform 0.4s var(--ease), box-shadow 0.3s; box-shadow: 0 0 0 1px rgba(237, 242, 244, 0.25); }
.lang button:hover img { opacity: 1; transform: scale(1.08); }
.lang button[aria-pressed="true"] img { opacity: 1; box-shadow: 0 0 0 2px rgba(10, 10, 12, 0.6), 0 0 0 4px var(--text); }
.footer__top::after, .burger::after { content: ""; position: absolute; inset: 50% 0 auto; height: 44px; transform: translateY(-50%); }

.burger { display: none; width: 40px; height: 40px; border-radius: 50%; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); transition: transform 0.45s var(--ease), top 0.45s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 23px; }
body.menu-open .burger span:first-child { top: 19.5px; transform: rotate(45deg); }
body.menu-open .burger span:last-child { top: 19.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: rgba(10, 10, 12, 0.96);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 32px) var(--gutter) 40px;
  opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(2.4rem, 11vw, 3.6rem); letter-spacing: -0.035em; line-height: 1.15;
  transform: translateY(24px); opacity: 0; transition: transform 0.7s var(--ease), opacity 0.7s var(--ease);
}
body.menu-open .mobile-menu nav a { transform: none; opacity: 1; }
body.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: 0.05s; }
body.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: 0.1s; }
body.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: 0.15s; }
.mobile-menu__foot { display: flex; gap: 24px; color: var(--muted); font-size: var(--fs-small); font-weight: 500; }

/* ------------------------------- Buttons ------------------------------- */
.btn {
  --pad: 14px 24px;
  position: relative; display: inline-flex; align-items: center; gap: 10px; padding: var(--pad);
  border-radius: 999px; font-weight: 500; font-size: var(--fs-body); letter-spacing: -0.005em; white-space: nowrap;
  transition: background 0.35s var(--ease), color 0.35s, border-color 0.35s, box-shadow 0.4s var(--ease);
  will-change: transform;
}
.btn--lg { --pad: 18px 30px; font-size: var(--fs-lead); }
.btn--primary { background: var(--blue-btn); color: #fff; }
.btn--primary:hover { background: var(--blue-btn-2); box-shadow: 0 12px 40px -8px rgba(58, 134, 255, 0.6); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(10, 10, 12, 0.25); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--text); background: rgba(237, 242, 244, 0.06); }
.btn svg { transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ------------------------------- Hero ------------------------------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px; width: 100%;
  overflow: hidden; display: flex; align-items: flex-end; isolation: isolate;
}
.hero__media { position: absolute; inset: 0 0 3px; z-index: -2; overflow: hidden; -webkit-mask: linear-gradient(#000 88%, transparent calc(100% - 3px)); mask: linear-gradient(#000 88%, transparent calc(100% - 3px)); background: #000 center / cover no-repeat; }
/* el último tramo del vídeo se funde con el fondo, sin salir de la portada */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 24%; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(10,10,12,0.94) 10%, rgba(10,10,12,0.74) 28%, rgba(10,10,12,0.44) 52%, rgba(10,10,12,0.17) 76%, rgba(10,10,12,0) 100%);
}
.hero__video {
  width: 100%; height: 100%; object-fit: cover; transform: scale(1.12);
  transition: transform 2.4s var(--ease), opacity 1.2s ease; opacity: 0;
}
.hero__video.is-playing { opacity: 1; }
body.is-ready .hero__video { transform: scale(var(--hero-scale, 1.02)); }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,10,12,0.55) 0%, rgba(10,10,12,0) 22%),
    linear-gradient(90deg, rgba(10,10,12,0.6) 0%, rgba(10,10,12,0) 65%),
    linear-gradient(0deg, rgba(10,10,12,0.78) 0%, rgba(10,10,12,0.62) 34%, rgba(10,10,12,0.34) 52%, rgba(10,10,12,0) 72%),
    radial-gradient(120% 80% at 50% 50%, transparent 55%, rgba(0,0,0,0.45) 100%);
}

.hero__content {
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(110px, 16vh, 150px);
  will-change: transform, opacity;
}
.hero__eyebrow { opacity: 0; transform: translateY(12px); transition: opacity 1s var(--ease) 0.9s, transform 1s var(--ease) 0.9s; }
.hero__title {
  font-family: var(--f-display); font-weight: 600; letter-spacing: -0.035em; line-height: 1.04;
  font-size: var(--fs-h1); margin: 0 0 clamp(30px, 4.5vh, 44px);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.3s var(--ease); }
.hero__title .line:nth-child(1) > span { transition-delay: 0.95s; }
.hero__title .line:nth-child(2) > span { transition-delay: 1.07s; }
.line--accent > span {
  background: linear-gradient(90deg, var(--text) 0%, #c9cfdc 35%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__ctas .btn { min-width: min(100%, clamp(300px, 26vw, 370px)); justify-content: center; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; transform: translateY(12px); transition: opacity 1s var(--ease) 1.4s, transform 1s var(--ease) 1.4s; }
body.is-ready .hero__eyebrow, body.is-ready .hero__ctas { opacity: 1; transform: none; }
body.is-ready .hero__title .line > span { transform: none; }

.hero__hud {
  position: absolute; left: 0; right: 0; bottom: 0; height: 64px; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  font-size: var(--fs-tag); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  opacity: 0; transition: opacity 1s ease 1.6s;
}
body.is-ready .hero__hud { opacity: 1; }
.hud__scroll { grid-column: 2; display: inline-flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 12px; color: var(--muted); transition: color 0.3s; }
.hud__scroll:hover { color: var(--text); }
.hud__scroll svg { animation: scrollcue 1.8s var(--ease-io) infinite; }
@keyframes scrollcue { 0%, 100% { transform: translateY(-2px); opacity: 0.5; } 50% { transform: translateY(4px); opacity: 1; } }

/* ------------------------------- Manifesto ------------------------------- */
.manifesto { position: relative; padding: clamp(110px, 18vh, 200px) 0; }
.manifesto__sticky { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.manifesto__inner { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 30vw, 430px); gap: clamp(40px, 7vw, 110px); align-items: center; }
.manifesto__copy { min-width: 0; }
.manifesto__title { display: flex; margin-bottom: clamp(22px, 3.5vh, 34px); }
.manifesto__text {
  font-family: var(--f-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.28;
  font-size: clamp(1.3rem, 2.5vw, 2.3rem);
}
.manifesto__text p { margin: 0; max-width: 780px; text-wrap: pretty; font-family: var(--f-body); font-weight: 400; letter-spacing: 0; font-size: var(--fs-lead); line-height: 1.55; }
.manifesto__text p .w { color: var(--text-2); }
.manifesto__text p .w.is-key { color: var(--accent); font-weight: 500; }
.manifesto__text p:first-child {
  max-width: none; margin-bottom: clamp(28px, 5vh, 52px);
  font-family: var(--f-display); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; font-size: var(--fs-h2);
}
.manifesto__text p:first-child .w { color: var(--text); }
.manifesto__text p + p { margin-top: 0.7em; }
.manifesto__text p:first-child + p { margin-top: 0; }
.manifesto__text .w {
  display: inline-block; color: var(--text); opacity: 0; filter: blur(14px); transform: translateY(0.2em) scale(1.04);
  transition: opacity 0.9s var(--ease), filter 1.2s var(--ease), transform 1.2s var(--ease);
  transition-delay: var(--wd, 0s);
}
.manifesto__text .w.is-key { color: var(--accent); }
.manifesto__text .is-key .w__mark { color: var(--text-2); font-weight: 400; }
.manifesto__title { opacity: 0; filter: blur(10px); transition: opacity 0.9s var(--ease), filter 1.1s var(--ease); }
.manifesto.is-in .w, .manifesto.is-in .manifesto__title { opacity: 1; filter: blur(0); transform: none; }

/* Lo que hago: iconos de línea */
.formats {
  list-style: none; margin: 0 0 clamp(64px, 10vh, 110px); padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 8px;
}
.formats li {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 18px 0; text-align: center;
  font-size: var(--fs-body); font-weight: 500; line-height: 1.3; color: var(--muted); transition: color 0.5s var(--ease), opacity 0.5s var(--ease);
}
.formats li::before {
  content: ""; position: absolute; left: 50%; top: 70px; width: 230px; height: 230px; max-width: 150%; transform: translate(-50%, -50%) scale(0.7);
  background: radial-gradient(closest-side, rgba(239, 35, 60, 0.16), transparent); opacity: 0; pointer-events: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.formats li.is-on { color: var(--text); }
.formats li.is-on::before { opacity: 1; transform: translate(-50%, -50%); }
.formats li > span { position: relative; opacity: 0; filter: blur(8px); transition: opacity 0.9s var(--ease), filter 1.1s var(--ease); transition-delay: calc(0.5s + var(--i, 0) * 0.12s); }
.formats.is-in li > span { opacity: 1; filter: none; }
.fi { position: relative; width: 104px; height: 104px; overflow: visible; transition: transform 0.8s var(--ease); }
.formats li.is-on .fi { transform: translateY(-4px) scale(1.05); }
.fi .ln {
  fill: none; stroke: var(--text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0;
  transition: stroke-dashoffset 1.8s var(--ease-io), opacity 0.5s; transition-delay: calc(var(--i, 0) * 0.12s + var(--n, 0) * 0.05s);
}
.fi .red { stroke: var(--accent); }
.fi .soft { stroke: var(--dim); }
.fi .dot { fill: var(--bg); }
.fi .solid { fill: var(--bg); }
.fi .beam { opacity: 0; transition: opacity 1.2s; transition-delay: calc(0.9s + var(--i, 0) * 0.12s); }
.formats.is-in .ln { stroke-dashoffset: 0; opacity: 1; }
.formats.is-in .beam { opacity: 1; }
.formats.is-drawn .ln { stroke-dasharray: none; transition: none; }

/* ------------------------------- Sections ------------------------------- */
.section { padding: clamp(90px, 14vh, 160px) 0; position: relative; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 6vh, 64px); }
.section__title { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; font-size: var(--fs-h2); margin: 0; }

[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ------------------------------- Tabs ------------------------------- */
.tabs { position: relative; display: inline-flex; padding: 5px; border-radius: 999px; border: 1px solid rgba(237, 242, 244, 0.28); background: rgba(237, 242, 244, 0.07); }
.tabs button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-size: var(--fs-body); font-weight: 600; color: var(--text); transition: color 0.35s, background 0.35s;
}
.tabs button svg { flex: none; transition: transform 0.5s var(--ease); }
.tabs button:hover svg { transform: scale(1.12); }
.tabs button[aria-selected="false"]:hover { background: rgba(239, 35, 60, 0.16); }
.tabs button[aria-selected="true"] { color: #fff; }
.tabs button[aria-selected="false"] svg { color: var(--accent-2); }
/* al aparecer, la pastilla se asoma una vez hacia Fotografía para sugerir el cambio */
@keyframes tabHint { 0%, 100% { translate: 0; } 45% { translate: 18px; } }
.tabs.is-in .tabs__pill { animation: tabHint 1.1s var(--ease-io) 1.3s 1; }
.tabs__pill { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--accent-btn); box-shadow: 0 8px 34px -6px rgba(239, 35, 60, 0.6); transition: transform 0.55s var(--ease), width 0.55s var(--ease); }

.panel { display: none; }
.panel.is-active { display: block; animation: panelIn 0.8s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ------------------------------- Carrusel de cine (vídeos) ------------------------------- */
.reel { --w: min(64vw, 1060px, 64svh * 1.86); --lb: 1.37; position: relative; overflow: hidden; overflow: clip; overflow-clip-margin: 0; padding-bottom: 4px; }
.reel__track { position: relative; height: calc(var(--w) / 1.86); touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.reel__track.is-dragging { cursor: grabbing; }
.reel__track.is-dragging .reel__slide { pointer-events: none; }
.reel__slide {
  position: absolute; top: 0; left: calc(50% - var(--w) / 2); width: var(--w); height: 100%; overflow: hidden; border-radius: clamp(14px, 1.6vw, 24px); text-align: left; background: var(--surface); isolation: isolate;
  transform: translate3d(calc(var(--d) * 90.5%), 0, 0) scale(calc(1 - var(--k) * 0.24)); will-change: transform;
}
.reel__slide:focus-visible { outline-offset: -4px; border-radius: clamp(14px, 1.6vw, 24px); }
.reel__media, .reel__shade { position: absolute; inset: 0; display: block; }
.reel__media { filter: saturate(calc(1 - var(--k) * 0.55)); z-index: -2; transform: translateX(calc(var(--d) * -9%)) scale(1.2); } /* ligera profundidad al pasar */
.reel__media img, .reel__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; scale: 0.8334; }
.reel__media video { opacity: 0; transition: opacity 0.7s var(--ease); }
.reel__slide.is-live .reel__media video { opacity: 1; }
.reel__slide.is-letterbox .reel__media video { scale: calc(0.8334 * var(--lb)); }
/* vídeos verticales: el reel entero a la derecha, sobre su propia imagen desenfocada */
.reel__slide.is-vertical .reel__media img { filter: blur(36px) brightness(0.55) saturate(1.2); scale: 1; }
.reel__phone { position: absolute; z-index: 0; top: 5%; bottom: 5%; right: 19%; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(237, 242, 244, 0.16); }
.reel__phone img, .reel__phone video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__phone video { opacity: 0; transition: opacity 0.7s var(--ease); }
.reel__slide.is-live .reel__phone video { opacity: 1; }
.reel__phone::after { content: ""; position: absolute; inset: 0; background: #0a0a0c; opacity: calc(var(--k) * 0.74); }
.reel__item.is-vertical img { object-position: 50% 22%; }
.reel__shade { z-index: -1; background: linear-gradient(0deg, rgba(10,10,12,0.8) 0%, rgba(10,10,12,0.3) 32%, rgba(10,10,12,0) 58%); }
.reel__shade::after { content: ""; position: absolute; inset: 0; background: #0a0a0c; opacity: calc(var(--k) * 0.74); transition: opacity 0.4s; }
.reel__slide:not(.is-on):hover .reel__shade::after { opacity: calc(var(--k) * 0.45); }
.reel__info { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: clamp(18px, 2.8vw, 42px); opacity: calc(1 - var(--k) * 2.2); transform: translateY(calc(var(--k) * 24px)); }
.reel__text { display: block; min-width: 0; }
.reel__title { display: block; font-family: var(--f-display); font-weight: 600; letter-spacing: -0.04em; line-height: 1.04; font-size: clamp(1.75rem, 4vw, 3.9rem); text-wrap: balance; }
.reel__meta { display: block; margin-top: 8px; color: var(--text-2); font-size: clamp(0.95rem, 1.3vw, 1.2rem); }
.reel__play {
  flex: none; display: grid; place-items: center; width: clamp(50px, 4.6vw, 68px); aspect-ratio: 1; border-radius: 50%;
  background: rgba(10,10,12,0.35); border: 1px solid rgba(237,242,244,0.3); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background 0.4s var(--ease), border-color 0.4s, transform 0.5s var(--ease);
}
.reel__play svg { translate: 1px 0; }
.reel__slide.is-on:hover .reel__play { background: var(--blue); border-color: var(--blue); transform: scale(1.06); }
/* luz ambiente: el color del vídeo central se refleja alrededor */
.reel__glow { position: absolute; inset: 0; pointer-events: none; -webkit-mask: radial-gradient(closest-side, #000 35%, transparent 100%); mask: radial-gradient(closest-side, #000 35%, transparent 100%); }
.reel__glow i { position: absolute; inset: 0; background: center / cover no-repeat; filter: blur(70px) saturate(1.3); opacity: 0; transition: opacity 1.4s var(--ease); }
.reel__glow i.is-on { opacity: 0.42; }
/* los laterales se funden con el fondo hacia los bordes de la pantalla */
.reel__view::before, .reel__view::after { content: ""; position: absolute; z-index: 15; top: 0; bottom: 0; left: 0; width: 13vw; pointer-events: none; background: linear-gradient(90deg, var(--bg) 8%, rgba(10,10,12,0)); }
.reel__view::after { left: auto; right: 0; transform: scaleX(-1); }
/* flechas a los lados del vídeo central */
.reel__view { position: relative; }
.reel__arrow {
  position: absolute; z-index: 20; top: 50%; width: 60px; height: 60px; margin: -30px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(237, 242, 244, 0.94); color: #0a0a0c; box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5); transition: transform 0.4s var(--ease), background 0.3s;
}
.reel__arrow[data-dir="-1"] { left: calc(50% - var(--w) / 2); }
.reel__arrow[data-dir="1"] { right: calc(50% - var(--w) / 2); }
.reel__arrow:hover { background: #fff; transform: scale(1.08); }
/* tira con todos los vídeos: fotogramas grandes con el título encima */
.reel__strip { position: relative; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: clamp(10px, 1vw, 16px); margin-top: clamp(22px, 3.2vh, 34px); }
.reel__strip.is-scroll { display: flex; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; padding-top: 6px; padding-bottom: 6px; }
.reel__strip.is-scroll::-webkit-scrollbar { display: none; }
.reel__strip.is-scroll .reel__item { flex: none; width: 22%; }
@media (min-width: 981px) {
  .reel__strip.is-tall { gap: 10px; }
  .reel__strip.is-tall .reel__item { aspect-ratio: 1 / 1.02; }
  .reel__strip.is-tall .reel__label { padding: 12px 12px 15px; }
  .reel__strip.is-tall .reel__name { font-size: clamp(0.9rem, 1.12vw, 1.05rem); text-wrap: balance; }
  .reel__strip.is-tall .reel__kind { font-size: 0.76rem; }
}
.reel__item { position: relative; display: block; aspect-ratio: 16 / 8.6; border-radius: 14px; overflow: hidden; text-align: left; background: var(--surface); isolation: isolate; transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), box-shadow 0.5s var(--ease); opacity: 0.76; }
.reel__item:hover { opacity: 1; transform: translateY(-4px); }
.reel__item.is-on { opacity: 1; box-shadow: 0 0 0 2px rgba(237, 242, 244, 0.9); }
.reel__thumb { position: absolute; inset: 0; z-index: -1; }
.reel__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.reel__item:hover img, .reel__item.is-on img { transform: scale(1.06); }
.reel__thumb::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(10,10,12,0.88) 0%, rgba(10,10,12,0.25) 55%, rgba(10,10,12,0) 80%); }
.reel__item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; opacity: 0; }
.reel__item.is-on::after { opacity: 1; }
.reel__label { position: absolute; left: 0; right: 0; bottom: 0; display: block; padding: 14px 16px 16px; }
.reel__name { display: block; font-family: var(--f-display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; font-size: clamp(1rem, 1.45vw, 1.35rem); color: var(--text); }
.reel__kind { display: block; margin-top: 3px; color: var(--text-2); font-size: var(--fs-small); }

/* ------------------------------- Photo strip ------------------------------- */
/* Muro de fotos */
.wall { --g: clamp(8px, 0.9vw, 14px); --H: clamp(380px, 48vh, 560px); display: grid; gap: var(--g); overflow: hidden; }
.lane { display: flex; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; animation: panelIn 0.9s var(--ease) backwards; animation-delay: calc(var(--r, 0) * 0.12s); }
.lane::-webkit-scrollbar { display: none; }
.lane.is-dragging { cursor: grabbing; }
.lane.is-dragging .shot { pointer-events: none; }
.lane__set { flex: none; display: flex; }
/* las fotos de un mismo shooting van juntas; entre shootings hay más aire */
.lane__col { flex: none; display: flex; flex-direction: column; gap: var(--g); height: var(--H); width: calc((var(--H) - var(--g) * var(--gaps)) * var(--k)); }
.lane__shoot { flex: none; display: flex; gap: var(--g); padding-right: clamp(30px, 3.6vw, 60px); }
.shot { flex: none; position: relative; width: 100%; border-radius: 10px; overflow: hidden; background: var(--surface); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter 0.5s var(--ease); -webkit-user-drag: none; user-select: none; }
.wall:hover .shot img { filter: brightness(0.62); }
.wall .shot:hover img, .shot:focus-visible img { filter: none; transform: scale(1.04); }
.shot:focus-visible { outline: 2px solid var(--blue-2); outline-offset: -3px; }
.player.is-photos .player__meta { display: none; }
.player.is-photos .player__frame { width: min(100%, 1300px); }

/* ------------------------------- Services ------------------------------- */
.services__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.services__list li {
  position: relative; display: grid; grid-template-columns: 80px 1fr minmax(0, 464px); align-items: center; gap: 24px;
  padding: clamp(22px, 3.4vh, 36px) 24px clamp(22px, 3.4vh, 36px) 0; border-bottom: 1px solid var(--line); overflow: hidden;
  transition: opacity 0.5s var(--ease), padding 0.6s var(--ease);
}
/* Fondo que barre la fila al pasar el ratón */
.services__list li::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(239, 35, 60, 0.14), rgba(239, 35, 60, 0) 75%);
  clip-path: inset(0 100% 0 0); transition: clip-path 0.8s var(--ease);
}
.services__list { position: relative; z-index: 0; }
.services__list li:hover::after { clip-path: inset(0 0 0 0); }
@media (hover: hover) {
  .services__list:hover li { opacity: 0.35; }
  .services__list:hover li:hover { opacity: 1; padding-left: 18px; padding-right: 18px; }
}
.services__list li::before {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.9s var(--ease);
}
.services__list li:hover::before { transform: scaleX(1); }
.services__list .num { font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.08em; color: var(--muted); transition: color 0.4s; }
.services__list li:hover .num { color: var(--accent); }
.services__list h3 { margin: 0; font-family: var(--f-display); font-weight: 600; letter-spacing: -0.025em; font-size: var(--fs-h3); line-height: 1.1; transition: transform 0.6s var(--ease); }
.services__list li:hover h3 { transform: translateX(10px); }
.services__list p { margin: 0; color: var(--muted); font-size: var(--fs-body); transition: color 0.5s var(--ease); }
.services__list li:hover p { color: var(--text-2); }

/* Vídeo flotante de servicios */
.svc-preview { position: fixed; top: 0; left: 0; z-index: 60; pointer-events: none; width: 0; height: 0; }
.svc-preview__inner {
  position: absolute; width: clamp(300px, 30vw, 460px); aspect-ratio: 4 / 3; left: 0; top: 0;
  transform: translate(36px, -50%) scale(0.6); opacity: 0; border-radius: var(--radius); overflow: hidden;
  clip-path: inset(50% 0 50% 0 round var(--radius)); background: var(--surface);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  transition: transform 0.7s var(--ease), opacity 0.4s var(--ease), clip-path 0.7s var(--ease);
}
.svc-img { display: none; }
@media (hover: none), (pointer: coarse) { .svc-img { display: block; grid-column: 1 / -1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-top: 16px; } }
.svc-preview.is-on .svc-preview__inner { transform: translate(36px, -50%) scale(1); opacity: 1; clip-path: inset(0 0 0 0 round var(--radius)); }
.svc-preview :is(video, img) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 0.5s var(--ease), transform 0.9s var(--ease); }
.svc-preview :is(video, img).is-active { opacity: 1; transform: none; }

/* ------------------------------- Clientes ------------------------------- */
.clients { margin-top: clamp(64px, 10vh, 110px); display: flex; align-items: center; gap: clamp(20px, 4vw, 56px); }
.clients[hidden] { display: none; }
.clients__label { color: var(--muted); white-space: nowrap; margin: 0; }
.clients__track { position: relative; flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.clients__row { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.clients__track:hover .clients__row { animation-play-state: paused; }
.clients__group { display: flex; align-items: center; gap: clamp(40px, 6vw, 88px); padding-right: clamp(40px, 6vw, 88px); }
.client { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; font-size: var(--fs-h4); color: var(--dim); white-space: nowrap; transition: color 0.4s; }
.client:hover { color: var(--text); }
.client img { height: 28px; width: auto; opacity: 0.55; filter: grayscale(1) brightness(1.6); transition: opacity 0.4s, filter 0.4s; }
.client:hover img { opacity: 1; filter: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------- About ------------------------------- */
.about__photo { margin: 0; }
.about__caption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; margin-top: 18px; }
.about__caption strong { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; font-size: var(--fs-h4); line-height: 1.2; }
.about__caption span { color: var(--muted); font-size: var(--fs-small); }
.about__photo-inner { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.about__photo img { width: 100%; height: 118%; object-fit: cover; transform: translateY(var(--py, -6%)); will-change: transform; }
/* ------------------------------- Trayectoria ------------------------------- */
.path { position: relative; margin-top: clamp(96px, 15vh, 160px); }
.path__svg { position: absolute; left: 6px; top: 0; width: calc(100% - 6px); height: 270px; overflow: visible; pointer-events: none; clip-path: inset(-90px 100% -30px -10px); transition: clip-path 2.2s var(--ease-io); }
.path.is-in .path__svg { clip-path: inset(-90px 0 -30px -10px); }
.path__line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.path__light { position: absolute; margin-left: 6px; width: 120px; height: 120px; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; opacity: 0; background: radial-gradient(closest-side, rgba(255, 120, 130, 0.75), rgba(239, 35, 60, 0.28) 28%, transparent); mix-blend-mode: screen; }
.path:not(.is-live) .path__light { opacity: 0 !important; }
.path__items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); min-height: 400px; }
.path__item { position: relative; padding: calc(var(--y, 0px) + 34px) 8px 0 0; opacity: 0; transform: translateY(16px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); transition-delay: calc(0.2s + var(--i, 0) * 0.42s); }
.path.is-in .path__item { opacity: 1; transform: none; }
/* cada etapa está justo en 0 %, 25 %, 50 % y 75 % del ancho */
.path__items { column-gap: 0; }
.path__node { position: absolute; left: 0; top: var(--y, 0px); width: 13px; height: 13px; margin-top: -6.5px; border-radius: 50%; background: var(--bg); border: 2px solid var(--text); transition: background 0.5s, box-shadow 0.5s, transform 0.5s var(--ease); }
.path__item.is-exp .path__node { border-color: var(--accent); }
.path__item.is-lit .path__node { transform: scale(1.25); background: var(--text); }
.path__item.is-exp.is-lit .path__node, .path__item.is-now .path__node { background: var(--accent); }
.path__item.is-now .path__node { animation: cvPulse 2s var(--ease-io) infinite; }
@keyframes cvPulse { 0% { box-shadow: 0 0 0 0 rgba(239, 35, 60, 0.6); } 80%, 100% { box-shadow: 0 0 0 14px rgba(239, 35, 60, 0); } }
.path__group {
  position: absolute; left: 0; bottom: auto; top: calc(var(--y, 0px) - 96px); display: flex; align-items: center; gap: 12px; margin: 0; white-space: nowrap;
  font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; font-size: var(--fs-h4); color: var(--text);
}
.path__group svg { flex: none; color: var(--accent-2); }
.path__tag { display: block; margin-bottom: 8px; color: var(--muted); transition: color 0.4s; }
.path__item.is-now .path__tag { color: var(--accent-2); }
.path__title { margin: 0; max-width: 240px; font-family: var(--f-display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; font-size: var(--fs-h4); color: var(--text-2); text-wrap: balance; transition: color 0.4s; }
.path__item.is-lit .path__title, .path__item:hover .path__title, .path__item.is-now .path__title { color: var(--text); }
.path__org { margin: 6px 0 0; color: var(--muted); font-size: var(--fs-body); }
/* puesto actual, destacado */
.path__item.is-now .path__tag { display: inline-block; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; background: var(--accent-btn); color: #fff; line-height: 1; }
.path__item.is-now .path__title { max-width: none; font-size: var(--fs-h3); line-height: 1.08; letter-spacing: -0.035em; }
.path__item.is-now .path__org { margin-top: 10px; color: var(--text); font-weight: 500; font-size: var(--fs-lead); }

/* ------------------------------- Contact ------------------------------- */
.contact { padding: clamp(120px, 18vh, 200px) 0 clamp(110px, 16vh, 180px); overflow: hidden; isolation: isolate; }
.contact__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px circle at var(--gx, 50%) var(--gy, 55%), rgba(239, 35, 60, 0.20), transparent 65%),
    radial-gradient(900px circle at 50% 60%, rgba(43, 45, 66, 0.35), transparent 70%);
}
.contact__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact__inner > .eyebrow { margin-bottom: clamp(28px, 4vh, 40px); }
.contact__title {
  font-family: var(--f-display); font-weight: 600; letter-spacing: -0.06em; line-height: 0.9;
  font-size: clamp(4.2rem, 17vw, 15rem); margin: 0 0 clamp(28px, 4.5vh, 44px); padding: 0.06em 0.04em 0.08em;
  overflow: hidden; cursor: default; user-select: none;
}
.contact__word { display: inline-block; }
.contact__title.is-live { overflow: visible; }
.contact__title .ch, .contact__title .dot {
  display: inline-block; transform: translateY(110%) rotate(8deg); opacity: 0; transform-origin: 50% 100%;
  transition: transform 1.1s var(--ease) calc(var(--i, 0) * 55ms), opacity 0.8s var(--ease) calc(var(--i, 0) * 55ms), color 0.4s;
}
.contact__title.is-in .ch, .contact__title.is-in .dot { transform: none; opacity: 1; }
.contact__title.is-live .ch, .contact__title.is-live .dot { transition: transform 0.6s var(--ease), color 0.4s; }
.contact__title .ch.is-hot { color: #fff; text-shadow: 0 0 40px rgba(237, 242, 244, 0.25); }
.contact__title .dot { color: var(--accent); }
.contact__title.is-live .dot { animation: dotPulse 2.4s ease-in-out infinite; }
@keyframes dotPulse { 50% { text-shadow: 0 0 34px rgba(239, 35, 60, 0.75); } }
.contact__sub { color: var(--text-2); max-width: 680px; white-space: pre-line; text-wrap: balance; margin: 0 0 clamp(40px, 6vh, 60px); font-size: var(--fs-lead); line-height: 1.55; }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* Menú del correo */
.mailbox { position: relative; }
.mail-chevron { margin-right: -4px; transition: transform 0.4s var(--ease) !important; }
.mailbox.is-open .mail-chevron { transform: rotate(180deg) !important; }
.mail-menu {
  position: absolute; left: 50%; top: calc(100% + 12px); z-index: 5; min-width: 100%; padding: 8px;
  display: flex; flex-direction: column; gap: 2px; text-align: left;
  background: rgba(22, 22, 28, 0.82); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  opacity: 0; visibility: hidden; transform: translate(-50%, -8px) scale(0.97); transform-origin: 50% 0;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0.35s;
}
.mailbox.is-open .mail-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
.mail-menu a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; font-size: var(--fs-small); font-weight: 500; color: var(--text-2); transition: background 0.25s, color 0.25s; }
.mail-menu a:hover { background: rgba(58, 134, 255, 0.14); color: var(--text); }
.mail-menu__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); transition: background 0.25s, box-shadow 0.25s; }
.mail-menu a:hover .mail-menu__dot { background: var(--blue); box-shadow: 0 0 10px var(--blue); }

/* Redes */
.contact__social { display: flex; justify-content: center; gap: 20px; margin-top: clamp(64px, 9vh, 96px); }
.social {
  position: relative; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  color: var(--text); border: 1px solid var(--line-2); background: rgba(237, 242, 244, 0.03); overflow: visible;
  transition: border-color 0.4s, color 0.4s, box-shadow 0.5s var(--ease);
}
.social::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%; background: var(--blue);
  transform: scale(0); transition: transform 0.55s var(--ease); z-index: 0;
}
.social svg { position: relative; z-index: 1; transition: transform 0.6s var(--ease) !important; }
.social:hover { border-color: var(--blue); color: #fff; box-shadow: 0 16px 40px -10px rgba(58, 134, 255, 0.6); }
.social:hover::before { transform: scale(1); }
.social:hover svg { transform: rotate(-10deg) scale(1.12) !important; }
.social::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 14px); white-space: nowrap;
  padding: 7px 12px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: var(--fs-small); font-weight: 600;
  opacity: 0; transform: translate(-50%, 6px); pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
.social:hover::after { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------- Footer ------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: var(--fs-small); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__top { position: relative; color: var(--muted); transition: color 0.3s; }
.footer__top:hover { color: var(--text); }
/* permiso antes de cargar YouTube */
.gate { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; background: #0a0a0c; }
.gate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.34; }
.gate__box { position: relative; max-width: 440px; text-align: center; }
.gate p { margin: 20px 0 0; color: var(--text-2); font-size: var(--fs-small); line-height: 1.55; text-wrap: balance; }
.gate a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@media (max-width: 600px) { .gate .btn { padding: 13px 22px; font-size: 1rem; } .gate p { margin-top: 10px; font-size: 0.78rem; line-height: 1.4; } }

/* ------------------------------- Player ------------------------------- */
.player { position: fixed; inset: 0; z-index: 170; display: grid; place-items: safe center; padding: 72px var(--gutter) 40px; visibility: hidden; overflow-y: auto; overscroll-behavior: contain; }
.player__backdrop { position: fixed; inset: 0; background: rgba(5,5,7,0.9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); opacity: 0; transition: opacity 0.6s var(--ease); }
.player__frame { position: relative; width: min(100%, 1300px, calc((100vh - 330px) * 16 / 9)); min-width: min(100%, 560px); opacity: 0; transform: scale(0.94) translateY(20px); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
.player__media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 40px 120px -20px rgba(0,0,0,0.8); }
.player__media video, .player__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.player__media.is-photo { aspect-ratio: auto; background: transparent; box-shadow: none; display: grid; place-items: center; }
.player__media.is-photo img { position: static; max-height: calc(100vh - 190px); width: auto; margin: 0 auto; border-radius: var(--radius); }
.player__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 20px; flex-wrap: wrap; }
.player__title { font-family: var(--f-display); font-weight: 600; font-size: var(--fs-h4); letter-spacing: -0.025em; }
.player__sub { color: var(--muted); font-size: var(--fs-small); }
.player__meta .player__sub { flex: 1; }
.player__copy {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: var(--fs-small); font-weight: 500; color: var(--text); transition: background 0.3s, border-color 0.3s;
}
.player__copy[hidden] { display: none; }
.player__copy:hover { background: rgba(237, 242, 244, 0.08); border-color: rgba(237, 242, 244, 0.4); }
/* Vídeo vertical 9:16: vídeo a la izquierda y ficha a la derecha */
.player.is-vertical .player__frame { width: min(100%, 940px); min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr; column-gap: clamp(28px, 4vw, 60px); }
.player.is-vertical .player__media { grid-row: 1 / 5; height: min(calc(100vh - 130px), 800px); aspect-ratio: 9 / 16; }
.player.is-vertical .player__meta { grid-row: 2; flex-direction: column; align-items: flex-start; gap: 12px; padding: 0; }
.player.is-vertical .player__copy { margin-top: 6px; }
.player__nav { position: fixed; z-index: 2; top: 50%; width: 56px; height: 56px; margin-top: -28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(10, 10, 12, 0.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; transition: background 0.3s, border-color 0.3s; }
.player__nav[hidden] { display: none; }
.player__nav--prev { left: max(16px, calc(var(--gutter) - 8px)); }
.player__nav--next { right: max(16px, calc(var(--gutter) - 8px)); }
.player__nav:hover { background: var(--accent-btn); border-color: var(--accent-btn); }
.player__media.is-photo img { height: auto; animation: panelIn 0.45s var(--ease); touch-action: pan-y; }
.player:not(.is-open) .player__nav { display: none; }
.player__close {
  position: fixed; top: 18px; z-index: 2; right: var(--gutter); display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; min-width: 44px; justify-content: center; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: var(--fs-small);
  opacity: 0; transition: opacity 0.5s var(--ease), background 0.3s;
}
.player__close:hover { background: rgba(237,242,244,0.08); }
.player.is-open { visibility: visible; }
.player.is-open .player__backdrop, .player.is-open .player__close { opacity: 1; }
.player.is-open .player__frame { opacity: 1; transform: none; }

/* ------------------------------- Toast ------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 190; transform: translate(-50%, 20px); opacity: 0;
  padding: 12px 20px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: var(--fs-small); font-weight: 500;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------- Separación entre secciones -------------------------------
   Una línea fina que se abre desde el centro y una luz muy suave debajo. */
.work, .manifesto, .services { padding-bottom: clamp(100px, 16vh, 180px); }
.manifesto, .services, .contact { padding-top: clamp(100px, 16vh, 180px); }
.manifesto::before, .services::before, .contact::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent 4%, rgba(237, 242, 244, 0.22) 28%, rgba(237, 242, 244, 0.5) 50%, rgba(237, 242, 244, 0.22) 72%, transparent 96%);
  transform: scaleX(0); opacity: 0; transition: transform 1.6s var(--ease), opacity 0.8s var(--ease);
}
.manifesto::after, .services::after, .contact::after {
  content: ""; position: absolute; top: 1px; left: 0; right: 0; height: 340px; pointer-events: none;
  background: radial-gradient(50% 100% at 50% 0, rgba(200, 214, 235, 0.085), transparent 100%);
  opacity: 0; transition: opacity 1.8s var(--ease) 0.25s;
}
:is(.manifesto, .services, .contact).sep-in::before { transform: none; opacity: 1; }
:is(.manifesto, .services, .contact).sep-in::after { opacity: 1; }

/* ------------------------------- Responsive ------------------------------- */
@media (max-width: 960px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .burger { display: block; }
  .nav__right .icon-link { display: none; }
  .manifesto__inner { grid-template-columns: 1fr; }
  .formats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .reel { --w: min(76vw, 64svh * 1.86); }
  .reel__strip { grid-template-columns: 1fr 1fr; }
  .reel__strip.is-scroll .reel__item { width: 40%; }
  .manifesto .about__photo { max-width: 380px; }
  /* en vertical, el recorrido es una línea que baja */
  .path__svg, .path__light { display: none; }
  .path__items { grid-template-columns: 1fr; min-height: 0; }
  .path__item { padding: 0 0 40px 36px; }
  .path__item:last-child { padding-bottom: 0; }
  .path__item::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: -12px; width: 2px; margin-left: -0.5px; background: rgba(237, 242, 244, 0.4); }
  .path__item.is-exp::before { background: var(--accent); }
  .path__item:last-child::before { display: none; }
  .path__node { top: 9px; }
  .path__group { position: relative; top: 0; z-index: 1; margin: 0 0 26px -36px; padding: 6px 0; background: var(--bg); }
  .path__item:has(.path__group) .path__node { top: 73px; }
  .path__item:has(.path__group)::before { top: 73px; }
  /* aire entre Formación y Experiencia */
  .path__item.is-exp:has(.path__group) { padding-top: 64px; }
  .path__item.is-exp:has(.path__group) .path__node, .path__item.is-exp:has(.path__group)::before { top: 137px; }
  .path__item:has(+ .is-exp .path__group)::before { bottom: 30px; }
  .path__title { max-width: none; }
  .services__list li { grid-template-columns: 48px 1fr; align-items: baseline; padding-right: 0; }
  .services__list p { grid-column: 2; }
  .clients { flex-direction: column; align-items: flex-start; gap: 18px; }
  .clients__track { width: 100%; }
}
@media (max-width: 600px) {
  :root { --nav-h: 60px; }
  .nav__brand span { font-size: 0.95rem; }
  .lang button { width: 31px; }
  .lang img { width: 21px; height: 21px; }
  .formats li { gap: 18px; padding: 10px 0; font-size: var(--fs-small); }
  .formats li::before { top: 52px; width: 150px; height: 150px; }
  .fi { width: 76px; height: 76px; }
  .formats .fi .ln { stroke-width: 2; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .tabs { display: flex; width: 100%; }
  .tabs button { flex: 1 1 0; padding: 0 12px; }
  .contact__actions, .mailbox { width: 100%; }
  .contact__actions .btn { width: 100%; justify-content: center; }
  .wall { --H: 340px; }
  .reel { --w: 78vw; }
  .reel__track { height: min(calc(78vw * 1.2), 62svh); }
  .reel__arrow { display: none; }
  .reel__view::before, .reel__view::after { width: 7vw; }
  .reel__strip { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .reel__strip::-webkit-scrollbar { display: none; }
  .reel__strip { padding-top: 4px; padding-bottom: 4px; }
  .reel__item, .reel__strip.is-scroll .reel__item { flex: none; width: 168px; aspect-ratio: 16 / 11; }
  .reel__label { padding: 12px 12px 14px; }
  .reel__kind { font-size: 0.8rem; }
  .reel__info { padding: 20px; }
  .reel__phone { inset: 0; z-index: -1; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
  .player__close span { display: none; }
  .player__meta .player__sub { flex: 1 0 100%; order: 1; }
  .player__meta > :not(.player__sub):not(.player__title) { order: 2; }
  .player__meta .player__title { flex: 1 0 100%; }
  .player__meta { gap: 6px 16px; }
  .player__copy { margin-top: 10px; }
  /* en móvil las flechas van abajo, sin tapar la foto */
  .player__nav { top: auto; bottom: 34px; margin: 0; }
  .player__nav--prev { left: calc(50% - 68px); }
  .player__nav--next { right: calc(50% - 68px); }
  .player.is-vertical .player__frame { grid-template-columns: 1fr; grid-template-rows: auto; }
  .player.is-vertical .player__media { grid-row: auto; height: auto; width: min(100%, calc((100vh - 230px) * 9 / 16)); margin: 0 auto; }
  .player.is-vertical .player__meta { grid-row: auto; }
  .player.is-vertical .player__meta { padding-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .grain { display: none; }
  .manifesto__text .w, .manifesto__title { opacity: 1; filter: none; transform: none; }
  .contact__title .ch, .contact__title .dot { opacity: 1; transform: none; }
}
