/* =============================================================
   LOPAN VISUALS — styles.css
   1. Tokens · 2. Reset · 3. Utilidades · 4. Tipografía
   5. Componentes · 6. Secciones · 7. Animación · 8. Responsive
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #0a0a0a;
  --bg-2: #101011;
  --bg-3: #161617;
  --bg-4: #1d1d1f;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --ink: #f5f5f7;
  --ink-2: #d2d2d7;
  --mute: #8e8e93;
  --dim: #56565b;
  --rec: #ff3b30;

  --chrome: linear-gradient(180deg, #ffffff 0%, #d9d9de 38%, #7a7a80 52%, #c8c8cd 64%, #ffffff 100%);

  --f-display: "Inter Tight", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --nav-h: 76px;
  --radius: 18px;
  --radius-sm: 10px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--ink); color: var(--bg); }

/* =============================================================
   3. Utilidades
   ============================================================= */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.chrome {
  background: var(--chrome);
  background-size: 100% 220%;
  background-position: 50% 0%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: chromeShift 7s var(--ease-in-out) infinite alternate;
}
@keyframes chromeShift { to { background-position: 50% 100%; } }
em.chrome { font-style: normal; }

.rec-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--rec); box-shadow: 0 0 10px rgba(255, 59, 48, 0.8);
  animation: recBlink 1.2s steps(2, jump-none) infinite;
  vertical-align: middle;
}
@keyframes recBlink { 50% { opacity: 0.2; } }

/* ---------- Logo (recorte del PNG/WebP original con fondo transparente) ---------- */
.logo {
  --logo: url("assets/img/logo-lopan.webp");
  display: block;
  position: relative;
  aspect-ratio: 1420 / 1020;
  background: var(--logo) 46.54% 41.54% / 140.85% 130.69% no-repeat;
}
.logo::after {
  /* Destello metálico que recorre el trazo */
  content: ""; position: absolute; inset: 0;
  -webkit-mask: var(--logo) 46.54% 41.54% / 140.85% 130.69% no-repeat;
  mask: var(--logo) 46.54% 41.54% / 140.85% 130.69% no-repeat;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.95) 50%, transparent 65%) no-repeat;
  background-size: 300% 100%;
  background-position: 120% 0;
  mix-blend-mode: screen;
  pointer-events: none;
}
.logo--nav { width: 78px; }
.logo--splash { width: min(340px, 62vw); }
.logo--footer { width: clamp(140px, 16vw, 210px); }
.nav-logo:hover .logo::after, .logo--splash::after, .footer-top:hover .logo::after {
  animation: logoShine 1.6s var(--ease-in-out) both;
}
.logo--splash::after { animation-delay: 0.7s; }
@keyframes logoShine { from { background-position: 120% 0; } to { background-position: -20% 0; } }

/* =============================================================
   4. Tipografía
   ============================================================= */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.035em; line-height: 1; }
.eyebrow { color: var(--ink-2); margin-bottom: 28px; }
.section-index { color: var(--mute); margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.section-index::before { content: ""; width: 28px; height: 1px; background: var(--line-2); }
.section-title { font-size: clamp(2.6rem, 6.4vw, 6.2rem); line-height: 0.98; }
.section-title .line { display: block; }
.section-lead { color: var(--mute); font-size: clamp(1rem, 1.3vw, 1.18rem); max-width: 46ch; margin-top: 26px; }
.link { position: relative; color: var(--ink); }
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0.25); transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.link:hover::after { transform: scaleX(1); }

/* =============================================================
   5. Componentes
   ============================================================= */

/* ---------- Botones ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 28px; border-radius: 999px;
  font-family: var(--f-body); font-size: 0.95rem; font-weight: 500; letter-spacing: -0.01em;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transform: translate3d(var(--bx), var(--by), 0);
  transition: transform 0.45s var(--ease-out), color 0.45s var(--ease-out), border-color 0.45s, box-shadow 0.45s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform 0.55s var(--ease-out);
}
.btn--light { background: var(--ink); color: var(--bg); }
.btn--light::before { background: #ffffff; }
.btn--light:hover { box-shadow: 0 10px 40px -8px rgba(255, 255, 255, 0.35); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--bg); border-color: var(--ink); }
.btn:hover::before { transform: translateY(0); }
.btn--small { height: 42px; padding: 0 20px; font-size: 0.86rem; }
.btn-arrow { display: inline-block; transition: transform 0.45s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn:active { transform: translate3d(var(--bx), var(--by), 0) scale(0.97); }

/* ---------- Splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 900; background: var(--bg);
  display: grid; place-items: center; pointer-events: all;
  animation: splashSafety 0.01s 4.5s forwards;
  transition: opacity 0.9s var(--ease-out), visibility 0.9s;
}
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.splash-center { display: grid; justify-items: center; gap: 26px; }
.splash .logo--splash { opacity: 0; filter: blur(14px); transform: scale(1.06); animation: splashLogo 1.3s 0.15s var(--ease-out) forwards; }
@keyframes splashLogo { to { opacity: 1; filter: blur(0); transform: none; } }
.splash-meta { color: var(--mute); opacity: 0; animation: fadeIn 0.8s 0.6s forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.splash-bar { position: absolute; left: 0; right: 0; height: 12vh; background: #000; transition: transform 1s var(--ease-in-out); }
.splash-bar--top { top: 0; }
.splash-bar--bottom { bottom: 0; }
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
.splash.is-out .splash-bar--top { transform: translateY(-100%); }
.splash.is-out .splash-bar--bottom { transform: translateY(100%); }

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0; z-index: 950; pointer-events: none; opacity: 0; transition: opacity 0.3s var(--ease-out); }
.cursor.is-ready { opacity: 1; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; mix-blend-mode: difference; }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: grid; place-items: center;
  transition: width 0.45s var(--ease-out), height 0.45s var(--ease-out), margin 0.45s var(--ease-out), background 0.45s, border-color 0.45s;
}
.cursor-label { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bg); opacity: 0; transition: opacity 0.3s; }
.cursor.is-link .cursor-ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; border-color: rgba(255, 255, 255, 0.85); }
.cursor.is-media .cursor-ring { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--ink); border-color: var(--ink); }
.cursor.is-media .cursor-label { opacity: 1; }
.cursor.is-media .cursor-dot { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor [data-project], html.has-cursor label { cursor: none; }
  html.has-cursor input, html.has-cursor textarea { cursor: text; }
}

/* ---------- Progreso y grano ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 800;
  background: var(--ink); transform-origin: left; transform: scaleX(0);
}
.grain {
  position: fixed; inset: -50%; z-index: 700; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(1%, 3%); }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 600; height: var(--nav-h);
  display: flex; align-items: center; gap: 32px; padding: 0 var(--gutter);
  transition: transform 0.6s var(--ease-out), background 0.5s, border-color 0.5s, backdrop-filter 0.5s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(10, 10, 10, 0.92);
  border-bottom-color: var(--line);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav.is-solid { background: rgba(10, 10, 10, 0.62); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
}
.nav.is-hidden { transform: translateY(-100%); }
.nav-logo { flex: none; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  position: relative; padding: 8px 14px; font-size: 0.9rem; color: var(--ink-2); border-radius: 999px;
  transition: color 0.3s, background 0.3s;
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.nav-links a.is-current { color: var(--ink); }
.nav-links a.is-current::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ink);
}
.nav-burger { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.nav-burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform 0.5s var(--ease-out); }
.nav-burger span:first-child { top: 18px; }
.nav-burger span:last-child { top: 25px; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 590; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: 0 var(--gutter);
  clip-path: inset(0 0 100% 0); transition: clip-path 0.8s var(--ease-in-out); visibility: hidden;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu nav { display: grid; gap: 6px; }
.mobile-menu nav a {
  font-family: var(--f-display); font-size: clamp(2.2rem, 10vw, 3.4rem); letter-spacing: -0.04em; line-height: 1.15;
  display: flex; align-items: baseline; gap: 16px;
  opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.mobile-menu nav a .mono { color: var(--dim); }
.mobile-menu.is-open nav a { opacity: 1; transform: none; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: 0.05s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: 0.1s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: 0.15s; }
.mobile-menu.is-open nav a:nth-child(5) { transition-delay: 0.2s; }
.mobile-menu .btn { align-self: flex-start; }

/* ---------- Marco multimedia (placeholder de visor de cámara) ---------- */
.frame {
  position: relative; overflow: hidden; background: var(--bg-3); isolation: isolate;
}
.frame > video, .frame > img.frame-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.8s var(--ease-out), transform 1.2s var(--ease-out);
}
.frame.has-media > video.is-loaded, .frame.has-media > img.frame-img.is-loaded { opacity: 1; }
.frame-ph {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, 0.07), transparent 60%),
    linear-gradient(160deg, #1b1b1d 0%, #0e0e0f 100%);
  transition: opacity 0.8s var(--ease-out);
}
.frame-ph::before {
  /* esquinas de visor */
  content: ""; position: absolute; inset: 14px;
  background:
    linear-gradient(var(--line-2), var(--line-2)) top left / 18px 1px,
    linear-gradient(var(--line-2), var(--line-2)) top left / 1px 18px,
    linear-gradient(var(--line-2), var(--line-2)) top right / 18px 1px,
    linear-gradient(var(--line-2), var(--line-2)) top right / 1px 18px,
    linear-gradient(var(--line-2), var(--line-2)) bottom left / 18px 1px,
    linear-gradient(var(--line-2), var(--line-2)) bottom left / 1px 18px,
    linear-gradient(var(--line-2), var(--line-2)) bottom right / 18px 1px,
    linear-gradient(var(--line-2), var(--line-2)) bottom right / 1px 18px;
  background-repeat: no-repeat;
}
.frame-ph::after {
  /* barrido de luz lento */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
  background-size: 250% 100%;
  animation: phSweep 5s var(--ease-in-out) infinite;
}
@keyframes phSweep { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.frame-ph-label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  color: var(--dim); font-size: 0.64rem; white-space: nowrap; text-align: center;
  display: flex; align-items: center; gap: 10px;
}
.frame-ph-label::before {
  content: ""; width: 9px; height: 9px; border: 1px solid var(--dim); border-radius: 50%;
  background: radial-gradient(circle, var(--dim) 0 2px, transparent 2.5px);
}
.frame.has-media .frame-ph { opacity: 0; }

