/* =========================================================
   Santos Rositas — Portafolio
   Tokens → base → componentes → secciones → estados
   ========================================================= */

/* ---------- Tokens: claro (siempre sin envolver) ---------- */
:root {
  --paper: #ffffff;
  --paper-2: #f6f6f3;
  --paper-3: #ecece7;
  --card: #ffffff;
  --ink: #121416;
  --ink-2: #4a4f57;
  --ink-3: #868b93;
  --hair: #e7e6e1;
  --hair-2: #d5d3cb;
  --accent: #009938;
  --accent-hover: #00ad40;
  --accent-ink: #ffffff;
  --accent-soft: rgba(0, 153, 56, .10);
  --forest: #123a2b;
  --forest-2: #0b271c;
  --forest-ink: #f1ecdd;
  --veil: rgba(255, 255, 255, .72);
  --shadow-sm: 0 1px 2px rgba(18, 20, 22, .05), 0 4px 14px -8px rgba(18, 20, 22, .12);
  --shadow: 0 1px 2px rgba(18, 20, 22, .05), 0 22px 50px -26px rgba(18, 20, 22, .28);
  --dot-rgb: 18, 20, 22;
  --word: rgba(18, 20, 22, .055);
  --photo-fx: drop-shadow(0 30px 40px rgba(0, 0, 0, .10));

  --f-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --f-serif: "Instrument Serif", "Times New Roman", serif;

  --t-xs: .75rem;
  --t-sm: .875rem;
  --t-base: 1rem;
  --t-md: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: clamp(1.6rem, 2.8vw, 2.5rem);
  --t-2xl: clamp(2.5rem, 5.4vw, 5rem);
  --t-hero: clamp(2.85rem, 6.3vw, 6.25rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --nav-h: 64px;
  color-scheme: light;
}

/* ---------- Oscuro por sistema (pierde ante claro explícito) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e0f10;
    --paper-2: #151617;
    --paper-3: #1e2021;
    --card: #17181a;
    --ink: #edece7;
    --ink-2: #aaa8a0;
    --ink-3: #75746e;
    --hair: #232527;
    --hair-2: #33363a;
    --accent: #00b344;
    --accent-hover: #10c553;
    --accent-ink: #ffffff;
    --accent-soft: rgba(0, 179, 68, .14);
    --forest: #0f2d21;
    --forest-2: #081a13;
    --veil: rgba(14, 15, 16, .7);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px -8px rgba(0, 0, 0, .6);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 22px 50px -26px rgba(0, 0, 0, .8);
    --dot-rgb: 237, 236, 231;
    --word: rgba(237, 236, 231, .045);
  --photo-fx: drop-shadow(0 0 1px rgba(255, 255, 255, .35)) drop-shadow(0 0 60px rgba(0, 179, 68, .22));
    color-scheme: dark;
  }
}

/* ---------- Oscuro explícito (gana siempre) ---------- */
:root[data-theme="dark"] {
  --paper: #0e0f10;
  --paper-2: #151617;
  --paper-3: #1e2021;
  --card: #17181a;
  --ink: #edece7;
  --ink-2: #aaa8a0;
  --ink-3: #75746e;
  --hair: #232527;
  --hair-2: #33363a;
  --accent: #00b344;
  --accent-hover: #10c553;
  --accent-ink: #ffffff;
  --accent-soft: rgba(0, 179, 68, .14);
  --forest: #0f2d21;
  --forest-2: #081a13;
  --veil: rgba(14, 15, 16, .7);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px -8px rgba(0, 0, 0, .6);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 22px 50px -26px rgba(0, 0, 0, .8);
  --dot-rgb: 237, 236, 231;
  --word: rgba(237, 236, 231, .045);
  --photo-fx: drop-shadow(0 0 1px rgba(255, 255, 255, .35)) drop-shadow(0 0 60px rgba(0, 179, 68, .22));
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--t-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--accent); padding-right: .04em; }
strong { font-weight: 600; color: var(--ink); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); letter-spacing: .02em; }
.tiny { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; }
.muted { color: var(--ink-3); }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 300; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; transition: top .2s; }
.skip:focus { top: 16px; }

/* ---------- Botones ---------- */
.btn {
  --h: 50px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px;
  border-radius: 999px;
  font-size: .95rem; font-weight: 500; letter-spacing: -.005em; white-space: nowrap;
  isolation: isolate; overflow: hidden;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: var(--fill, var(--accent));
  transform: translateY(101%); border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  transition: transform .55s var(--ease), border-radius .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); border-radius: 0; }
