/* ============================================================
   VFXALONSOZ — Portfolio · clean modern · vistas
   Inter · dark / indigo accent
   ============================================================ */

:root {
  --bg: #0a0a10;
  --bg-2: #0e0e16;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --ink: #f2f2f6;
  --ink-dim: rgba(242, 242, 246, 0.55);
  --ink-faint: rgba(242, 242, 246, 0.32);
  --line: rgba(242, 242, 246, 0.09);
  --accent: #ff7b3a;
  --accent-rgb: 255, 123, 58;
  --accent-light: #ffc9a3;
  --accent-soft: rgba(255, 123, 58, 0.14);
  --font: "Inter", system-ui, sans-serif;
  --font-display: "Clash Display", "Inter", system-ui, sans-serif;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --maxw: 1360px;
  --radius: 14px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Tipografía display (titulares) */
.hero__title, .page__title, .section-head__title, .footer__cta,
.foot__title, .service__name, .thumb__type, .stat__num {
  font-family: var(--font-display);
}

/* Nada seleccionable — sensación app */
*, *::before, *::after {
  -webkit-user-select: none; user-select: none;
}

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

/* scrollbar propia */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #23233a; border-radius: 10px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: rgba(var(--accent-rgb), 0.55); }

html, body { overflow-x: hidden; }

body::before {
  content: ""; position: fixed; inset: -5%; z-index: 0;
  background-image: radial-gradient(rgba(242, 242, 246, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  animation: dots-drift 26s linear infinite;
}
@keyframes dots-drift {
  to { transform: translate(26px, 26px); }
}
body::after {
  content: ""; position: fixed; top: -12%; left: 50%; z-index: 0;
  transform: translateX(-50%);
  width: 70vw; height: 46vw; max-width: 900px; max-height: 560px;
  background: radial-gradient(ellipse at center, rgba(var(--accent-rgb), 0.08), transparent 62%);
  pointer-events: none;
}
main, .foot { position: relative; z-index: 1; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 0.96rem/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Nav (cápsula) ---------- */
.nav {
  position: fixed; top: 1.1rem; left: 0; right: 0; z-index: 1000;
  padding: 0 var(--pad);
}
/* ————— MANTENIMIENTO ————— */
.maint-screen {
  position: fixed; inset: 0; z-index: 400;
  display: none; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  gap: 1.1rem; padding: 2rem;
  background: var(--bg); overflow: hidden;
}
.maint-screen__orb {
  position: absolute; top: 20%; left: 50%;
  width: 60vw; height: 60vw; max-width: 800px; max-height: 800px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.12), transparent 62%);
  filter: blur(60px);
  animation: maint-orb 9s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes maint-orb {
  from { transform: translateX(-56%) translateY(0) scale(1); }
  to { transform: translateX(-44%) translateY(-4%) scale(1.12); }
}
.maint-screen__spark {
  position: absolute; left: var(--x); bottom: -2%;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.8);
  opacity: 0;
  animation: maint-spark 7s linear var(--d) infinite;
  pointer-events: none;
}
@keyframes maint-spark {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  8% { opacity: 0.9; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-104vh) scale(0.4); opacity: 0; }
}
.maint-screen__emblem {
  position: relative; z-index: 1;
  width: 170px; height: 170px;
  display: grid; place-items: center;
  margin-bottom: 0.4rem;
  animation: maint-emblem-in 0.9s var(--ease-spring) backwards;
}
@keyframes maint-emblem-in {
  from { opacity: 0; transform: scale(0.6); }
}
.maint-screen__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px dashed rgba(var(--accent-rgb), 0.4);
  animation: maint-spin 16s linear infinite;
}
.maint-screen__ring--2 {
  inset: 16px;
  border: 1.5px solid transparent;
  border-top-color: var(--accent);
  border-right-color: rgba(var(--accent-rgb), 0.25);
  animation: maint-spin 7s linear infinite reverse;
}
@keyframes maint-spin { to { transform: rotate(360deg); } }
.maint-screen__logo {
  width: 84px; height: 84px; object-fit: contain;
  filter: drop-shadow(0 14px 34px rgba(var(--accent-rgb), 0.4));
  animation: maint-float 5s ease-in-out infinite;
}
@keyframes maint-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.maint-screen__label {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--ink-faint);
  animation: maint-in 0.7s var(--ease-out) 0.25s backwards;
}
.maint-screen__dash {
  width: 18px; height: 1px;
  background: var(--accent);
}
.maint-screen__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4rem); font-weight: 600;
  letter-spacing: -0.03em; margin: 0;
}
.maint-screen__title .char {
  display: inline-block;
  animation: maint-char-in 0.7s var(--ease-spring) backwards;
  animation-delay: calc(0.4s + var(--i) * 0.03s);
}
@keyframes maint-char-in {
  from { opacity: 0; transform: translateY(0.6em) rotate(6deg); }
}
.maint-screen__sub {
  color: var(--ink-dim); font-size: 0.95rem; margin: 0; max-width: 34ch;
  animation: maint-in 0.7s var(--ease-out) 0.55s backwards;
}
.maint-screen__bar {
  width: 230px; height: 2px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  animation: maint-in 0.7s var(--ease-out) 0.7s backwards;
}
.maint-screen__bar span {
  display: block; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: maint-sweep 1.6s var(--ease-io) infinite;
}
@keyframes maint-sweep {
  from { transform: translateX(-110%); }
  to { transform: translateX(310%); }
}
.maint-screen__link {
  margin-top: 0.4rem;
  color: var(--accent-light); text-decoration: none;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 0.55rem 1.1rem; border-radius: 100px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  transition: background 0.3s, transform 0.3s;
  animation: maint-in 0.7s var(--ease-out) 0.85s backwards;
}
.maint-screen__link:hover { background: var(--accent-soft); transform: translateY(-2px); }
@keyframes maint-in {
  from { opacity: 0; transform: translateY(14px); }
}
@media (prefers-reduced-motion: reduce) {
  .maint-screen *, .maint-screen *::before, .maint-screen *::after {
    animation: none !important;
  }
}