/* =============================================================
   6. Secciones
   ============================================================= */
.section { position: relative; padding: clamp(64px, 8vw, 120px) 0; }
.section-head { margin-bottom: clamp(48px, 6vw, 88px); }
.section-head--split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.section-head--center { text-align: center; display: grid; justify-items: center; }
.section-head--center .section-index::after { content: ""; width: 28px; height: 1px; background: var(--line-2); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; overflow: hidden;
  padding: calc(var(--nav-h) + 40px) var(--gutter) clamp(56px, 9vh, 110px);
}
.hero-media { position: absolute; inset: 0; z-index: 0; background: #060606; }
.hero-media .frame-ph { background: #060606; }
.hero-media .frame-ph::before { display: none; }
.hero-media .frame-ph-label { top: calc(var(--nav-h) + 48px); left: 50%; transform: translateX(-50%); opacity: 0.6; }
.hero-light {
  /* luz que sigue al ratón (como un foco sobre el set) */
  position: absolute; inset: -10%; z-index: 1; pointer-events: none;
  background:
    radial-gradient(circle at var(--mx, 68%) var(--my, 38%), rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 18%, transparent 42%),
    radial-gradient(circle at calc(100% - var(--mx, 68%)) calc(100% - var(--my, 38%)), rgba(190, 190, 200, 0.07) 0%, transparent 38%),
    radial-gradient(60% 50% at 80% 10%, rgba(255, 255, 255, 0.05), transparent 70%);
  filter: blur(10px);
  transition: opacity 0.8s;
}
.hero-media.has-media .hero-light { opacity: 0.35; }
.hero-media > video { z-index: 0; }
.hero-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, transparent 22%, transparent 45%, rgba(10, 10, 10, 0.92) 100%),
    radial-gradient(120% 100% at 50% 40%, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
}
.hud { position: absolute; inset: calc(var(--nav-h) + 6px) var(--gutter) 24px; z-index: 2; pointer-events: none; color: rgba(255, 255, 255, 0.55); }
.hud-corner { position: absolute; width: 22px; height: 22px; border-color: rgba(255, 255, 255, 0.4); border-style: solid; border-width: 0; }
.hud-corner--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hud-corner--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hud-corner--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hud-corner--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.hud-top, .hud-bottom { position: absolute; left: 36px; right: 36px; display: flex; justify-content: space-between; font-size: 0.66rem; }
.hud-top { top: 4px; }
.hud-bottom { bottom: 4px; justify-content: space-between; }
.hud-top span:first-child { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
[data-timecode] { font-variant-numeric: tabular-nums; }

.hero-content { position: relative; z-index: 3; width: 100%; max-width: var(--maxw); margin: 0 auto; }
.hero-title {
  font-size: clamp(3rem, 9.4vw, 9.6rem); font-weight: 500; line-height: 0.92; letter-spacing: -0.05em;
  max-width: 14ch;
}
.hero-title .line { display: block; padding-bottom: 0.04em; }
.hero-sub { margin-top: 30px; max-width: 46ch; color: var(--ink-2); font-size: clamp(1rem, 1.25vw, 1.15rem); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.scroll-cue {
  position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(56px, 9vh, 110px);
  display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--mute);
  writing-mode: vertical-rl; font-size: 0.64rem;
}
.scroll-cue-line { width: 1px; height: 64px; background: linear-gradient(var(--ink), transparent); background-size: 100% 200%; animation: cue 2s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 26px 0; }
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--f-display); font-size: clamp(1.6rem, 3.2vw, 2.8rem); letter-spacing: -0.03em; color: var(--ink-2); transition: color 0.3s; white-space: nowrap; }
.marquee-track span:hover { color: var(--ink); }
.marquee-track i { font-style: normal; color: var(--dim); font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Portfolio ---------- */
.filters, .tabs {
  position: relative; display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); margin-bottom: 40px;
}
.filter, .tab {
  position: relative; z-index: 1; height: 40px; padding: 0 18px; border-radius: 999px;
  font-size: 0.88rem; color: var(--mute); transition: color 0.4s var(--ease-out);
}
.filter:hover, .tab:hover { color: var(--ink); }
.filter.is-active, .tab.is-active { color: var(--bg); }
.filter-indicator, .tab-indicator {
  position: absolute; z-index: 0; top: 5px; left: 0; height: 40px; width: 0; border-radius: 999px; background: var(--ink);
  transition: transform 0.55s var(--ease-out), width 0.55s var(--ease-out);
}
/* Sin JS: el activo se marca con fondo propio */
html:not(.is-ready) .filter.is-active, html:not(.is-ready) .tab.is-active { background: var(--ink); }

/* Cámara: el menú de su pantalla abre cada categoría del portfolio */
.cam { max-width: 640px; margin: -4px auto 40px; }

/* Escritorio: cámara a la izquierda (fija al hacer scroll) y portfolio a la derecha */
.work-hint { display: none; }
@media (min-width: 901px) {
  .work-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 3.4vw, 56px); align-items: start; }
  .work-stage .cam { max-width: none; margin: 0; position: sticky; top: calc(var(--nav-h) + 28px); }
  .work-side { container-type: inline-size; align-self: stretch; }
  .work-hint {
    display: flex; align-items: center; gap: 14px; height: 100%; min-height: 200px;
    color: var(--dim); font-size: 0.8rem; letter-spacing: 0.12em;
  }
  .work-hint span { font-size: 1.4rem; color: var(--mute); animation: hintNudge 1.6s var(--ease-in-out) infinite; }
  .work-side:has(.work-grid.is-open) .work-hint { display: none; }
  .work-side .project-title { font-size: clamp(1.1rem, 1.7vw, 1.9rem); }
  .work-side .project--feature .project-title, .work-side .project--wide .project-title { font-size: clamp(1.3rem, 2.2vw, 2.4rem); }
}
@keyframes hintNudge { 50% { transform: translateX(-6px); } }
.cam-body {
  position: relative; aspect-ratio: 1700 / 925;
}
.cam-photo { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 30px 40px rgba(0,0,0,0.7)); pointer-events: none; user-select: none; }

/* Pantalla de la foto: x 235–1129 (marco igual a ambos lados), y 290–846 sobre 1700×925 */
.cam-screen {
  position: absolute; left: 13.82%; top: 31.35%; width: 52.59%; height: 60.11%;
  container-type: inline-size; overflow: hidden; background: #050607; border-radius: 2px;
}
.cam-feed {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08); filter: saturate(0.85) brightness(0.4) blur(1.5px);
  transition: opacity 0.6s var(--ease-out), transform 1.2s var(--ease-out);
}
.cam-feed.is-on { opacity: 1; transform: scale(1); }
.cam-feed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.75), rgba(0,0,0,0.25) 70%, rgba(0,0,0,0.5)); }
.cam-glare { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.015) 32%, transparent 33%), repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 3px); }