.btn__ico { width: 18px; height: 18px; flex: none; transition: transform .45s var(--ease); }
.btn--sm { --h: 40px; padding: 0 18px; font-size: .875rem; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { color: var(--accent-ink); }
.btn--ink:hover .btn__ico { transform: translateY(3px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); --fill: var(--ink); }
.btn--accent:hover { color: var(--paper); }
.btn--ghost { border: 1px solid var(--hair-2); color: var(--ink); --fill: var(--ink); }
.btn--ghost:hover { color: var(--paper); border-color: var(--ink); }
.btn--ai .btn__ico { width: 16px; height: 16px; color: var(--accent); }
.btn--ai:hover .btn__ico { color: var(--accent-hover); transform: rotate(90deg) scale(1.1); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: .95rem;
  padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.link-arrow:hover { background-size: 100% 1px; color: var(--accent); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

.chip {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border: 1px solid var(--hair-2); border-radius: 999px;
  font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2); white-space: nowrap;
}
.chip--alt { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accent-soft); }

.dot-live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; display: inline-block; }
.dot-live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0; animation: live 2.2s var(--ease) infinite; }
@keyframes live { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- Intro (sello) ---------- */
.intro { display: none; }
.is-intro .intro {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-content: center; justify-items: center; gap: 22px;
  background: var(--paper);
  animation: intro-out .9s var(--ease-io) 1.55s forwards;
}
.intro__stamp { position: relative; width: clamp(120px, 16vw, 170px); }
.intro__stamp img { width: 100%; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .22)); animation: stamp 1s var(--ease) .1s both; }
.intro__ring { position: absolute; inset: 6%; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: ring 1s var(--ease) .62s both; }
.intro__name { display: flex; gap: .3em; overflow: hidden; font-size: .8rem; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .32em; color: var(--ink-2); }
.intro__name span { display: inline-block; animation: rise .8s var(--ease) .75s both; }
.intro__name span + span { animation-delay: .83s; }
@keyframes stamp {
  0% { transform: scale(2.3) rotate(-24deg); opacity: 0; filter: blur(6px) drop-shadow(0 40px 40px rgba(0,0,0,.1)); }
  55% { transform: scale(.9) rotate(2deg); opacity: 1; filter: blur(0) drop-shadow(0 6px 8px rgba(0,0,0,.3)); }
  72% { transform: scale(1.04) rotate(-1deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes ring { 0% { transform: scale(.7); opacity: .8; } 100% { transform: scale(2.1); opacity: 0; } }
@keyframes rise { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes intro-out { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
.is-intro body { overflow: hidden; }

/* ---------- Cursor ---------- */
.cursor { display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor__ring, .cursor__dot {
  position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none;
  will-change: transform;
}
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--ink); transition: opacity .25s, background-color .3s; }
.cursor__ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; display: grid; place-items: center; }
.cursor__ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent);
  transition: transform .45s var(--ease), background-color .35s, border-color .35s, opacity .3s;
}
.cursor__label {
  position: relative; font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-ink); opacity: 0; transform: scale(.6); transition: opacity .25s, transform .35s var(--ease); white-space: nowrap;
}
.cursor.is-link .cursor__ring::before { transform: scale(1.45); background: var(--accent-soft); border-color: var(--accent); }
.cursor.is-link .cursor__dot { background: var(--accent); }
.cursor.is-label .cursor__ring::before { transform: scale(2.3); background: var(--accent); border-color: var(--accent); }
.cursor.is-label .cursor__label { opacity: 1; transform: scale(1); }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__ring::before { transform: scale(.8); }
.cursor.is-hidden .cursor__ring, .cursor.is-hidden .cursor__dot { opacity: 0; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 12px 0 auto; z-index: 100;
  padding-inline: clamp(10px, 2vw, 24px);
  transition: transform .6s var(--ease);
}
.nav.is-hidden { transform: translateY(calc(-100% - 20px)); }
.nav__bar {
  position: relative;
  max-width: calc(var(--max) + 48px); margin-inline: auto;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 10px 0 16px;
  background: var(--veil);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border: 1px solid var(--hair);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: background-color .4s, border-color .4s;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand__seal { width: 32px; height: auto; transition: transform .8s var(--ease); }
.brand:hover .brand__seal { transform: rotate(-20deg) scale(1.08); }
.brand__text { display: grid; line-height: 1.1; }
.brand__name { font-size: 1.05rem; font-weight: 300; letter-spacing: -.01em; }
.brand__name b { font-weight: 700; }
.brand__sub { font-family: var(--f-mono); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }

.nav__links { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 999px; }
.nav__links a { position: relative; z-index: 1; padding: 8px 16px; border-radius: 999px; font-size: .875rem; color: var(--ink-2); transition: color .3s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__pill {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0;
  width: var(--pw, 0px); transform: translateX(var(--px, 0px));
  border-radius: 999px; background: var(--paper-3);
  opacity: var(--po, 0);
  transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s;
}
.nav__tools { display: flex; align-items: center; gap: 8px; }

.lang { display: flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--hair); }
.lang__btn { width: 34px; height: 28px; border-radius: 999px; display: grid; place-items: center; transition: background-color .3s, box-shadow .3s; }
.lang__btn svg { width: 20px; height: 14px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); filter: grayscale(.85); opacity: .55; transition: filter .3s, opacity .3s, transform .4s var(--ease); }
.lang__btn:hover svg { opacity: .9; filter: grayscale(0); }
.lang__btn[aria-pressed="true"] { background: var(--card); box-shadow: var(--shadow-sm); }
.lang__btn[aria-pressed="true"] svg { filter: none; opacity: 1; transform: scale(1.05); }

