/* ============================================
   Jarrin de la Torre — Estilos base
   ============================================ */

:root {
  --color-blue: #2400FF;
  --color-taupe: #807040;
  --color-black: #000000;
  --color-white: #ffffff;
  --color-yellow: #FFD500;

  --font-main: 'Poppins', 'Helvetica Neue', Arial, sans-serif;

  --nav-height: 84px;
  --transition-fast: 0.25s ease;
  --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-main);
  color: var(--color-white);
  background: var(--color-black);
}

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

ul {
  list-style: none;
}

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

/* ============================================
   HERO / MENU SECTION
   ============================================ */

.hero {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-spacer {
  width: 100%;
  height: 100vh;
  min-height: 560px;
}

/* ---------- Fondo con fotos full size ---------- */

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.18);
  animation-name: heroSlideshow;
  animation-duration: 18s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  will-change: opacity, transform;
}

/* Foto 1: precargada en el <head> y con prioridad alta, ya que es la
   candidata a Largest Contentful Paint. Las fotos 2-9 arrancan solo con
   el degradado de respaldo — JS (main.js) inyecta su url() cuando el
   hilo principal queda libre, para no competir por ancho de banda con
   el contenido crítico del primer render. */
.hero-bg__slide--1 {
  background-image: url('../img/comunica.webp'), linear-gradient(135deg, #2400FF 0%, #120080 60%, #000000 100%);
  animation-delay: 0s;
}
.hero-bg__slide--2 {
  background-image: linear-gradient(135deg, #807040 0%, #3a3320 60%, #000000 100%);
  animation-delay: 2s;
}
.hero-bg__slide--3 {
  background-image: linear-gradient(135deg, #000000 0%, #807040 100%);
  animation-delay: 12s;
}
.hero-bg__slide--4 {
  background-image: linear-gradient(135deg, #000000 0%, #2400FF 100%);
  animation-delay: 4s;
}

.hero-bg__slide--5 {
  background-image: linear-gradient(135deg, #807040 0%, #2400FF 55%, #000000 100%);
  animation-delay: 8s;
}
.hero-bg__slide--6 {
  background-image: linear-gradient(135deg, #2400FF 0%, #807040 100%);
  animation-delay: 6s;
}

.hero-bg__slide--7 {
  background-image: linear-gradient(135deg, #807040 0%, #000000 60%, #2400FF 100%);
  animation-delay: 14s;
}
.hero-bg__slide--8 {
  background-image: linear-gradient(135deg, #2400FF 0%, #000000 100%);
  animation-delay: 10s;
}
.hero-bg__slide--9 {
  background-image: linear-gradient(135deg, #2400FF 0%, #000000 100%);
  animation-delay: 16s;
}

@keyframes heroSlideshow {
  0%     { opacity: 0; transform: scale(1.18); }
  2.5%   { opacity: 1; transform: scale(1.12); }
  10%    { opacity: 1; transform: scale(1.05); }
  12.5%  { opacity: 0; transform: scale(1.02); }
  100%   { opacity: 0; transform: scale(1.02); }
}

/* Tinte de marca (azul + taupe) sobre las fotos */
.hero-bg__tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(36, 0, 255, 0.5) 0%, rgba(0, 0, 0, 0) 45%, rgba(128, 112, 64, 0.5) 100%);
  mix-blend-mode: overlay;
  z-index: 1;
}

/* Velo oscuro para dar contraste al logo y al menu */
.hero-bg__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 30%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.75) 100%),
    rgba(0, 0, 0, 0.25);
  z-index: 2;
}

/* ---------- Menu / Navbar ---------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: var(--nav-height);
  background: rgba(10, 10, 31, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar__inner {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__brand {
  display: flex;
  align-items: center;
}

.navbar__brand img {
  height: 23.4px;
  width: auto;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.navbar__menu a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition-fast);
}

.navbar__menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-blue);
  transition: width var(--transition-fast);
}

.navbar__menu a:hover {
  color: var(--color-taupe);
}

.navbar__menu a:hover::after {
  width: 100%;
}

.navbar__cta {
  padding: 10px 22px !important;
  border: 1px solid var(--color-white);
  border-radius: 2px;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast) !important;
}

.navbar__cta::after {
  display: none;
}

.navbar__cta:hover {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: var(--color-white) !important;
}

/* Boton hamburguesa (mobile) */
.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 20;
}

.navbar__toggle span {
  width: 100%;
  height: 2px;
  background: var(--color-white);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.navbar__toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.navbar__toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Logo centrado ---------- */

.hero-content {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.hero-logo {
  width: min(360px, 60vw);
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.5));
  opacity: 0;
  animation: logoFadeIn 1.4s var(--transition-slow) forwards;
  animation-delay: 0.2s;
}

.hero-tagline {
  margin-top: 18px;
  font-family: 'Plus Jakarta Sans', var(--font-main);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0;
  animation: logoFadeIn 1.4s var(--transition-slow) forwards;
  animation-delay: 0.5s;
}

.hero-btn {
  margin-top: 26px;
  padding: 10px 26px;
  font-family: 'Plus Jakarta Sans', var(--font-main);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--color-blue);
  border-radius: 16px;
  opacity: 0;
  animation: logoFadeIn 1.4s var(--transition-slow) forwards;
  animation-delay: 0.75s;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.hero-btn:hover {
  background: var(--color-yellow);
  color: var(--color-black);
  transform: translateY(-2px);
}

@keyframes logoFadeIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ---------- Indicador de scroll ---------- */

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
}

.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--color-white);
  animation: scrollCue 1.8s infinite;
}

