/* ============================================================
   Shout! Media — Futuristic Conceptual Design
   ============================================================ */

/* ==========================================================
   1. CUSTOM PROPERTIES & RESET
   ========================================================== */

:root {
  --color-primary: #A0C814;
  --color-neon: #BFFF00;
  --color-black: #0a0a0a;
  --color-dark: #111111;
  --color-white: #f0f0f0;
  --color-gray: #666;
  --color-gray-light: #1a1a1a;
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  /* Misma familia que titulos / marca: lectura mas coherente con el logo */
  --font-body: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  /* DM Serif Display: acentos en frases, titulares de apoyo y textos editoriales */
  --font-serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --transition-speed: 300ms;
  --nav-height: 80px;
  --glow: 0 0 20px rgba(160, 200, 20, 0.3);
  --glow-strong: 0 0 40px rgba(191, 255, 0, 0.4);
  /* Motion — referencia editorial (p. ej. ashleybrookecs.com) */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --reveal-duration: 1.05s;
}

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

html {
  scroll-behavior: smooth;
}

html.lenis {
  height: auto;
  scroll-behavior: auto !important;
}

body {
  font-family: var(--font-body);
  color: var(--color-white);
  background: var(--color-black);
  line-height: 1.7;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

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

::selection {
  background: var(--color-primary);
  color: var(--color-black);
}

/* --- Button --- */

.btn {
  display: inline-block;
  padding: 16px 40px;
  border: 1px solid var(--color-neon);
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  background: transparent;
  color: var(--color-neon);
  transition: all var(--transition-speed);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-neon);
  transform: translateX(-101%);
  transition: transform 0.4s ease;
  z-index: -1;
}

.btn:hover {
  color: var(--color-black);
  box-shadow: var(--glow-strong);
}

.btn:hover::before {
  transform: translateX(0);
}

.btn-primary {
  background: transparent;
  color: var(--color-neon);
}

/* --- Container --- */

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}

/* --- Grid overlay effect --- */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(160, 200, 20, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 200, 20, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}


/* ==========================================================
   PRELOADER
   ========================================================== */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(0);
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.preloader.is-hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

body.is-loading {
  overflow: hidden;
}

/* --- Reduced motion --- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-animate] {
    opacity: 1;
    transform: none;
  }
  [data-scroll-color] {
    transform: none !important;
  }
}

/* ==========================================================
   2. NAVIGATION
   ========================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  padding: 20px 40px;
  height: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  transition: background-color 0.5s ease, padding 0.5s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(160, 200, 20, 0.1);
  padding: 10px 40px;
}

.nav-logo img {
  height: 120px;
  filter: drop-shadow(0 0 8px rgba(160, 200, 20, 0.3));
  transition: height 0.5s ease, filter var(--transition-speed);
}

.navbar.scrolled .nav-logo img {
  height: 45px;
}

.nav-logo img:hover {
  filter: drop-shadow(var(--glow));
}

/* --- Circular toggle button --- */

.nav-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(160, 200, 20, 0.3);
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1001;
  margin-top: 4px;
}

.nav-toggle:hover {
  border-color: var(--color-neon);
  box-shadow: var(--glow);
}

.nav-toggle__line {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-neon);
  transition: all 0.4s ease;
  transform-origin: center;
}

.nav-toggle.is-active {
  border-color: var(--color-neon);
  background: rgba(160, 200, 20, 0.1);
}

.nav-toggle.is-active .nav-toggle__line:first-child {
  transform: rotate(45deg) translate(2.5px, 2.5px);
}

.nav-toggle.is-active .nav-toggle__line:last-child {
  transform: rotate(-45deg) translate(2.5px, -2.5px);
}

/* --- Side panel --- */

.side-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 85vw;
  height: 100vh;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  border-left: 1px solid rgba(160, 200, 20, 0.1);
}

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

.side-panel__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 40px;
  text-align: center;
}

.side-panel__links a {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-white);
  transition: color 0.4s ease, text-shadow 0.4s ease, transform 0.4s ease;
  display: inline-block;
}

.side-panel__links a:hover {
  color: var(--color-neon);
  text-shadow: 0 0 20px rgba(191, 255, 0, 0.4);
  transform: translateX(-8px);
}

.side-panel__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.side-panel__overlay.is-visible {
  opacity: 1;
  visibility: visible;
}


/* ==========================================================
   3. HERO
   ========================================================== */

.hero {
  min-height: 100vh;
  background: var(--color-black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--nav-height) 0 80px;
}