.theme {
  position: relative; width: 60px; height: 34px; border-radius: 999px;
  background: var(--paper-2); border: 1px solid var(--hair);
  display: flex; align-items: center; justify-content: space-between; padding: 0 8px;
}
.theme__knob {
  position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--card); box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease);
}
.theme__ico { position: relative; width: 14px; height: 14px; color: var(--ink-3); transition: color .3s, transform .5s var(--ease); }
.theme__ico--sun { color: var(--ink); }
.theme[aria-checked="true"] .theme__knob { transform: translateX(26px); }
.theme[aria-checked="true"] .theme__ico--sun { color: var(--ink-3); transform: rotate(-90deg); }
.theme[aria-checked="true"] .theme__ico--moon { color: var(--ink); transform: rotate(-12deg); }

.nav__burger { display: none; width: 40px; height: 40px; border-radius: 999px; background: var(--ink); position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 1.6px; background: var(--paper); border-radius: 2px; transition: transform .45s var(--ease), top .45s var(--ease); }
.nav__burger span:first-child { top: 16px; }
.nav__burger span:last-child { top: 23px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 19.5px; transform: rotate(-45deg); }

.nav__progress {
  position: absolute; left: 20px; right: 20px; bottom: 0; height: 2px;
  max-width: calc(var(--max) + 8px); margin-inline: auto;
  background: var(--accent); border-radius: 2px;
  transform-origin: left; transform: scaleX(var(--progress, 0));
}
@supports (animation-timeline: scroll()) {
  .nav__progress { animation: grow-x linear both; animation-timeline: scroll(root); }
}
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Menú móvil */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--paper);
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 40px;
  clip-path: circle(0% at calc(100% - 44px) 44px);
  transition: clip-path .7s var(--ease-io);
}
.menu.is-open { clip-path: circle(150% at calc(100% - 44px) 44px); }
.menu__links { display: grid; gap: 4px; }
.menu__links a { display: flex; align-items: baseline; gap: 14px; font-size: clamp(2.2rem, 10vw, 3.4rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.15; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease); }
.menu__links small { font-family: var(--f-mono); font-size: .75rem; color: var(--accent); letter-spacing: .05em; }
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .05s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .1s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: .15s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: .2s; }
.menu__foot { color: var(--ink-3); font-size: .85rem; }