@keyframes scrollCue {
  0%   { opacity: 1; top: 8px; }
  70%  { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 8px; }
}

/* ============================================
   CLIENTES — barra de logos en marquesina
   ============================================ */

.clients {
  position: relative;
  z-index: 20;
  width: 100%;
  height: 120px;
  background: var(--color-blue);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.clients__track {
  display: flex;
  width: max-content;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.clients__track.is-dragging {
  cursor: grabbing;
}

.clients__group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.clients__logo {
  flex: 0 0 auto;
  width: 108px;
  height: 36px;
  margin: 0 36px;
  opacity: 0.45;
  filter: grayscale(100%);
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

.clients__track:hover .clients__logo {
  opacity: 0.65;
}

/* ============================================
   SERVICIOS — filas con slider horizontal (3 paneles c/u)
   ============================================ */

.services {
  position: relative;
  z-index: 20;
  background: var(--color-black);
}

.service-row {
  position: relative;
  display: flex;
  width: 100%;
  height: 60vh;
  min-height: 336px;
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.service-row::-webkit-scrollbar {
  display: none;
}

.service-row + .service-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.service-panel {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* ---------- Panel 1: Hero visual editorial ---------- */

.service-panel--hero {
  align-items: center;
  justify-content: center;
  background-color: #0A0A1F;
  background-size: cover;
  background-position: center;
}

.service-panel--hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}

.service-panel--hero-01::before {
  background:
    linear-gradient(180deg, rgba(10, 10, 31, 0.45) 0%, rgba(10, 10, 31, 0.6) 45%, rgba(10, 10, 31, 0.88) 100%),
    radial-gradient(circle at 30% 30%, rgba(36, 0, 255, 0.35) 0%, rgba(10, 10, 31, 0.15) 65%);
}

.service-panel--hero-02::before {
  background:
    linear-gradient(180deg, rgba(10, 10, 31, 0.45) 0%, rgba(10, 10, 31, 0.6) 45%, rgba(10, 10, 31, 0.88) 100%),
    radial-gradient(circle at 70% 30%, rgba(254, 191, 1, 0.18) 0%, rgba(10, 10, 31, 0.15) 65%);
}

.service-panel--hero-03::before {
  background:
    linear-gradient(180deg, rgba(10, 10, 31, 0.45) 0%, rgba(10, 10, 31, 0.6) 45%, rgba(10, 10, 31, 0.88) 100%),
    radial-gradient(circle at 50% 60%, rgba(127, 113, 64, 0.32) 0%, rgba(10, 10, 31, 0.15) 65%);
}

.service-hero-title-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6vw;
}

.service-hero-title {
  font-family: 'Plus Jakarta Sans', var(--font-main);
  font-size: clamp(1.3rem, 4.5vw, 3.75rem);
  line-height: 0.95;
  text-align: center;
  color: var(--color-white);
}

.fw-200 { font-weight: 200; }
.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

/* ---------- Panel 2: Descripción del servicio ---------- */

.service-panel--desc {
  align-items: flex-start;
  justify-content: center;
  color: var(--panel-fg, var(--color-white));
  padding: 8vh 7vw;
}

.service-panel--desc .service-panel__inner {
  max-width: 620px;
}

.service-panel--projects .service-panel__inner {
  width: 100%;
  max-width: 1200px;
}

.service-eyebrow {
  font-family: 'Plus Jakarta Sans', var(--font-main);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 18px;
}

.service-title {
  font-family: 'Plus Jakarta Sans', var(--font-main);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  max-width: 16ch;
  margin-bottom: 24px;
}

.service-desc {
  font-family: 'Plus Jakarta Sans', var(--font-main);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 48ch;
  margin-bottom: 32px;
  opacity: 0.92;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
}

.service-list li {
  font-family: 'Plus Jakarta Sans', var(--font-main);
  font-weight: 400;
  font-size: 0.95rem;
  padding-left: 22px;
  position: relative;
}

.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  opacity: 0.6;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', var(--font-main);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.service-cta:hover {
  transform: translateX(6px);
  opacity: 0.8;
}

/* ---------- Panel 3: Casos de éxito ---------- */

.service-panel--projects {
  align-items: flex-start;
  justify-content: flex-start;
  background: #0A0A1F;
  color: var(--color-white);
  padding: 8vh 6vw;
  overflow-y: auto;
}

.service-projects-title {
  font-family: 'Plus Jakarta Sans', var(--font-main);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 6vh;
}

.service-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  width: 100%;
}

.project-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #1a1a38 0%, #0A0A1F 100%);
  transition: transform var(--transition-fast);
}