.work__empty {
  grid-column: 1 / -1;
  text-align: center; padding: 4rem 1rem;
  color: var(--ink-faint); font-size: 0.9rem;
}

.nav__inner {
  max-width: 700px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 0.55rem 0.5rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(10, 10, 16, 0.6);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: background-color 0.4s, border-color 0.4s, transform 0.55s var(--ease-out);
}
.nav.is-scrolled .nav__inner {
  background: rgba(10, 10, 16, 0.88);
  border-color: rgba(242, 242, 246, 0.14);
}
.nav__logo {
  font-weight: 700; font-size: 0.98rem; letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.nav__logo-mark {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 7px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, rgba(var(--accent-rgb), 0.35), rgba(var(--accent-rgb), 0.12));
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  transition: transform 0.6s var(--ease-out);
}
.nav__logo-mark img { width: 78%; height: 78%; object-fit: contain; display: block; }
.nav__logo:hover .nav__logo-mark { transform: rotate(-8deg) scale(1.1); }
.nav__links { display: flex; gap: 0.15rem; align-items: center; }
.nav__link {
  font-size: 0.75rem; font-weight: 500;
  color: var(--ink-dim);
  padding: 0.45rem 0.8rem; border-radius: 100px;
  display: inline-block;
  transition: color 0.25s, background-color 0.25s;
}
.nav__link:not(.nav__link--cta):hover { color: var(--ink); background: var(--surface-2); }
.nav__link:not(.nav__link--cta).is-active { color: var(--ink); background: var(--surface-2); }
.nav__link--cta {
  color: #fff;
  background: linear-gradient(180deg, #ff9a5c 0%, var(--accent) 100%);
  margin-left: 0.4rem;
  font-weight: 600;
  padding: 0.5rem 1.05rem;
  position: relative; overflow: hidden;
  box-shadow:
    0 6px 20px rgba(var(--accent-rgb), 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: box-shadow 0.3s, filter 0.3s;
}
.nav__link--cta::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -70%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.6), transparent);
  transform: skewX(-22deg);
  pointer-events: none;
}
.nav__link--cta:hover {
  color: #fff;
  background: linear-gradient(180deg, #ff9a5c 0%, var(--accent) 100%);
  filter: brightness(1.12);
  box-shadow:
    0 8px 28px rgba(var(--accent-rgb), 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.nav__link--cta.is-active {
  background: var(--ink); color: var(--bg);
  filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.nav__link--cta:hover::after { animation: btn-shine 0.7s var(--ease-io) 1; }
@media (max-width: 640px) {
  .nav__link:not(.nav__link--cta) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  font-size: 0.85rem; font-weight: 600;
  padding: 0.78rem 1.6rem; border-radius: 10px;
  transition: transform 0.3s var(--ease-out), background-color 0.3s,
              border-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.btn::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -70%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-22deg);
  pointer-events: none;
}
.btn--primary {
  background: linear-gradient(180deg, #ff9a5c 0%, var(--accent) 100%);
  color: #fff;
  box-shadow:
    0 10px 30px rgba(var(--accent-rgb), 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn--primary::after {
  animation: btn-shine 4.5s var(--ease-io) infinite;
}
@keyframes btn-shine {
  0%, 62% { left: -70%; }
  78%, 100% { left: 140%; }
}
.btn--primary:hover {
  background: linear-gradient(180deg, #ffab73 0%, #ff8d52 100%);
  box-shadow:
    0 14px 44px rgba(var(--accent-rgb), 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}
.btn--primary:hover::after { animation-duration: 0.7s; animation-iteration-count: 1; }
.btn--ghost {
  border: 1px solid var(--line); color: var(--ink);
  background: var(--surface);
}
.btn--ghost::after {
  background: linear-gradient(105deg, transparent, rgba(var(--accent-rgb), 0.35), transparent);
}
.btn--ghost:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
  background: var(--surface-2);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.15);
}
.btn--ghost:hover::after { animation: btn-shine 0.75s var(--ease-io) 1; }
.btn:active { transform: scale(0.97); }

/* ---------- Orbit badge — eliminado ---------- */
.dot-green {
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: #3ddc84; margin-right: 0.5rem;
  box-shadow: 0 0 8px rgba(61, 220, 132, 0.6);
}

/* ---------- Views ---------- */
.view { display: none; }
.view.is-active { display: block; }
.view.is-entering { animation: view-in 0.55s var(--ease-out) both; }
@keyframes view-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.page {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(7.5rem, 15vh, 10.5rem) var(--pad) clamp(3rem, 6vh, 5rem);
  min-height: 100svh;
}
.page--contact {
  display: flex; flex-direction: column; justify-content: space-between;
}

/* ---------- Page head (asimétrico) ---------- */
.page__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2.5rem; flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(1.8rem, 3.5vw, 2.8rem);
  border-bottom: 1px solid var(--line);
}
.page__title {
  font-weight: 600;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1; letter-spacing: -0.035em;
}
.page__title em {
  font-style: normal;
  color: var(--accent);
}
.page__head-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 1.3rem;
}
.page__desc {
  font-size: 0.88rem; line-height: 1.75; color: var(--ink-dim);
  max-width: 340px; text-align: right;
}
@media (max-width: 760px) {
  .page__head-right { align-items: flex-start; }
  .page__desc { text-align: left; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(2rem, 4.5vw, 4.5rem);
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(7.5rem, 14vh, 10rem) var(--pad) clamp(3rem, 6vh, 5rem);
  position: relative;
  text-align: left;
}
/* Orbes aurora — vida ambiental detrás del contenido */
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: 0;
  border-radius: 50%; filter: blur(90px);
  pointer-events: none;
}
.hero::before {
  width: 42vw; height: 42vw; max-width: 520px; max-height: 520px;
  top: 6%; right: 4%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.12), transparent 62%);
  animation: aurora-a 19s ease-in-out infinite alternate;
}
.hero::after {
  width: 36vw; height: 36vw; max-width: 440px; max-height: 440px;
  bottom: 8%; left: 4%;
  background: radial-gradient(circle, rgba(255, 62, 28, 0.07), transparent 62%);
  animation: aurora-b 24s ease-in-out infinite alternate;
}
@keyframes aurora-a { to { transform: translate(-9%, 10%) scale(1.15); } }
@keyframes aurora-b { to { transform: translate(10%, -8%) scale(1.1); } }
.hero__center {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start;
}
.hero__title {
  font-weight: 600;
  font-size: clamp(2.2rem, 5.6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 1rem 0 1.3rem;
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__line .char {
  display: inline-block;
  transform: translateY(115%);
  animation: char-in 0.95s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 0.022s + 0.15s);
}
@keyframes char-in {
  to { transform: translateY(0); }
}
.hero__line--accent .char {
  animation-delay: calc(var(--i) * 0.022s + 0.55s);
  background: linear-gradient(92deg, var(--accent) 20%, var(--accent-light) 45%, var(--accent) 70%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: char-in 0.95s var(--ease-out) forwards, text-shine 6s linear infinite;
  animation-delay: calc(var(--i) * 0.022s + 0.55s), 1.6s;
}
@keyframes text-shine {
  to { background-position: 200% center; }
}
.hero__desc {
  font-size: 0.92rem; line-height: 1.75;
  color: var(--ink-dim); max-width: 480px;
}
.hero__desc strong { color: var(--accent); font-weight: 600; }
.hero__actions {
  display: flex; gap: 0.75rem; margin-top: 2rem;
  flex-wrap: wrap; justify-content: flex-start;
}

/* ---------- Showcase (ventana-app) ---------- */
.hero__showcase {
  position: relative; z-index: 1;
  width: 100%;
  animation: showcase-float 7s ease-in-out infinite;
}
@keyframes showcase-float {
  0%, 100% { transform: perspective(1400px) rotateY(-5deg) rotate(2.4deg) scale(1.03) translateY(0); }
  50% { transform: perspective(1400px) rotateY(-5deg) rotate(2.7deg) scale(1.03) translateY(-9px); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__showcase { animation: none; margin-top: 2.5rem; }
}
.showcase {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: visible;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s var(--ease-out);
}
@property --beam { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.showcase::before {
  content: ""; position: absolute; inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  padding: 1px;
  background: conic-gradient(from var(--beam), transparent 72%, rgba(var(--accent-rgb), 0.9) 86%, rgba(255, 200, 160, 0.95) 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: beam-spin 5.5s linear infinite;
  pointer-events: none;
}
@keyframes beam-spin {
  to { --beam: 360deg; }
}
.showcase__glow {
  position: absolute; inset: auto -10% -30% -10%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(var(--accent-rgb), 0.28), transparent 70%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}
.showcase__bar {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--line);
}
.showcase__dots { display: flex; gap: 0.4rem; }
.showcase__dots i { width: 10px; height: 10px; border-radius: 50%; }
.showcase__dots i:nth-child(1) { background: #ff5f57; }
.showcase__dots i:nth-child(2) { background: #febc2e; }
.showcase__dots i:nth-child(3) { background: #28c840; }
.showcase__file {
  font-size: 0.68rem; color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.showcase__badge {
  margin-left: auto;
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.1em;
  color: var(--ink-dim);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 0.25rem 0.55rem;
}
.showcase__media {
  aspect-ratio: 21 / 9;
  border-radius: 0 0 var(--radius) var(--radius);
}
.showcase__media::before {
  content: ""; position: absolute; inset: -12%;
  background:
    radial-gradient(ellipse 90% 80% at 75% 25%, rgba(255, 90, 43, 0.75), transparent 55%),
    radial-gradient(ellipse 70% 80% at 15% 90%, rgba(255, 64, 80, 0.45), transparent 55%);
  animation: kenburns 16s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.14) translate(2.5%, -3%); }
}
.showcase__stat { display: none; }
@media (max-width: 720px) {
  .showcase__stat--1 { right: 0.6rem; }
  .showcase__stat--2 { left: 0.6rem; }
}

/* ---------- Before/After (concepto → final) ---------- */
@property --pos { syntax: "<percentage>"; initial-value: 46%; inherits: true; }
.ba { --pos: 46%; animation: ba-hint 2.3s var(--ease-io) 1.7s 1 backwards; }
@keyframes ba-hint {
  from { --pos: 12%; }
  60% { --pos: 60%; }
  to { --pos: 46%; }
}
.ba--manual { animation: none; }
.ba__tag {
  position: absolute; top: 0.8rem; z-index: 4;
  font-size: 0.55rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.3rem 0.6rem; border-radius: 6px;
  backdrop-filter: blur(6px);
}
.ba__tag--final {
  right: 0.8rem;
  color: var(--accent-light);
  background: rgba(10, 10, 16, 0.6);
  border: 1px solid rgba(var(--accent-rgb), 0.4);
}
.ba__before {
  position: absolute; inset: 0; z-index: 2;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 28px),
    #13141d;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba__before .ba__tag {
  left: 0.8rem;
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.25);
}
.ba__box {
  position: absolute;
  border: 1.5px dashed rgba(255, 255, 255, 0.28); border-radius: 8px;
  padding: 0.5rem 0.6rem;
}
.ba__box--a { top: 12%; right: 9%; width: 24%; height: 58%; }
.ba__box--b {
  bottom: 12%; left: 5%; width: 52%; height: 36%;
  display: flex; flex-direction: column; justify-content: space-between;
}
.ba__lbl {
  font-style: normal;
  font-size: 0.52rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.ba__sketch {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.3rem, 3.2vw, 2.4rem); line-height: 1;
  letter-spacing: -0.01em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.42);
}
.ba__divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 2px; margin-left: -1px; z-index: 4;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.45);
}
.ba__handle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(14, 14, 22, 0.82);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: #fff; font-size: 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.ba__range {
  position: absolute; inset: 0; z-index: 5;
  width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize;
}
.ba__img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
}
.ba__before .ba__img { z-index: 0; }
.ba__before .ba__tag { z-index: 2; }
.ba__before .ba__img ~ .ba__box, .ba__before .ba__img ~ .ba__sketch,
.ba__before .ba__img ~ * .ba__sketch { display: none; }
.work-card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}