/* ---------- Encabezados de sección ---------- */
.section { position: relative; padding-block: clamp(96px, 13vw, 176px); }
.shead { display: grid; gap: 20px; max-width: 920px; margin-bottom: clamp(48px, 7vw, 88px); }
.shead--split { max-width: none; grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
.shead--split .shead__lead { max-width: 38ch; }
.shead__num { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }
.shead__num span { color: var(--ink); }
.shead__title { font-size: var(--t-2xl); font-weight: 500; line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
.shead__lead { max-width: 54ch; font-size: var(--t-md); color: var(--ink-2); line-height: 1.65; }

/* Líneas que suben al entrar */
[data-split] .ln { display: block; overflow: clip; padding: .02em .08em .12em 0; margin-bottom: -.12em; }
[data-split] .ln > span { display: inline-block; }
.io [data-split] .ln > span { transform: translateY(108%); transition: transform 1.15s var(--ease); transition-delay: calc(var(--li, 0) * .085s + var(--d, 0s)); }
.io [data-split].is-in .ln > span { transform: translateY(0); }

/* Revelado general */
.io [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.io [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Parallax (CSS nativo; JS de respaldo en main.js) ---------- */
.px, .px-hero { will-change: translate; }
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  .px { animation: px-view linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  .px-hero { animation: px-hero linear both; animation-timeline: scroll(root); animation-range: 0 100svh; }
}
@keyframes px-view { from { translate: 0 calc(var(--px) * 1px); } to { translate: 0 calc(var(--px) * -1px); } }
@keyframes px-hero { from { translate: 0 0; } to { translate: 0 calc(var(--px) * -1px); } }
.depth { will-change: transform; transition: transform 1.1s cubic-bezier(.15, .85, .25, 1); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; padding-top: calc(var(--nav-h) + 40px); overflow: clip; isolation: isolate; }
.hero__dots {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(120% 85% at 50% 30%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 85% at 50% 30%, #000 30%, transparent 78%);
}
.hero__word {
  position: absolute; left: 0; right: 0; bottom: -2vw; z-index: -1;
  display: flex; justify-content: center;
  pointer-events: none; user-select: none;
}
.hero__word span {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  font-size: clamp(8rem, 27vw, 31rem); line-height: .78; letter-spacing: -.035em;
  color: var(--word); white-space: nowrap;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; align-items: end; min-height: calc(100svh - var(--nav-h) - 40px); }
.hero__copy { align-self: center; padding-bottom: 7vh; position: relative; z-index: 3; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: var(--veil); border: 1px solid var(--hair);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--f-mono); font-size: .75rem; color: var(--ink-2); letter-spacing: .02em;
}
.hero__title { margin: 26px 0 26px; font-size: var(--t-hero); font-weight: 500; line-height: .98; letter-spacing: -.05em; }
.hero__lead { max-width: 47ch; font-size: clamp(1rem, 1.25vw, 1.125rem); color: var(--ink-2); line-height: 1.65; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero__visual { position: relative; align-self: stretch; min-height: 560px; }
.hero__halo { position: absolute; left: 6%; right: 6%; bottom: 6%; aspect-ratio: 1; z-index: 0; }
.hero__halo .depth { width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(closest-side, var(--accent-soft), transparent 72%); }
.hero__halo .depth::after { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed var(--hair-2); animation: spin 90s linear infinite; }
.hero__photo { position: absolute; inset: 0; z-index: 1; }
.hero__photo .depth { position: absolute; inset: 0; }
.hero__photo img {
  position: absolute; bottom: 0; left: 50%; translate: -50% 0;
  height: min(100%, 880px); width: auto; max-width: none;
  filter: var(--photo-fx);
}
.io .hero__photo img { opacity: 0; transform: translateY(40px) scale(.97); transition: opacity 1.2s var(--ease) .15s, transform 1.4s var(--ease) .15s; transform-origin: bottom center; }
.is-ready .hero__photo img { opacity: 1; transform: none; }

.hero__badge { position: absolute; top: 14%; right: 0; z-index: 3; width: clamp(118px, 11vw, 164px); aspect-ratio: 1; }
.hero__badge .depth { position: relative; width: 100%; height: 100%; }
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 24s linear infinite; }
.badge__ring text { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .5px; fill: var(--ink-2); }
.badge__seal { position: absolute; inset: 21%; width: 58%; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .25)); transition: transform .8s var(--ease); }
.hero__badge:hover .badge__seal { transform: rotate(-18deg) scale(1.06); }
.io .hero__badge .depth > * { opacity: 0; transform: scale(.4) rotate(-40deg); transition: opacity .8s var(--ease) .75s, transform 1.2s var(--ease) .75s; }
.is-ready .hero__badge .depth > * { opacity: 1; transform: none; }
.is-ready .hero__badge .badge__ring { transform: none; }
@keyframes spin { to { rotate: 360deg; } }

.hero__now { position: absolute; left: -4%; bottom: 17%; z-index: 3; }
.hero__now .depth {
  max-width: 250px; padding: 14px 16px; border-radius: 16px;
  background: var(--veil); border: 1px solid var(--hair);
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
  box-shadow: var(--shadow);
}
.hero__nowRole { margin-top: 6px; font-size: .9rem; font-weight: 500; line-height: 1.3; }
.hero__nowAt { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .8rem; color: var(--ink-2); }
.io .hero__now .depth { opacity: 0; translate: 0 20px; transition: opacity .8s var(--ease) .95s, translate 1s var(--ease) .95s, transform 1.1s cubic-bezier(.15,.85,.25,1); }
.is-ready .hero__now .depth { opacity: 1; translate: 0 0; }

.hero__scroll {
  position: absolute; left: var(--gutter); bottom: 26px; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  font-size: .6875rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-3);
}
@media (min-width: 1416px) { .hero__scroll { left: calc((100vw - var(--max)) / 2); } }
.hero__scrollLine { position: relative; width: 1.5px; height: 42px; background: var(--hair-2); overflow: hidden; }
.hero__scrollLine::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: scroll-line 2.2s var(--ease-io) infinite; }
@keyframes scroll-line { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Marquesina ---------- */
.marquee { position: relative; z-index: 2; background: var(--paper); border-block: 1px solid var(--hair); padding: 22px 0; overflow: hidden; display: grid; gap: 6px; }
.marquee__row { display: flex; transform: skewX(var(--skew, 0deg)); transition: transform .2s linear; }
.marquee__track {
  display: flex; align-items: center; gap: .55em; flex: none; padding-right: .55em;
  font-size: clamp(1.75rem, 3.6vw, 3.25rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.15; white-space: nowrap;
  animation: marquee 42s linear infinite;
}
.marquee__row--rev .marquee__track { animation-direction: reverse; color: var(--ink-3); animation-duration: 48s; }
.marquee__track svg { width: .5em; height: .5em; color: var(--accent); flex: none; }
.marquee__row--rev .serif { font-size: 1.12em; letter-spacing: -.01em; }
.marquee.is-paused .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Servicios ---------- */
.svc { border-top: 1px solid var(--hair); counter-reset: svc; }
.svc__link {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 70px minmax(0, 1.15fr) minmax(0, 1fr) 44px;
  grid-template-areas: "num name desc arrow" "num name tags arrow";
  column-gap: 28px; row-gap: 8px; align-items: center;
  padding: 34px 12px;
  border-bottom: 1px solid var(--hair);
  transition: opacity .45s var(--ease), padding .6s var(--ease);
}
.svc__link::before {
  content: ""; position: absolute; inset: -1px 0; z-index: -1;
  background: var(--paper-2);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .6s var(--ease);
}
.svc__link:hover::before, .svc__link:focus-visible::before { transform: scaleY(1); transform-origin: top; }
.svc__num { grid-area: num; align-self: start; padding-top: .6em; font-size: .8rem; color: var(--accent); }
.svc__name { grid-area: name; font-size: clamp(1.6rem, 3vw, 2.75rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; transition: transform .6s var(--ease); }
.svc__desc { grid-area: desc; color: var(--ink-2); font-size: .975rem; line-height: 1.55; align-self: end; }
.svc__tags { grid-area: tags; font-size: .6875rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; align-self: start; }
.svc__arrow { grid-area: arrow; width: 30px; height: 30px; color: var(--ink-3); justify-self: end; transition: transform .6s var(--ease), color .3s; }
.svc__link:hover .svc__name { transform: translateX(14px); }
.svc__link:hover .svc__arrow { color: var(--accent); transform: rotate(45deg); }
.svc:has(.svc__link:hover) .svc__link:not(:hover) { opacity: .38; }

.svc__preview {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  width: 300px; aspect-ratio: 4 / 3; margin: -200px 0 0 32px;
  border-radius: 16px; overflow: hidden; background: var(--paper-3);
  box-shadow: var(--shadow);
  opacity: 0; scale: .6;
  transition: opacity .35s var(--ease), scale .5s var(--ease);
  will-change: transform;
}
.svc__preview.is-on { opacity: 1; scale: 1; }
.svc__preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Trabajo web (tarjetas apiladas) ---------- */
.stack { display: grid; gap: 48px; padding-bottom: 6vh; }
.scard { position: sticky; top: calc(var(--nav-h) + 30px + var(--i) * 14px); }
.scard__inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: center;
  padding: clamp(14px, 1.6vw, 22px);
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  transform-origin: 50% 0;
  transform: scale(var(--s, 1));
  will-change: transform;
}
.scard__inner::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: var(--paper); opacity: var(--dim, 0);
}
.scard__media {
  position: relative; display: block; border-radius: var(--r); overflow: hidden;
  background: var(--paper-2); border: 1px solid var(--hair);
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease);
}
.scard__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .28), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.scard__media:hover::after { opacity: 1; }
.browser { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: var(--paper-2); border-bottom: 1px solid var(--hair); }
.browser i { width: 9px; height: 9px; border-radius: 50%; background: var(--hair-2); }
.browser__url { margin-left: 10px; padding: 3px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--hair); font-size: .6875rem; color: var(--ink-3); }
.scard__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 1.4s var(--ease); }
.scard__media:hover img { transform: scale(1.035); }
.scard__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 8px 18px 8px 0; }
.scard__idx { font-size: .75rem; color: var(--ink-3); }
.scard__title { font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.scard__type { font-size: .7rem; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; }
.scard__desc { color: var(--ink-2); line-height: 1.65; max-width: 42ch; margin-bottom: 8px; }

/* ---------- Video reel (horizontal) ---------- */
.reel { position: relative; height: calc(var(--dist, 0px) + 100svh); border-top: 1px solid var(--hair); }
.reel__sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 4vh, 44px); overflow: hidden; padding-top: calc(var(--nav-h) + 12px); }
.reel__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.reel__head .shead__title { margin-top: 14px; }
.reel__hint { display: flex; align-items: center; gap: 18px; font-size: .75rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; }
.reel__count b { color: var(--ink); font-weight: 500; }
.reel__track {
  display: flex; gap: clamp(16px, 2vw, 28px); width: max-content;
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2));
  transform: translate3d(var(--x, 0px), 0, 0); will-change: transform;
}
.vcard { flex: none; width: clamp(300px, 42vw, 680px); }
.play {
  position: absolute; left: 14px; bottom: 14px; z-index: 1;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: #121416;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5);
  transform: scale(.92); transition: transform .5s var(--ease), background-color .3s, color .3s;
}
.play svg { width: 18px; height: 18px; margin-left: 2px; }
:is(.vcard__btn, .mini):hover .play { transform: scale(1.06); background: var(--accent); color: #fff; }
.vcard__btn { display: block; width: 100%; text-align: left; }
.vcard__media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--paper-3); }
.vcard__media img { width: 100%; height: 100%; object-fit: cover; transform: translateX(var(--shift, 0px)) scale(1.14); transition: filter .5s; }
.vcard__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.35), transparent 45%);
  opacity: .6; transition: opacity .4s;
}
.vcard__btn:hover .vcard__media::after { opacity: 1; }
.vcard__meta { display: flex; align-items: center; gap: 12px; margin-top: 14px; min-width: 0; }
.vcard__title { font-weight: 500; font-size: 1.02rem; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reel__bar { position: relative; height: 2px; }
.reel__bar::before { content: ""; position: absolute; inset: 0 var(--gutter); background: var(--hair); border-radius: 2px; }
.reel__barFill { position: absolute; top: 0; bottom: 0; left: var(--gutter); right: var(--gutter); background: var(--accent); border-radius: 2px; transform-origin: left; transform: scaleX(var(--rp, 0)); }

/* ---------- Galería ---------- */
.filters { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--hair); }
.filter { height: 38px; padding: 0 18px; border-radius: 999px; font-size: .875rem; color: var(--ink-2); transition: background-color .35s var(--ease), color .35s; }
.filter:hover { color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--paper); }