/* Radial glow behind hero content */
.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(160, 200, 20, 0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 600px at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(160, 200, 20, 0.15) 0%,
      rgba(100, 140, 10, 0.06) 30%,
      transparent 70%),
    radial-gradient(circle 400px at calc(var(--mouse-x, 50%) + 15%) calc(var(--mouse-y, 50%) - 10%),
      rgba(191, 255, 0, 0.08) 0%,
      transparent 60%);
  pointer-events: none;
  z-index: 0;
  transition: background 0.1s ease;
}

.hero-content {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  padding: 0 48px;
}

.hero-headline {
  font-size: clamp(3rem, 8vw, 7rem);
  color: var(--color-white);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-align: right;
}

.hero-tagline {
  color: var(--color-neon);
  font-family: var(--font-body);
  font-size: 1.22rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  max-width: 400px;
  line-height: 1.45;
}

/* --- Home: hero editorial (referencia estilo estudio creativo, fondo claro) --- */

body.page-home::before {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

/* .navbar--home en varias paginas; ocultar logo sin scroll solo en body.page-home (hero editorial) */
.navbar--home {
  background: transparent;
  border-bottom: 1px solid transparent;
}

.navbar--home.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.navbar__menu {
  display: none !important;
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0;
  max-width: 560px;
}

.navbar__menu li {
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.navbar__menu a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  font-weight: 500;
  color: #0a0a0a;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

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

.navbar__menu li:not(:last-child)::after {
  content: ', ';
  color: #0a0a0a;
  font-weight: 500;
  pointer-events: none;
}

.navbar--home:not(.scrolled) .nav-logo img {
  filter: none;
  height: 52px;
}

.navbar--home.scrolled .nav-logo img {
  filter: none;
}

.navbar--home .nav-toggle {
  border-color: rgba(10, 10, 10, 0.2);
  background: rgba(255, 255, 255, 0.85);
}

.navbar--home .nav-toggle__line {
  background: #0a0a0a;
}

.navbar--home .nav-toggle:hover {
  border-color: var(--color-primary);
  box-shadow: none;
}

@media (min-width: 1024px) {
  .page-home .navbar--home:not(.scrolled) {
    justify-content: flex-end;
  }

  .page-home .navbar--home.scrolled {
    justify-content: space-between;
  }

  .page-home .navbar--home:not(.scrolled) .nav-logo {
    display: none;
  }

  .page-home .navbar--home.scrolled .nav-logo {
    display: block;
  }

  .navbar__menu {
    display: flex !important;
    flex: 1;
    justify-content: flex-end;
    margin-right: 32px;
  }

  .navbar__menu li {
    display: inline-flex;
    align-items: center;
  }

  .navbar--home .nav-toggle {
    display: none;
  }
}

.hero--editorial {
  background: #fff;
  color: #0a0a0a;
  align-items: stretch;
  justify-content: flex-start;
  padding-top: calc(var(--nav-height) + 24px);
  padding-bottom: 64px;
  overflow: visible;
}

.hero--editorial::before {
  display: none;
}

.hero-editorial__grid {
  display: grid;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 48px 56px;
  min-height: calc(100svh - var(--nav-height) - 40px);
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.2fr);
  grid-template-rows: auto 1fr;
  gap: 40px 72px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.hero-editorial__brand {
  grid-column: 1;
  grid-row: 1;
}

.hero-editorial__logo-link {
  display: inline-block;
  line-height: 0;
}

.hero-editorial__logo {
  display: block;
  width: auto;
  max-width: min(320px, 78vw);
  height: auto;
}

.hero-editorial__brandlines {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 20px;
  max-width: 340px;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.hero-editorial__brandlines-right {
  text-align: right;
}

/* Por debajo de 1024px el nav ya muestra el logo; evitar duplicar con el hero */
@media (max-width: 1023px) {
  /* !important + .page-home: vence caches/reglas viejas en producción */
  .page-home .hero--editorial .hero-editorial__logo-link,
  .page-home .hero--editorial .hero-editorial__logo {
    display: none !important;
  }

  .hero-editorial__brandlines {
    margin-top: 0;
  }

  /* El .hero base usa 100vh y la grid min(svh); en móvil deja mucho blanco sin contenido */
  .hero.hero--editorial {
    min-height: auto;
  }

  .hero-editorial__grid {
    min-height: auto;
  }
}

.hero-editorial__intro {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  max-width: 380px;
  font-family: var(--font-body);
  font-size: 1.085rem;
  font-weight: 400;
  line-height: 1.65;
  color: #333;
  margin: 0;
}

.hero-editorial__right {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
}

.hero-editorial__headline {
  font-family: var(--font-body);
  font-size: clamp(1.65rem, 3.2vw, 2.85rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: #0a0a0a;
  margin: 0;
  max-width: 22ch;
  text-transform: none;
}

.hero-editorial__headline strong {
  font-weight: 700;
}

.hero-editorial__cta {
  display: inline-block;
  background: #0a0a0a;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 18px 32px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.35s var(--ease-out-expo), color 0.35s ease;
}

.hero-editorial__cta:hover {
  background: var(--color-primary);
  color: #0a0a0a;
}

/* --- Marquee --- */

.marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(160, 200, 20, 0.2);
  border-bottom: 1px solid rgba(160, 200, 20, 0.2);
  background: transparent;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}

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

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee span {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--color-neon);
  font-weight: 500;
  padding: 14px 0;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ==========================================================
   4. NOSOTROS
   ========================================================== */

.nosotros {
  background: var(--color-dark);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.nosotros-parallax-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 48px;
}

.nosotros-text {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: -0.02em;
  max-width: 900px;
}

.nosotros-word {
  display: inline-block;
  color: rgba(255, 255, 255, 0.15);
  transition: color 0.3s ease;
  margin-right: 0.2em;
}

.nosotros-word.is-lit {
  color: var(--color-white);
}

.nosotros-img {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  border-radius: 8px;
  will-change: transform;
}

.nosotros-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nosotros-img--1 {
  width: clamp(150px, 20vw, 280px);
  height: clamp(190px, 25vw, 350px);
  top: 8%;
  left: 5%;
  border-radius: 8px;
}

.nosotros-img--2 {
  width: clamp(130px, 18vw, 250px);
  height: clamp(165px, 22vw, 310px);
  top: 5%;
  right: 8%;
  border-radius: 8px;
}

.nosotros-img--3 {
  width: clamp(140px, 17vw, 240px);
  height: clamp(175px, 22vw, 300px);
  bottom: 15%;
  left: 8%;
  border-radius: 8px;
}

.nosotros-img--4 {
  width: clamp(130px, 16vw, 230px);
  height: clamp(165px, 20vw, 290px);
  bottom: 10%;
  right: 5%;
  border-radius: 8px;
}

.nosotros .container {
  padding-top: 0;
  padding-bottom: 120px;
}

.nosotros-desc {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.85;
  font-weight: 400;
  font-size: 1.35rem;
}

.nosotros-word--sm {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-right: 0.15em;
}

/* ==========================================================
   5. SERVICIOS SHOWCASE (index)
   ========================================================== */

.servicios-showcase {
  background: #fff;
  padding: 120px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.servicios-showcase__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
}

.servicios-showcase__mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 920px;
  width: 100%;
  margin-bottom: 40px;
}

.servicios-showcase__mosaic a {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  background: #0a0a0a;
  outline: none;
}

.servicios-showcase__mosaic a:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-primary);
}