.cam-ui { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; padding: 2.6cqw 2.6cqw 2.2cqw; color: #fff; }
.cam-ui-top, .cam-ui-foot { display: flex; align-items: center; gap: 3.4cqw; font-size: 2.5cqw; letter-spacing: 0.08em; color: rgba(255,255,255,0.75); }
.cam-ui-foot { justify-content: space-between; padding-top: 2cqw; border-top: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.55); }
.cam-rec { display: inline-flex; align-items: center; gap: 1.2cqw; color: var(--rec); }
.cam-rec i { width: 1.9cqw; height: 1.9cqw; border-radius: 50%; background: var(--rec); animation: camBlink 1.2s steps(2, jump-none) infinite; }
@keyframes camBlink { 50% { opacity: 0.15; } }
.cam-path { flex: 1; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cam-tc { font-variant-numeric: tabular-nums; }
.cam-batt { position: relative; width: 5.8cqw; height: 2.8cqw; border: 1px solid rgba(255,255,255,0.7); border-radius: 0.5cqw; }
.cam-batt::after { content: ""; position: absolute; right: -1cqw; top: 30%; width: 0.7cqw; height: 40%; background: rgba(255,255,255,0.7); }
.cam-batt i { position: absolute; inset: 1px; right: 30%; background: #fff; border-radius: 1px; }

.cam-ui-main { flex: 1; display: flex; gap: 2.8cqw; padding: 2cqw 0; min-height: 0; }
.cam-tabs { display: none; flex-direction: column; gap: 1.7cqw; padding-top: 0.7cqw; }
.cam-tabs i { width: 5.5cqw; height: 5.5cqw; border-radius: 1cqw; background: rgba(255,255,255,0.08); }
.cam-tabs i.is-on { background: var(--rec); box-shadow: 0 0 2.4cqw rgba(255,59,48,0.5); }
.cam-menu { list-style: none; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 1.2cqw; }
.cam-item {
  position: relative; display: flex; align-items: center; gap: 2.8cqw; width: 100%; height: 10cqw; padding: 0 3.4cqw;
  border-radius: 1.4cqw; text-align: left; color: rgba(255,255,255,0.85); background: rgba(10,10,12,0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 4.3cqw; letter-spacing: -0.01em; transition: background 0.3s var(--ease-out), color 0.3s, transform 0.4s var(--ease-out);
}
.cam-item::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 0.8cqw; border-radius: 0 4px 4px 0; background: var(--c); opacity: 0; transition: opacity 0.3s; }
.cam-item-num { font-family: var(--f-mono); font-size: 2.6cqw; color: rgba(255,255,255,0.4); }
.cam-item-name { flex: 1; font-weight: 500; white-space: nowrap; }
.cam-item-count { font-family: var(--f-mono); font-size: 2.5cqw; color: rgba(255,255,255,0.45); letter-spacing: 0.06em; }
.cam-item-arrow { font-size: 4.5cqw; line-height: 1; color: rgba(255,255,255,0.4); transition: transform 0.3s var(--ease-out); }
.cam-item.is-cursor { background: rgba(255,255,255,0.14); color: #fff; }
.cam-item.is-cursor::before { opacity: 1; }
.cam-item.is-cursor .cam-item-arrow { transform: translateX(0.8cqw); color: #fff; }
.cam-item.is-active { background: var(--c); color: #0a0a0a; }
.cam-item.is-active .cam-item-num, .cam-item.is-active .cam-item-count, .cam-item.is-active .cam-item-arrow { color: rgba(0,0,0,0.6); }
.cam-item:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Botones reales de la foto: MENU cierra, la rueda mueve y el centro abre */
.cam-hot { position: absolute; border-radius: 50%; transition: box-shadow 0.25s, background 0.25s; }
.cam-hot:hover, .cam-hot:focus-visible { box-shadow: 0 0 0 2px rgba(255,255,255,0.35); background: rgba(255,255,255,0.06); outline: none; }
.cam-hot:active { background: rgba(255,255,255,0.14); }
.cam-hot--menu { left: 49.1%; top: 13.2%; width: 8.1%; height: 4.3%; border-radius: 999px; }
.cam-hot--up { left: 77.2%; top: 54.1%; width: 7.6%; height: 6.4%; border-radius: 999px 999px 40% 40%; }
.cam-hot--down { left: 77.2%; top: 71.9%; width: 7.6%; height: 6.4%; border-radius: 40% 40% 999px 999px; }
.cam-hot--ok { left: 78.1%; top: 60.8%; width: 6%; height: 11%; }

@media (max-width: 640px) {
  /* En móvil la cámara sale más grande (recortada a la derecha) para que el menú se lea */
  .cam { margin: 0 0 32px; }
  .cam-body { width: 112%; margin-left: -4%; }
  .cam-ui-foot, .cam-item-num { display: none; }
  .cam-ui { padding: 2.6cqw 3.4cqw; }
  .cam-ui-top { font-size: 3.6cqw; }
  .cam-tc, .cam-batt { display: none; }
  .cam-ui-main { padding: 2.4cqw 0 0; }
  .cam-menu { gap: 1cqw; justify-content: flex-start; }
  .cam-item { height: 11.4cqw; font-size: 5.8cqw; padding: 0 3.4cqw; }
  .cam-item-count { font-size: 3.4cqw; }
  .cam-item-arrow { font-size: 6cqw; }
}
@media (prefers-reduced-motion: reduce) {
  .cam-rec i { animation: none; }
}

.work-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.4vw, 20px);
  grid-auto-rows: clamp(200px, 21vw, 340px); grid-auto-flow: dense;
}
.project {
  position: relative; grid-column: span 4; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-3); outline-offset: 4px;
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.project--feature { grid-column: span 8; grid-row: span 2; }
.project--tall { grid-column: span 4; grid-row: span 2; }
.project--wide { grid-column: span 12; grid-row: span 2; }
.project .frame { position: absolute; inset: -4% 0; }
.project .frame > video, .project .frame > img.frame-img { transform: scale(1.06); }
.project:hover .frame > video, .project:hover .frame > img.frame-img, .project:focus-visible .frame > img.frame-img { transform: scale(1); }
.project::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.78) 100%);
  opacity: 0.55; transition: opacity 0.6s var(--ease-out);
}
.project:hover::after, .project:focus-visible::after { opacity: 1; }
.project-info {
  position: absolute; z-index: 2; left: clamp(18px, 2vw, 30px); right: clamp(18px, 2vw, 30px); bottom: clamp(18px, 2vw, 28px);
  transform: translateY(20px); transition: transform 0.7s var(--ease-out);
}
.project-cat { color: var(--ink-2); display: inline-block; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 999px; margin-bottom: 14px; background: rgba(0, 0, 0, 0.25); }
.project-title { font-size: clamp(1.4rem, 2.3vw, 2.4rem); letter-spacing: -0.035em; }
.project--feature .project-title, .project--wide .project-title { font-size: clamp(1.8rem, 3.4vw, 3.6rem); }
.project-meta { color: var(--ink-2); font-size: 0.9rem; margin-top: 8px; opacity: 0; transform: translateY(10px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.project:hover .project-info, .project:focus-visible .project-info { transform: none; }
.project:hover .project-meta, .project:focus-visible .project-meta { opacity: 1; transform: none; transition-delay: 0.08s; }
.project-num { position: absolute; z-index: 2; top: 18px; right: 20px; color: var(--ink-2); }
.project.is-hiding { opacity: 0; transform: scale(0.96); }
.project.is-filtered { display: none; }
/* Portfolio cerrado hasta elegir carpeta (sin JS se ve todo) */
html.js .work-grid:not(.is-open) { display: none; }
.work-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
/* Trabajos y Servicios más juntos */
.section.work { padding-bottom: clamp(20px, 2.5vw, 36px); }
.section.services { padding-top: clamp(28px, 3.5vw, 48px); }
/* Sobre mí y Mi equipo más juntos */
.section.about { padding-bottom: clamp(20px, 2.5vw, 36px); }
/* Servicios y Sobre mí más juntos */
.section.services { padding-bottom: clamp(20px, 2.5vw, 36px); }
.section.about { padding-top: clamp(28px, 3.5vw, 48px); }
.section.gear { padding-top: clamp(28px, 3.5vw, 48px); }
/* Mi equipo y Planes más juntos */
.section.gear { padding-bottom: clamp(20px, 2.5vw, 36px); }
.section.plans { padding-top: clamp(28px, 3.5vw, 48px); }
.work-foot p { color: var(--mute); font-size: 1.05rem; }

/* ---------- Servicios ---------- */
.svc-row { display: flex; gap: clamp(12px, 1.4vw, 20px); min-height: 640px; }
.svc {
  position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: flex-grow 0.9s var(--ease-out), border-color 0.5s, background 0.5s;
  outline-offset: 4px;
}
.svc-row:hover .svc { flex-grow: 0.8; }
.svc-row .svc:hover, .svc-row .svc:focus-within, .svc-row .svc.is-open { flex-grow: 1.9; border-color: var(--line-2); }
.svc-visual { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.svc-body { position: relative; z-index: 2; padding: clamp(24px, 2.6vw, 40px); background: linear-gradient(180deg, transparent, rgba(10, 10, 10, 0.85) 38%); }
.svc-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--ink-2); margin-bottom: 22px; }
.svc-title { font-size: clamp(2rem, 3.2vw, 3.2rem); letter-spacing: -0.04em; line-height: 0.98; }
.svc-tag { color: var(--ink-2); margin-top: 14px; max-width: 30ch; }
.svc-more {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows 0.8s var(--ease-out), opacity 0.6s var(--ease-out), margin 0.8s var(--ease-out);
}
.svc-more > * { min-height: 0; overflow: hidden; }
.svc-more { grid-template-rows: 0fr 0fr 0fr; }
.svc:hover .svc-more, .svc:focus-within .svc-more, .svc.is-open .svc-more { grid-template-rows: auto auto auto; opacity: 1; margin-top: 22px; }
.svc-for { color: var(--mute); font-size: 0.9rem; padding-bottom: 16px; }
.svc-for .mono { color: var(--ink-2); margin-right: 8px; }
.svc-list { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 22px; }
.svc-list li { font-size: 0.82rem; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); white-space: nowrap; }
.svc-more .btn { justify-self: start; overflow: hidden; }