.masonry { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); align-items: start; }
.masonry__col { display: grid; gap: clamp(20px, 2.4vw, 34px); }
.shot { transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s; }
.shot button { position: relative; display: block; width: 100%; border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.shot img { width: 100%; transition: transform 1.2s var(--ease); }
.shot button:hover img { transform: scale(1.045); }
.shot figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; }
.shot figcaption b { font-weight: 500; font-size: .95rem; }
.shot figcaption span { font-family: var(--f-mono); font-size: .6875rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; text-align: right; }
.shot.is-dim { opacity: .14; filter: grayscale(1); transform: scale(.97); pointer-events: none; }
.gallery__more { margin-top: clamp(40px, 6vw, 72px); display: flex; justify-content: center; }

/* ---------- Sobre mí ---------- */
.about { background: var(--paper-2); border-block: 1px solid var(--hair); }
.about__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.about__visual { position: sticky; top: calc(var(--nav-h) + 40px); display: grid; gap: 24px; }
.about__panel {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(90% 70% at 50% 100%, rgba(0, 153, 56, .35), transparent 70%),
    linear-gradient(160deg, var(--forest), var(--forest-2));
}
.about__panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .22;
  background-image: radial-gradient(rgba(241, 236, 221, .5) 1px, transparent 1.2px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%);
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
.about__panelWord {
  position: absolute; inset: 0; z-index: -1; display: grid; place-items: center;
  font-family: var(--f-serif); font-style: italic; font-size: clamp(12rem, 26vw, 24rem); line-height: 1;
  color: var(--forest-ink); opacity: .1; user-select: none;
}
.about__photo { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 90%; width: auto; max-width: none; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .35)); }
.about__seal { position: absolute; top: 6%; right: 6%; width: 22%; rotate: -10deg; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .4)); }
.facts { display: grid; }
.facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 14px 2px; border-bottom: 1px solid var(--hair); }
.facts dt { font-size: .6875rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.facts dd { font-size: .925rem; text-align: right; }

.about__content .shead__title { margin: 20px 0 34px; }
.about__manifesto { font-size: clamp(1.35rem, 2.15vw, 1.85rem); line-height: 1.4; letter-spacing: -.02em; }
.about__manifesto .w { opacity: var(--o, .16); transition: opacity .25s linear; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 52px; border-top: 1px solid var(--hair-2); }
.stats li { display: grid; gap: 4px; padding-top: 22px; }
.stats b { font-size: clamp(2.2rem, 3.6vw, 3.25rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.stats span:not([data-count]) { font-size: .875rem; color: var(--ink-2); line-height: 1.4; }
.sub { margin: 72px 0 26px; font-size: .75rem; font-weight: 400; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }

.timeline { position: relative; display: grid; gap: 34px; padding-left: 36px; }
.timeline__line { position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; background: var(--hair-2); border-radius: 2px; }
.timeline__line span { position: absolute; inset: 0; background: var(--accent); border-radius: 2px; transform-origin: top; transform: scaleY(var(--tl, 0)); }
.tl { position: relative; }
.tl::before {
  content: ""; position: absolute; left: -36px; top: 5px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper-2); border: 2px solid var(--hair-2);
  transition: background-color .5s, border-color .5s, box-shadow .5s;
}
.tl.is-lit::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.tl__when { font-size: .75rem; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.tl__co { margin-top: 6px; font-size: 1.375rem; font-weight: 500; letter-spacing: -.025em; }
.tl__role { margin-top: 2px; font-size: .95rem; font-weight: 500; color: var(--ink-2); }
.tl__desc { margin-top: 10px; color: var(--ink-2); line-height: 1.65; max-width: 60ch; }

.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tools li { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--hair-2); background: var(--card); font-size: .875rem; transition: border-color .3s, color .3s, transform .4s var(--ease); }
.tools li:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.about__cv { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; }

/* ---------- Personal ---------- */
.phones { display: flex; justify-content: center; align-items: flex-start; gap: clamp(10px, 1.8vw, 26px); padding: 24px 0 40px; margin-bottom: clamp(40px, 6vw, 80px); }
.phone {
  position: relative; flex: none;
  width: clamp(128px, 14.5vw, 214px); aspect-ratio: 9 / 18.5;
  padding: 6px; border-radius: 30px; background: #0c0d0e;
  box-shadow: 0 30px 50px -28px rgba(0, 0, 0, .55), inset 0 0 0 1.5px #2a2c2f;
  transform: translateY(var(--y)) rotate(var(--r));
  transition: transform .8s var(--ease), filter .5s, opacity .5s;
}
.phone::before { content: ""; position: absolute; top: 14px; left: 50%; z-index: 2; width: 30%; height: 16px; translate: -50% 0; border-radius: 999px; background: #0c0d0e; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }
.phone__cap {
  position: absolute; left: 6px; right: 6px; bottom: 6px; z-index: 2;
  padding: 44px 14px 16px; border-radius: 0 0 24px 24px;
  background: linear-gradient(to top, rgba(0,0,0,.78), transparent);
  color: #fff; font-size: .8rem; font-weight: 500; line-height: 1.3; text-align: left;
}
.phone:hover, .phone:focus-visible { transform: translateY(-16px) rotate(0deg) scale(1.04); z-index: 2; }
.phones:has(.phone:hover) .phone:not(:hover) { filter: saturate(.4); opacity: .75; }

.personal__row { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: start; }
.minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
.mini { display: block; width: 100%; text-align: left; }
.mini__media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--paper-3); }
.mini__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mini:hover .mini__media img { transform: scale(1.05); }
.mini__title { display: block; margin-top: 12px; font-weight: 500; font-size: .95rem; }

.now-playing { display: grid; gap: 18px; padding: 26px; border-radius: var(--r-lg); background: var(--paper-2); border: 1px solid var(--hair); }
.np { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.np__eq { display: flex; align-items: flex-end; gap: 3px; height: 28px; }
.np__eq i { width: 4px; height: 30%; border-radius: 2px; background: var(--accent); animation: eq 1.1s ease-in-out infinite alternate; }
.np__eq i:nth-child(2) { animation-delay: -.3s; animation-duration: .9s; }
.np__eq i:nth-child(3) { animation-delay: -.6s; animation-duration: 1.2s; }
.np__eq i:nth-child(4) { animation-delay: -.15s; animation-duration: .8s; }
.np__eq i:nth-child(5) { animation-delay: -.45s; animation-duration: 1s; }
@keyframes eq { from { height: 18%; } to { height: 100%; } }
.np__song { font-size: 1.2rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.np__artist { color: var(--ink-2); font-size: .9rem; }
.np__play { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); transition: background-color .3s, transform .4s var(--ease); }
.np__play svg { width: 20px; height: 20px; margin-left: 2px; }
.np__play:hover { background: var(--ink); color: var(--paper); }
.np__embed:empty { display: none; }
.np__embed iframe { display: block; width: 100%; height: 152px; border: 0; border-radius: 12px; }

/* ---------- Contacto ---------- */
.contact { position: relative; overflow: clip; padding-block: clamp(110px, 14vw, 200px); text-align: center; isolation: isolate; }
.contact::before {
  content: ""; position: absolute; left: 50%; top: 58%; z-index: -1;
  width: min(1100px, 130vw); aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
}
.contact__inner { display: grid; justify-items: center; }
.contact__seal { width: clamp(96px, 10vw, 140px); margin-bottom: 30px; filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .25)); }
.io .contact__seal { opacity: 0; }
.contact__seal.is-stamped { animation: stamp 1s var(--ease) both; }
.contact__title { margin: 22px 0 24px; font-size: clamp(3rem, 9.4vw, 8.75rem); font-weight: 500; line-height: .95; letter-spacing: -.055em; }
.contact__lead { max-width: 46ch; color: var(--ink-2); font-size: var(--t-md); line-height: 1.65; }
.contact__actions { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 4vw, 48px); margin-top: 52px; flex-wrap: wrap; }
.contact__big {
  position: relative; isolation: isolate; overflow: hidden;
  width: 172px; height: 172px; border-radius: 50%;
  display: grid; place-content: center; justify-items: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 1.1rem; font-weight: 500;
  box-shadow: 0 24px 50px -20px color-mix(in srgb, var(--accent) 70%, transparent);
}
.contact__big::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .6s var(--ease); }
.contact__big:hover::before { transform: scale(1); }
.contact__big:hover { color: var(--paper); }
.contact__big svg { width: 24px; height: 24px; transition: transform .5s var(--ease); }
.contact__big:hover svg { transform: rotate(45deg); }
.contact__side { display: grid; gap: 12px; justify-items: start; }
.copy {
  display: inline-flex; align-items: center; gap: 12px; height: 50px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--hair-2); background: var(--card); font-size: .9rem;
  transition: border-color .3s, color .3s;
}
.copy svg { width: 18px; height: 18px; color: var(--ink-3); transition: color .3s; }
.copy:hover { border-color: var(--accent); }
.copy:hover svg { color: var(--accent); }
.socials { display: flex; gap: 10px; margin-top: 56px; }
.socials a { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--hair-2); background: var(--card); transition: background-color .35s, color .35s, border-color .35s; }
.socials svg { width: 20px; height: 20px; }
.socials a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hair); padding: 26px 0 30px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__brand { font-size: 1.1rem; font-weight: 300; }
.footer__brand b { font-weight: 700; }
.footer__top { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); transition: color .3s; }
.footer__top svg { width: 16px; height: 16px; rotate: -45deg; transition: transform .45s var(--ease); }
.footer__top:hover { color: var(--accent); }
.footer__top:hover svg { transform: translateY(-3px); }

