/* Aether.verse — portafolio. Misma base visual de AetherObjects / Aether Portal:
   fondo casi negro, todo en blanco y negro, brillos suaves, superficies de vidrio gris. */
:root {
  --bg: #0b0b0c; --bg2: #121214;
  --surface: rgba(38, 38, 41, .55); --surface-strong: rgba(48, 48, 52, .8);
  --line: rgba(255, 255, 255, .08); --line-strong: rgba(255, 255, 255, .16);
  --text: #f4f4f5; --text-dim: #9c9ca3; --text-faint: #6b6b70;
  --accent: #f4f4f5; --accent-rgb: 244, 244, 245; --on-accent: #0b0b0c;
  --violet-rgb: 214, 218, 232; /* blanco plateado para los resplandores (paleta blanco y negro) */
  --radius: 14px; --gutter: clamp(16px, 4vw, 40px); --max: 1200px;
  --display: 'Montserrat', 'Inter', system-ui, sans-serif;
  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); overflow-x: hidden; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(var(--accent-rgb), .35); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- fondo (igual que los paneles) + brillo de puntos */
.bg-glow, .bg-bars, .spot { position: fixed; inset: 0; pointer-events: none; z-index: -1; }
.bg-glow {
  background:
    radial-gradient(50% 40% at 95% 100%, rgba(var(--accent-rgb), .09), transparent 70%),
    radial-gradient(45% 35% at 0% 0%, rgba(var(--accent-rgb), .06), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}
.bg-bars {
  background: repeating-linear-gradient(90deg, rgba(var(--accent-rgb), .018) 0 26px, transparent 26px 58px);
  -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 100%); mask-image: linear-gradient(180deg, transparent 30%, #000 100%);
}
.spot { width: 100%; height: 100%; }
/* estrellas lejanas, casi invisibles; una capa titila despacio */
.bg-stars, .bg-stars::after { position: fixed; inset: 0; pointer-events: none; z-index: -1; }
.bg-stars { opacity: .5;
  background-image:
    radial-gradient(1px 1px at 23px 41px, rgba(255, 255, 255, .55), transparent),
    radial-gradient(1px 1px at 131px 87px, rgba(255, 255, 255, .35), transparent),
    radial-gradient(1.5px 1.5px at 197px 213px, rgba(var(--violet-rgb), .6), transparent),
    radial-gradient(1px 1px at 61px 179px, rgba(255, 255, 255, .3), transparent),
    radial-gradient(1px 1px at 251px 29px, rgba(255, 255, 255, .45), transparent);
  background-size: 290px 270px; }
.bg-stars::after { content: ''; animation: twinkleBg 6s ease-in-out infinite;
  background-image:
    radial-gradient(1.2px 1.2px at 89px 311px, rgba(255, 255, 255, .7), transparent),
    radial-gradient(1px 1px at 347px 127px, rgba(255, 255, 255, .5), transparent),
    radial-gradient(1.5px 1.5px at 233px 389px, rgba(238, 240, 248, .7), transparent);
  background-size: 430px 450px; }
@keyframes twinkleBg { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* eclipse: borde de un planeta enorme que asoma abajo del inicio, con luz lila en el filo y la estrella del logo */
.eclipse { position: absolute; z-index: -1; left: 50%; top: calc(100% - 260px); width: 100vw; height: 560px; transform: translateX(-50%);
  overflow: hidden; pointer-events: none;
  /* se desvanece suave hacia los lados y hacia abajo, sin cortes */
  -webkit-mask-image: radial-gradient(ellipse 50% 72% at 50% 34%, #000 40%, rgba(0, 0, 0, .5) 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 72% at 50% 34%, #000 40%, rgba(0, 0, 0, .5) 70%, transparent 100%); }
/* el planeta: filo de luz blanca-lila y resplandor fuerte por fuera (atmósfera) */
.eclipse::before { content: ''; position: absolute; left: 50%; top: 190px; width: min(1500px, 190vw); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: linear-gradient(180deg, rgba(10, 10, 13, .95), rgba(10, 10, 13, .6) 15%, rgba(10, 10, 13, 0) 32%);
  box-shadow: 0 -1px 0 rgba(244, 245, 250, .85), 0 -2px 8px rgba(var(--violet-rgb), .9), 0 -8px 30px rgba(var(--violet-rgb), .55),
    0 -30px 90px -10px rgba(var(--violet-rgb), .45), 0 -70px 160px -30px rgba(var(--violet-rgb), .3),
    inset 0 2px 6px rgba(244, 245, 250, .35), inset 0 18px 50px -20px rgba(var(--violet-rgb), .4); }
/* la luz de la estrella que se está tapando: un halo brillante en la cima del planeta */
.eclipse::after { content: ''; position: absolute; left: 50%; top: 190px; width: min(760px, 120vw); height: 220px; transform: translate(-50%, -50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(240, 242, 250, .38), rgba(var(--violet-rgb), .2) 35%, transparent 70%);
  filter: blur(6px); animation: halo 5s ease-in-out infinite; }
@keyframes halo { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
.eclipse .flare { position: absolute; z-index: 1; left: 50%; top: 190px; width: 64px; height: 64px; transform: translate(-50%, -50%); fill: #fff;
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 12px rgba(var(--violet-rgb), 1)) drop-shadow(0 0 34px rgba(var(--violet-rgb), .7)); animation: flare 5s ease-in-out infinite; }
@keyframes flare { 0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.8); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

/* ---------- cursor propio */
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .2s; will-change: transform; }
.cursor.on { opacity: 1; }
.cursor svg { position: absolute; left: -4px; top: -3px; width: 24px; height: 24px; overflow: visible; transform-origin: 4px 3px;
  transition: transform .25s var(--ease); filter: drop-shadow(0 0 6px rgba(255, 255, 255, .45)) drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }
.cursor path { fill: #fff; stroke: #fff; stroke-width: 2.4; stroke-linejoin: round; }
.cursor.hover svg { transform: scale(1.2) rotate(-8deg); }
.cursor.down svg { transform: scale(.85); }
.cursor-label { position: absolute; left: 22px; top: 18px; height: 26px; padding: 0 11px; display: inline-flex; align-items: center; border-radius: 999px;
  font: 600 12px/1 var(--font); letter-spacing: .02em; color: #0b0b0c; background: #fff; white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .4), 0 0 18px rgba(255, 255, 255, .25); opacity: 0; transform: scale(.6) translateY(-4px); transform-origin: 0 0;
  transition: opacity .2s, transform .3s var(--ease); }
.cursor.labeled .cursor-label { opacity: 1; transform: none; }

/* ---------- estela de destellos del mouse (debajo del cursor, sin tapar clics) */
.trail { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 9998; pointer-events: none; }

/* ---------- botones futuristas: borde de luz que gira + destello al pasar el mouse */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; height: 50px; padding: 0 1.5rem;
  border-radius: 12px; font: 600 15px/1 var(--font); letter-spacing: .01em; white-space: nowrap; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s; }
.btn > * { position: relative; z-index: 2; }
.btn::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 1; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 62%, rgba(255, 255, 255, .95) 78%, transparent 92%);
  -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 exclude, linear-gradient(#000 0 0); animation: spin 4.5s linear infinite; }
.btn::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); opacity: 0; }
.btn:hover::after { animation: sweep .8s var(--ease); }
@keyframes spin { to { --ang: 360deg; } }
@keyframes sweep { 0% { left: -60%; opacity: 1; } 100% { left: 120%; opacity: 1; } }

.btn-primary { color: var(--on-accent); background: linear-gradient(180deg, #ffffff 0%, #d9d9de 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 8px 26px rgba(var(--accent-rgb), .18), inset 0 -2px 0 rgba(0, 0, 0, .12); }
.btn-primary::before { background: conic-gradient(from var(--ang), transparent 0 60%, rgba(0, 0, 0, .55) 78%, transparent 92%); }
.btn-primary::after { background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .95), transparent); }
.btn-primary:hover { transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 0 1px #fff, 0 0 0 5px rgba(255, 255, 255, .1), 0 14px 40px rgba(var(--accent-rgb), .35), 0 0 60px rgba(var(--accent-rgb), .25), inset 0 -2px 0 rgba(0, 0, 0, .12); }
.btn-primary .ico { transition: transform .35s var(--ease); }
.btn-primary:hover .ico { transform: translateX(4px); }

.btn-ghost { color: var(--text); background: rgba(24, 24, 27, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 1px 0 rgba(255, 255, 255, .08); }
.btn-ghost:hover { transform: translateY(-2px) scale(1.04); background: rgba(40, 40, 44, .75); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), 0 0 0 5px rgba(255, 255, 255, .05), 0 0 34px rgba(var(--accent-rgb), .18); text-shadow: 0 0 12px rgba(255, 255, 255, .6); }
.btn:active { transform: translateY(1px) scale(.97); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.btn-sm { height: 40px; padding: 0 1.1rem; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 58px; padding: 0 2.2rem; font-size: 16px; border-radius: 14px; }

/* ---------- navegación */
/* cápsula de vidrio flotante: no va de lado a lado, queda fija con aire alrededor */
.nav { position: sticky; top: 14px; z-index: 20; display: flex; align-items: center; gap: 1.5rem;
  width: min(1080px, calc(100% - 2 * var(--gutter))); margin: 14px auto 0; padding: 8px 8px 8px 22px; border-radius: 999px;
  background: rgba(20, 20, 24, .38); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), inset 0 1px 0 rgba(255, 255, 255, .1), 0 10px 30px rgba(0, 0, 0, .25);
  transition: background .3s, box-shadow .3s; }
.nav.scrolled { background: rgba(16, 16, 20, .62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .12), 0 14px 40px rgba(0, 0, 0, .45), 0 0 40px rgba(var(--violet-rgb), .07); }
.nav .btn-sm { border-radius: 999px; }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; font-size: 14px; color: var(--text-dim); }
.nav-links a { position: relative; transition: color .2s; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

/* logo Aether.verse: luz que recorre las letras + trazo a mano (igual que los paneles) */
.brand { position: relative; display: inline-flex; align-items: baseline; font: 800 21px/1 var(--display); letter-spacing: -.02em; white-space: nowrap; user-select: none; margin-left: .5rem; }
.brand .aether { padding: 0 .35rem 0 .2rem; }
.brand .word2 { color: #fff; }
.brand .scribble { position: absolute; left: -.55rem; top: -40%; width: 4.75em; height: 180%; overflow: visible; pointer-events: none; }
.brand .scribble path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.2s .3s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.brand { --brand-low: rgba(0, 0, 0, .4); --brand-trail: rgba(0, 0, 0, .68); }
.brand-text { position: relative; display: inline-flex; align-items: baseline; padding: .7em .8em; margin: -.7em -.8em;
  -webkit-mask-image: linear-gradient(90deg, var(--brand-low) 0%, var(--brand-low) 30%, var(--brand-trail) 55%, #000 59%, #000 62%, var(--brand-low) 66.5%, var(--brand-low) 100%);
  -webkit-mask-size: 300% 100%; -webkit-mask-repeat: no-repeat; -webkit-mask-position: 100% 0;
  mask-image: linear-gradient(90deg, var(--brand-low) 0%, var(--brand-low) 30%, var(--brand-trail) 55%, #000 59%, #000 62%, var(--brand-low) 66.5%, var(--brand-low) 100%);
  mask-size: 300% 100%; mask-repeat: no-repeat; mask-position: 100% 0;
  animation: brandLight 7s cubic-bezier(.4, 0, .3, 1) infinite; }
.brand-glow { position: absolute; left: 0; top: 0; pointer-events: none; color: #fff; text-shadow: 0 0 3px rgba(255, 255, 255, .95), 0 0 9px rgba(255, 255, 255, .55);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 56.5%, rgba(0, 0, 0, .6) 59%, #000 60.5%, transparent 64.5%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 56.5%, rgba(0, 0, 0, .6) 59%, #000 60.5%, transparent 64.5%, transparent 100%); }
@keyframes brandLight { 0%, 8% { -webkit-mask-position: 100% 0; mask-position: 100% 0; } 62%, 100% { -webkit-mask-position: 0% 0; mask-position: 0% 0; } }

/* ---------- textos comunes */
.eyebrow, .label { display: inline-flex; align-items: center; gap: .6rem; font: 600 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
.label::before { content: ''; width: 22px; height: 1px; background: var(--line-strong); }
.live { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); animation: live 2.2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); } }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
em { font-style: normal; color: #fff; text-shadow: 0 0 22px rgba(255, 255, 255, .35); }
/* texto con brillo plateado que lo recorre */
.shine-text { background: linear-gradient(110deg, #a9a9b0 0%, #a9a9b0 38%, #ffffff 48%, #a9a9b0 58%, #a9a9b0 100%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 5s ease-in-out infinite; }
@keyframes shine { 0% { background-position: 100% 0; } 60%, 100% { background-position: -50% 0; } }

/* destellos (estrella de 4 puntas) */
.spark { position: absolute; width: 18px; height: 18px; fill: #fff; pointer-events: none; filter: drop-shadow(0 0 8px rgba(255, 255, 255, .8)); animation: twinkle 3.6s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.5) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }

/* ---------- hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 72px);
  max-width: var(--max); margin: 0 auto; padding: clamp(40px, 8vh, 96px) var(--gutter) clamp(56px, 10vh, 120px); min-height: min(88vh, 820px); }
.hero h1 { font-size: clamp(36px, 5.4vw, 68px); line-height: 1.02; margin: 18px 0 22px; color: #d9d9dd; }
.lead { font-size: clamp(16px, 1.4vw, 18px); color: var(--text-dim); max-width: 46ch; margin: 0 0 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); pointer-events: none; background: rgba(255, 255, 255, .08); animation: float 14s ease-in-out infinite; }
.orb-a { width: 340px; height: 340px; right: 8%; top: 12%; }
.orb-b { width: 220px; height: 220px; left: 30%; bottom: 4%; background: rgba(255, 255, 255, .05); animation-delay: -6s; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(30px, -24px); } 66% { transform: translate(-24px, 18px); } }

.hero-visual { position: relative; height: clamp(420px, 56vw, 600px); }
.orbit { position: absolute; inset: 50% auto auto 50%; width: 112%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; animation: rot 60s linear infinite; }
.orbit circle { fill: none; stroke: rgba(255, 255, 255, .09); stroke-width: 1; stroke-dasharray: 2 7; }
.orbit circle + circle { stroke: rgba(255, 255, 255, .05); stroke-dasharray: none; }
.orbit .dot { fill: #fff; stroke: none; filter: drop-shadow(0 0 6px #fff); }
@keyframes rot { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hero-visual .s1 { top: 8%; left: 12%; }
.hero-visual .s2 { bottom: 12%; right: 6%; width: 12px; height: 12px; animation-delay: -1.2s; }
.hero-visual .s3 { top: 18%; right: 14%; width: 10px; height: 10px; animation-delay: -2.4s; }
.hero-reel { position: absolute; inset: 0; }
.reel-card { position: absolute; top: 50%; left: 50%; width: 46%; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: #000;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6), inset 0 0 0 1px var(--line-strong); transition: transform .8s var(--ease); --rx: 0deg; --ry: 0deg; }
.reel-card video, .reel-card img { width: 100%; height: 100%; object-fit: cover; }
.reel-card:nth-child(1) { transform: translate(-108%, -46%) rotate(-7deg) scale(.88); z-index: 1; }
.reel-card:nth-child(2) { transform: translate(-50%, -52%) perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); z-index: 3; }
.reel-card:nth-child(3) { transform: translate(8%, -46%) rotate(7deg) scale(.88); z-index: 2; }
.hero-visual:hover .reel-card:nth-child(1) { transform: translate(-118%, -48%) rotate(-10deg) scale(.9); }
.hero-visual:hover .reel-card:nth-child(3) { transform: translate(18%, -48%) rotate(10deg) scale(.9); }
.reel-card:nth-child(2).tilting { transform: translate(-50%, -52%) perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) scale(1.04); transition: transform .15s linear; }
.reel-card .tag { position: absolute; left: 10px; bottom: 10px; }

/* ---------- sobre mí (centrado en escritorio) */
.about { padding-block: clamp(56px, 10vh, 110px); }
.about-text { font: 600 clamp(22px, 2.6vw, 34px)/1.35 var(--display); letter-spacing: -.02em; color: #e4e4e7; max-width: 34ch; margin: 22px 0 28px; text-wrap: pretty; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 761px) {
  .about { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .about .label::after { content: ''; width: 22px; height: 1px; background: var(--line-strong); }
  .about-text { margin-inline: auto; }
  .chips { justify-content: center; }
}
.chips li, .tag { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 500;
  color: var(--text-dim); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; transition: color .2s, box-shadow .2s, transform .3s var(--ease); }
.chips li:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4), 0 0 18px rgba(255, 255, 255, .12); transform: translateY(-2px); }
.tag { height: 24px; padding: 0 10px; font-size: 12px; }
.tag.cliente { color: var(--on-accent); background: #f4f4f5; box-shadow: 0 2px 10px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(0, 0, 0, .12); font-weight: 600; }
.tag.dark { background: rgba(11, 11, 12, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #e4e4e7; }

/* ---------- proyectos */
.projects { padding-block: clamp(32px, 6vh, 64px); }
.block { padding-top: clamp(40px, 7vh, 80px); }
.block-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 20px; align-items: baseline; margin-bottom: 28px; }
.block-head > * { grid-column: 2; }
.block-num { grid-column: 1; grid-row: 1 / span 2; font: 700 14px/1 var(--font); color: var(--text-faint); font-variant-numeric: tabular-nums; }
.block-head h2 { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.05; }
.block-meta { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 40px; margin-top: 14px; }
.block-meta p { margin: 0; color: var(--text-dim); max-width: 58ch; font-size: 15.5px; }
.block-meta .tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* Carolina Cruz: panel premium con luz que recorre el borde */
.featured .feat-panel { position: relative; isolation: isolate; padding: clamp(24px, 4vw, 48px); border-radius: 26px; overflow: hidden;
  background: radial-gradient(70% 60% at 50% -10%, rgba(255, 255, 255, .1), transparent 70%), linear-gradient(180deg, rgba(30, 30, 33, .7), rgba(16, 16, 18, .7));
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 40px 120px rgba(0, 0, 0, .5); }
.featured .feat-panel::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 70%, rgba(255, 255, 255, .9) 80%, transparent 90%);
  -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 exclude, linear-gradient(#000 0 0); animation: spin 8s linear infinite; }
.feat-beam { position: absolute; z-index: -1; top: -40%; left: 50%; width: 60%; height: 90%; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .14), transparent); filter: blur(30px); animation: beam 7s ease-in-out infinite; }
@keyframes beam { 0%, 100% { opacity: .6; transform: translateX(-60%); } 50% { opacity: 1; transform: translateX(-40%); } }
.seal { display: inline-flex; align-items: center; gap: 7px; justify-self: start; height: 28px; padding: 0 12px 0 10px; margin-bottom: 10px; border-radius: 999px;
  font: 600 12px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: #0b0b0c; background: linear-gradient(180deg, #fff, #d4d4d8);
  box-shadow: 0 0 24px rgba(255, 255, 255, .25); }
.seal svg { width: 13px; height: 13px; fill: currentColor; animation: twinkle 3s ease-in-out infinite; }
.featured .block-head h2 { font-size: clamp(42px, 6.6vw, 88px); line-height: .98; letter-spacing: -.045em; }
.subtitle { margin-top: 8px; font: 500 clamp(15px, 1.4vw, 18px)/1.3 var(--font); color: #d4d4d8; letter-spacing: .01em; }
.subtitle::before { content: '— '; color: var(--text-faint); }

/* tarjetas de video: crecen, se inclinan siguiendo el mouse y tienen un reflejo de luz */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); perspective: 1200px; }
.card { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: #000;
  cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); isolation: isolate; border: 0; padding: 0; color: inherit; text-align: left; width: 100%;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) scale(1); transition: transform .6s var(--ease), box-shadow .4s, translate .8s var(--ease), opacity .8s var(--ease); }
.card img, .card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s, transform .8s var(--ease); }
.card video { opacity: 0; }
.card.playing video { opacity: 1; }
.card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .78)); z-index: 1; pointer-events: none; }
.card:hover { z-index: 2; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) scale(1.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 30px 60px rgba(0, 0, 0, .6), 0 0 40px rgba(255, 255, 255, .08); }
.card.tilting { transition: transform .15s linear, box-shadow .4s, translate .8s var(--ease), opacity .8s var(--ease); }
.card:hover img, .card:hover video { transform: scale(1.06); }
.card:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s; mix-blend-mode: overlay;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .55), transparent 45%); }
.tilting .glare, .tilting > .ig-media .glare { opacity: 1; }
.card-info { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.card-info b { display: block; font: 700 16px/1.2 var(--display); letter-spacing: -.01em; }
.card-info small { display: block; margin-top: 3px; font-size: 12px; color: rgba(255, 255, 255, .6); }
.card .tag { position: absolute; top: 12px; left: 12px; z-index: 3; }
.play { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); transition: background .25s, transform .4s var(--ease), box-shadow .3s; }
.play svg { width: 14px; height: 14px; fill: #fff; margin-left: 2px; transition: fill .2s; }
.card:hover .play { background: #fff; transform: scale(1.12); box-shadow: 0 0 0 6px rgba(255, 255, 255, .15), 0 0 24px rgba(255, 255, 255, .5); }
.card:hover .play svg { fill: #000; }
.featured .card { aspect-ratio: 4 / 5; border-radius: 18px; }

/* ---------- diseño gráfico: carrusel infinito de mockups de Instagram */
.ig-marquee { position: relative; margin-top: 8px; padding: 24px 0 30px; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.ig-track { display: flex; gap: 18px; width: max-content; will-change: transform; padding-left: 18px; }
.ig-marquee.dragging .ig { pointer-events: none; }
.ig { --rx: 0deg; --ry: 0deg; flex: 0 0 auto; width: clamp(220px, 23vw, 300px); display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #000;
  box-shadow: inset 0 0 0 1px var(--line); transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) scale(1); transition: transform .6s var(--ease), box-shadow .4s; -webkit-user-drag: none; }
.ig:hover { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) scale(1.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 26px 50px rgba(0, 0, 0, .6), 0 0 36px rgba(255, 255, 255, .08); position: relative; z-index: 2; }
.ig.tilting { transition: transform .15s linear, box-shadow .4s; }
.ig-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.ig-head img { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 2px #000, 0 0 0 3.5px #fff; }
.ig-head b { font-size: 13px; font-weight: 600; }
.ig-head .dots { margin-left: auto; color: var(--text-dim); letter-spacing: 2px; font-weight: 700; }
.ig-media { position: relative; aspect-ratio: 3 / 4; background: #111; overflow: hidden; }
.ig-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); pointer-events: none; }
.ig:hover .ig-media img { transform: scale(1.04); }
.ig-carousel { position: absolute; top: 10px; right: 10px; z-index: 3; width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }
.ig-actions { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 12px 4px; }
.ig-actions svg { width: 22px; height: 22px; fill: none; stroke: #f4f4f5; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ig:hover .ig-actions svg:first-child { fill: #fff; animation: pop .5s var(--ease); }
@keyframes pop { 40% { transform: scale(1.3); } }
.ig-actions .save { margin-left: auto; }
.ig-pager { display: flex; gap: 4px; position: absolute; left: 50%; transform: translateX(-50%); }
.ig-pager i { width: 6px; height: 6px; border-radius: 50%; background: #555; }
.ig-pager i.on { background: #3b82f6; }
.ig-foot { padding: 4px 12px 12px; font-size: 13px; white-space: nowrap; color: var(--text-dim); display: flex; justify-content: space-between; gap: 8px; }
.ig-foot span { color: var(--text); font-weight: 600; }
.ig-foot em { font-size: 12px; text-shadow: none; color: var(--text-dim); transition: color .2s; }
.ig:hover .ig-foot em { color: #fff; }
.ig-more { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.drag-hint { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-faint); }

/* ---------- cierre: collage de trabajos detrás, partículas y destellos */
.closing { position: relative; padding-block: clamp(80px, 14vh, 160px); overflow: hidden; }
.collage { position: absolute; inset: 0; z-index: -1; display: flex; flex-direction: column; justify-content: center; gap: 18px; pointer-events: none;
  opacity: .5; filter: grayscale(.3);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 20%, transparent 75%); mask-image: radial-gradient(70% 70% at 50% 50%, #000 20%, transparent 75%); }
.collage-row { overflow: hidden; transform: rotate(-4deg); }
.collage-strip { display: flex; gap: 18px; width: max-content; animation: slide 70s linear infinite; }
.collage-row.der .collage-strip { animation-direction: reverse; animation-duration: 85s; }
.collage-strip img { width: 170px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
@keyframes slide { to { transform: translateX(-50%); } }
.closing-card { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(56px, 9vw, 110px) clamp(20px, 5vw, 64px); border-radius: 28px;
  background: radial-gradient(60% 80% at 50% 120%, rgba(var(--accent-rgb), .18), transparent 70%), rgba(14, 14, 16, .58);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line-strong), 0 40px 120px rgba(0, 0, 0, .6); }
.closing-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 65%, rgba(255, 255, 255, .9) 80%, transparent 92%);
  -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 exclude, linear-gradient(#000 0 0); animation: spin 6s linear infinite; }
.particles { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.closing-card .eyebrow { margin-bottom: 20px; }
.closing-card h2 { font-size: clamp(32px, 5.2vw, 66px); line-height: 1.04; max-width: 15ch; margin: 0 auto 18px; }
.closing-card p { color: var(--text-dim); margin: 0 auto 36px; max-width: 42ch; font-size: 17px; }
.closing-card .s4 { top: 14%; left: 12%; width: 22px; height: 22px; }
.closing-card .s5 { bottom: 16%; right: 12%; width: 14px; height: 14px; animation-delay: -1.8s; }

.footer { display: flex; align-items: center; gap: 24px; padding-block: 28px 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-dim); }
.foot-brand { font: 800 16px/1 var(--display); color: var(--text); letter-spacing: -.02em; }
.footer a:hover { color: var(--text); }
.foot-copy { margin-left: auto; }

/* ---------- WhatsApp flotante (solo móvil) */
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; width: 56px; height: 56px; border-radius: 50%;
  display: none; place-items: center; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 0 6px rgba(255, 255, 255, .08);
  transform: translateY(120px); transition: transform .5s var(--ease); }
.wa-float::after { content: ''; position: absolute; inset: 0; border-radius: 50%; animation: live 2.4s infinite; }
.wa-float.show { transform: none; }
.wa-float svg { width: 28px; height: 28px; fill: #0b0b0c; }

/* ---------- visor */
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 5, 6, .94); color: var(--text);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.viewer[open] { display: flex; align-items: center; justify-content: center; gap: 16px; animation: fadeIn .3s ease; }
.viewer::backdrop { background: transparent; }
.v-stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: calc(100vw - 160px); animation: zoomIn .45s var(--ease); }
.v-stage video { max-height: calc(100dvh - 110px); max-width: 100%; border-radius: 12px; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 0 1px var(--line-strong); }
.v-stage figcaption { font-size: 14px; color: var(--text-dim); text-align: center; }
.v-stage figcaption b { color: var(--text); font-weight: 600; }
.v-close, .v-nav { width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--surface-strong); color: #fff; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, transform .3s var(--ease); flex: none; }
.v-close:hover, .v-nav:hover { background: #fff; color: #000; transform: scale(1.1); }
.v-close svg, .v-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v-close { position: absolute; top: 16px; right: 16px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.94); } }

/* ---------- aparición al hacer scroll (usa "translate" para no chocar con la inclinación) */
.reveal { opacity: 0; translate: 0 24px; transition: opacity .8s var(--ease), translate .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; translate: 0 0; }
.card.reveal { transition: transform .6s var(--ease), box-shadow .4s, opacity .8s var(--ease) var(--d, 0s), translate .8s var(--ease) var(--d, 0s); }

/* ---------- tablet */
@media (max-width: 1024px) {
  .grid.cols-4 { --cols: 2 !important; }
}

/* ---------- móvil */
@media (max-width: 760px) {
  .nav { gap: 12px; top: 10px; margin-top: 10px; width: calc(100% - 24px); padding: 6px 6px 6px 18px; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .brand { font-size: 19px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 28px; gap: 8px; }
  .hero-ctas .btn { flex: 1; }
  .hero-visual { height: 104vw; max-height: 480px; margin-top: 12px; overflow-x: clip; } /* la órbita no debe ensanchar la página */
  .reel-card { width: 50%; }
  .reel-card:nth-child(1), .hero-visual:hover .reel-card:nth-child(1) { transform: translate(-96%, -46%) rotate(-6deg) scale(.82); }
  .reel-card:nth-child(3), .hero-visual:hover .reel-card:nth-child(3) { transform: translate(-4%, -46%) rotate(6deg) scale(.82); }
  .orb-a { width: 220px; height: 220px; }
  .block-head { grid-template-columns: 1fr; }
  .block-head > *, .block-num { grid-column: 1; grid-row: auto; }
  .featured.block { padding-inline: 10px; }
  .featured .feat-panel { padding: 22px 14px 18px; border-radius: 22px; }
  /* los videos pasan a carrusel horizontal con imán */
  .grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    /* aire arriba/abajo para que la tarjeta pueda crecer sin que se corte la etiqueta */
    margin: -14px calc(-1 * var(--gutter)) -6px; padding: 18px var(--gutter) 14px; scroll-padding-inline: var(--gutter); }
  .featured .grid { margin: -14px -14px -6px; padding-inline: 14px; scroll-padding-inline: 14px; }
  .grid::-webkit-scrollbar { display: none; }
  .grid .card { flex: 0 0 76%; scroll-snap-align: start; }
  .card:active, .ig:active { transform: scale(.97); }
  .swipe-hint { display: flex !important; }
  .ig { width: 64vw; }
  .ig-track { gap: 12px; }
  .ig-more { justify-content: center; }
  .collage-strip img { width: 120px; }
  .closing-card { border-radius: 22px; }
  .wa-float { display: grid; }
  .viewer[open] { flex-direction: column; gap: 0; }
  .v-stage { max-width: 100vw; padding: 0 12px; }
  .v-stage video { max-height: calc(100dvh - 150px); }
  .v-nav { position: absolute; bottom: calc(20px + env(safe-area-inset-bottom)); }
  .v-prev { left: calc(50% - 60px); }
  .v-next { right: calc(50% - 60px); }
  .footer { flex-wrap: wrap; gap: 10px 20px; padding-bottom: 96px; }
  .foot-copy { margin-left: 0; width: 100%; }
}
.swipe-hint { display: none; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; color: var(--text-faint); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand-text { animation: none; -webkit-mask-image: none; mask-image: none; }
  .brand-glow { display: none; }
  .brand .scribble path { animation: none; stroke-dashoffset: 0; }
  .reveal { opacity: 1; translate: none; transition: none; }
  .btn::before, .feat-panel::before, .closing-card::before, .orbit, .orb, .spark, .shine-text, .collage-strip, .live, .feat-beam { animation: none !important; }
}
