/* ═══════════════════════════════════════════════════════════
   BOXLIGHT AGENCY — MAIN STYLESHEET  (light theme)
   ═══════════════════════════════════════════════════════════ */

/* ── CUSTOM PROPERTIES ─────────────────────────────────── */
:root {
  --color-bg:           #ffffff;
  --color-bg-2:         #f9f5f0;
  --color-bg-card:      #ffffff;
  --color-bg-dark:      #0a0a0a;
  --color-accent:       #C8A96E;
  --color-accent-h:     #b8924e;
  --color-accent-dim:   rgba(200,169,110,0.12);
  --color-accent-glow:  rgba(200,169,110,0.45);
  --color-text:         #0a0a0a;
  --color-text-2:       #666;
  --color-text-dim:     #aaa;
  --color-text-inv:     #f0f0f0;
  --color-border:       rgba(0,0,0,0.08);
  --color-border-h:     rgba(0,0,0,0.15);
  --color-shadow-sm:    0 2px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --color-shadow:       0 6px 24px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
  --color-shadow-lg:    0 16px 48px rgba(0,0,0,0.14), 0 4px 16px rgba(0,0,0,0.08);
  --font-display:       'Bebas Neue', sans-serif;
  --font-body:          'Inter', sans-serif;
  --nav-h:              64px;
  --transition:         0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;   /* corta cualquier desbordamiento horizontal */
  background: #ffffff;  /* evita que el gradiente del body se propague al canvas fijo */
}

body {
  background: linear-gradient(180deg, #ffffff 0%, #faf6f1 50%, #f5f0e8 100%);
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: clip;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; color: inherit; font: inherit; }

/* ── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f0ede8; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-accent); }

/* ── GRAIN OVERLAY ──────────────────────────────────────── */
#grain-overlay {
  position: fixed;
  left: -10%; top: -10%;
  width: 120%; height: 120%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='256' height='256'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='256' height='256' filter='url(%23n)'/></svg>");
  background-size: 256px;
}

/* ── NAVBAR ─────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
  color: #fff;
}

#navbar.over-content {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--color-border), 0 4px 16px rgba(0,0,0,0.05);
  color: var(--color-text);
}

.nav-logo img {
  height: 64px;
  width: auto;
  transition: opacity var(--transition);
  filter: brightness(0) invert(1); /* white logo default */
}
#navbar.over-content .nav-logo img {
  filter: none; /* show natural logo on white bg */
}
.nav-logo:hover img { opacity: 0.65; }

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
  position: relative;
}
#navbar.over-content .nav-links a { color: rgba(10,10,10,0.6); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.nav-links a:hover { color: #fff; }
#navbar.over-content .nav-links a:hover { color: var(--color-text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
}
.nav-menu-btn span {
  display: block; height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-menu-btn.open span:nth-child(2) { opacity: 0; }
.nav-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px 40px;
  flex-direction: column;
  gap: 20px;
  z-index: 999;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition), opacity var(--transition);
}
.mobile-nav.open { transform: translateY(0); opacity: 1; pointer-events: all; }
.mobile-nav a {
  font-size: 20px;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  color: var(--color-text);
}

/* ── SCRUB SECTION ──────────────────────────────────────── */
#scrub-section { position: relative; }

#scrub-sticky {
  position: sticky; top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #000;
}

#scrub-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

#scrub-overlay {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.35) 100%);
  transition: opacity 0.3s;
}
#scrub-logo {
  height: clamp(40px,8vw,100px); width: auto;
  filter: drop-shadow(0 0 30px rgba(200,169,110,0.5));
}
#scrub-tagline {
  font-family: var(--font-display);
  font-size: clamp(14px,2vw,24px);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

#scrub-hint {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  animation: hint-bounce 2s ease-in-out infinite;
}
.scrub-hint-dot { animation: hint-dot 2s ease-in-out infinite; }
@keyframes hint-bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}
@keyframes hint-dot {
  0%,100% { opacity: 0.6; transform: translateY(0); }
  50%     { opacity: 0.2; transform: translateY(6px); }
}