/* ---------- Visor ---------- */
.lb {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden;
}
.lb::backdrop { background: rgba(8, 9, 10, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lb[open] { animation: fade-in .35s var(--ease); }
.lb[open]::backdrop { animation: fade-in .35s var(--ease); }
@keyframes fade-in { from { opacity: 0; } }
.lb__stage { position: absolute; inset: 72px 84px 76px; display: flex; align-items: center; justify-content: center; }
.lb__stage > * { flex: none; }
.lb__stage > * { animation: lb-pop .5s var(--ease); }
@keyframes lb-pop { from { opacity: 0; transform: scale(.96) translateY(10px); } }
.lb__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 12px; }
.lb__stage .lb__video { width: min(100%, calc((100dvh - 150px) * 16 / 9)); height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; background: #000; }
.lb__stage .lb__tiktok { height: min(100%, 760px); width: auto; aspect-ratio: 9 / 16; max-width: 100%; border: 0; border-radius: 14px; background: #000; }
.lb__cap { position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .04em; color: rgba(255, 255, 255, .75); padding-inline: 90px; }
.lb__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #fff; transition: background-color .3s, transform .4s var(--ease); }
.lb__btn svg { width: 20px; height: 20px; }
.lb__btn:hover { background: rgba(255, 255, 255, .2); }
.lb__close { top: 18px; right: 18px; }
.lb__close:hover { transform: rotate(90deg); }
.lb__prev { left: 18px; top: 50%; translate: 0 -50%; }
.lb__next { right: 18px; top: 50%; translate: 0 -50%; }
.lb:not([data-mode="image"]) .lb__prev, .lb:not([data-mode="image"]) .lb__next { display: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 450;
  translate: -50% 0; transform: translateY(calc(100% + 40px));
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-size: .875rem; font-weight: 500; box-shadow: var(--shadow);
  visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s linear .5s;
}
.toast.is-on { transform: translateY(0); visibility: visible; transition: transform .5s var(--ease), visibility 0s; }

/* ---------- Cambio de idioma ---------- */
[data-i18n] { transition: opacity .2s ease, filter .2s ease; }
.is-switching [data-i18n] { opacity: 0; filter: blur(4px); }

/* ---------- Transición de tema ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .nav__links a { padding: 8px 12px; }
  .hero__grid { grid-template-columns: 1fr .9fr; }
  .svc__link { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr) 36px; column-gap: 20px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
}

@media (max-width: 960px) {
  :root { --nav-h: 58px; }
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { padding: 4vh 0 0; }
  .hero__visual { height: min(68svh, 640px); min-height: 440px; margin-top: 10px; }
  .hero__photo img { height: 100%; }
  .hero__badge { right: 2%; top: 6%; }
  .hero__now { left: 0; bottom: 12%; }
  .hero__scroll { display: none; }
  .hero__word { bottom: 0; }
  .shead--split { grid-template-columns: 1fr; align-items: start; }
  .scard__inner { grid-template-columns: 1fr; }
  .scard__body { padding: 4px 8px 12px; }
  .masonry { display: block; columns: 2; column-gap: 18px; }
  .masonry__col { display: contents; }
  .shot { break-inside: avoid; margin-bottom: 26px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__visual { position: relative; top: 0; max-width: 520px; }
  .personal__row { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .svc__link { grid-template-columns: 36px minmax(0, 1fr); grid-template-areas: "num name" "num desc" "num tags"; padding: 26px 4px; row-gap: 10px; }
  .svc__arrow { display: none; }
  .svc__link:hover .svc__name { transform: none; }

  .scard { position: relative; top: 0; }
  .scard__inner { transform: none; }
  .scard__inner::after { display: none; }

  /* El reel pasa a carrusel táctil nativo */
  .reel { height: auto; padding-block: 96px 0; }
  .reel__sticky { position: relative; height: auto; overflow: visible; padding-top: 0; }
  .reel__hint { display: none; }
  .reel__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .reel__viewport::-webkit-scrollbar { display: none; }
  .reel__track { transform: none; }
  .vcard { width: 82vw; scroll-snap-align: center; }
  .vcard__media img { transform: none; }
  .reel__bar { display: none; }

  .phones { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 30px var(--gutter) 30px; scrollbar-width: none; }
  .phones::-webkit-scrollbar { display: none; }
  .phone { width: 46vw; transform: none; scroll-snap-align: center; }
  .phone:hover { transform: none; }
  .minis { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .contact__side { justify-items: center; }
}

@media (max-width: 560px) {
  .nav__cta { display: none; }
  .brand__sub { display: none; }
  .nav__bar { padding: 0 8px 0 12px; gap: 8px; }
  .nav__tools { gap: 6px; }
  .brand { gap: 8px; }
  .brand__seal { width: 28px; }
  .brand__name { font-size: .95rem; }
  .lang__btn { width: 30px; height: 26px; }
  .lang__btn svg { width: 18px; height: 12.5px; }
  .theme { width: 54px; height: 32px; padding: 0 7px; }
  .theme__knob { width: 24px; height: 24px; }
  .theme[aria-checked="true"] .theme__knob { transform: translateX(22px); }
  .hero__title { margin: 22px 0 20px; }
  .eyebrow { font-size: .66rem; white-space: nowrap; letter-spacing: 0; padding: 6px 12px 6px 10px; }
  .hero__visual { min-height: 420px; }
  .hero__badge { width: 104px; }
  .hero__now .depth { max-width: 190px; padding: 12px 13px; }
  .hero__nowRole { font-size: .8rem; }
  .masonry { columns: 1; }
  .minis { grid-template-columns: 1fr; }
  .facts dd { font-size: .85rem; }
  .shot figcaption { flex-direction: column; gap: 2px; }
  .shot figcaption span { text-align: left; }
  .lb__stage { inset: 70px 12px 80px; }
  .lb__prev { top: auto; bottom: 14px; translate: none; }
  .lb__next { top: auto; bottom: 14px; translate: none; }
  .lb__cap { bottom: 28px; padding-inline: 76px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .px, .px-hero { animation: none !important; translate: none !important; }
  .depth { transition: none; transform: none !important; }
  .marquee__track { animation-duration: 160s; }
  .badge__ring, .hero__halo .depth::after { animation-duration: 120s; }
  .io [data-reveal] { transform: none; transition: opacity .6s; }
  .io [data-split] .ln > span { transform: none; transition: none; }
  .io [data-split] { opacity: 0; transition: opacity .6s; }
  .io [data-split].is-in { opacity: 1; }
  .io .hero__photo img, .io .hero__badge .depth > *, .io .hero__now .depth { transform: none; translate: none; transition: opacity .6s; }
  .contact__seal.is-stamped { animation: none; opacity: 1; }
  .menu { transition: none; }
  .scard__inner { transform: none !important; }
}