.servicios-showcase__mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.02);
  transition: transform 0.55s var(--ease-out-expo), filter 0.45s ease;
}

.servicios-showcase__mosaic a:hover img,
.servicios-showcase__mosaic a:focus-visible img {
  transform: scale(1.06);
  filter: saturate(1) contrast(1);
}

.servicios-word {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(0, 0, 0, 0.12);
  transition: color 0.3s ease;
}

.servicios-word.is-lit {
  color: #0a0a0a;
}

.servicios-showcase__sub {
  color: #555;
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 400;
  font-style: normal;
  margin-bottom: 40px;
  line-height: 1.55;
  max-width: 520px;
  letter-spacing: 0.02em;
}

.btn-dark {
  display: inline-block;
  padding: 16px 40px;
  background: #0a0a0a;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-dark:hover {
  background: var(--color-primary);
  color: #0a0a0a;
}

/* ==========================================================
   5b. SERVICIOS PAGE (grid)
   ========================================================== */

.servicios {
  background: var(--color-black);
  color: var(--color-white);
  padding: 120px 0;
}

.servicios h2 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
  margin-bottom: 80px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.service-card {
  background: var(--color-gray-light);
  border: 1px solid rgba(160, 200, 20, 0.08);
  padding: 0;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(120px, 34%) 1fr;
  align-items: stretch;
  gap: 0;
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

.service-card__visual {
  position: relative;
  min-height: 200px;
  background: var(--color-black);
  overflow: hidden;
}

.service-card__visual img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) contrast(1.05) brightness(0.92);
  transition: filter 0.55s ease, transform 0.65s var(--ease-out-expo);
}

.service-card__main {
  display: grid;
  grid-template-rows: auto 0fr;
  min-width: 0;
  min-height: 0;
  transition: grid-template-rows 0.6s ease;
}

