/* ==========================================================================
   BARULHITO FILMES — DESIGN SYSTEM CINEMATOGRÁFICO (DARK MODE + CRO)
   Zero build required • Otimizado para LCP < 2s (Hostinger + Google/Meta Ads)
   ========================================================================== */

:root {
  --bg-base: #08080a;
  --bg-surface: #111115;
  --bg-elevated: #17171d;
  --bg-glass: rgba(17, 17, 21, 0.78);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(229, 169, 59, 0.45);

  --text-primary: #f5f4f0;
  --text-secondary: #a8a8b3;
  --text-muted: #71717c;

  --accent: #e5a93b;
  --accent-hover: #f2be5a;
  --accent-soft: rgba(229, 169, 59, 0.12);
  --whatsapp: #25d366;
  --whatsapp-hover: #1ebe5b;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --container: 1240px;
  --nav-height: 78px;
  --ease-cinema: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img, video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Subtle cinema grain overlay */
.film-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Typography helpers */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  color: var(--text-primary);
}

.section-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.section-lead {
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 64ch;
  margin: 0;
}

.section-pad {
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: clamp(2.2rem, 4vw, 3.5rem);
}

.section-header--split {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.92rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease-cinema), background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--accent);
  color: #0b0b0e;
  box-shadow: 0 8px 28px rgba(229, 169, 59, 0.22);
}

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 12px 34px rgba(229, 169, 59, 0.34);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
}

.btn--whatsapp {
  background: rgba(37, 211, 102, 0.12);
  color: #7ef2a9;
  border: 1px solid rgba(37, 211, 102, 0.35);
}

.btn--whatsapp:hover {
  background: rgba(37, 211, 102, 0.22);
  border-color: rgba(37, 211, 102, 0.65);
  color: #ffffff;
}

