/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #07070a;
  --bg-alt: #0c0c10;
  --surface: #131316;
  --surface-2: #191a1e;
  --border: rgba(255,255,255,0.08);
  --text: #f1f1f3;
  --text-dim: #a2a3ab;
  --text-faint: #6c6d75;
  --accent: #ea2a26;
  --accent-2: #c7ccd6;
  --accent-3: #8b8f99;
  --gradient: linear-gradient(120deg, #ea2a26 0%, #c7ccd6 100%);
  --gradient-2: linear-gradient(135deg, #8b8f99 0%, #ea2a26 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0,0,0,0.45);
  --ff-head: 'Space Grotesk', sans-serif;
  --ff-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}

h1, h2, h3, h4 { font-family: var(--ff-head); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, textarea, select { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.section-sub { color: var(--text-dim); font-size: 1.02rem; }

section { padding: 110px 0; position: relative; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #06070a;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(234,42,38,0.35); }
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.05); }
.btn-block { width: 100%; }

/* ============ CURSOR GLOW ============ */
.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234,42,38,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  will-change: transform;
}

/* Traducción al inglés al pasar el cursor */
.hover-language-hint {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(8,10,15,0.88);
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.hover-language-code {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hover-translate {
  transition: color 0.16s ease, text-shadow 0.16s ease;
}

.hover-translate.is-english {
  color: #fff;
  text-shadow: 0 0 18px rgba(234,42,38,0.28);
}

@media (hover: none), (pointer: coarse) {
  .hover-language-hint { display: none; }
}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8,9,13,0.85);
  backdrop-filter: blur(14px);
  padding: 14px 0;
  border-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 14px; }
.logo-mark {
  width: 84px; height: 84px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-signature-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.logo-signature {
  height: 40px;
  width: auto;
  opacity: 0.9;
}
.logo-date {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-left: 2px;
}

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a { font-size: 0.92rem; font-weight: 500; color: var(--text-dim); transition: color 0.2s ease; }
.main-nav a:hover { color: var(--text); }
.main-nav a.nav-cta {
  color: #06070a;
  background: var(--gradient);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
}
.main-nav a.nav-cta:hover { color: #06070a; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  position: relative;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}
.orb-1 { width: 480px; height: 480px; background: #ea2a26; top: -120px; right: -80px; }
.orb-2 { width: 420px; height: 420px; background: #8b8f99; bottom: -160px; left: -100px; opacity: 0.22; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 10%, transparent 70%);
}
.hero-photo {
  position: absolute;
  top: 0; right: 0;
  width: 62%;
  height: 100%;
  pointer-events: none;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  filter: saturate(0.9) brightness(0.85);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 30%, black 60%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 30%, black 60%);
}
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 78%, var(--bg) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin-bottom: 22px; }
.hero-sub { font-size: 1.12rem; color: var(--text-dim); max-width: 620px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-indicator span {
  width: 4px; height: 8px;
  border-radius: 2px;
  background: var(--accent-2);
  animation: scrollDown 1.6s ease infinite;
}
@keyframes scrollDown {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ============ TRUST STRIP ============ */
.trust-strip {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.trust-label { text-align: center; color: var(--text-faint); font-size: 0.85rem; margin-bottom: 18px; letter-spacing: 0.02em; }
.trust-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.trust-tags span {
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

/* ============ SERVICES ============ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(234,42,38,0.4); }
.service-icon {
  width: 58px; height: 58px;
  border-radius: 14px;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-2);
  margin-bottom: 24px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.service-card p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 20px; }
.service-list { display: flex; flex-direction: column; gap: 10px; }
.service-list li {
  font-size: 0.88rem;
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}

/* ============ VIDEO INTRO ============ */
.video-frame {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--gradient);
  color: #06070a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 34px rgba(234,42,38,0.4);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.video-play-btn svg { width: 32px; height: 32px; margin-left: 4px; }
.video-play-btn:hover { transform: translate(-50%, -50%) scale(1.08); }
.video-play-btn.hidden { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(0.8); }

/* ============ PROCESS ============ */
.process { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step {
  padding: 30px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.process-num {
  font-family: var(--ff-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  display: block;
  margin-bottom: 14px;
}
.process-step h4 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { font-size: 0.88rem; color: var(--text-dim); }

/* ============ PORTFOLIO ============ */
.portfolio-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 46px; }
.filter-btn {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.filter-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }
.filter-btn.active { background: var(--gradient); color: #06070a; border-color: transparent; }

.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.portfolio-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.35s ease;
}
.portfolio-item.hidden { display: none; }
.portfolio-item:hover { transform: translateY(-4px); }
.portfolio-media {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  overflow: hidden;
  cursor: zoom-in;
}
.portfolio-media svg { width: 44px; height: 44px; }
.portfolio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.portfolio-item:hover .portfolio-media img { transform: scale(1.06); }
.portfolio-album { position: relative; }
.album-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(7,7,10,0.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
}
.album-badge svg { width: 14px; height: 14px; }
.portfolio-video { position: relative; background: #000; }
.portfolio-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portfolio-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  color: #06070a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(234,42,38,0.4);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.portfolio-play-btn svg { width: 22px; height: 22px; margin-left: 3px; }
.portfolio-play-btn:hover { transform: translate(-50%, -50%) scale(1.08); }
.portfolio-play-btn.hidden { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(0.8); }
.gradient-1 { background: linear-gradient(135deg,#ea2a26,#8b8f99); }
.gradient-2 { background: linear-gradient(135deg,#8b8f99,#3a3b40); }
.gradient-3 { background: linear-gradient(135deg,#c7ccd6,#ea2a26); }
.gradient-4 { background: linear-gradient(135deg,#7a1414,#ea2a26); }
.gradient-5 { background: linear-gradient(135deg,#3a3b40,#c7ccd6); }
.gradient-6 { background: linear-gradient(135deg,#ea2a26,#3a3b40); }
.gradient-7 { background: linear-gradient(135deg,#8b8f99,#ea2a26); }
.gradient-8 { background: linear-gradient(135deg,#c7ccd6,#7a1414); }
.gradient-9 { background: linear-gradient(135deg,#3a3b40,#ea2a26); }
.portfolio-info { padding: 18px 20px 22px; }
.portfolio-info .tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-2); font-weight: 600; }
.portfolio-info h4 { font-size: 0.98rem; margin-top: 8px; font-weight: 500; }

/* ============ CLIENTES ============ */
.clients { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.client-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.client-slot .client-chip,
.client-slot .client-logo-wrap,
.client-slot.text-only,
.client-slot.empty {
  width: 100%;
}
.client-logo-wrap {
  position: relative;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.client-logo-wrap img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.client-instagram-preview {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  background: rgba(10,10,12,0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.client-logo-wrap:hover .client-instagram-preview,
.client-logo-wrap:focus-visible .client-instagram-preview { opacity: 1; }
.client-instagram-handle { color: #fff; font-weight: 600; font-size: 0.82rem; text-align: center; }
.client-instagram-btn {
  font-size: 0.72rem;
  font-weight: 600;
  color: #06070a;
  background: var(--gradient);
  padding: 6px 16px;
  border-radius: 999px;
}
.client-slot:hover .client-logo-wrap { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(234,42,38,0.25); border-color: rgba(234,42,38,0.4); }
.client-slot .client-name {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 500;
  text-align: center;
}
/* text-only fallback chip */
.client-slot.text-only {
  aspect-ratio: unset;
}
.client-slot.text-only .client-name-big {
  aspect-ratio: 4/3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: #1a1a1e;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.client-slot.text-only:hover .client-name-big { transform: translateY(-3px); border-color: rgba(234,42,38,0.4); box-shadow: 0 10px 28px rgba(234,42,38,0.25); }
.client-slot.text-only .client-name { display: none; }
/* empty add-slot */
.client-slot.empty {
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease;
}
.client-slot.empty:hover { border-color: rgba(255,255,255,0.3); }
.client-slot-icon { font-size: 1.4rem; color: var(--accent-2); line-height: 1; }

/* ============ ABOUT ============ */
.about-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: center; }
.about-frame {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  position: relative;
  overflow: hidden;
}
.about-frame::after {
  content: "";
  position: absolute; inset: 18px;
  border: 1px dashed rgba(255,255,255,0.25);
  border-radius: 12px;
  pointer-events: none;
}
.about-frame svg { width: 55%; height: 55%; }
.about-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-content h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 20px; }
.about-content > p { color: var(--text-dim); margin-bottom: 32px; }
.about-points { display: flex; flex-direction: column; gap: 20px; }
.about-point { display: flex; gap: 16px; align-items: flex-start; }
.point-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gradient);
  color: #06070a;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}
.about-point h4 { font-size: 1rem; margin-bottom: 4px; }
.about-point p { font-size: 0.9rem; color: var(--text-dim); }

/* ============ CTA BAND ============ */
.cta-band {
  background: var(--gradient-2);
  padding: 80px 0;
}
.cta-inner { text-align: center; max-width: 620px; margin: 0 auto; }
.cta-inner h2 { color: #06070a; font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 14px; }
.cta-inner p { color: rgba(6,7,10,0.75); margin-bottom: 28px; }
.cta-inner .btn-primary { background: #06070a; color: #fff; }
.cta-inner .btn-primary:hover { box-shadow: 0 12px 30px rgba(0,0,0,0.35); }

/* ============ CONTACT ============ */
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; }
.contact-info h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 16px; }
.contact-details { display: flex; flex-direction: column; gap: 20px; margin: 32px 0; }
.contact-detail { display: flex; gap: 16px; align-items: flex-start; }
.c-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-detail strong { display: block; font-size: 0.92rem; margin-bottom: 2px; }
.contact-detail a, .contact-detail span { color: var(--text-dim); font-size: 0.92rem; }
.contact-detail a:hover { color: var(--accent-2); }

.social-links { display: flex; gap: 12px; }
.social-links a {
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: all 0.2s ease;
}
.social-links a svg { width: 20px; height: 20px; flex-shrink: 0; }
.social-links a:hover { color: #06070a; background: var(--gradient); border-color: transparent; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.92rem;
  transition: border-color 0.2s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; }
.form-note { margin-top: 14px; font-size: 0.88rem; color: var(--accent-2); min-height: 20px; }
.form-note.error { color: var(--accent); }

/* ============ FOOTER ============ */
.site-footer { padding: 48px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-nav { display: flex; gap: 28px; }
.footer-nav a { font-size: 0.88rem; color: var(--text-dim); }
.footer-nav a:hover { color: var(--text); }
.footer-copy { font-size: 0.82rem; color: var(--text-faint); width: 100%; text-align: center; margin-top: 8px; }
.footer-signature-wrap { flex-basis: 100%; display: flex; justify-content: center; margin-top: 18px; }
.footer-signature { height: 90px; width: auto; opacity: 0.9; }

.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gradient); color: #06070a; border-color: transparent; }

/* ============ LIGHTBOX ============ */
body.lightbox-lock { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4,4,6,0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 999;
  padding: 70px 24px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-content {
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255,255,255,0.15); }
.lightbox-close {
  top: 20px; right: 20px;
  width: 46px; height: 46px;
  font-size: 1.1rem;
}
.lightbox-close:hover { transform: scale(1.06); }
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  font-size: 1.8rem;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-nav.hidden { display: none; }

.lightbox-grid-btn {
  position: absolute;
  top: 20px; right: 78px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}
.lightbox-grid-btn svg { width: 18px; height: 18px; }
.lightbox-grid-btn:hover { background: rgba(255,255,255,0.15); transform: scale(1.06); }
.lightbox-grid-btn.hidden { display: none; }

.lightbox-album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  max-width: min(90vw, 900px);
  max-height: 80vh;
  overflow-y: auto;
  padding: 4px;
}
.lightbox-album-thumb {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.lightbox-album-thumb:hover { transform: translateY(-3px); border-color: rgba(234,42,38,0.4); }
.lightbox-album-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}
.lightbox-album-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  color: #06070a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(234,42,38,0.4);
}
.lightbox-album-play svg { width: 18px; height: 18px; margin-left: 2px; }
.lightbox-album-folder {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--gradient);
  color: #06070a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(234,42,38,0.35);
}
.lightbox-album-folder svg { width: 20px; height: 20px; }
.lightbox-album-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 100%);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
}

/* ============ REVEAL ANIMATION ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .hero-photo { width: 45%; opacity: 0.6; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { max-width: 320px; margin: 0 auto; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero-photo { display: none; }
  section { padding: 76px 0; }
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: var(--bg-alt);
    border-left: 1px solid var(--border);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 99;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; z-index: 101; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-filters { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }

  .clients-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .client-logo-wrap { padding: 6px; }
  .client-slot .client-name { font-size: 0.7rem; }
  .client-slot.text-only .client-name-big { font-size: 0.85rem; padding: 10px; }

  .lightbox { padding: 84px 12px; }
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.4rem; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-close { top: 14px; right: 14px; width: 40px; height: 40px; }
  .lightbox-grid-btn { top: 14px; right: 62px; width: 40px; height: 40px; }
  .lightbox-album-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .lightbox-content { max-width: 100vw; }
}