.service-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px 20px;
}

.service-card__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.5s ease;
  color: var(--color-white);
  font-size: 1.2rem;
}

.service-card__body {
  overflow: hidden;
  min-height: 0;
}

.service-card__body-inner {
  padding: 0 32px 28px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s, padding-top 0.5s ease;
}

.service-card:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.02);
  z-index: 2;
  box-shadow: 0 20px 60px rgba(160, 200, 20, 0.2);
}

.service-card:hover .service-card__main {
  grid-template-rows: auto 1fr;
}

.service-card:hover .service-card__visual img {
  filter: saturate(1) contrast(1) brightness(1);
  transform: scale(1.06);
}

.service-card:hover .service-card__number {
  color: rgba(0, 0, 0, 0.5);
}

.service-card:hover .service-card__title {
  color: var(--color-black);
}

.service-card:hover .service-card__arrow {
  background: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-neon);
  transform: rotate(45deg);
}

.service-card:hover .service-card__body-inner {
  padding-top: 24px;
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover .service-card__desc {
  color: rgba(0, 0, 0, 0.7);
}

.service-card:hover .service-card__tags li {
  background: rgba(0, 0, 0, 0.15);
  color: var(--color-black);
  border-color: rgba(0, 0, 0, 0.2);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--color-neon);
  transition: height 0.5s ease;
}

.service-card:hover::before {
  height: 100%;
  background: var(--color-black);
}

.service-card__number {
  color: var(--color-neon);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 16px;
  opacity: 0.6;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-card__desc {
  color: var(--color-gray);
  margin-bottom: 20px;
  line-height: 1.65;
  font-weight: 400;
  font-size: 1.12rem;
  letter-spacing: 0.012em;
}

.service-card__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-card__tags li {
  background: transparent;
  color: var(--color-neon);
  padding: 4px 14px;
  border: 1px solid rgba(160, 200, 20, 0.2);
  font-size: 0.7rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all var(--transition-speed);
}

/* ==========================================================
   6. PORTAFOLIO (sticky scroll)
   ========================================================== */

.portafolio-sticky {
  background: var(--color-black);
  padding: 0;
}

.portafolio-sticky__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1440px;
  margin: 0 auto;
}

.portafolio-sticky__left {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
}

.portafolio-sticky__left h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  margin-bottom: 20px;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.portafolio-sticky__left p {
  color: var(--color-gray);
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 400;
  max-width: 350px;
  letter-spacing: 0.02em;
  line-height: 1.55;
}

.portafolio-sticky__right {
  padding: 120px 48px;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.work-item {
  display: flex;
  flex-direction: column;
  gap: 24px;
  cursor: pointer;
}

.work-item__img {
  overflow: hidden;
  border-radius: 12px;
  width: 100%;
  height: 400px;
  will-change: transform;
  transition: transform 0.15s ease-out;
}

.work-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-item:hover .work-item__img img {
  transform: scale(1.03);
  transition: transform 0.6s ease;
}

@media (hover: none) {
  .work-item:active .work-item__img img {
    transform: scale(1.03);
    transition: transform 0.45s ease;
  }
}

.work-item__info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  color: var(--color-white);
}

.work-item__info p {
  color: var(--color-gray);
  font-family: var(--font-body);
  font-size: 1.18rem;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 12px;
  letter-spacing: 0.015em;
}

.work-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-item__tags span {
  font-size: 0.75rem;
  color: var(--color-neon);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  background: rgba(160, 200, 20, 0.1);
  padding: 4px 12px;
  border: 1px solid rgba(160, 200, 20, 0.2);
}

/* Logos clientes: uno por uno al scroll (columna, como los work-item) */
.portafolio-sticky__right.clients-logos-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(72px, 12vh, 120px);
  width: 100%;
}

.client-logo-cell {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  min-height: min(58vh, 480px);
  padding: 20px 24px;
  background: transparent;
  border: none;
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

/* Misma lógica que .work-item__img: rotación suave según scroll (initWorkRotation) */
.client-logo-cell__tilt {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  will-change: transform;
  transition: transform 0.15s ease-out;
}

.client-logo-cell__img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  filter: grayscale(100%);
  opacity: 0.72;
  transition: filter 0.4s ease, opacity 0.4s ease, transform 0.45s ease;
}

/* Fondo blanco del PNG sobre negro: multiply hace que el blanco “desaparezca” y quede solo la marca */
.portafolio-sticky .client-logo-cell__img {
  mix-blend-mode: multiply;
}

.client-logo-cell:hover .client-logo-cell__img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.04);
}