.project-card:hover .project-card__img {
  transform: scale(1.04);
}

.project-card__name {
  font-family: 'Plus Jakarta Sans', var(--font-main);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}

.project-card__client {
  font-family: 'Plus Jakarta Sans', var(--font-main);
  font-weight: 300;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ============================================
   PROCESO — cómo trabajamos (línea de tiempo, 5 pasos)
   ============================================ */

.process {
  position: relative;
  z-index: 20;
  background: #0A0A1F;
  padding: 60px 24px;
}

.process .section-heading {
  margin-bottom: 36px;
}

.process__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-eyebrow {
  font-family: 'Plus Jakarta Sans', var(--font-main);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FEBF01;
  margin-bottom: 20px;
}

.section-heading {
  display: block;
  white-space: nowrap;
  font-family: 'Plus Jakarta Sans', var(--font-main);
  font-weight: 800;
  font-size: clamp(0.85rem, 4.6vw, 3.4rem);
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 72px;
}

.section-heading--accent {
  color: #FEBF01;
}

.process-steps {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 30px;
  right: 30px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  --step-color: #FEBF01;
}

.process-step:nth-child(3n+1) { --step-color: #2400FF; }
.process-step:nth-child(3n+2) { --step-color: #FEBF01; }
.process-step:nth-child(3n+3) { --step-color: #7F7140; }

.process-step__circle {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--step-color);
  border-radius: 50%;
  background: #0A0A1F;
  font-family: 'Plus Jakarta Sans', var(--font-main);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--step-color);
  margin-bottom: 20px;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.process-step.is-active .process-step__circle {
  background: var(--step-color);
  color: var(--color-white);
}

.process-step__title {
  font-family: 'Plus Jakarta Sans', var(--font-main);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-white);
  margin-bottom: 6px;
}

.process-step__desc {
  font-family: 'Plus Jakarta Sans', var(--font-main);
  font-weight: 300;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ============================================
   TESTIMONIOS — clientes reales, resultados reales
   ============================================ */

.testimonials {
  position: relative;
  z-index: 20;
  background: #F4F5F7;
  padding: 120px 24px;
}

.testimonials__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-eyebrow--dark {
  color: #6b6b76;
}

.section-heading--dark {
  color: #0A0A1F;
}

.section-heading--accent-blue {
  color: var(--color-blue);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 36px 28px;
  border-top: 3px solid var(--card-color, #FEBF01);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.testimonial-card:nth-child(1) { --card-color: #2400FF; }
.testimonial-card:nth-child(2) { --card-color: #FEBF01; }
.testimonial-card:nth-child(3) { --card-color: #7F7140; }

.testimonial-card__quote {
  display: block;
  font-family: 'Plus Jakarta Sans', var(--font-main);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--card-color, #FEBF01);
  margin-bottom: 12px;
}

.testimonial-card__text {
  font-family: 'Plus Jakarta Sans', var(--font-main);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333340;
  margin-bottom: 24px;
}

.testimonial-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a1a38 0%, #0A0A1F 100%);
}

.testimonial-card__author {
  font-family: 'Plus Jakarta Sans', var(--font-main);
  font-weight: 700;
  font-size: 0.85rem;
  color: #0A0A1F;
}

.testimonial-card__author cite {
  font-style: normal;
}

/* ============================================
   AUDITORÍA EXPRÉS — herramienta embebida
   ============================================ */

.audit {
  position: relative;
  z-index: 20;
  background: #F4F5F7;
  padding: 100px 24px;
}

.audit__inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.audit__desc {
  font-family: 'Plus Jakarta Sans', var(--font-main);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333340;
  max-width: 56ch;
  margin: 0 auto 48px;
}

.audit__frame-wrap {
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.audit__iframe {
  display: block;
  width: 100%;
  height: 1100px;
  border: 0;
}

.audit__fallback {
  font-family: 'Plus Jakarta Sans', var(--font-main);
  font-weight: 300;
  font-size: 0.85rem;
  color: #6b6b76;
  margin-top: 16px;
}

.audit__fallback a {
  font-weight: 600;
  color: var(--color-blue);
  text-decoration: underline;
}

/* ---------- Footer ---------- */

footer {
  position: relative;
  z-index: 20;
  background: var(--color-black);
  padding: 32px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

footer p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

footer ul {
  display: flex;
  gap: 20px;
}

footer a {
  font-size: 0.8rem;
  color: var(--color-white);
  transition: color var(--transition-fast);
}

footer a:hover {
  color: var(--color-blue);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 860px) {
  .navbar__toggle {
    display: flex;
  }

  .navbar__menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 80vw);
    height: 100vh;
    background: rgba(0, 0, 0, 0.96);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 32px;
    padding: 0 40px;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    z-index: 15;
  }

  .navbar__menu.is-open {
    transform: translateX(0);
  }

  .navbar__menu a {
    font-size: 1.1rem;
  }

  .hero-logo {
    width: min(260px, 70vw);
  }

  .clients {
    height: 90px;
  }

  .clients__logo {
    width: 90px;
    height: 30px;
    margin: 0 28px;
  }

  .service-row {
    height: 60vh;
  }

  .service-hero-title {
    font-size: clamp(1.1rem, 6vw, 2.25rem);
  }

  .service-panel--desc,
  .service-panel--projects {
    padding: 6vh 6vw;
  }

  .service-title {
    max-width: 100%;
  }

  .service-projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
  }

  .process {
    padding: 40px 24px;
  }

  .process .section-heading {
    margin-bottom: 24px;
  }

  .testimonials .section-heading {
    margin-bottom: 48px;
  }

  .process-steps {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }

  .process-steps::before {
    display: none;
  }

  .process-step {
    flex-direction: row;
    align-items: center;
    gap: 18px;
    text-align: left;
  }

  .process-step__circle {
    margin-bottom: 0;
  }

  .testimonials {
    padding: 80px 24px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .audit {
    padding: 80px 20px;
  }

  .audit__iframe {
    height: 900px;
  }
}

@media (max-width: 480px) {
  .navbar__inner {
    padding: 0 20px;
  }

  .navbar__brand {
    font-size: 0.8rem;
  }

  .clients {
    height: 70px;
  }

  .clients__logo {
    width: 70px;
    height: 24px;
    margin: 0 20px;
  }

  .service-hero-title {
    font-size: clamp(0.95rem, 6.5vw, 1.6rem);
  }

  .service-hero-title-wrap {
    height: 65%;
    padding: 0 8vw;
  }

  .service-panel--desc,
  .service-panel--projects {
    padding: 5vh 6vw;
  }

  .service-desc {
    font-size: 0.95rem;
  }

  .service-projects-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .service-projects-title {
    margin-bottom: 4vh;
  }
}

/* ============================================
   PÁGINA DE PROYECTOS
   ============================================ */

.projects-page-header {
  position: relative;
  z-index: 20;
  background: #0A0A1F;
  padding: calc(var(--nav-height) + 64px) 24px 56px;
}

.projects-page-header__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.projects-title {
  font-family: 'Plus Jakarta Sans', var(--font-main);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.1;
  color: var(--color-white);
  max-width: 820px;
}

.projects-subtitle {
  margin-top: 20px;
  font-family: 'Plus Jakarta Sans', var(--font-main);
  font-weight: 300;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 640px;
}

.video-teaser-section {
  background: #0A0A1F;
  padding: 0 24px 90px;
}

.video-teaser-section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.video-teaser {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.video-teaser__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-teaser__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 31, 0.28);
  border: 0;
  cursor: pointer;
  padding: 0;
}

.video-teaser__play-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.video-teaser__play:hover .video-teaser__play-circle {
  transform: scale(1.08);
  background: var(--color-white);
}

.video-teaser__play-circle svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
  fill: #0A0A1F;
}

.video-teaser__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.projects-carousel-section {
  background: #0A0A1F;
  padding: 0 24px 120px;
}

.projects-carousel-section__inner {
  max-width: 1300px;
  margin: 0 auto;
}

.projects-carousel-section .section-heading {
  margin-bottom: 40px;
}

.projects-carousel {
  width: 100%;
  overflow: hidden;
}

.projects-carousel__track {
  display: flex;
  width: max-content;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.projects-carousel__track.is-dragging {
  cursor: grabbing;
}

.projects-carousel__group {
  display: flex;
  flex: 0 0 auto;
  gap: 22px;
  padding-right: 22px;
}

.project-tile {
  position: relative;
  flex: 0 0 clamp(240px, 32vw, 340px);
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: #14142a;
  display: block;
}

.project-tile__img {
  -webkit-user-drag: none;
}

.project-tile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform var(--transition-slow);
}

.project-tile:hover .project-tile__img {
  transform: scale(1.06);
}

.project-tile__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0) 100%);
}

.project-tile__name {
  display: block;
  font-family: 'Plus Jakarta Sans', var(--font-main);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-white);
}