/* A · Negocios: teléfono vertical + retícula de interfaz */
.svc--biz .svc-grid-lines {
  position: absolute; inset: 0; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask: radial-gradient(70% 60% at 50% 30%, #000, transparent);
  mask: radial-gradient(70% 60% at 50% 30%, #000, transparent);
}
.phone {
  position: absolute; z-index: 1; left: 50%; top: 9%; width: clamp(150px, 13vw, 190px); aspect-ratio: 9 / 18.5;
  transform: translateX(-50%) rotate(-6deg); border-radius: 26px; padding: 7px;
  background: linear-gradient(160deg, #3a3a3d, #121213 40%, #2b2b2e);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.9s var(--ease-out);
}
.phone-screen { position: absolute; inset: 7px; border-radius: 20px; }
.phone-ui { position: absolute; right: -34px; bottom: 22%; display: grid; gap: 8px; transition: transform 0.9s var(--ease-out), opacity 0.6s; }
.chip { background: rgba(20, 20, 22, 0.85); border: 1px solid var(--line-2); padding: 6px 10px; border-radius: 999px; color: var(--ink); font-size: 0.62rem; white-space: nowrap; }
.svc--biz:hover .phone, .svc--biz.is-open .phone { transform: translateX(-50%) rotate(0deg) translateY(-12px) scale(1.04); }
.svc--biz:hover .phone-ui, .svc--biz.is-open .phone-ui { transform: translateX(-10px); }

/* B · Eventos: luces bokeh + foto vertical */
.bokeh { position: absolute; inset: 0; }
.bokeh i {
  position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 70%);
  filter: blur(6px); opacity: 0.35; animation: bokeh 12s ease-in-out infinite alternate;
}
.bokeh i:nth-child(1) { width: 120px; height: 120px; left: 8%; top: 10%; }
.bokeh i:nth-child(2) { width: 70px; height: 70px; left: 70%; top: 6%; animation-delay: -3s; }
.bokeh i:nth-child(3) { width: 180px; height: 180px; left: 55%; top: 30%; animation-delay: -6s; opacity: 0.2; }
.bokeh i:nth-child(4) { width: 50px; height: 50px; left: 22%; top: 46%; animation-delay: -2s; }
.bokeh i:nth-child(5) { width: 90px; height: 90px; left: 80%; top: 52%; animation-delay: -8s; }
.bokeh i:nth-child(6) { width: 40px; height: 40px; left: 40%; top: 14%; animation-delay: -5s; }
.bokeh i:nth-child(7) { width: 140px; height: 140px; left: -4%; top: 58%; animation-delay: -9s; opacity: 0.18; }
@keyframes bokeh { to { transform: translate3d(18px, -26px, 0) scale(1.15); } }
.svc--events:hover .bokeh i, .svc--events.is-open .bokeh i { opacity: 0.6; }
.svc-photo {
  position: absolute; z-index: 1; left: 50%; top: 8%; width: clamp(170px, 15vw, 230px); aspect-ratio: 4 / 5;
  transform: translateX(-50%) rotate(3deg); border-radius: 6px;
  box-shadow: 0 0 0 8px #f0f0f2, 0 40px 70px -30px rgba(0, 0, 0, 0.9);
  transition: transform 0.9s var(--ease-out);
}
.svc-photo .frame-ph { background: linear-gradient(160deg, #2a2a2c, #151516); }
.svc--events:hover .svc-photo, .svc--events.is-open .svc-photo { transform: translateX(-50%) rotate(-2deg) translateY(-10px) scale(1.05); }

/* C · Videoclips: formato panorámico + película */
.svc-cine {
  position: absolute; z-index: 1; left: 0; right: 0; top: 13%; aspect-ratio: 2.39 / 1; max-height: 34%;
  transition: transform 0.9s var(--ease-out), filter 0.9s;
}
.svc-cine .frame-ph::before { display: none; }
.svc--clips:hover .svc-cine, .svc--clips.is-open .svc-cine { transform: scale(1.06); }
.filmstrip {
  position: absolute; z-index: 1; left: -40px; right: -40px; height: 22px;
  background:
    radial-gradient(circle, transparent 0, transparent 0) ,
    repeating-linear-gradient(90deg, transparent 0 8px, rgba(255, 255, 255, 0.14) 8px 20px, transparent 20px 28px);
  background-size: auto, auto;
  -webkit-mask: linear-gradient(transparent 5px, #000 5px, #000 17px, transparent 17px);
  mask: linear-gradient(transparent 5px, #000 5px, #000 17px, transparent 17px);
  animation: film 3s linear infinite; animation-play-state: paused;
}
.filmstrip--top { top: calc(13% - 30px); }
.filmstrip--bottom { top: calc(13% + 34% + 8px); animation-direction: reverse; }
.svc--clips:hover .filmstrip, .svc--clips.is-open .filmstrip { animation-play-state: running; }
@keyframes film { to { transform: translateX(28px); } }
.svc-title--rgb { position: relative; }
.svc-title--rgb::before, .svc-title--rgb::after {
  content: attr(data-text); position: absolute; inset: 0; opacity: 0; mix-blend-mode: screen; pointer-events: none;
  transition: transform 0.5s var(--ease-out), opacity 0.5s;
}
.svc-title--rgb::before { color: #ff3b5c; }
.svc-title--rgb::after { color: #2fd6ff; }
.svc--clips:hover .svc-title--rgb::before, .svc--clips.is-open .svc-title--rgb::before { opacity: 0.55; transform: translate(-3px, 0); }
.svc--clips:hover .svc-title--rgb::after, .svc--clips.is-open .svc-title--rgb::after { opacity: 0.55; transform: translate(3px, 0); }

/* ---------- Sobre mí ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.about-media { position: sticky; top: calc(var(--nav-h) + 24px); }
.portrait { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.portrait .frame-ph-label { white-space: normal; width: 80%; justify-content: center; }
.object {
  position: absolute; right: -6%; bottom: -8%; width: clamp(180px, 18vw, 260px); aspect-ratio: 220 / 140;
  perspective: 800px; display: grid; place-items: center;
}
.object-svg, .object video { width: 100%; height: auto; transform-style: preserve-3d; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.7)); }
.object-svg { animation: objFloat 6s ease-in-out infinite; }
.object.is-spinning .object-svg { animation: objSpin 3s var(--ease-in-out); }
@keyframes objFloat { 50% { transform: translateY(-8px) rotateY(-8deg); } }
@keyframes objSpin { 0% { transform: rotateY(0) rotateX(0); } 50% { transform: rotateY(180deg) rotateX(8deg) scale(1.06); } 100% { transform: rotateY(360deg) rotateX(0); } }
.object video { position: absolute; inset: 0; height: 100%; object-fit: contain; opacity: 0; }
.object.has-video video { opacity: 1; }
.object.has-video .object-svg { opacity: 0; }
.object-hint { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; color: var(--dim); font-size: 0.6rem; }

.about-lead { font-family: var(--f-display); font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.35; letter-spacing: -0.02em; margin: 34px 0 20px; color: var(--ink); }
.about-text > p:not(.section-index):not(.about-lead) { color: var(--mute); max-width: 56ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 56px 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.stat { background: var(--bg); padding: 24px 22px; }
.stat dt { color: var(--mute); }
.stat dd { font-family: var(--f-display); font-size: clamp(2.2rem, 4vw, 3.6rem); letter-spacing: -0.05em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.process { display: grid; gap: 0; border-top: 1px solid var(--line); }
.process li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding 0.5s var(--ease-out); }
.process li:hover { padding-left: 12px; }
.process .mono { color: var(--dim); padding-top: 6px; }
.process h4 { font-size: 1.35rem; letter-spacing: -0.03em; }
.process p { color: var(--mute); margin-top: 6px; font-size: 0.95rem; }

/* ---------- Planes ---------- */
.plans .tabs { margin: 0 auto 48px; }
.plans .container { display: flex; flex-direction: column; align-items: center; }
.plan-set { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 20px); align-items: stretch; }
.plan-set[hidden] { display: none; }
.plan-set.is-entering .plan { animation: planIn 0.8s var(--ease-out) both; }
.plan-set.is-entering .plan:nth-child(2) { animation-delay: 0.07s; }
.plan-set.is-entering .plan:nth-child(3) { animation-delay: 0.14s; }
@keyframes planIn { from { opacity: 0; transform: translateY(26px); } }
.plan {
  --rx: 0deg; --ry: 0deg;
  position: relative; display: flex; flex-direction: column; gap: 28px;
  padding: clamp(26px, 2.6vw, 40px); border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-2);
  transition: border-color 0.5s, transform 0.6s var(--ease-out), background 0.5s;
}
.plan:hover { border-color: var(--line-2); transform: translateY(-6px); background: var(--bg-3); }
.plan-name { font-size: 1.7rem; letter-spacing: -0.035em; }
.plan-desc { color: var(--mute); font-size: 0.93rem; margin-top: 10px; min-height: 3em; }
.plan-price { display: flex; align-items: baseline; gap: 4px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.plan-amount { font-family: var(--f-display); font-size: clamp(3rem, 4.6vw, 4.4rem); letter-spacing: -0.06em; line-height: 1; }
.plan-cur { font-family: var(--f-display); font-size: 1.6rem; color: var(--ink-2); }
.plan-per { color: var(--mute); font-size: 0.9rem; margin-left: 6px; }
.plan-list { display: grid; gap: 14px; flex: 1; }
.plan-list li { display: flex; justify-content: space-between; gap: 16px; font-size: 0.92rem; }
.plan-list span { color: var(--mute); }
.plan-list b { font-weight: 500; text-align: right; }
.plan-list b.no { color: var(--dim); }
.plan-btn { width: 100%; }
.plan--featured { background: linear-gradient(180deg, #19191b, #0f0f10); border-color: transparent; }
.plan--featured::before {
  /* borde metálico giratorio */
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--angle, 0deg), #6e6e73, #ffffff, #6e6e73, #2a2a2c, #6e6e73);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spinBorder 6s linear infinite;
}
.plan--featured { isolation: isolate; }
.plan--featured:hover { background: linear-gradient(180deg, #1d1d20, #121213); }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spinBorder { to { --angle: 360deg; } }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 6px 14px; border-radius: 999px; font-size: 0.62rem; font-weight: 500; white-space: nowrap;
}
.plans-note { margin-top: 48px; color: var(--mute); text-align: center; }

/* ---------- Contacto ---------- */
.contact { border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact-title { font-size: clamp(3rem, 7.4vw, 7.4rem); line-height: 0.95; letter-spacing: -0.05em; }
.contact-title .line { display: block; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.contact-links { margin-top: 48px; border-top: 1px solid var(--line); }
.contact-links li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-links .mono { color: var(--mute); }

.form { display: grid; gap: 18px; padding: clamp(24px, 3vw, 44px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  padding: 26px 0 10px; font-size: 1rem; outline: none; resize: vertical; border-radius: 0;
  transition: border-color 0.4s;
}
.field textarea { min-height: 120px; }
.field label {
  position: absolute; left: 0; top: 24px; color: var(--mute); font-size: 1rem; pointer-events: none;
  transform-origin: left top; transition: transform 0.4s var(--ease-out), color 0.4s;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-20px) scale(0.78); color: var(--ink-2); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--rec); }
.choice { border: 0; padding-top: 8px; }
.choice legend { color: var(--mute); margin-bottom: 12px; }
.choice.is-invalid legend { color: var(--rec); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 0.86rem; color: var(--ink-2); cursor: pointer;
  transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.35s var(--ease-out);
}
.chips label:hover span { border-color: var(--ink-2); transform: translateY(-2px); }
.chips input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 3px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.form-status { min-height: 1.2em; color: var(--ink-2); }
.form-status.is-error { color: var(--rec); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 80px 0 36px; overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-cta p { font-family: var(--f-display); font-size: clamp(1.4rem, 2.4vw, 2.2rem); letter-spacing: -0.03em; }
.footer-word {
  display: flex; justify-content: space-between; margin: clamp(56px, 8vw, 110px) 0 clamp(40px, 5vw, 64px);
  font-family: var(--f-display); font-weight: 600; letter-spacing: -0.06em; line-height: 0.8;
  font-size: clamp(3.4rem, 12.6vw, 13rem); color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
}
.footer-word span { transition: color 0.8s var(--ease-out), -webkit-text-stroke-color 0.8s; }
.footer-word span:hover { color: var(--ink); -webkit-text-stroke-color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); color: var(--mute); font-size: 0.9rem; }
.footer-social, .footer-legal { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-bottom a { transition: color 0.3s; }
.footer-bottom a:hover { color: var(--ink); }

/* ---------- CTA flotante ---------- */
.float-cta {
  position: fixed; right: 20px; bottom: 20px; z-index: 550;
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 999px;
  background: rgba(245, 245, 247, 0.96); color: var(--bg); font-size: 0.9rem; font-weight: 500;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8);
  transform: translateY(140%); transition: transform 0.7s var(--ease-out);
}
.float-cta.is-visible { transform: none; }
.float-cta:hover { transform: translateY(-3px); }

/* ---------- Visor de proyecto ---------- */
.viewer {
  width: min(1200px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px);
  margin: auto; padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--bg-2); color: var(--ink); overflow: hidden;
}
.viewer::backdrop { background: rgba(0, 0, 0, 0.82); }
.viewer[open] { animation: viewerIn 0.6s var(--ease-out); }
@keyframes viewerIn { from { opacity: 0; transform: translateY(30px) scale(0.98); } }
.viewer-stage { position: relative; aspect-ratio: 16 / 9; background: #000; }
.viewer-stage video, .viewer-stage iframe, .viewer-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border: 0; }
.viewer-stage .frame { position: absolute; inset: 0; }
.viewer-info { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 22px 26px; }
.viewer-info h3 { font-size: 1.6rem; }
.viewer-info p { color: var(--mute); flex: 1; }
.viewer-close {
  position: absolute; z-index: 5; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.6); border: 1px solid var(--line-2); transition: background 0.3s, transform 0.4s var(--ease-out);
}
.viewer-close:hover { background: var(--ink); color: var(--bg); transform: rotate(90deg); }

/* =============================================================
   7. Animación (reveal + split)
   ============================================================= */
html.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
/* Defensa: nunca ocultar elementos que además se dividen en líneas */
.reveal[data-split], .reveal[data-split-lines] { opacity: 1; transform: none; }

.split .line { overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.split .line-inner { display: block; transform: translateY(110%); transition: transform 1.2s var(--ease-out); }
.split.is-in .line-inner { transform: none; }
.split.is-in .line:nth-child(2) .line-inner { transition-delay: 0.08s; }
.split.is-in .line:nth-child(3) .line-inner { transition-delay: 0.16s; }
.section-title.split .line { display: block; }

/* Solo efectos intrusivos se desactivan con movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .bokeh i { animation: none; }
}

/* =============================================================
   8. Responsive
   ============================================================= */
@media (max-width: 1100px) {
  .svc-row { flex-direction: column; min-height: 0; }
  .svc { min-height: 520px; flex: none; }
  .svc-row:hover .svc, .svc-row .svc:hover { flex-grow: 0; }
  .svc-more { grid-template-rows: auto auto auto; opacity: 1; margin-top: 22px; }
  .phone { left: auto; right: 10%; transform: rotate(-6deg); }
  .svc--biz:hover .phone, .svc--biz.is-open .phone { transform: rotate(0) translateY(-12px) scale(1.04); }
  .svc-photo { left: auto; right: 10%; transform: rotate(3deg); }
  .svc--events:hover .svc-photo, .svc--events.is-open .svc-photo { transform: rotate(-2deg) translateY(-10px) scale(1.05); }
  .plan-set { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; gap: 28px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { position: relative; top: 0; max-width: 520px; }
  .section-head--split { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --nav-h: 66px; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .logo--nav { width: 66px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 56vw; }
  .project, .project--feature, .project--wide { grid-column: span 2; grid-row: span 1; }
  .project--tall { grid-column: span 2; grid-row: span 2; }
  .project-meta { opacity: 1; transform: none; }
  .project-info { transform: none; }
  .project::after { opacity: 1; }
  .scroll-cue { display: none; }
}
@media (max-width: 640px) {
  .hud-hide-sm { display: none; }
  .hud-top, .hud-bottom { left: 28px; right: 28px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .field-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .stat { padding: 18px 14px; }
  .stat dd { font-size: 1.9rem; }
  .object { right: -4%; bottom: -10%; width: 160px; }
  .svc { min-height: 560px; }
  .phone { right: 6%; width: 140px; }
  .svc-photo { right: 8%; width: 160px; }
  .footer-word { flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .form-actions .btn { flex: 1 1 100%; }
  .float-cta { right: 16px; bottom: 16px; }
}
@media (hover: none) {
  .grain { display: none; } /* ahorra batería en móvil */
}

/* ---------- Ajustes finos ---------- */
.about-text .section-title { font-size: clamp(2.4rem, 4.8vw, 5rem); }
@media (max-width: 900px) {
  .work-grid { grid-auto-rows: 72vw; }
  .project .frame-ph-label, .hero-media .frame-ph-label { display: none; }
  .filters, .tabs { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
  .filter, .tab { flex: none; }
}

/* ---------- Retrato recortado (sin fondo) ---------- */
.portrait--cutout { position: relative; aspect-ratio: 1300 / 1051; border-radius: 0; overflow: visible; isolation: isolate; }
.portrait--cutout::before {
  /* foco de luz detrás de la figura */
  content: ""; position: absolute; z-index: -1; inset: -12% -8% 0 -8%;
  background: radial-gradient(52% 58% at 62% 42%, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03) 45%, transparent 72%);
}
.portrait--cutout::after {
  /* línea de suelo */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 30%, var(--line-2) 70%, transparent);
}
.portrait-img {
  width: 100%; height: auto;
  -webkit-mask: linear-gradient(180deg, #000 72%, transparent 100%);
  mask: linear-gradient(180deg, #000 72%, transparent 100%);
  filter: contrast(1.06) brightness(0.96);
  transform-origin: 60% 100%;
  transition: transform 1.4s var(--ease-out), filter 1.4s var(--ease-out);
}
.portrait--cutout:hover .portrait-img { transform: scale(1.025); filter: contrast(1.1) brightness(1.02); }
.about-media .object { right: auto; bottom: auto; left: 0; top: 2%; width: clamp(140px, 13vw, 200px); }
.about-media .object-hint { bottom: -20px; white-space: nowrap; text-align: left; }

/* ---------- Plan con giro de carta (desglose por detrás) ---------- */
.plan--flip { display: block; padding: 0; border: 0; background: none; perspective: 1800px; cursor: pointer; }
.plan--flip:hover { background: none; }
.plan-inner {
  position: relative; height: 100%; transform-style: preserve-3d;
  transition: transform 1.1s cubic-bezier(0.2, 0.9, 0.25, 1.05);
}
.plan--flip.is-flipped .plan-inner { transform: rotateY(180deg); }
.plan-face {
  position: relative; height: 100%; display: flex; flex-direction: column; gap: 28px;
  padding: clamp(26px, 2.6vw, 40px); border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-2);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  transition: border-color 0.5s, background 0.5s;
}
.plan--flip:hover .plan-face { border-color: var(--line-2); background: var(--bg-3); }
.plan-face--back {
  position: absolute; inset: 0; transform: rotateY(180deg); overflow: auto;
  background: linear-gradient(180deg, #1a1a1c, #111112);
}
.plan--flip:hover .plan-face--back { background: linear-gradient(180deg, #1d1d20, #131314); }
.plan-flip-hint {
  position: absolute; top: 18px; right: 20px; color: var(--dim); font-size: 0.62rem;
  transition: color 0.4s, transform 0.6s var(--ease-out);
}
.plan--flip:hover .plan-flip-hint { color: var(--ink-2); transform: rotate(-4deg) translateX(-2px); }
.plan-back-kicker { color: var(--mute); margin-bottom: 12px; }
.plan-list--breakdown li { padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.plan-list--breakdown b { font-variant-numeric: tabular-nums; }
.plan-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-top: 4px; color: var(--mute);
}
.plan-total b { font-family: var(--f-display); font-weight: 500; font-size: clamp(2rem, 3vw, 2.6rem); letter-spacing: -0.04em; color: var(--ink); }
/* destello al girar */
.plan-inner::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.12) 50%, transparent 65%) no-repeat;
  background-size: 300% 100%; background-position: 120% 0; opacity: 0;
}
.plan--flip.is-flipping .plan-inner::after { animation: flipShine 1.1s var(--ease-out); }
@keyframes flipShine { 0% { opacity: 1; background-position: 120% 0; } 100% { opacity: 0; background-position: -20% 0; } }
.plan-face > * { flex-shrink: 0; }
.plan-face--back { gap: 20px; }
.plan-face--back .plan-list { gap: 10px; flex: 1; }
.plan-face--back .plan-list--breakdown li { padding-bottom: 10px; }

/* Servicios: título y texto descriptivo más juntos */
.section-head--split .section-lead { margin-top: 0; }
@media (max-width: 1100px) {
  .section-head--split { gap: 22px; }
}

/* ---------- Móvil con imagen real (Instagram de Lopan Visuals) ---------- */
.phone--image {
  aspect-ratio: 783 / 1000; width: clamp(220px, 19vw, 290px); top: 6%;
  padding: 0; border-radius: 0; background: none; box-shadow: none;
}
.phone-img {
  width: 100%; height: auto;
  filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.75));
}
.phone--image .phone-ui { right: -18px; bottom: 26%; }
@media (max-width: 1100px) {
  .phone--image { width: clamp(200px, 30vw, 270px); right: 6%; }
}
@media (max-width: 640px) {
  .phone--image { width: 190px; right: 2%; }
}

/* ---------- Hero: foto fundida con el fondo ---------- */
.hero-media .frame-ph-label { display: none; }
.hero-photo {
  position: absolute; z-index: 2; top: 0; right: 0; bottom: 0;
  width: min(80%, 1400px); height: 100%; max-width: none;
  object-fit: cover; object-position: 58% 38%;
  pointer-events: none;
  mix-blend-mode: screen;               /* las sombras de la foto desaparecen en el negro del fondo */
  filter: url(#cleanBlacks) saturate(1.2) brightness(1.2);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%, #000 88%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 14%, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%, #000 88%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 14%, #000 72%, transparent 100%);
  mask-composite: intersect;
  opacity: 0; animation: heroPhotoIn 2.2s 0.9s var(--ease-out) forwards;
}
@keyframes heroPhotoIn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .hero-photo {
    width: 100%; height: 72%; bottom: auto; object-position: 55% 30%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 50%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 50%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
  }
  @keyframes heroPhotoInSm { from { opacity: 0; } to { opacity: 1; } }
  .hero-photo { animation-name: heroPhotoInSm; }
}
@media (min-width: 901px) {
  .hero-photo { width: 62%; object-position: 50% 38%; }
}

/* ---------- Sobre mí sin foto: una columna, cámara encima del texto ---------- */
.about-grid { grid-template-columns: 1fr; gap: 36px; max-width: 980px; }
.about-media { position: relative; top: 0; max-width: none; }
.about-media .object {
  position: relative; left: auto; top: auto; right: auto; bottom: auto;
  width: clamp(150px, 14vw, 200px); margin-bottom: 18px;
}
.about-media .object-hint { bottom: -20px; left: 0; text-align: left; }

/* ---------- Sobre mí: foto de fondo fundida ---------- */
.about { overflow: hidden; }
.about-bg {
  position: absolute; z-index: 0; top: 0; right: 0;
  width: 66%; height: min(100%, 1100px); max-width: none;
  object-fit: cover; object-position: 45% 30%;
  pointer-events: none;
  mix-blend-mode: screen;                 /* las sombras se funden con el negro */
  filter: url(#cleanBlacks) saturate(1.18) brightness(1.15);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 16%, #000 62%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 40%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 16%, #000 62%, transparent 100%);
  mask-composite: intersect;
}
.about .container { position: relative; z-index: 1; }
.about-grid { max-width: var(--maxw); }
.about-text { max-width: 720px; }
@media (max-width: 900px) {
  .about-bg {
    width: 100%; height: 760px; object-position: 55% 25%; opacity: 0.6;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 15%, #000 50%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 15%, #000 50%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
  }
}

/* Sobre mí: foto más pequeña y completa a lo ancho (sin recortes), bordes suaves */
.about-bg {
  width: min(58%, 900px); height: auto; aspect-ratio: 1536 / 1024;
  object-fit: contain; top: 40px; right: var(--gutter);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 14%, #000 78%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 14%, #000 78%, transparent 100%);
}
@media (max-width: 900px) {
  .about-bg {
    width: 100%; height: auto; top: 30px; right: 0; opacity: 0.6;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 12%, #000 72%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 12%, #000 72%, transparent 100%);
  }
}

/* Sobre mí: bordes más difuminados (fundido suave en varias etapas) */
.about-bg {
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 10%, rgba(0,0,0,.8) 20%, #000 28%, #000 72%, rgba(0,0,0,.8) 80%, rgba(0,0,0,.35) 90%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,.35) 9%, rgba(0,0,0,.8) 18%, #000 26%, #000 60%, rgba(0,0,0,.8) 72%, rgba(0,0,0,.35) 86%, transparent 100%);
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 10%, rgba(0,0,0,.8) 20%, #000 28%, #000 72%, rgba(0,0,0,.8) 80%, rgba(0,0,0,.35) 90%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,.35) 9%, rgba(0,0,0,.8) 18%, #000 26%, #000 60%, rgba(0,0,0,.8) 72%, rgba(0,0,0,.35) 86%, transparent 100%);
}
@media (max-width: 900px) {
  .about-bg {
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, rgba(0,0,0,.4) 8%, rgba(0,0,0,.85) 16%, #000 22%, #000 78%, rgba(0,0,0,.85) 84%, rgba(0,0,0,.4) 92%, transparent 100%),
      linear-gradient(180deg, transparent 0%, rgba(0,0,0,.4) 8%, rgba(0,0,0,.85) 16%, #000 22%, #000 55%, rgba(0,0,0,.8) 68%, rgba(0,0,0,.35) 84%, transparent 100%);
    mask-image:
      linear-gradient(90deg, transparent 0%, rgba(0,0,0,.4) 8%, rgba(0,0,0,.85) 16%, #000 22%, #000 78%, rgba(0,0,0,.85) 84%, rgba(0,0,0,.4) 92%, transparent 100%),
      linear-gradient(180deg, transparent 0%, rgba(0,0,0,.4) 8%, rgba(0,0,0,.85) 16%, #000 22%, #000 55%, rgba(0,0,0,.8) 68%, rgba(0,0,0,.35) 84%, transparent 100%);
  }
}

/* D · Deportes: líneas de velocidad + fotograma en movimiento + cronómetro */
.speed-lines {
  position: absolute; inset: -20% -40%; opacity: 0.45;
  background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(255, 255, 255, 0.07) 46px 48px, transparent 48px 90px, rgba(255, 255, 255, 0.04) 90px 91px);
  -webkit-mask: radial-gradient(60% 55% at 50% 30%, #000, transparent);
  mask: radial-gradient(60% 55% at 50% 30%, #000, transparent);
  animation: speedLines 1.4s linear infinite; animation-play-state: paused;
  transition: opacity 0.6s;
}
@keyframes speedLines { to { transform: translateX(-108px); } }
.svc--sport:hover .speed-lines, .svc--sport.is-open .speed-lines { animation-play-state: running; opacity: 0.9; }
.sport-frame {
  position: absolute; z-index: 1; left: 50%; top: 11%; width: clamp(200px, 20vw, 300px); aspect-ratio: 16 / 9;
  border-radius: 8px; transform: translateX(-50%) skewX(-7deg);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.9s var(--ease-out);
}
.sport-frame .frame-ph::before { inset: 8px; }
.svc--sport:hover .sport-frame, .svc--sport.is-open .sport-frame { transform: translateX(-50%) skewX(0deg) translateY(-10px) scale(1.06); }
.sport-timer {
  position: absolute; z-index: 2; top: 8px; right: 10px; padding: 4px 8px; border-radius: 999px;
  background: rgba(10, 10, 10, 0.75); border: 1px solid var(--line-2); color: var(--ink); font-size: 0.6rem; overflow: hidden;
}
.sport-timer i { position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--rec); transform: scaleX(0); transform-origin: left; }
.svc--sport:hover .sport-timer i, .svc--sport.is-open .sport-timer i { animation: timerRun 2.4s linear infinite; }
@keyframes timerRun { to { transform: scaleX(1); } }
@media (max-width: 1100px) {
  .sport-frame { left: auto; right: 8%; transform: skewX(-7deg); width: clamp(200px, 32vw, 280px); }
  .svc--sport:hover .sport-frame, .svc--sport.is-open .sport-frame { transform: skewX(0deg) translateY(-10px) scale(1.05); }
}
@media (max-width: 640px) {
  .sport-frame { right: 6%; width: 190px; }
}

/* Grano de película más sutil sobre las fotos de fondo */
.grain { opacity: 0.035; }

/* Portada: foto nueva sin ajustes de color, solo fundida con el fondo */
.hero-photo { filter: none; mix-blend-mode: normal; object-position: 46% 35%; }

/* C · Videoclips: portátil con YouTube (misma animación que el móvil de Marcas) */
.laptop {
  position: absolute; z-index: 2; left: 50%; top: 5%; width: clamp(260px, 24vw, 360px); aspect-ratio: 1000 / 972;
  transform: translateX(-50%) rotate(-6deg); transition: transform 0.9s var(--ease-out);
}
.laptop-img { width: 100%; height: auto; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.75)); }
.svc--clips:hover .laptop, .svc--clips.is-open .laptop { transform: translateX(-50%) rotate(0deg) translateY(-12px) scale(1.04); }
@media (max-width: 1100px) {
  .laptop { left: auto; right: 6%; transform: rotate(-6deg); width: clamp(240px, 36vw, 330px); }
  .svc--clips:hover .laptop, .svc--clips.is-open .laptop { transform: rotate(0deg) translateY(-12px) scale(1.04); }
}
@media (max-width: 640px) {
  .laptop { right: 2%; width: 220px; }
}

/* Sobre mí: separación entre párrafos */
.about-text .about-p2 { margin-top: 14px; }

/* D · Deportes: balones + cámara (misma animación que el móvil de Marcas) */
.sport-obj {
  position: absolute; z-index: 2; left: 50%; top: 7%; width: clamp(260px, 25vw, 380px); aspect-ratio: 1100 / 801;
  transform: translateX(-50%) rotate(-6deg); transition: transform 0.9s var(--ease-out);
}
.sport-obj-img { width: 100%; height: auto; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.75)); }
.svc--sport:hover .sport-obj, .svc--sport.is-open .sport-obj { transform: translateX(-50%) rotate(0deg) translateY(-12px) scale(1.04); }
@media (max-width: 1100px) {
  .sport-obj { left: auto; right: 5%; transform: rotate(-6deg); width: clamp(240px, 38vw, 340px); }
  .svc--sport:hover .sport-obj, .svc--sport.is-open .sport-obj { transform: rotate(0deg) translateY(-12px) scale(1.04); }
}
@media (max-width: 640px) {
  .sport-obj { right: 2%; width: 220px; }
}
.laptop { aspect-ratio: 1000 / 961; }
.phone--image { aspect-ratio: 784 / 1000; }

/* B · Eventos: iconos dorados (misma animación que el móvil de Marcas) */
.event-obj {
  position: absolute; z-index: 2; left: 50%; top: 6%; width: clamp(240px, 23vw, 340px); aspect-ratio: 1000 / 855;
  transform: translateX(-50%) rotate(-6deg); transition: transform 0.9s var(--ease-out);
}
.event-obj-img { width: 100%; height: auto; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.75)); }
.svc--events:hover .event-obj, .svc--events.is-open .event-obj { transform: translateX(-50%) rotate(0deg) translateY(-12px) scale(1.04); }
@media (max-width: 1100px) {
  .event-obj { left: auto; right: 5%; transform: rotate(-6deg); width: clamp(220px, 34vw, 310px); }
  .svc--events:hover .event-obj, .svc--events.is-open .event-obj { transform: rotate(0deg) translateY(-12px) scale(1.04); }
}
@media (max-width: 640px) {
  .event-obj { right: 2%; width: 200px; }
}

/* Casillas de Sobre mí con palabras: que quepan en móvil */
@media (max-width: 640px) {
  .stat dd { font-size: clamp(1.1rem, 5.2vw, 1.5rem); letter-spacing: -0.03em; overflow-wrap: anywhere; }
}
/* Casillas con palabras: tamaño que permite "Postproducción" en una línea */
.stat dd { font-size: clamp(1.25rem, 2vw, 1.9rem); letter-spacing: -0.035em; }
@media (max-width: 640px) {
  /* En móvil van una debajo de otra para que ninguna palabra se corte */
  .stats { grid-template-columns: 1fr; }
  .stat { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 18px; }
  .stat dd { margin-top: 0; font-size: 1.35rem; overflow-wrap: normal; white-space: nowrap; }
}

/* Campo de mensaje: el texto largo de la etiqueta no se monta con lo escrito en móvil */
.field label[for="f-msg"] { line-height: 1.3; padding-right: 8px; }
@media (max-width: 640px) {
  .field textarea { padding-top: 50px; }
}

/* ---------- Formulario: desplegable de planes (aparece al elegir tipo) ---------- */
.plan-pick {
  display: grid; grid-template-rows: 0fr; opacity: 0; margin-top: -18px;
  transition: grid-template-rows 0.7s var(--ease-out), opacity 0.5s var(--ease-out), margin 0.7s var(--ease-out);
}
.plan-pick.is-open { grid-template-rows: 1fr; opacity: 1; margin-top: 0; }
.plan-pick-inner { min-height: 0; overflow: hidden; padding-top: 8px; }
.plan-pick-label { display: block; color: var(--mute); margin-bottom: 12px; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2);
  transform: rotate(45deg); pointer-events: none; transition: transform 0.3s var(--ease-out);
}
.select-wrap:focus-within::after { transform: rotate(225deg); margin-top: -2px; }
.select-wrap select {
  width: 100%; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: transparent; color: var(--ink); font: inherit; font-size: 1rem;
  border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  padding: 12px 28px 12px 0; outline: none; transition: border-color 0.4s;
}
.select-wrap select:hover, .select-wrap select:focus { border-color: var(--ink); }
.select-wrap select option { background: var(--bg-3); color: var(--ink); }

/* Formulario: campo trampa anti-spam (invisible) y estados de envío */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status.is-ok { color: #6fdc8c; }
.form.is-sending [data-send="email"] { opacity: 0.6; pointer-events: none; }

/* =============================================================
   9. Rendimiento y fluidez (Safari)
   - Las tarjetas de Servicios ya no cambian de tamaño al pasar el ratón
     (animar el ancho obliga a recalcular el texto en cada fotograma).
   - Solo se animan transform y opacity.
   - Sombras sin filtros, sin repintados continuos.
   ============================================================= */

/* ---- Servicios: rejilla estable ---- */
.svc { transition: border-color 0.5s var(--ease-out), background 0.5s var(--ease-out); contain: layout paint; }
.svc-more { transition: none; }
@media (min-width: 1101px) {
  .svc-row { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; }
  .svc { min-height: 600px; }
  .svc-row:hover .svc, .svc-row .svc:hover, .svc-row .svc:focus-within, .svc-row .svc.is-open { flex-grow: 0; }
  .svc-more, .svc:hover .svc-more, .svc:focus-within .svc-more, .svc.is-open .svc-more { grid-template-rows: auto auto auto; opacity: 1; margin-top: 22px; }
  .svc:hover { border-color: var(--line-2); background: var(--bg-3); }

  .phone--image { left: auto; right: 7%; top: 6%; width: clamp(190px, 15vw, 250px); transform: rotate(-6deg); }
  .svc--biz:hover .phone--image { transform: rotate(0deg) translate3d(0, -12px, 0) scale(1.04); }
  .event-obj { left: auto; right: 6%; top: 6%; width: clamp(220px, 19vw, 300px); transform: rotate(-6deg); }
  .svc--events:hover .event-obj { transform: rotate(0deg) translate3d(0, -12px, 0) scale(1.04); }
  .laptop { left: auto; right: 5%; top: 5%; width: clamp(230px, 20vw, 320px); transform: rotate(-6deg); }
  .svc--clips:hover .laptop { transform: rotate(0deg) translate3d(0, -12px, 0) scale(1.04); }
  .sport-obj { left: auto; right: 5%; top: 7%; width: clamp(240px, 21vw, 340px); transform: rotate(-6deg); }
  .svc--sport:hover .sport-obj { transform: rotate(0deg) translate3d(0, -12px, 0) scale(1.04); }
  .svc-tag { max-width: 26ch; }
}

/* ---- Objetos: sombra suave sin filtro (drop-shadow es muy lento en Safari) ---- */
.phone-img, .laptop-img, .event-obj-img, .sport-obj-img { filter: none; }
.phone--image, .laptop, .event-obj, .sport-obj {
  will-change: transform; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform 0.9s var(--ease-out);
}
.phone--image::after, .laptop::after, .event-obj::after, .sport-obj::after {
  content: ""; position: absolute; z-index: -1; left: 8%; right: 8%; bottom: -8%; height: 22%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0) 72%);
  pointer-events: none;
}

/* ---- Luces de Eventos: sin blur, solo transform/opacity ---- */
.bokeh i {
  filter: none; will-change: transform;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.1) 35%, rgba(255, 255, 255, 0) 70%);
  transition: opacity 0.8s var(--ease-out);
}
.speed-lines, .filmstrip { will-change: transform; }

/* ---- Sin repintados continuos ---- */
.chrome { animation: none; background-size: 100% 100%; }        /* degradado metálico fijo */
.grain { animation: none; }                                       /* grano fijo */
.frame-ph::after {                                                /* barrido con transform */
  inset: 0 -100%; background-size: 100% 100%; background-position: 0 0;
  animation: phSweepT 5s var(--ease-in-out) infinite; will-change: transform;
}
@keyframes phSweepT { from { transform: translate3d(-34%, 0, 0); } to { transform: translate3d(34%, 0, 0); } }

/* Animaciones en bucle pausadas cuando su sección no está en pantalla */
.is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }

/* Portadas en formato cine que deben verse enteras (p. ej. el título en la puerta de Jala Jala) */
.project--fit .frame { background: #000; }
.project--fit .frame > img.frame-img { object-fit: contain; object-position: 50% 38%; }
/* Portada con el sujeto a la derecha (p. ej. Jala Jala): encuadre centrado en la cara */
.project--focus-right .frame > img.frame-img { object-position: 66% 40%; }

/* =============================================================
   10. Mi equipo — piezas que giran en 3D al pasar el ratón
   ============================================================= */
.mobile-menu.is-open nav a:nth-child(6) { transition-delay: 0.25s; }
.gear-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.gear-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4vw, 20px); }
.gear-card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; cursor: pointer;
  transition: border-color 0.5s var(--ease-out), background 0.5s var(--ease-out);
  outline-offset: 4px;
}
.gear-card:hover, .gear-card:focus-visible { border-color: var(--line-2); background: var(--bg-3); }
.gear-card::before {
  /* foco de luz suave detrás de la pieza */
  content: ""; position: absolute; inset: 0 0 35% 0; pointer-events: none;
  background: radial-gradient(55% 60% at 50% 55%, rgba(255, 255, 255, 0.08), transparent 70%);
  opacity: 0.6; transition: opacity 0.6s var(--ease-out);
}
.gear-card:hover::before, .gear-card.is-spinning::before { opacity: 1; }
.gear-badge {
  position: absolute; z-index: 3; top: 16px; right: 16px; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink); background: rgba(10, 10, 10, 0.6);
}
.gear-stage {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center;
  perspective: 900px; perspective-origin: 50% 40%;
}
.gear-floor {
  position: absolute; left: 22%; right: 22%; bottom: 10%; height: 14%; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0) 72%);
  transition: transform 1.4s var(--ease-in-out), opacity 1.4s var(--ease-in-out);
}
.gear-obj {
  position: relative; width: 78%; aspect-ratio: 240 / 180;
  transform-style: preserve-3d; transform: rotateX(10deg) rotateY(-22deg);
  transition: transform 0.9s var(--ease-out); will-change: transform;
}
.gear-card:hover .gear-obj { transform: rotateX(8deg) rotateY(-10deg) translate3d(0, -6px, 0); }
.gear-card.is-spinning .gear-obj { animation: gearSpin 2.8s cubic-bezier(0.65, 0, 0.35, 1) both; }
.gear-card.is-spinning .gear-floor { animation: gearFloor 2.8s cubic-bezier(0.65, 0, 0.35, 1) both; }
@keyframes gearSpin {
  0%   { transform: rotateX(10deg) rotateY(-22deg); }
  45%  { transform: rotateX(16deg) rotateY(160deg) translate3d(0, -14px, 0) scale(1.06); }
  100% { transform: rotateX(8deg) rotateY(338deg) translate3d(0, -6px, 0); }
}
@keyframes gearFloor { 45% { transform: scale(0.8); opacity: 0.6; } }
.gear-svg, .gear-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gear-layer { pointer-events: none; }
/* Render 3D real (vídeo con transparencia) en lugar de la figura */
.gear-obj video { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: contain; opacity: 0; transition: opacity 0.6s; }
.gear-card.has-render .gear-obj { transform: none !important; animation: none !important; }
.gear-card.has-render .gear-obj video { opacity: 1; }
.gear-card.has-render .gear-svg, .gear-card.has-render .gear-layer { display: none; }