@media (hover: none) {
  .client-logo-cell:active .client-logo-cell__img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.03);
  }
}

/* --- Clients carousel --- */

.clients-section {
  background: #fff;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}

.clients-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-black);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 40px;
  font-weight: 500;
}

.clients-marquee {
  overflow: hidden;
  width: 100%;
}

.clients-marquee__track {
  display: flex;
  align-items: center;
  gap: 60px;
  white-space: nowrap;
  animation: clientsScroll 24s linear infinite;
}

.clients-marquee__track:hover {
  animation-play-state: paused;
}

.client-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.4s ease;
}

.client-logo:hover {
  opacity: 1;
}

.client-logo-img {
  height: 90px;
  width: auto;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.4s ease;
  filter: grayscale(100%);
}

.client-logo-img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes clientsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- Lightbox --- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

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

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(160, 200, 20, 0.2);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: 1px solid rgba(160, 200, 20, 0.3);
  color: var(--color-neon);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed);
}

.lightbox-close:hover {
  background: var(--color-neon);
  color: var(--color-black);
}

/* ==========================================================
   6b. PHRASE SECTIONS
   ========================================================== */

.phrase-section {
  background: #fff;
  padding: 120px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

/* ==========================================================
   6c. PAGE HERO (internal pages)
   ========================================================== */

.page-hero {
  min-height: 100vh;
  background: #fff;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-height) + 60px) 48px 80px;
}

/* ==========================================================
   6e. STACK CARDS (portafolio page)
   ========================================================== */

.stack-cards {
  background: #fff;
  padding: 80px 0 0;
}

.stack-cards__wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 48px;
}

.stack-card {
  position: sticky;
  top: 100px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.stack-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.stack-card__img {
  overflow: hidden;
  height: 400px;
}

.stack-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.stack-card:hover .stack-card__img img {
  transform: scale(1.03);
}

.stack-card__info {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.stack-card__info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #0a0a0a;
  margin: 0;
}

.stack-card__info p {
  display: none;
}

.stack-card__tags {
  display: flex;
  gap: 8px;
}

.stack-card__tags span {
  font-size: 0.7rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  font-family: var(--font-display);
}

@media (max-width: 767px) {
  .stack-cards__wrapper {
    padding: 0 24px;
  }

  .stack-card {
    top: 80px;
  }
}

/* ==========================================================
   6d. ABOUT CONTENT (nosotros page)
   ========================================================== */

.about-content {
  background: #fff;
  padding: 100px 0;
}

.about-content--dark {
  background: var(--color-black);
}

.about-content__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-content__layout--reverse {
  direction: rtl;
}

.about-content__layout--reverse > * {
  direction: ltr;
}

.about-content__text {
  padding-top: 20px;
}

.about-lead {
  font-family: var(--font-body);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 24px;
  color: #0a0a0a;
  letter-spacing: 0.015em;
}

.about-content--dark .about-lead {
  color: var(--color-white);
}

.about-content__text p {
  color: #555;
  font-family: var(--font-body);
  font-size: 1.22rem;
  font-weight: 400;
  line-height: 1.65;
  margin-bottom: 20px;
  letter-spacing: 0.012em;
}

.about-content--dark .about-content__text p {
  color: var(--color-gray);
}

.about-content__img {
  overflow: hidden;
  border-radius: 8px;
}

.about-content__img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.about-content__img:hover img {
  transform: scale(1.03);
}

@media (max-width: 767px) {
  .about-content__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-content__layout--reverse {
    direction: ltr;
  }

  .about-content {
    padding: 60px 0;
  }
}

.page-hero__layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 60px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #0a0a0a;
}

.page-hero__title .accent {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--color-primary);
  display: inline-block;
  letter-spacing: -0.02em;
}

.page-hero__desc {
  max-width: 380px;
  flex-shrink: 0;
}

.page-hero__desc p {
  color: #555;
  font-family: var(--font-body);
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1.55;
  margin-bottom: 20px;
  letter-spacing: 0.015em;
}

.page-hero__desc p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .page-hero {
    padding: calc(var(--nav-height) + 40px) 24px 60px;
  }

  .page-hero__layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .page-hero__desc {
    max-width: 100%;
  }
}

.phrase-section--dark {
  background: var(--color-black);
}

.phrase-content {
  max-width: 1000px;
  text-align: center;
}

.phrase-text {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #0a0a0a;
}

.phrase-section--dark .phrase-text {
  color: var(--color-white);
}

.phrase-section--dark .nosotros-word {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  color: rgba(255, 255, 255, 0.15);
}

.phrase-section--dark .nosotros-word.is-lit {
  color: var(--color-white);
}