#scrub-progress {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: rgba(255,255,255,0.1);
}
#scrub-progress-bar {
  height: 100%; width: 0%;
  background: var(--color-accent);
  transition: width 0.05s linear;
}

/* ── HERO STATEMENT ─────────────────────────────────────── */
.hero-main-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 60px;
}
.hero-logo {
  height: clamp(140px, 20vw, 300px);
  width: auto;
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 768px) {
  .hero-main-row { flex-direction: column; align-items: flex-start; gap: 32px; }
  .hero-logo { height: 100px; }
}

#hero-statement {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 80px 80px;
  position: relative;
  overflow: hidden;
}
#hero-statement::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(200,169,110,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
  opacity: 0;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(60px,10vw,140px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--color-text);
  opacity: 0;
}
.hero-body {
  margin-top: 24px;
  font-size: clamp(14px,1.1vw,17px);
  color: var(--color-text-2);
  max-width: 440px;
  line-height: 1.75;
  opacity: 0;
}
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  opacity: 0;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 38px;
  color: var(--color-accent);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-2);
}

/* ── CONTENT SECTIONS ───────────────────────────────────── */
.content-section {
  padding: 60px 0 80px;
  opacity: 0;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.section-header {
  padding: 0 80px;
  margin-bottom: 28px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px,2.8vw,36px);
  letter-spacing: 0.06em;
  color: var(--color-text);
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 32px; height: 2px;
  background: var(--color-accent);
}
.section-subtitle {
  font-size: 13px;
  color: var(--color-text-2);
  letter-spacing: 0.03em;
}

/* ── CAROUSEL (NETFLIX ROW) ─────────────────────────────── */
.carousel { position: relative; }

.carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 16px 80px 24px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.grabbing { cursor: grabbing; }

/* Prevent selection highlight when dragging on PC */
.carousel-track {
  user-select: none;
  -webkit-user-select: none;
}
.carousel-track img,
.carousel-track video {
  -webkit-user-drag: none;
}

/* Fade edges */
.carousel-track {
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 110px, black calc(100% - 110px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, black 110px, black calc(100% - 110px), transparent 100%);
}

/* Coverflow variant */
.carousel.coverflow .carousel-track {
  scroll-snap-type: x mandatory;
  perspective: 1200px;
  padding-top: 40px;
  padding-bottom: 40px;
  overflow-x: scroll;
  align-items: center;
}
.carousel.coverflow .card { scroll-snap-align: center; }

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: rgba(255,255,255,0.92);
  color: var(--color-text);
  border-radius: 0 6px 6px 0;
  box-shadow: var(--color-shadow-sm);
  opacity: 0;
  transition: opacity var(--transition), box-shadow var(--transition);
}
.carousel-next {
  right: 0;
  border-radius: 6px 0 0 6px;
}
.carousel:hover .carousel-prev,
.carousel:hover .carousel-next { opacity: 1; }
.carousel-prev:hover,
.carousel-next:hover { box-shadow: var(--color-shadow); }

/* ── MEDIA CARDS ────────────────────────────────────────── */
.card {
  position: relative;
  flex-shrink: 0;
  scroll-snap-align: start;
  overflow: hidden;
  background: #e8e5e0;
  transition: transform 0.3s cubic-bezier(0.2,0,0,1), box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: var(--color-shadow-sm);
}
.card:hover {
  box-shadow: var(--color-shadow-lg);
  z-index: 10;
}

.card-inner { width: 100%; height: 100%; overflow: hidden; }
.card-inner img,
.card-inner video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2,0,0,1);
}
.card:hover .card-inner img,
.card:hover .card-inner video { transform: scale(1.04); }

/* Loading shimmer for cards */
.card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #e8e5e0 0%, #f0ede8 50%, #e8e5e0 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.4s;
}
.card-inner.loaded::before { opacity: 0; pointer-events: none; }
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Card type sizing */
.card--reel      { width: 185px;  height: 329px; }
.card--landscape { width: 390px;  height: 219px; }
.card--square    { width: 240px;  height: 240px; }
.card--ultrawide { width: 560px;  height: 118px; }

/* Card overlay */
.card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.15) 45%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover .card-overlay { opacity: 1; }
/* Touch: siempre visible */
@media (hover: none) { .card-overlay { opacity: 0.85; } }