/* ---------- Blocks (dentro de inicio) ---------- */
.section-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--pad);
}
.block { padding-top: clamp(3.5rem, 7vw, 6rem); }
.block__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2rem; flex-wrap: wrap;
  margin-bottom: clamp(1.8rem, 3.5vw, 2.6rem);
}
.block__note {
  font-size: 0.85rem; line-height: 1.75; color: var(--ink-dim);
  max-width: 320px; text-align: right;
}
.block__more {
  font-size: 0.78rem; font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.4);
  padding-bottom: 0.15rem;
  transition: color 0.3s, transform 0.35s var(--ease-out);
  display: inline-block;
}
.block__more:hover { color: var(--accent-light); transform: translateX(4px); }
@media (max-width: 700px) {
  .block__note { text-align: left; }
}

.section-head__label {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}
.section-head__label::before {
  content: ""; width: 7px; height: 7px;
  background: var(--accent); border-radius: 2px;
}
.section-head__title {
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.05; letter-spacing: -0.03em;
}
.section-head__title em {
  font-style: normal;
  background: linear-gradient(92deg, var(--accent) 25%, var(--accent-light) 45%, var(--accent) 65%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: text-shine 7s linear infinite;
}

/* ---------- Thumbs ---------- */
.thumb { position: relative; overflow: hidden; display: block; }
.thumb::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.12; mix-blend-mode: overlay;
  pointer-events: none;
}
.thumb__type {
  position: absolute; bottom: 1.1rem; left: 1.2rem;
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.8rem);
  line-height: 0.92; letter-spacing: -0.03em;
  text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  z-index: 2;
}
.thumb__play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(10, 10, 16, 0.55);
  backdrop-filter: blur(10px);
  display: grid; place-items: center;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.5s var(--ease-out), background-color 0.4s;
  z-index: 2;
}
.thumb__play::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  animation: play-ping 2.4s var(--ease-io) infinite;
  pointer-events: none;
}
@keyframes play-ping {
  0% { transform: scale(1); opacity: 0.7; }
  80%, 100% { transform: scale(1.75); opacity: 0; }
}
.thumb__play svg { width: 32%; margin-left: 8%; }
.thumb:hover .thumb__play { transform: translate(-50%, -50%) scale(1.12); background: var(--accent); }
.thumb:hover .thumb__play::before { animation: none; opacity: 0; }