.project-tile__cta {
  margin-top: 4px;
  font-family: 'Plus Jakarta Sans', var(--font-main);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FEBF01;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 860px) {
  .projects-page-header {
    padding: calc(var(--nav-height) + 40px) 24px 40px;
  }

  .video-teaser-section {
    padding: 0 20px 60px;
  }

  .projects-carousel-section {
    padding: 0 20px 80px;
  }

  .project-tile {
    flex-basis: clamp(220px, 62vw, 300px);
  }
}

@media (max-width: 480px) {
  .video-teaser__play-circle {
    width: 64px;
    height: 64px;
  }

  .video-teaser__play-circle svg {
    width: 22px;
    height: 22px;
  }

  .project-tile {
    flex-basis: 78vw;
  }
}

/* ============================================
   STACK DE PROYECTOS DE BRANDING
   Cada proyecto es una card apilada con position: sticky.
   Al hacer scroll, la card anterior queda fija y la siguiente
   la cubre desde abajo, dejando un pequeño "peek" del borde
   superior de las cards previas (efecto de mazo de cartas).
   ============================================ */

.branding-stack-section {
  background: #0A0A1F;
  padding: 20px 24px 0;
}

.branding-stack-section__inner {
  max-width: 1300px;
  margin: 0 auto;
}