.btn--sm {
  padding: 0.65rem 1.25rem;
  font-size: 0.84rem;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(8, 8, 10, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text-primary);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.25s var(--ease-cinema);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.mobile-menu {
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background: rgba(8, 8, 10, 0.97);
  backdrop-filter: blur(20px);
  z-index: 75;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s var(--ease-cinema);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* ==========================================================================
   HERO SECTION (ABOVE-THE-FOLD CINEMA + CRO)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--nav-height) + 2.5rem);
  padding-bottom: 2.2rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-media-layer {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #050507;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease-cinema);
  will-change: opacity;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img,
.hero-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide.is-active img.ken-burns {
  animation: kenBurns 14s ease-out forwards;
}

@keyframes kenBurns {
  0% { transform: scale(1.02); }
  100% { transform: scale(1.1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0.72) 0%, rgba(8, 8, 10, 0.42) 38%, rgba(8, 8, 10, 0.88) 82%, var(--bg-base) 100%),
    linear-gradient(90deg, rgba(8, 8, 10, 0.82) 0%, rgba(8, 8, 10, 0.35) 55%, rgba(8, 8, 10, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-block: auto;
  padding-block: clamp(2rem, 5vh, 4rem);
  max-width: 820px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(17, 17, 21, 0.68);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(229, 169, 59, 0.22);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.85rem, 6.2vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: var(--text-primary);
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.hero-subtitle {
  font-size: clamp(1.02rem, 1.45vw, 1.2rem);
  color: rgba(245, 244, 240, 0.84);
  max-width: 58ch;
  margin: 0 0 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.95rem;
}

/* Hero bottom switcher bar */
.hero-footer {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-now-playing {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-now-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-now-title {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-primary);
}

.hero-now-client {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.hero-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(17, 17, 21, 0.55);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.hero-slide-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.hero-slide-btn.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* ==========================================================================
   CLIENTS AUTHORITY STRIP (IMMEDIATE SOCIAL PROOF)
   ========================================================================== */
.clients-section {
  padding-block: clamp(2.8rem, 4.5vw, 4rem);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, #0a0a0d 0%, #0d0d11 100%);
  overflow: hidden;
}

.clients-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.clients-caption {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

.clients-count {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.marquee-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 0.85rem;
  width: max-content;
  animation: marqueeScroll 42s linear infinite;
}

.marquee-track--reverse {
  animation-direction: reverse;
  animation-duration: 50s;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.client-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.72rem 1.35rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.client-pill:hover {
  border-color: var(--border-accent);
  background: rgba(229, 169, 59, 0.06);
  transform: translateY(-2px);
}

.client-pill__name {
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(245, 244, 240, 0.86);
}

.client-pill--featured .client-pill__name {
  font-size: 1.04rem;
  color: var(--text-primary);
}

.client-pill__seg {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-left: 0.55rem;
  border-left: 1px solid var(--border-subtle);
}

/* ==========================================================================
   PORTFOLIO SECTION (VIDEO-FIRST + FILTERS + CASE MODAL)
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter-btn {
  padding: 0.58rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  transition: all 0.22s ease;
}

.filter-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b0b0e;
  font-weight: 600;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-cinema), border-color 0.3s ease, box-shadow 0.35s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.project-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0a0d;
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease-cinema), filter 0.35s ease;
}

.project-card:hover .project-card__media img {
  transform: scale(1.06);
  filter: brightness(0.76);
}

.project-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.15) 0%, rgba(8, 8, 10, 0.78) 100%);
}

.project-card__badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.72rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(8, 8, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
}

.badge--playable {
  border-color: rgba(229, 169, 59, 0.5);
  color: var(--accent);
}

.project-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}

.play-circle {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(8, 8, 10, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  color: var(--text-primary);
  transition: transform 0.3s var(--ease-cinema), background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.project-card:hover .play-circle {
  transform: scale(1.1);
  background: var(--accent);
  border-color: var(--accent);
  color: #0b0b0e;
}

.project-card__body {
  padding: 1.35rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.project-card__client {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

.project-card__summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0.15rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card__foot {
  margin-top: auto;
  padding-top: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
}

.project-card__cta {
  color: var(--text-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   SERVICES SECTION (5 STRATEGIC PILLARS)
   ========================================================================== */
.services-section {
  background: linear-gradient(180deg, var(--bg-base) 0%, #0d0d12 50%, var(--bg-base) 100%);
  border-top: 1px solid var(--border-subtle);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.35rem;
}

.service-card {
  grid-column: span 2;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-cinema);
}

/* Make last 2 cards span 3 columns each on desktop for balanced 3+2 cinema bento */
.service-card:nth-child(4),
.service-card:nth-child(5) {
  grid-column: span 3;
}

.service-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}

.service-card--partner {
  background: linear-gradient(160deg, #14141b 0%, #101015 100%);
  border-color: rgba(229, 169, 59, 0.22);
}

.service-card__media {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-cinema);
}

.service-card:hover .service-card__media img {
  transform: scale(1.05);
}

.service-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.1) 0%, rgba(17, 17, 21, 0.95) 100%);
}

.service-card__num {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.28rem 0.68rem;
  border-radius: var(--radius-pill);
  background: rgba(8, 8, 10, 0.75);
  border: 1px solid var(--border-strong);
  color: var(--accent);
}

.service-card__content {
  padding: 1.25rem 1.5rem 1.55rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1.15;
  margin: 0 0 0.35rem;
}

.service-card__subtitle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin: 0 0 0.9rem;
}

.service-card__desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 0 0 1.15rem;
}

.service-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.service-card__list li {
  font-size: 0.85rem;
  color: rgba(245, 244, 240, 0.82);
  padding-left: 1.15rem;
  position: relative;
}

.service-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 6px;
  height: 1.5px;
  background: var(--accent);
}

.service-card__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   ABOUT (MANIFESTO + CINEMA MONITOR PORTRAIT)
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.about-media {
  position: relative;
}

.about-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #050507;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65);
  aspect-ratio: 4 / 5;
}

.about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.about-photo-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(8, 8, 10, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.about-lead {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--text-primary);
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
}

.about-body p {
  color: var(--text-secondary);
  margin: 0 0 1.1rem;
  font-size: 0.98rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.1;
}

.stat-card__label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* ==========================================================================
   PROCESS TIMELINE (4 STEPS)
   ========================================================================== */
.process-section {
  border-top: 1px solid var(--border-subtle);
  background: #0b0b0f;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.process-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s var(--ease-cinema);
}

.process-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}

.process-card__step {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.process-card__step::after {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(229, 169, 59, 0.4);
}

.process-card__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 0 0 0.7rem;
}

.process-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ==========================================================================
   CONTACT / CONVERSION SECTION (FORM + WHATSAPP + UTM READY)
   ========================================================================== */