.card-info {
  transform: translateY(6px);
  transition: transform var(--transition);
}
.card:hover .card-info { transform: translateY(0); }

.card-title {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: #fff;
}
.card-client {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: 3px;
}

.card-play-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0.8);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
}
.card:hover .card-play-icon {
  opacity: 1;
  transform: translate(-50%,-50%) scale(1);
}

/* ── FRAME STYLES ───────────────────────────────────────── */
.frame-none { /* shadow already on .card */ }

.frame-glass {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.5),
    0 0 0 1px rgba(0,0,0,0.06),
    var(--color-shadow);
}
.frame-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 55%);
  pointer-events: none;
  z-index: 2;
}

.frame-plastic {
  box-shadow:
    0 0 0 3px var(--color-accent),
    0 0 0 5px rgba(0,0,0,0.06),
    var(--color-shadow);
}
.frame-plastic::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
  z-index: 2;
}

.frame-neon {
  box-shadow:
    0 0 0 1.5px var(--color-accent),
    0 0 10px var(--color-accent-glow),
    0 0 28px rgba(200,169,110,0.25),
    var(--color-shadow);
  animation: neon-pulse 3s ease-in-out infinite;
}
@keyframes neon-pulse {
  0%,100% {
    box-shadow:
      0 0 0 1.5px var(--color-accent),
      0 0 10px var(--color-accent-glow),
      0 0 28px rgba(200,169,110,0.25),
      var(--color-shadow);
  }
  50% {
    box-shadow:
      0 0 0 1.5px var(--color-accent-h),
      0 0 18px var(--color-accent-glow),
      0 0 46px rgba(200,169,110,0.35),
      var(--color-shadow);
  }
}

.frame-frame {
  box-shadow:
    0 0 0 3px #f5f0e8,
    0 0 0 9px #c8a96e,
    0 0 0 11px #f5f0e8,
    var(--color-shadow-lg);
}

/* ── ULTRAWIDE SHOWCASE ─────────────────────────────────── */
.ultrawide-showcase { padding: 0 80px; }
.ultrawide-card {
  width: 100%;
  height: auto !important;   /* override .card--ultrawide fixed height */
  border-radius: 8px !important;
  overflow: hidden;
  cursor: pointer;
}
.ultrawide-card .card-inner {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
}
.ultrawide-card video,
.ultrawide-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 75vh;
}

/* ── RE4 INVENTORY GRID ─────────────────────────────────── */
.section--grid { padding: 60px 0 100px; }

.inventory-grid-wrap {
  overflow-x: auto;
  padding: 20px 40px 40px;
  -webkit-overflow-scrolling: touch;
  display: flex;
  justify-content: center;
}

.inventory-grid { position: relative; flex-shrink: 0; }

.grid-cells { position: absolute; inset: 0; pointer-events: none; }

.grid-cell {
  position: absolute;
  border: 1px solid rgba(200,169,110,0.15);
  box-sizing: border-box;
  background: rgba(200,169,110,0.03);
  transition: background 0.15s, border-color 0.15s;
}
.grid-cell.valid   { background: rgba(60,180,90,0.14)  !important; border-color: rgba(60,180,90,0.5)  !important; }
.grid-cell.invalid { background: rgba(200,50,50,0.12)  !important; border-color: rgba(200,50,50,0.45) !important; }