.gear-info { position: relative; padding: 4px clamp(20px, 2vw, 28px) clamp(22px, 2.2vw, 30px); }
.gear-kicker { color: var(--mute); margin-bottom: 10px; }
.gear-name { font-size: clamp(1.25rem, 1.6vw, 1.6rem); letter-spacing: -0.03em; }

/* Animaciones del equipo sin fondo, una bajo cada tarjeta */
.gear-loops { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4vw, 20px); row-gap: clamp(28px, 4vw, 48px); }
.gear-loop { display: flex; flex-direction: column; align-items: center; text-align: center; }
.gear-loop .gear-kicker { margin: 4px 0 8px; }
.gear-loop video {
  display: block; width: 118%; max-width: none; aspect-ratio: 16 / 9; object-fit: cover; background: transparent;
  mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(ellipse 50% 56% at 50% 50%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 56% at 50% 50%, #000 55%, transparent 100%);
}
@media (max-width: 1100px) {
  .gear-loops { grid-template-columns: repeat(2, 1fr); }
}
.section.gear, .section.work { overflow-x: clip; }
/* Programas que utilizo */
.apps { margin-top: clamp(20px, 2.4vw, 32px); }
.apps-title { font-family: var(--f-display); font-size: clamp(1.8rem, 3.2vw, 3rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; margin-bottom: clamp(24px, 3vw, 40px); }
.apps-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(12px, 2vw, 32px); }
.app { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.app img { width: 100%; max-width: 140px; height: auto; transition: transform 0.5s var(--ease-out); filter: drop-shadow(0 14px 24px rgba(0,0,0,0.45)); }
.app:hover img { transform: translateY(-6px); }
.app span { font-size: 0.88rem; color: var(--mute); }
@media (max-width: 640px) {
  .apps-list { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .app img { max-width: 88px; }
}
.gear-spec { color: var(--mute); font-size: 0.9rem; margin-top: 8px; }

@media (max-width: 1100px) { .gear-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .gear-grid { grid-template-columns: 1fr; } }

/* Render 3D a pantalla completa en la tarjeta (vídeo con fondo propio, p. ej. Sony A6700) */
.gear-render {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%;
  opacity: 0; transition: opacity 0.6s var(--ease-out);
}
.gear-card.has-render-full .gear-render { opacity: 1; }
.gear-card.has-render-full .gear-obj, .gear-card.has-render-full .gear-floor { opacity: 0; }
.gear-card.has-render-full .gear-stage { overflow: hidden; }
.gear-card.has-render-full .gear-stage::after {
  /* funde la parte baja de la imagen con la tarjeta */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg-2));
  transition: background 0.5s var(--ease-out);
}
.gear-card.has-render-full:hover .gear-stage::after { background: linear-gradient(180deg, transparent, var(--bg-3)); }

/* Render del MacBook: encuadre y vuelta suave al fotograma inicial */
.gear-card--mac .gear-render { object-position: 50% 48%; }
.gear-render-rest { z-index: 1; opacity: 0 !important; transition: opacity 0.55s var(--ease-out); pointer-events: none; }
.gear-card.is-render-resting .gear-render-rest { opacity: 1 !important; }
.gear-card.has-render-full .gear-stage::after { z-index: 2; }


/* Estabilizador: mismo ancho que los demás renders (se recorta un poco arriba y abajo) */
.gear-card--tall .gear-render { object-position: 50% 55%; }

/* Renders: amplía un pelín para ocultar las líneas claras de los bordes del vídeo */
.gear-render { transform: scale(1.04); }

/* Focos Neewer: encuadre en los dos paneles */
.gear-card--lights .gear-render { object-position: 50% 28%; }
.gear-card--lights .gear-badge { z-index: 4; }

/* Visor para vídeos verticales (reels) */
.viewer.viewer--vertical { width: min(440px, calc(100vw - 32px), calc((100vh - 210px) * 9 / 16)); min-width: 260px; }
.viewer--vertical .viewer-stage { aspect-ratio: 9 / 16; max-height: calc(100vh - 210px); width: 100%; }
.viewer--vertical .viewer-info { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 20px 20px; }
.viewer--vertical .viewer-info h3 { font-size: 1.3rem; }

/* Visor en modo galería (8 fotos) */
.viewer--gallery .viewer-stage { aspect-ratio: auto; background: var(--bg-2); max-height: calc(100vh - 150px); overflow-y: auto; }
.viewer-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 64px 18px 18px; }
.viewer-stage .viewer-shot { position: relative; inset: auto; aspect-ratio: 4 / 5; border-radius: var(--radius-sm); }
.viewer-shot .frame-ph-label { font-size: 0.6rem; }
.viewer-stage .viewer-shot > img.frame-img { object-fit: cover; }
@media (max-width: 760px) { .viewer-gallery { grid-template-columns: repeat(2, 1fr); padding-top: 64px; } }