.contact-section {
  border-top: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 80% 20%, rgba(229, 169, 59, 0.08), transparent 45%), var(--bg-base);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.contact-item:hover {
  border-color: var(--border-accent);
  background: var(--bg-elevated);
}

.contact-item__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-item__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-item__value {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text-primary);
}

.contact-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.45);
}

.form-group-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.7rem;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.chip-btn {
  padding: 0.52rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.chip-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.chip-btn.is-selected {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.field label {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: #0b0b0f;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.94rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(229, 169, 59, 0.14);
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status--success {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #a7f3c5;
}

.form-status--error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

/* ==========================================================================
   MODAL (CINEMA VIDEO PLAYER + CASE CONTEXT)
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 6, 0.88);
  backdrop-filter: blur(14px);
}

.modal__dialog {
  position: relative;
  z-index: 2;
  width: min(100%, 980px);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.75);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.3s var(--ease-cinema);
}

.modal.is-open .modal__dialog {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(8, 8, 10, 0.82);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.modal__close:hover {
  background: var(--accent);
  color: #0b0b0e;
}

.modal__player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
}

.modal__player video,
.modal__player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.modal__pending {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.modal__pending img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.42);
}

.modal__pending-box {
  position: relative;
  z-index: 2;
  max-width: 520px;
  text-align: center;
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  background: rgba(8, 8, 10, 0.78);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
}

.modal__body {
  padding: clamp(1.35rem, 3vw, 2.1rem);
}

.modal__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.modal__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.12;
  margin: 0 0 1.25rem;
}

.modal__case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.15rem;
  border-radius: var(--radius-md);
  background: #0b0b0f;
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.modal__case-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.modal__case-text {
  font-size: 0.87rem;
  color: var(--text-secondary);
  margin: 0;
}

.modal__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* ==========================================================================
   FOOTER & FLOATING WHATSAPP
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #060608;
  padding-block: 3.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 40ch;
  margin: 1rem 0 1.25rem;
}

.footer-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.social-row {
  display: flex;
  gap: 0.65rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.social-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.wa-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 85;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.78rem 1.2rem;
  border-radius: var(--radius-pill);
  background: #143622;
  border: 1px solid rgba(37, 211, 102, 0.55);
  color: #e9fff1;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all 0.3s var(--ease-cinema);
}

.wa-float.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.wa-float:hover {
  background: var(--whatsapp-hover);
  color: #06130b;
  transform: translateY(-2px);
}

/* Scroll reveal (safe: visible by default if JS disabled; smooth transition when active) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease-cinema), transform 0.65s var(--ease-cinema);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   /DIARIAS PAGE SPECIFIC STYLES
   ========================================================================== */
.diarias-hero {
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 20% 0%, rgba(229, 169, 59, 0.11), transparent 50%), var(--bg-base);
}

.diarias-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 3rem;
  align-items: center;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.role-card,
.kit-card,
.inventory-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.kits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.kit-card--primary {
  border-color: rgba(229, 169, 59, 0.38);
  background: linear-gradient(160deg, #16151c 0%, #101015 100%);
}

.kit-card__title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  margin: 0.75rem 0 0.5rem;
}

.kit-card__sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 1.35rem 0 0.65rem;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.inventory-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.inventory-list li {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.inventory-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.inventory-item__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.inventory-item__spec {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-top: 0.18rem;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: span 1;
  }
  .service-card:nth-child(5) {
    grid-column: span 2;
  }
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-grid,
  .contact-grid,
  .diarias-hero-grid {
    grid-template-columns: 1fr;
  }
  .about-photo-frame {
    max-width: 440px;
  }
  .modal__case-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions .btn {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .portfolio-grid,
  .services-grid,
  .process-grid,
  .roles-grid,
  .kits-grid,
  .inventory-grid,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }
  .service-card:nth-child(5) {
    grid-column: span 1;
  }
  .about-stats {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .hero {
    padding-bottom: 1.5rem;
  }
  .badge {
    font-size: 0.6rem;
    padding: 0.28rem 0.6rem;
    white-space: nowrap;
  }
  .project-card__badges {
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .wa-float span {
    display: none;
  }
  .wa-float {
    padding: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .hero-slide.is-active img.ken-burns { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