.grid-item {
  position: absolute;
  cursor: grab;
  overflow: hidden;
  transition: box-shadow 0.2s, opacity 0.15s;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.grid-item:not(.dragging):hover { box-shadow: var(--color-shadow-lg); z-index: 5; }
.grid-item.dragging {
  cursor: grabbing;
  opacity: 0.88;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  z-index: 100 !important;
}
.grid-item .card-inner { position: absolute; inset: 0; }
.grid-item .card-overlay { z-index: 2; }
.grid-item .card-info { display: none; } /* sin texto en galería */

.grid-rotate-btn {
  position: absolute;
  top: 8px; right: 8px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(0,0,0,0.12);
  color: var(--color-text);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition), background var(--transition);
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.grid-item:hover .grid-rotate-btn { opacity: 1; }
.grid-rotate-btn:hover { background: var(--color-accent); color: #fff; }

.grid-reset-btn {
  display: block;
  margin: 16px auto 0;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  background: none;
  border: 1px solid var(--color-border);
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.grid-reset-btn:hover { color: var(--color-accent); border-color: var(--color-accent); }

/* ── ABOUT ──────────────────────────────────────────────── */
#about {
  padding: 120px 80px;
  background: #faf8f4;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.about-inner {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 880px;
}
.about-logo { height: 48px; width: auto; flex-shrink: 0; }
.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(28px,3.5vw,48px);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  color: var(--color-text);
}
.about-text p {
  font-size: 16px;
  color: var(--color-text-2);
  line-height: 1.8;
  max-width: 480px;
}

/* ── FOOTER ─────────────────────────────────────────────── */
#contact {
  background: var(--color-bg-dark);
  padding: 64px 80px 44px;
  color: var(--color-text-inv);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.footer-logo {
  height: 80px; width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.75;
}
.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13px;
  color: rgba(240,240,240,0.5);
}
.footer-links a { transition: color var(--transition); }
.footer-links a:hover { color: var(--color-accent); }
.footer-admin-link {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  transition: color var(--transition);
}
.footer-admin-link:hover { color: var(--color-accent); }
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.2); letter-spacing: 0.06em; }

/* ── LIGHTBOX ───────────────────────────────────────────── */
#lightbox {
  position: fixed; inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#lightbox.open { opacity: 1; pointer-events: all; }

#lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#lightbox-container {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 72px 80px 40px;
}
/* Video vertical (reel): container estrecho para no desperdiciar pantalla */
.lightbox-video-container--vertical {
  width: min(92vw, 420px) !important;
}

#lightbox-media-wrap {
  position: relative;
  max-width: 100%;
  max-height: calc(100dvh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-close {
  position: absolute; top: 20px; right: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background var(--transition);
  z-index: 10;
}
#lightbox-close:hover { background: rgba(255,255,255,0.2); }

#lightbox-prev,
#lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 80px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  font-size: 30px;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  z-index: 10;
}
#lightbox-prev { left: 20px; }
#lightbox-next { right: 20px; }
#lightbox-prev:hover,
#lightbox-next:hover { background: rgba(255,255,255,0.14); }

#lightbox-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  padding-top: 14px;
  z-index: 2;
  flex-shrink: 0;
}
#lightbox-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1;
}
#lightbox-client {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* Lightbox image */
.lightbox-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-height: calc(100dvh - 160px);
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.lightbox-image {
  max-width: 100%;
  max-height: calc(100dvh - 160px);
  object-fit: contain;
  transform-origin: center;
  transition: transform 0.15s ease;
  cursor: zoom-in;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Lightbox video */
.lightbox-video-container {
  position: relative;
  width: min(92vw, 1100px);
  display: flex;
  flex-direction: column;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 32px 100px rgba(0,0,0,0.7);
}

.player-zoom-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  max-height: calc(100dvh - 260px);
  cursor: default;
}

.player-zoom-wrap video {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 260px);
  object-fit: contain;
  transform-origin: center center;
}

/* Loading spinner in lightbox */
.lightbox-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #000;
  z-index: 5;
  transition: opacity 0.3s;
}
.lightbox-loading::after {
  content: '';
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.15);
  border-top-color: var(--color-accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.lightbox-loading.hidden { opacity: 0; pointer-events: none; }

/* ── VIDEO PLAYER CONTROLS ──────────────────────────────── */
.player-controls {
  background: linear-gradient(to top, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.75) 100%);
  padding: 0 14px 12px;
  flex-shrink: 0;
}

.player-timeline { padding: 10px 0 4px; }

.player-progress-wrap {
  position: relative;
  height: 4px;
  background: rgba(255,255,255,0.14);
  border-radius: 2px;
  cursor: pointer;
  transition: height 0.15s;
}
.player-progress-wrap:hover { height: 6px; }