/* ---------- Etiqueta de rebaja en un plan ---------- */
.plan-sale {
  position: absolute; top: clamp(22px, 2.2vw, 34px); right: clamp(22px, 2.2vw, 34px);
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px 7px 10px; border-radius: 999px;
  background: var(--rec); color: #fff;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap;
  box-shadow: 0 6px 18px -6px rgba(255, 59, 48, 0.6);
  transform: rotate(4deg); transform-origin: 85% 50%;
  transition: transform 0.5s var(--ease-out);
}
.plan-sale svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.plan-sale svg circle { fill: currentColor; stroke: none; }
.plan:hover .plan-sale { transform: rotate(0deg) scale(1.06); }

/* ---------- Precio anterior tachado ---------- */
.plan-old {
  align-self: center; margin-right: 12px;
  font-family: var(--f-display); font-size: 1.25rem; letter-spacing: -0.02em; color: var(--dim);
  text-decoration: line-through; text-decoration-color: var(--rec); text-decoration-thickness: 2px;
  white-space: nowrap;
}
.plan-price { flex-wrap: wrap; row-gap: 6px; }
/* Con precio tachado: todo en una línea, el tamaño se ajusta al ancho de la tarjeta */
.plan-price:has(.plan-old) { container-type: inline-size; flex-wrap: nowrap; }
.plan-price:has(.plan-old) .plan-old { font-size: min(1.25rem, 5.2cqi); margin-right: min(12px, 2.6cqi); }
.plan-price:has(.plan-old) .plan-amount { font-size: min(clamp(3rem, 4.6vw, 4.4rem), 13.5cqi); }
.plan-price:has(.plan-old) .plan-cur { font-size: min(1.6rem, 6cqi); }
.plan-price:has(.plan-old) .plan-per { font-size: min(0.9rem, 4.2cqi); margin-left: min(6px, 1.2cqi); white-space: nowrap; }