.phrase-section--dark .nosotros-word.phrase-accent.is-lit {
  color: var(--color-neon);
  font-style: italic;
}

/* Acentos en frases: serif itálica vs bloque sans en .phrase-text */
.phrase-accent {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: 1.07em;
  color: var(--color-primary);
  display: inline-block;
  letter-spacing: -0.02em;
}

.phrase-word {
  display: inline-block;
  color: rgba(0, 0, 0, 0.12);
  transition: color 0.3s ease;
  margin-right: 0.15em;
}

.phrase-word.is-lit {
  color: #0a0a0a;
}

.phrase-word.phrase-accent.is-lit {
  color: var(--color-primary);
  font-style: italic;
}

.phrase-section--dark .phrase-accent {
  color: var(--color-neon);
}

/* Misma pareja tipográfica en títulos de sección (sans + palabra serif) */
.title-serif-accent {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
}

.contacto h2 .title-serif-accent,
.servicios h2 .title-serif-accent,
.portafolio-sticky__left h2 .title-serif-accent {
  color: var(--color-neon);
}

/* ==========================================================
   7. CONTACTO
   ========================================================== */

.contacto {
  background: var(--color-black);
  padding: 120px 0;
  position: relative;
}

.contacto::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(160, 200, 20, 0.05) 0%, transparent 70%);
  bottom: 0;
  right: 0;
  pointer-events: none;
}

.contacto h2 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 80px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contacto-address h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-neon);
  margin-bottom: 8px;
}

.contacto-address p {
  color: var(--color-gray);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
}

.contacto-phone a,
.contacto-email a {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  transition: color var(--transition-speed), text-shadow var(--transition-speed);
}

.contacto-phone a:hover,
.contacto-email a:hover {
  color: var(--color-neon);
  text-shadow: 0 0 12px rgba(191, 255, 0, 0.3);
}

.contacto-social {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.contacto-social a {
  color: var(--color-gray);
  transition: color var(--transition-speed), filter var(--transition-speed);
}

.contacto-social a:hover {
  color: var(--color-neon);
  filter: drop-shadow(0 0 8px rgba(191, 255, 0, 0.4));
}

/* --- Form --- */

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-white);
  transition: border-color 0.5s ease;
  outline: none;
  border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--color-neon);
  box-shadow: 0 1px 0 0 var(--color-neon);
}

.form-group.error input,
.form-group.error textarea {
  border-bottom-color: #ff3333;
}

.form-group .error-message {
  color: #ff3333;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.form-confirmation {
  text-align: center;
  padding: 30px;
  border: 1px solid rgba(160, 200, 20, 0.3);
  color: var(--color-neon);
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ==========================================================
   8. FOOTER
   ========================================================== */

.footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(160, 200, 20, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand img {
  height: 45px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 6px rgba(160, 200, 20, 0.2));
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color var(--transition-speed);
}

.footer-nav a:hover {
  color: var(--color-neon);
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.3);
  transition: color var(--transition-speed), filter var(--transition-speed);
}

.footer-social a:hover {
  color: var(--color-neon);
  filter: drop-shadow(0 0 8px rgba(191, 255, 0, 0.4));
}

/* Staggered */
.footer-grid > *:nth-child(1) { transition-delay: 0s; }
.footer-grid > *:nth-child(2) { transition-delay: 0.15s; }
.footer-grid > *:nth-child(3) { transition-delay: 0.3s; }