.branding-stack-section .section-heading {
  margin-bottom: 0;
}

.branding-stack {
  position: relative;
  max-width: 1100px;
  margin: 48px auto 0;
}

.branding-stack__item {
  position: relative;
  min-height: 130vh;
}

.branding-stack__item:last-child {
  min-height: 100vh;
}

.branding-card {
  position: sticky;
  top: calc(var(--nav-height) + 16px + (var(--i) * 14px));
  z-index: calc(var(--i) + 1);
  display: flex;
  height: min(560px, 78vh);
  border-radius: 20px;
  overflow: hidden;
  background: var(--card-color, #14142a);
  color: var(--card-fg, var(--color-white));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  transform: scale(calc(1 - var(--progress, 0) * 0.06));
  filter: brightness(calc(1 - var(--progress, 0) * 0.25));
  will-change: transform, filter;
}

.branding-card__media {
  flex: 1 1 55%;
  position: relative;
  overflow: hidden;
  background: #0A0A1F;
  cursor: zoom-in;
}

.branding-card__slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.branding-card__media img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform var(--transition-slow);
}

.branding-card__media img:hover {
  transform: scale(1.06);
}

.branding-card__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 10, 31, 0.45);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
  z-index: 2;
}

.branding-card__media:hover .branding-card__nav,
.branding-card__nav:focus-visible {
  opacity: 1;
}