.thumb--imposible {
  background:
    radial-gradient(ellipse 90% 80% at 75% 25%, rgba(255, 90, 43, 0.75), transparent 55%),
    radial-gradient(ellipse 70% 80% at 15% 90%, rgba(255, 64, 80, 0.45), transparent 55%),
    linear-gradient(150deg, #1c1018, #0c0810);
}
.thumb--imposible .thumb__type { color: #ffd94d; }
.thumb--top5 {
  background:
    radial-gradient(ellipse 70% 90% at 80% 80%, rgba(40, 200, 255, 0.45), transparent 55%),
    radial-gradient(ellipse 60% 60% at 15% 15%, rgba(60, 90, 255, 0.4), transparent 60%),
    linear-gradient(150deg, #0d1420, #090c14);
}
.thumb--top5 .thumb__type { color: #6be4ff; }
.thumb--mrk {
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 190, 80, 0.5), transparent 55%),
    linear-gradient(160deg, #1a1409, #0d0a06);
}
.thumb--mrk .thumb__type { color: #ffd9a0; }
.thumb--glitch {
  background:
    linear-gradient(rgba(10,10,16,0.15), rgba(10,10,16,0.6)),
    repeating-linear-gradient(90deg, #161410 0 8%, #221c14 8% 16%, #191410 16% 24%);
}
.thumb--glitch .thumb__type { color: var(--accent); }
.thumb--cine {
  background:
    linear-gradient(rgba(10,10,16,0.1), rgba(10,10,16,0.45)),
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255, 150, 80, 0.26), transparent 60%),
    linear-gradient(160deg, #171310, #0b0a09);
}
.thumb--cine::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, #050505 0%, #050505 11%, transparent 11%, transparent 89%, #050505 89%, #050505 100%);
}
.thumb--reto {
  background:
    radial-gradient(ellipse 80% 90% at 20% 80%, rgba(50, 220, 120, 0.4), transparent 55%),
    radial-gradient(ellipse 70% 70% at 85% 15%, rgba(255, 90, 43, 0.45), transparent 60%),
    linear-gradient(150deg, #101a12, #0a0d0b);
}
.thumb--reto .thumb__type { color: #6bffa8; }
.thumb--reel {
  background:
    radial-gradient(ellipse 75% 85% at 80% 20%, rgba(255, 90, 110, 0.5), transparent 55%),
    radial-gradient(ellipse 60% 65% at 15% 90%, rgba(255, 140, 60, 0.45), transparent 60%),
    linear-gradient(150deg, #1a1014, #0b0910);
}
.thumb--reel .thumb__type { color: #ffb3a0; }
.thumb--social {
  background:
    radial-gradient(ellipse 60% 70% at 70% 70%, rgba(255, 123, 58, 0.28), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(242,242,246,0.05) 30px 31px),
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(242,242,246,0.05) 30px 31px),
    linear-gradient(150deg, #14151d, #0a0b10);
}
/* ---------- Portrait mascota ---------- */
.about__portrait {
  aspect-ratio: 1;
  border-radius: 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(ellipse 75% 60% at 50% 35%, rgba(var(--accent-rgb), 0.25), transparent 70%),
    linear-gradient(180deg, #181018, #0d0a10);
  animation: mascot-float 6s ease-in-out infinite;
}
.about__logo-img {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
  padding: 6%;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}
@keyframes mascot-float {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-9px) rotate(1.2deg); }
}

/* ---------- Tabs segmentados ---------- */
.seg {
  display: inline-flex; gap: 0.25rem;
  padding: 0.3rem;
  border: 1px solid var(--line); border-radius: 100px;
  background: var(--surface);
}
.seg-btn {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  padding: 0.55rem 1.4rem; border-radius: 100px;
  transition: color 0.25s, background-color 0.3s, box-shadow 0.3s;
}
.seg-btn:hover { color: var(--ink); }
.seg-btn.is-active {
  color: #fff;
  background: linear-gradient(180deg, #ff9a5c 0%, var(--accent) 100%);
  box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* ---------- Work grid ---------- */
.featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.work__grid.is-switching { opacity: 0; transform: translateY(10px); }
/* Diseños: cuadrados 1:1 a 4 columnas */
.work__grid--disenos { grid-template-columns: repeat(4, 1fr); }
.work-card--sq .work-card__media { aspect-ratio: 1 / 1; }
/* Vídeos: mosaico — horizontales 16:9 uniformes, verticales ocupan 2 filas */
.work__grid--videos {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
}
.work__grid--videos .work-card--v {
  grid-row: span 2;
  display: flex; flex-direction: column;
}
.work__grid--videos .work-card--v .work-card__media {
  flex: 1 1 auto;
  aspect-ratio: auto;
  min-height: 0;
}
.work__grid--videos .work-card--v .thumb__type { font-size: clamp(1.1rem, 2vw, 1.6rem); }
.work-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.5s var(--ease-out), opacity 0.35s;
}
.work-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), 0.12), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.work-card:hover::before { opacity: 1; }
.work-card:hover { border-color: rgba(var(--accent-rgb), 0.4); }
.work-card__media {
  aspect-ratio: 16 / 9;
  transition: transform 0.7s var(--ease-out);
  transform-origin: center;
}
.work-card:hover .work-card__media { transform: scale(1.045); }
.work-card__media .thumb__type { transition: transform 0.6s var(--ease-out); }
.work-card:hover .thumb__type { transform: translateY(-4px); }
.work-card[hidden] { display: none; }
@media (max-width: 1020px) {
  .featured, .work__grid { grid-template-columns: repeat(2, 1fr); }
  .work__grid--videos { grid-template-columns: repeat(3, 1fr); }
  .work__grid--disenos { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .featured, .work__grid { grid-template-columns: 1fr; }
  .work__grid--videos { grid-template-columns: repeat(2, 1fr); }
  .work__grid--disenos { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Services (filas índice) ---------- */
.services__list {
  border-top: 1px solid var(--line);
}
.service {
  display: grid;
  grid-template-columns: 4rem 1.2fr 1fr 3rem;
  align-items: center; gap: 1.5rem;
  padding: 1.9rem 0.4rem;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding-left 0.45s var(--ease-out), background-color 0.35s;
}
.service:hover { padding-left: 1.6rem; background: var(--surface); }
.service__num {
  font-size: 0.78rem; font-weight: 500;
  color: var(--ink-faint);
  transition: color 0.3s;
}
.service__name {
  font-weight: 600;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  letter-spacing: -0.025em; line-height: 1.1;
  transition: color 0.3s;
}
.service__desc {
  font-size: 0.78rem; line-height: 1.7; color: var(--ink-dim);
  max-width: 380px; justify-self: end; text-align: right;
}
.service__arrow {
  font-size: 1.35rem; color: var(--ink-faint);
  justify-self: end;
  transition: transform 0.4s var(--ease-out), color 0.3s;
}
.service:hover .service__name { color: var(--accent); }
.service:hover .service__num { color: var(--accent); }
.service:hover .service__arrow { transform: translate(4px, -4px); color: var(--accent); }
.services__foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 2rem; flex-wrap: wrap;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
@media (max-width: 820px) {
  .service { grid-template-columns: 3rem 1fr 2rem; }
  .service__desc { display: none; }
}

/* ---------- About ---------- */
.about__card {
  display: grid; grid-template-columns: minmax(240px, 320px) 1fr;
  gap: clamp(2rem, 4.5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(1.8rem, 3.5vw, 3rem);
  align-items: center;
}
.about__text {
  font-size: clamp(1.02rem, 1.7vw, 1.3rem);
  line-height: 1.65; letter-spacing: -0.01em;
}
.about__text strong { color: var(--accent); font-weight: 600; }
.about__stats {
  display: flex; gap: clamp(1.8rem, 4vw, 3.5rem);
  margin-top: 2.2rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 0.25rem; }
.stat__num {
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1;
  letter-spacing: -0.02em;
}
.stat__num::after { content: "+"; color: var(--accent); }
.stat:last-child .stat__num::after { content: ""; }
.stat__label {
  font-size: 0.62rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-faint);
}
.about__tools {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1.8rem;
}
.about__tools li {
  font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line); border-radius: 100px;
  color: var(--ink-dim);
  transition: border-color 0.3s, color 0.3s;
}
.about__tools li:hover { border-color: var(--accent); color: var(--ink); }
@media (max-width: 760px) {
  .about__card { grid-template-columns: 1fr; }
  .about__portrait { max-width: 300px; }
}

/* ---------- Contacto ---------- */
.contact__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  flex: 1;
}
@media (max-width: 640px) {
  .contact__list { gap: 0.5rem; }
}
.footer__eyebrow {
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: 1.4rem;
}
.footer__cta {
  display: inline-flex; align-items: baseline; gap: 0.2em;
  font-weight: 700;
  font-size: clamp(2.9rem, 9vw, 7.2rem);
  line-height: 0.9; letter-spacing: -0.01em;
  text-transform: uppercase;
}
.footer__cta span[data-split] { display: inline-block; white-space: nowrap; }
.footer__cta .char {
  display: inline-block;
  color: var(--ink);
  transition: transform 0.5s var(--ease-spring), color 0.4s;
  transition-delay: calc(var(--i) * 0.035s);
}
.footer__cta:hover .char {
  transform: translateY(-9%) rotate(-3deg);
  color: var(--accent);
}
.footer__cta-arrow {
  font-size: 0.5em; color: var(--accent);
  margin-left: 0.25em;
  transition: transform 0.45s var(--ease-spring);
}
.footer__cta:hover .footer__cta-arrow { transform: translate(12%, -12%); }
.contact__sub {
  margin-top: 1.8rem;
  font-size: 0.9rem; line-height: 1.8; color: var(--ink-dim);
  max-width: 420px;
}
.contact__card {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  display: flex; flex-direction: column; gap: 0.6rem;
}
.contact__card::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), 0.1), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.contact__card:hover::after { opacity: 1; }
.contact__card > * { position: relative; z-index: 1; }
.contact__card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.6), transparent);
}
.contact__card-title {
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.6rem;
}
.contact__list {
  display: flex; flex-direction: column;
  gap: 0.6rem;
}
.c-row {
  display: flex; align-items: center; gap: 0.9rem;
  width: 100%; text-align: left;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 0.3s, background-color 0.3s, transform 0.35s var(--ease-out);
}
.c-row:hover {
  background: var(--surface-2);
  border-color: rgba(var(--accent-rgb), 0.4);
  transform: translateX(5px);
}
.c-row__icon {
  display: grid; place-items: center;
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 11px;
  transition: transform 0.4s var(--ease-spring);
}
.c-row:hover .c-row__icon { transform: scale(1.08) rotate(-4deg); }
.c-row__icon svg { width: 18px; height: 18px; }
.c-row__icon--ig { background: rgba(225, 70, 160, 0.15); color: #ff8ac2; }
.c-row__icon--x { background: rgba(242, 242, 246, 0.09); color: var(--ink); }
.c-row__icon--dc { background: rgba(88, 101, 242, 0.18); color: #a5b0ff; }
.c-row__icon--mail { background: rgba(255, 123, 58, 0.16); color: #ffb38a; }
.c-row__info { display: flex; flex-direction: column; min-width: 0; }
.c-row__label { font-size: 0.62rem; color: var(--ink-faint); }
.c-row__handle {
  font-size: 0.85rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.c-row__chip {
  margin-left: auto; flex-shrink: 0;
  font-size: 0.56rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  padding: 0.28rem 0.55rem; border-radius: 100px;
  white-space: nowrap;
}
.c-row__arrow {
  font-style: normal; flex-shrink: 0;
  color: var(--ink-faint);
  transition: color 0.3s, transform 0.35s var(--ease-out);
}
.c-row:hover .c-row__arrow { color: var(--accent); transform: translate(2px, -2px); }
.contact__meta {
  display: flex; justify-content: space-between; align-items: center; gap: 0.8rem;
  margin-top: 0.8rem; flex-wrap: wrap;
}
.contact__status {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.7rem; font-weight: 600; color: var(--ink);
  background: rgba(61, 220, 132, 0.08);
  border: 1px solid rgba(61, 220, 132, 0.25);
  padding: 0.45rem 0.85rem; border-radius: 100px;
}
.contact__status .dot-green { margin-right: 0; }
.contact__clock {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.7rem; font-weight: 600; color: var(--ink-dim);
  border: 1px solid var(--line);
  padding: 0.45rem 0.85rem; border-radius: 100px;
}
.contact__clock-label {
  font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint);
}
.contact__clock .js-time { font-variant-numeric: tabular-nums; color: var(--ink); }

/* Pop-in al entrar en la vista */
@keyframes pop-in {
  from { opacity: 0; transform: scale(0.86) translateY(18px); }
  to { opacity: 1; transform: none; }
}
.view.is-entering .contact__card { animation: pop-in 0.7s var(--ease-spring) 0.15s both; }
.view.is-entering .contact__list li { animation: pop-in 0.55s var(--ease-spring) both; }
.view.is-entering .contact__list li:nth-child(1) { animation-delay: 0.32s; }
.view.is-entering .contact__list li:nth-child(2) { animation-delay: 0.4s; }
.view.is-entering .contact__list li:nth-child(3) { animation-delay: 0.48s; }
.view.is-entering .contact__list li:nth-child(4) { animation-delay: 0.56s; }
@media (max-width: 520px) {
  .c-row__chip { display: none; }
}
.footer__base {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.6rem; border-top: 1px solid var(--line);
  font-size: 0.6rem; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ---------- Footer panel ---------- */
.foot {
  padding: 0 var(--pad) clamp(1.2rem, 3vw, 2rem);
  max-width: calc(var(--maxw) + 2 * var(--pad));
  margin: clamp(2rem, 5vw, 4rem) auto 0;
}
.foot__panel {
  position: relative;
  border: 1px solid rgba(140, 150, 255, 0.16);
  border-radius: clamp(20px, 3vw, 30px);
  background:
    radial-gradient(ellipse 60% 55% at 50% 0%, rgba(80, 100, 255, 0.22), transparent 70%),
    linear-gradient(180deg, #0c1226 0%, #0a0d1c 60%, #090b14 100%);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4.5vw, 4.5rem) clamp(1.4rem, 2.5vw, 2rem);
  text-align: center;
  overflow: hidden;
}
.foot__mascot {
  position: absolute; top: 1.8rem; left: 2.2rem;
  width: 40px; height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
  animation: mascot-float 6.5s ease-in-out infinite;
}
/* foot orbit eliminado */
.foot__eyebrow {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: #ffa470;
  margin-bottom: 1.5rem;
}
.foot__title {
  font-weight: 600;
  font-size: clamp(1.7rem, 4.2vw, 3.1rem);
  line-height: 1.15; letter-spacing: -0.03em;
  max-width: 640px; margin: 0 auto;
}
.foot__title .char {
  display: inline-block;
  transition: transform 0.55s var(--ease-out), color 0.4s;
  transition-delay: calc(var(--i) * 0.012s);
}
.foot__title:hover .char { transform: translateY(-6%); color: var(--accent-light); }

.foot__channels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  text-align: left;
}
.channel {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 1.05rem 1.1rem;
  text-align: left; width: 100%;
  border: 1px solid rgba(140, 150, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.35s, background-color 0.35s, transform 0.4s var(--ease-out);
}
.channel:hover {
  border-color: rgba(140, 150, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
}
.channel__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 12px;
  color: #fff;
}
.channel__icon svg { width: 22px; height: 22px; }
.channel__icon--ig { background: rgba(225, 70, 160, 0.22); color: #ff8ac2; }
.channel__icon--discord,
.channel__icon--dc { background: rgba(88, 101, 242, 0.25); color: #a5b0ff; }
.channel__icon--x { background: rgba(242, 242, 246, 0.1); color: #f2f2f6; }
.channel__icon--mail { background: rgba(255, 123, 58, 0.22); color: #ffb38a; }
.channel__info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.channel__label {
  font-size: 0.62rem; line-height: 1.4;
  color: var(--ink-faint);
}
.channel__handle {
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.channel__chip {
  margin-left: auto; flex-shrink: 0;
  font-size: 0.56rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  line-height: 1.5; text-align: center;
  color: #ffa470;
  border: 1px solid rgba(255, 150, 90, 0.4);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
}
.foot__base {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.4rem; border-top: 1px solid rgba(140, 150, 255, 0.12);
  font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 242, 246, 0.35);
  text-align: left;
}
@media (max-width: 1000px) {
  .foot__channels { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .foot__channels { grid-template-columns: 1fr; }
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

.work-card {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out),
              border-color 0.4s;
  transition-delay: var(--d, 0s);
}
.work-card.is-in { opacity: 1; transform: none; }
.work-card.is-in:hover { transform: translateY(-3px); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translate(-50%, calc(100% + 3rem));
  z-index: 9995;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--accent); color: #fff;
  padding: 0.85rem 1.7rem; border-radius: 10px;
  transition: transform 0.5s var(--ease-out);
}
.toast.is-on { transform: translate(-50%, 0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
  }
  .showcase__stat { animation: none; }
  .reveal, .work-card { opacity: 1; transform: none; }
}