.player-progress-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--color-accent);
  border-radius: 2px;
  pointer-events: none;
}
.player-progress-thumb {
  position: absolute; top: 50%; left: 0%;
  transform: translate(-50%,-50%) scale(0);
  width: 13px; height: 13px;
  background: var(--color-accent);
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.15s;
}
.player-progress-wrap:hover .player-progress-thumb { transform: translate(-50%,-50%) scale(1); }

.player-seek {
  position: absolute; inset: -8px 0;
  width: 100%; opacity: 0; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}

.player-times {
  display: flex; justify-content: space-between;
  font-size: 10px; color: rgba(255,255,255,0.45);
  margin-top: 4px;
}

.player-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px; flex-wrap: wrap;
}
.player-left-controls,
.player-right-controls { display: flex; align-items: center; gap: 4px; }

.player-btn {
  min-width: 32px; height: 32px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.06);
  transition: background var(--transition), color var(--transition);
  padding: 0 8px;
  white-space: nowrap;
}
.player-btn:hover { background: rgba(255,255,255,0.14); color: #fff; }

.player-volume-wrap { display: flex; align-items: center; gap: 4px; }
.player-volume {
  width: 64px;
  -webkit-appearance: none; appearance: none;
  height: 3px;
  background: rgba(255,255,255,0.22);
  border-radius: 2px;
  outline: none; cursor: pointer;
}
.player-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
}

.player-time-display {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  padding: 0 4px;
}
.player-zoom-level {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  min-width: 26px;
  text-align: center;
}

.player-speed-wrap { position: relative; }
.player-speed-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  background: rgba(16,16,16,0.98);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  min-width: 80px;
  overflow: hidden;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0,0,0,0.7);
}
.player-speed-menu.open { display: block; }
.player-speed-menu button {
  display: block; width: 100%;
  padding: 8px 14px; text-align: center; font-size: 12px;
  color: rgba(255,255,255,0.5);
  transition: background var(--transition), color var(--transition);
}
.player-speed-menu button:hover { background: rgba(255,255,255,0.06); color: #fff; }
.player-speed-menu button.active { color: var(--color-accent); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1200px) {
  .section-header, .ultrawide-showcase, .inventory-grid-wrap,
  #hero-statement, #about, #contact { padding-left: 40px; padding-right: 40px; }
  .carousel-track { padding-left: 40px; padding-right: 40px; }
  .carousel-track {
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 70px, black calc(100% - 70px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, black 70px, black calc(100% - 70px), transparent 100%);
  }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }
  .mobile-nav { display: flex; }

  #hero-statement { padding: 100px 24px 60px; }
  .hero-stats { gap: 32px; }

  .section-header, .ultrawide-showcase, .inventory-grid-wrap { padding-left: 16px; padding-right: 16px; }
  .carousel-track { padding-left: 16px; }
  .carousel-track {
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 36px, black calc(100% - 36px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, black 36px, black calc(100% - 36px), transparent 100%);
  }

  .card--reel      { width: 145px; height: 258px; }
  .card--landscape { width: 300px; height: 169px; }
  .card--square    { width: 185px; height: 185px; }
  .card--ultrawide { width: 380px; height: 80px; }

  #about { padding: 72px 24px; }
  .about-inner { flex-direction: column; gap: 28px; align-items: flex-start; }
  #contact { padding: 48px 24px 32px; }

  #lightbox-container { padding: 56px 12px 24px; }
  #lightbox-prev { left: 6px; }
  #lightbox-next { right: 6px; }
  .lightbox-video-container { width: 100%; border-radius: 6px; }
  .player-zoom-wrap video { max-height: calc(100dvh - 220px); }
  .player-zoom-wrap { max-height: calc(100dvh - 220px); }
  .carousel-prev, .carousel-next { display: none; }
}

@media (max-width: 600px) {
  .card--reel      { width: 125px; height: 222px; }
  .card--landscape { width: 260px; height: 146px; }
  .card--square    { width: 155px; height: 155px; }

  .hero-title { font-size: 52px; }
  .section-title { font-size: 20px; }

  .player-volume { width: 48px; }
  .player-time-display { display: none; }
  .player-zoom-level { display: none; }
  .player-btn { min-width: 28px; height: 28px; font-size: 12px; }
}