/* ==========================================================
   9. RESPONSIVE
   ========================================================== */

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

  /* Nav */
  .navbar { padding: 16px 20px; }
  .navbar.scrolled { padding: 10px 20px; }
  .nav-logo img { height: 80px; }
  .navbar.scrolled .nav-logo img { height: 36px; }
  .nav-toggle { width: 44px; height: 44px; }
  .side-panel { width: 100%; max-width: 100%; }
  .side-panel__links a { font-size: 2.2rem; }

  /* Hero */
  .hero {
    padding: var(--nav-height) 0 40px;
    justify-content: flex-end;
    min-height: 100svh;
  }

  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
    gap: 30px;
  }

  .hero-headline {
    font-size: clamp(2.5rem, 12vw, 4rem);
    text-align: left;
  }

  .hero-tagline {
    text-align: left;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
  }

  .hero--editorial {
    padding-top: calc(var(--nav-height) + 8px);
    padding-bottom: 40px;
    justify-content: flex-start;
  }

  .hero-editorial__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 12px 20px 32px;
    min-height: auto;
    gap: 28px;
  }

  .hero-editorial__brand {
    grid-column: 1;
    grid-row: auto;
    order: 1;
  }

  .hero-editorial__intro {
    grid-column: 1;
    grid-row: auto;
    align-self: start;
    max-width: none;
    order: 3;
  }

  .hero-editorial__right {
    grid-column: 1;
    grid-row: auto;
    align-self: start;
    order: 2;
  }

  .hero-editorial__headline {
    max-width: none;
  }

  .navbar--home:not(.scrolled) .nav-logo img {
    height: 44px;
  }

  /* Nosotros: imágenes compactas en esquinas + canal central para el titulo (sin encimar) */
  .nosotros-parallax-wrapper {
    padding: 72px 16px 96px;
    min-height: auto;
    align-items: flex-start;
  }

  .nosotros-parallax-wrapper .nosotros-img {
    width: clamp(52px, 15vw, 86px);
    height: clamp(66px, 19vw, 102px);
  }

  .nosotros-img--1 {
    top: 10%;
    left: 0;
  }

  .nosotros-img--2 {
    top: 8%;
    right: 0;
    left: auto;
  }

  .nosotros-img--3 {
    bottom: 6%;
    left: 0;
  }

  .nosotros-img--4 {
    bottom: 4%;
    right: 0;
    left: auto;
  }

  .nosotros-text {
    font-size: clamp(1.65rem, 6.8vw, 2.65rem);
    max-width: 100%;
    padding: clamp(88px, 22vw, 120px) clamp(72px, 20vw, 104px) 0;
    margin: 0 auto;
    line-height: 1.08;
    box-sizing: border-box;
  }

  .nosotros-word {
    margin-right: 0.12em;
  }
  .nosotros-word--sm { font-size: clamp(1.5rem, 8vw, 2.5rem); }
  .nosotros .container { padding-bottom: 80px; }

  /* Servicios showcase */
  .servicios-showcase { padding: 80px 20px; }
  .servicios-word { font-size: clamp(2.5rem, 12vw, 4rem); }
  .servicios-showcase__mosaic {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 28px;
  }

  /* Servicios — tarjetas con imagen: columna única en móvil */
  .servicios { padding: 80px 0; }
  .servicios h2 { margin-bottom: 48px; }
  .service-card {
    grid-template-columns: 1fr;
    transform: none;
  }
  .service-card:hover {
    transform: none;
  }
  .service-card__visual {
    min-height: 0;
    max-height: 220px;
  }
  .service-card__visual img {
    min-height: 180px;
    max-height: 220px;
  }
  .service-card__header {
    padding: 22px 20px 12px;
  }
  .service-card__body-inner {
    padding: 0 20px 24px;
  }

  /* Portafolio: misma transición que desktop (sticky + tarjetas completas, tema oscuro) */
  .portafolio-sticky {
    background: var(--color-black);
    overflow: visible;
  }
  .portafolio-sticky__layout {
    grid-template-columns: 1fr;
  }
  .portafolio-sticky__left {
    position: sticky;
    top: calc(72px + env(safe-area-inset-top, 0px));
    align-self: start;
    z-index: 3;
    height: auto;
    min-height: 0;
    padding: 28px 20px 24px;
    margin: 0;
    background: linear-gradient(
      180deg,
      var(--color-black) 0%,
      var(--color-black) 78%,
      rgba(10, 10, 10, 0) 100%
    );
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .portafolio-sticky__left h2 {
    font-size: clamp(2.25rem, 9vw, 3.25rem);
    color: var(--color-white);
    margin-bottom: 12px;
  }
  .portafolio-sticky__left p {
    color: var(--color-gray);
    font-size: 1.2rem;
    max-width: 100%;
  }
  .portafolio-sticky__right {
    padding: 8px 20px 100px;
    gap: 72px;
  }

  .portafolio-sticky__right.clients-logos-grid {
    gap: clamp(40px, 9vh, 72px);
    align-items: stretch;
  }

  .client-logo-cell {
    max-width: none;
    min-height: min(44vh, 340px);
    padding: 16px 14px;
  }

  .work-item {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 0;
    border-bottom: none;
  }
  .work-item__img {
    width: 100%;
    height: auto;
    flex-shrink: 0;
    border-radius: 12px;
    order: 0;
  }
  .work-item__img img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  .work-item__info {
    order: 0;
    flex: none;
  }
  .work-item__info h3 {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
    color: var(--color-white);
    margin-bottom: 8px;
  }
  .work-item__info p {
    display: block;
    font-size: 1.05rem;
  }
  .work-item__tags {
    display: flex;
  }

  /* Phrases */
  .phrase-section { padding: 80px 20px; min-height: auto; }
  .phrase-text { font-size: clamp(2rem, 8vw, 3rem); }
  .phrase-section--dark .nosotros-word { font-size: clamp(2rem, 8vw, 3rem); }

  /* Page hero (internal pages) */
  .page-hero {
    padding: calc(var(--nav-height) + 20px) 20px 40px;
    min-height: 100svh;
    align-items: flex-end;
  }
  .page-hero__layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }
  .page-hero__title { font-size: clamp(2.5rem, 11vw, 4rem); }
  .page-hero__desc { max-width: 100%; }
  .page-hero__desc p { font-size: 1.26rem; }

  /* About content */
  .about-content { padding: 60px 0; }
  .about-content__layout { grid-template-columns: 1fr; gap: 30px; }
  .about-content__layout--reverse { direction: ltr; }
  .about-lead { font-size: 1.4rem; }
  .about-content__text p { font-size: 1.18rem; }

  /* Stack cards */
  .stack-cards__wrapper { padding: 0 20px; }
  .stack-card { top: 80px; }

  /* Contacto */
  .contacto { padding: 80px 0; }
  .contacto h2 { margin-bottom: 40px; }

  /* Footer */
  .footer { padding: 60px 0 30px; }

  /* Grid fallback */
  .portafolio-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) and (max-height: 700px) {
  .hero:not(.hero--editorial) {
    min-height: 100vh;
  }

  .page-hero {
    min-height: 100vh;
  }
}