.branding-card__nav:hover {
  background: rgba(10, 10, 31, 0.75);
}

.branding-card__nav--prev {
  left: 14px;
}

.branding-card__nav--next {
  right: 14px;
}

@media (hover: none) {
  .branding-card__nav {
    opacity: 1;
  }
}

/* Overlay (lightbox) para ver la imagen activa de una card en grande */
.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vh 5vw;
  background: rgba(10, 10, 31, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 1000;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

body.lightbox-open {
  overflow: hidden;
}

.branding-card__panel {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6vh 4vw;
}

.branding-card__index {
  font-family: 'Plus Jakarta Sans', var(--font-main);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 18px;
}

.branding-card__title {
  font-family: 'Plus Jakarta Sans', var(--font-main);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.branding-card__desc {
  font-family: 'Plus Jakarta Sans', var(--font-main);
  font-weight: 300;
  font-size: 0.98rem;
  line-height: 1.6;
  opacity: 0.92;
  max-width: 46ch;
  margin-bottom: 22px;
}

.branding-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.branding-card__tags li {
  font-family: 'Plus Jakarta Sans', var(--font-main);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid currentColor;
  border-radius: 100px;
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .branding-card {
    transform: none !important;
    filter: none !important;
  }
}

@media (max-width: 860px) {
  .branding-stack {
    margin-top: 32px;
  }

  .branding-stack__item {
    min-height: 108vh;
  }

  .branding-card {
    top: calc(var(--nav-height) + 10px + (var(--i) * 8px));
    flex-direction: column;
    height: min(620px, 82vh);
  }

  .branding-card__media {
    flex: 1 1 45%;
  }

  .branding-card__panel {
    flex: 1 1 55%;
    padding: 4vh 6vw;
  }

  .branding-card__desc {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .branding-card__title {
    font-size: 1.4rem;
  }

  .branding-card__desc {
    font-size: 0.92rem;
  }
}