/* ---------- Carrusel (post de Instagram) ---------- */
/* Tarjeta: el rectángulo tiene la misma proporción 4:5 que las imágenes del carrusel */
.work-grid .project--post {
  grid-column: span 5; grid-row: span 2;
  justify-self: start; align-self: stretch; width: auto; max-width: 100%; aspect-ratio: 4 / 5;
}
.work-grid .project--post + .project--tall { grid-column: span 3; }
.project--post .frame { inset: 0; }
.project--post .frame > img.frame-img { object-fit: cover; transform: scale(1.02); }
.project--post:hover .frame > img.frame-img { transform: scale(1); }
@media (max-width: 900px) {
  .work-grid .project--post { grid-column: span 2; grid-row: span 2; }
  .work-grid .project--post + .project--tall { grid-column: span 2; }
}

/* Visor */
.viewer.viewer--carousel { width: min(560px, calc(100vw - 32px), calc((100vh - 200px) * 4 / 5)); min-width: 260px; }
.viewer--carousel .viewer-stage { aspect-ratio: 4 / 5; width: 100%; background: #000; }
.viewer--carousel .viewer-info { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 20px 20px; }
.viewer--carousel .viewer-info h3 { font-size: 1.3rem; }
.viewer-carousel { position: absolute; inset: 0; }
.carousel-track {
  position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.viewer-stage .carousel-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carousel-nav {
  position: absolute; top: 50%; z-index: 2; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1rem; color: var(--bg);
  background: rgba(245, 245, 247, 0.92); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}
.carousel-nav:hover { transform: scale(1.08); }
.carousel-nav:disabled { opacity: 0; pointer-events: none; }
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }
.carousel-count {
  position: absolute; top: 16px; left: 16px; z-index: 2; padding: 5px 10px; border-radius: 999px;
  background: rgba(10, 10, 10, 0.6); color: #fff; font-size: 0.68rem; letter-spacing: 0.06em;
}
.carousel-dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; display: flex; justify-content: center; gap: 6px; }
.carousel-dot { width: 6px; height: 6px; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.45); transition: background 0.3s, transform 0.3s; }
.carousel-dot.is-active { background: #fff; transform: scale(1.3); }
@media (hover: none) { .carousel-nav { display: none; } }
/* Escritorio: alto de fila calculado para que 5 columnas x 2 filas sea exactamente 4:5 */
#trabajos .container { container-type: inline-size; }
@media (min-width: 901px) {
  .work-grid { grid-auto-rows: calc(26.04cqw - 0.8646 * clamp(12px, 1.4vw, 20px)); }
  .work-grid .project--banner { grid-column: span 12; grid-row: span 1; }
}
/* Móvil/tablet: la tarjeta del carrusel ocupa todo el ancho y su alto sale de la proporción 4:5 */
@media (max-width: 900px) {
  .work-grid { grid-auto-rows: minmax(72vw, auto); }
  .work-grid .project--post { grid-row: span 1; width: 100%; justify-self: stretch; align-self: start; }
}
/* Visor del carrusel: se adapta a la proporción de las fotos */
.viewer.viewer--carousel { width: min(560px, calc(100vw - 32px), calc((100vh - 200px) * var(--car-ar, 0.8))); }
.viewer--carousel .viewer-stage { aspect-ratio: var(--car-ar, 0.8); }
/* Franja ancha: la portada se ve entera, sin zoom ni movimiento */
.project--banner .frame { inset: 0; }
.project--banner .frame > img.frame-img, .project--banner:hover .frame > img.frame-img { transform: none; object-fit: cover; }

/* ---------- Trabajos: animación de la cámara junto al título ---------- */
.work-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: clamp(24px, 4vw, 64px); align-items: center; }
.work-head > :not(.work-head-media) { grid-column: 1; }
.work-head-media { grid-column: 2; grid-row: 1 / span 3; position: relative; align-self: stretch; display: grid; place-items: center; pointer-events: none; }
.work-head-video {
  display: block; width: 118%; max-width: none; aspect-ratio: 16 / 9; object-fit: cover; background: transparent;
  mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(ellipse 62% 66% at 50% 50%, #000 58%, transparent 100%);
          mask-image: radial-gradient(ellipse 62% 66% at 50% 50%, #000 58%, transparent 100%);
}
/* Título de Servicios siempre en dos líneas */
@media (min-width: 901px) {
  .svc-head { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr; }
  /* Título y texto juntos, centrados en altura junto al Mac */
  .svc-head > div { grid-row: 2; }
  .svc-head > .section-lead { grid-row: 3; margin-top: 18px; }
  .svc-head .work-head-media { grid-row: 1 / -1; }
  .svc-head .work-head-video { width: 160%; }
}
@media (max-width: 900px) {
  .svc-head .work-head-video { width: 135%; }
}
.section.services { overflow-x: clip; } /* el vídeo grande no genera scroll lateral */
.svc-head .section-title { font-size: clamp(2rem, 4.3vw, 4.6rem); }
.svc-head .section-title .line { white-space: nowrap; }
@media (max-width: 900px) {
  .work-head { grid-template-columns: 1fr; }
  .work-head-media { grid-column: 1; grid-row: auto; margin-top: 8px; }
  .work-head-video { width: 112%; }
}

/* Portfolio en la columna derecha (junto a la cámara): rejilla de 2 columnas */
@media (min-width: 901px) {
  .work-side .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .work-side .work-grid .project { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 9; width: auto; max-width: none; justify-self: stretch; align-self: start; }
  .work-side .work-grid .project--post, .work-side .work-grid .project--post + .project--tall { grid-column: span 1; aspect-ratio: 4 / 5; }
  .work-side .work-grid .project--banner { aspect-ratio: 16 / 8; }
}

/* Planes ocultos temporalmente (ver comentario en index.html) */
[data-plans-off][hidden] { display: none !important; }