@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contacto-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-nav ul { flex-direction: row; gap: 20px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-headline { font-size: clamp(3rem, 7vw, 5rem); }
  .page-hero__title { font-size: clamp(3rem, 6vw, 5rem); }
  .nosotros-text { font-size: clamp(2.5rem, 6vw, 4rem); }
  .portafolio-sticky__layout { gap: 20px; }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================
   10. SCROLL ANIMATIONS
   ========================================================== */

[data-animate] {
  opacity: 0;
  transform: translate3d(0, 42px, 0);
  transition:
    opacity var(--reveal-duration) var(--ease-out-expo) var(--reveal-delay, 0s),
    transform var(--reveal-duration) var(--ease-out-expo) var(--reveal-delay, 0s);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@supports (color: color-mix(in srgb, white, black)) {
  [data-scroll-color] {
    --lit: 0;
    transform: translate3d(0, calc((1 - var(--lit)) * 0.32em), 0);
    transition: transform 0.75s var(--ease-out-expo);
  }

  .nosotros .nosotros-word[data-scroll-color] {
    color: color-mix(
      in srgb,
      var(--color-white) calc(var(--lit) * 100%),
      rgba(255, 255, 255, 0.15)
    );
    transition: transform 0.75s var(--ease-out-expo);
  }

  .nosotros .nosotros-word--sm[data-scroll-color] {
    color: color-mix(
      in srgb,
      var(--color-white) calc(var(--lit) * 100%),
      rgba(255, 255, 255, 0.15)
    );
    transition: transform 0.75s var(--ease-out-expo);
  }

  .phrase-section:not(.phrase-section--dark) .phrase-word[data-scroll-color]:not(.phrase-accent) {
    color: color-mix(
      in srgb,
      #0a0a0a calc(var(--lit) * 100%),
      rgba(0, 0, 0, 0.12)
    );
    transition: transform 0.75s var(--ease-out-expo);
  }

  .phrase-section:not(.phrase-section--dark) .phrase-word.phrase-accent[data-scroll-color] {
    color: color-mix(
      in srgb,
      var(--color-primary) calc(var(--lit) * 100%),
      rgba(160, 200, 20, 0.22)
    );
    transition: transform 0.75s var(--ease-out-expo);
  }

  .phrase-section--dark .nosotros-word[data-scroll-color]:not(.phrase-accent) {
    color: color-mix(
      in srgb,
      var(--color-white) calc(var(--lit) * 100%),
      rgba(255, 255, 255, 0.15)
    );
    transition: transform 0.75s var(--ease-out-expo);
  }

  .phrase-section--dark .nosotros-word.phrase-accent[data-scroll-color] {
    color: color-mix(
      in srgb,
      var(--color-neon) calc(var(--lit) * 100%),
      rgba(191, 255, 0, 0.2)
    );
    transition: transform 0.75s var(--ease-out-expo);
  }

  .servicios-showcase .servicios-word[data-scroll-color] {
    color: color-mix(
      in srgb,
      #0a0a0a calc(var(--lit) * 100%),
      rgba(0, 0, 0, 0.12)
    );
    transition: transform 0.75s var(--ease-out-expo);
  }
}
