/* =========================================================
   VISUAL MEDIA DIGITAL — Estilos globales
   (header, footer, botones, tipografía, a11y — compartido
   por todas las páginas del sitio)
   ========================================================= */

:root {
  --color-bg: #0a0a0a;
  --color-bg-alt: #131210;
  --color-black: #000000;
  --color-accent: #e6923d;
  --color-accent-dark: #c97a2b;
  --color-text: #ffffff;
  --color-text-muted: #c7c7c7;
  --section-border-color: #e7e0e094;
  --font-main: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --container-width: 1280px;
  --header-height: 78px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.border-bottom {
  border-bottom: 1px solid var(--section-border-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 5px 25px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.btn-outline {
  border: 1.5px solid var(--color-text);
  color: var(--color-text);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #111;
  transform: translateY(-2px);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.98) 0%,
    rgba(0, 0, 0, 0.84) 28%,
    rgba(0, 0, 0, 0.5) 56%,
    rgba(0, 0, 0, 0.18) 76%,
    rgba(0, 0, 0, 0.05) 90%,
    rgba(0, 0, 0, 0) 100%
  );
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 0;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled,
body.nav-open .site-header {
  background: var(--color-black);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  height: 44px;
  width: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
  transition: color 0.2s ease;
  padding: 6px 0;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--color-text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  flex: 0 0 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

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

/* =========================================================
   ACCESIBILIDAD (widget flotante)
   ========================================================= */
.a11y-btn {
  position: fixed;
  top: 100px;
  right: 0;
  z-index: 200;
  width: 46px;
  height: 46px;
  background: var(--color-accent);
  border: none;
  border-radius: 8px 0 0 8px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease;
}

.a11y-btn:hover { background: var(--color-accent-dark); }

.a11y-btn svg { width: 24px; height: 24px; }

.a11y-panel[hidden] { display: none; }

.a11y-panel {
  position: fixed;
  top: 150px;
  right: 12px;
  z-index: 200;
  background: #1c1b18;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 200px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.a11y-panel p {
  margin: 0 0 4px;
  font-weight: 600;
  color: var(--color-accent);
  font-size: 0.85rem;
}

.a11y-panel button {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  text-align: left;
}

.a11y-panel button:hover { background: var(--color-accent); color: #111; }

body.a11y-contrast { filter: contrast(1.2) brightness(1.05); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease;
}

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

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.28) 0%,
    rgba(0, 0, 0, 0.48) 32%,
    rgba(0, 0, 0, 0.76) 48%,
    rgba(0, 0, 0, 0.9) 70%,
    rgba(0, 0, 0, 0.98) 100%
  );
}

.hero-content {
  text-align: center;
  padding-top: 60px;
  padding-bottom: clamp(42px, 7vh, 76px);
}

.hero-title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.28em;
  margin: 0 auto;
  max-width: none;
  color: var(--color-accent);
  font-size: clamp(2.25rem, 4vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.hero-title-main {
  font-weight: 700;
}

.hero-title-digital {
  font-weight: 300;
}

.hero-title img {
  width: 100%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.4));
}

.hero-shine {
  display: block;
  width: min(700px, 90%);
  margin: -66px auto -66px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  max-width: 900px;
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* =========================================================
   TITULOS DE SECCION ("Donde las ideas se...")
   ========================================================= */
.section-title-strip {
  background: var(--color-black);
  padding: 12px 0 16px;
}

.title-line-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 100%;
}

.title-line-wrap h2 {
  flex: 0 0 auto;
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 600;
  white-space: nowrap;
}

.title-line {
  flex: 1 1 auto;
  position: relative;
}

.title-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 100%;
  height: 5px;
  background: url('../img/inicio/linea-servicio.png') center / 100% 100% no-repeat;
}

.title-line-wrap .title-line:first-child::after {
  right: -1px;
  transform: translateY(-50%) scaleX(-1);
}

.title-line-wrap .title-line:last-child::after {
  left: -1px;
  transform: translateY(-50%);
}

/* =========================================================
   GRID DE SERVICIOS (Edicion / Grafismo / Etalonaje / Pro Tools / Data Flow)
   ========================================================= */
.services-grid {
  --service-band-height: clamp(72px, 6.5vw, 132px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--color-black);
}

.service-col {
  position: relative;
  height: clamp(420px, 40vw, 820px);
  overflow: hidden;
  display: block;
  background: var(--color-black);
  
}

.service-col-bg {
  position: absolute;
  top: var(--service-band-height);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  display: block;
  background-size: cover;
  background-position: 100% center;
  transform-origin: 100% center;
  transition: transform 0.5s ease;
}

.service-col::before {
  content: "";
  position: absolute;
  top: var(--service-band-height);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
}

.service-heading {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  height: var(--service-band-height);
  display: block;
  background: var(--color-black);
}

.service-decoration {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 30px;
  overflow: hidden;
  pointer-events: none;
}

.service-line {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: translateX(-100%);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.service-triangle {
  position: absolute;
  right: 1px;
  bottom: 0;
  width: clamp(10px, 1vw, 15px);
  height: auto;
  opacity: 0.65;
  filter: saturate(0.65) brightness(0.9);
  transition: opacity 0.5s ease, filter 0.5s ease;
}

.service-label {
  position: absolute;
  right: 18px;
  bottom: 10px;
  left: 0;
  padding-left: 18px;
  font-weight: 600;
  font-size: clamp(1rem, 1.2vw, 1.5rem);
  line-height: 1.15;
  transform: translateX(0);
  transition: transform 0.5s ease;
}

.service-col:hover .service-col-bg,
.service-col:focus-visible .service-col-bg {
  transform: scale(1.08);
}

.service-col:hover .service-line,
.service-col:focus-visible .service-line {
  opacity: 1;
  transform: translateX(0);
}

.service-col:hover .service-label,
.service-col:focus-visible .service-label {
  transform: translateX(18px);
}

.service-col:hover .service-triangle,
.service-col:focus-visible .service-triangle {
  opacity: 1;
  filter: saturate(1) brightness(1);
}

/* =========================================================
   ESPACIOS
   ========================================================= */
.espacios,
.producciones {
  background: var(--color-black);
  padding-bottom: 60px;
  position: relative;
}

.section-tag {
  display: inline-block;
  position: relative;
  background: var(--color-black);
  padding: 14px 34px 20px 24px;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
  z-index: 2;
}

.section-tag > span:first-child {
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
  z-index: 2;
  transform: translateX(0);
  transition: transform 0.5s ease;
}

.section-tag::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--color-accent);
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
}

.section-tag--ramp {
  display: flex;
  align-items: flex-end;
  position: absolute;
  top: -1px;
  left: 0;
  z-index: 2;
  padding: 0 6% 10px 15px;
  background: transparent;
  clip-path: none;
}

.section-tag--ramp::after { display: none; }

.section-tag--ramp::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--color-black);
  clip-path: polygon(0 0, 95% 0, 77% 100%, 0 100%);
}

.section-tag--carousel {
  display: inline-flex;
  align-items: flex-end;
  padding: 14px 22px 16px 15px;
  background: var(--color-black);
  clip-path: none;
}

.section-tag--carousel::after { display: none; }

.section-tag.section-tag--carousel .section-tag-decoration {
  right: 0;
}

.section-tag .section-tag-decoration {
  position: absolute;
  right: 15%;
  bottom: 0;
  left: 0;
  z-index: 3;
  height: 30px;
  overflow: hidden;
  pointer-events: none;
}

.section-tag-line {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: translateX(-100%);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.section-tag-triangle {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 4;
  width: 15px;
  height: 15px;
  opacity: 0.65;
  filter: saturate(0.65) brightness(0.9);
  transition: opacity 0.5s ease, filter 0.5s ease;
}

.espacios:has(.espacios-slider:hover) .section-tag-line,
.producciones:has(.production-slider:hover) .section-tag-line,
.section-tag:focus-visible .section-tag-line {
  opacity: 1;
  transform: translateX(0);
}

.espacios:has(.espacios-slider:hover) .section-tag > span:first-child,
.producciones:has(.production-slider:hover) .section-tag > span:first-child,
.section-tag:focus-visible > span:first-child {
  transform: translateX(12px);
}

.espacios:has(.espacios-slider:hover) .section-tag-triangle,
.producciones:has(.production-slider:hover) .section-tag-triangle,
.section-tag:focus-visible .section-tag-triangle {
  opacity: 1;
  filter: saturate(1) brightness(1);
}

@media (hover: none) {
  .section-tag-line {
    opacity: 1;
    transform: translateX(0);
  }

  .service-triangle,
  .section-tag-triangle {
    opacity: 1;
    filter: none;
  }
}

.espacios-image-frame {
  overflow: hidden;
  margin-top: -2px;
}

.espacios-slider {
  position: relative;
  height: clamp(300px, 30vw, 450px);
  overflow: hidden;
  background: var(--color-black);
}

.espacios-slider-track {
  display: flex;
  height: 100%;
  transform: translateX(0);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.espacios-slide-frame {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
}

.espacios-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.espacios-slide-frame:nth-child(2) .espacios-image {
  background-position: 46% center;
}

.espacios-slide-frame:nth-child(3) .espacios-image {
  background-position: 54% center;
}

.espacios-slider:hover .espacios-image {
  transform: scale(1.08);
}

.espacios-slider-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 50%;
  background: rgb(0 0 0 / 42%);
  color: var(--color-white);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(5px);
}

.espacios-slider-prev {
  left: clamp(14px, 3vw, 42px);
}

.espacios-slider-next {
  right: clamp(14px, 3vw, 42px);
}

.espacios-slider-control::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.espacios-slider-prev::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.espacios-slider-next::before {
  transform: translate(-65%, -50%) rotate(45deg);
}

.espacios-slider:hover .espacios-slider-control,
.espacios-slider:focus-within .espacios-slider-control {
  opacity: 1;
}

.espacios-slider-control:hover,
.espacios-slider-control:focus-visible {
  border-color: var(--color-accent);
  background: rgb(0 0 0 / 72%);
  outline: 2px solid transparent;
}

.espacios-slider-dots {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 9px;
  pointer-events: none;
}

.espacios-slider-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 85%);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transition: width 0.3s ease, border-radius 0.3s ease, background-color 0.3s ease;
}

.espacios-slider-dot.is-active {
  width: 28px;
  border-color: var(--color-accent);
  border-radius: 999px;
  background: var(--color-accent);
}

/* =========================================================
   PRODUCCIONES — slider infinito de carteles
   ========================================================= */
.production-slider {
  --slider-gap: clamp(36px, 4vw, 74px);
  position: relative;
  overflow: hidden;
  padding: clamp(10px, 3vw, 20px) 0;
  background: var(--color-black);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.production-slider.is-dragging { cursor: grabbing; }

.production-slider-group a,
.production-slider-group img,
.posters-carousel .poster-item,
.posters-carousel img {
  -webkit-user-drag: none;
  user-select: none;
}

.production-slider-group img,
.posters-carousel img {
  pointer-events: none;
}

.production-slider-glow {
  position: absolute;
  inset: -30% 5%;
  background-image: url('../img/inicio/degradado-trasero.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 75% 120%;
  opacity: 0.34;
  filter: blur(16px);
  z-index: 0;
  pointer-events: none;
}

.production-slider-track {
  position: relative;
  z-index: 1;
  display: flex;
  width: max-content;
  animation: production-slider-scroll var(--home-productions-duration, 95s) linear infinite;
  will-change: transform;
}

.production-slider:hover .production-slider-track,
.production-slider:focus-within .production-slider-track {
  animation-play-state: paused;
}

.production-slider-group {
  display: flex;
  align-items: center;
  gap: var(--slider-gap);
  padding-right: var(--slider-gap);
}

.production-slider-group a {
  position: relative;
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

.production-slider-group img {
  position: relative;
  width: clamp(170px, 14vw, 290px);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  flex: 0 0 auto;
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.5s ease;
  will-change: transform;
}

@media (hover: hover) {
  .production-slider-group a:hover {
    z-index: 2;
  }

  .production-slider-group a:hover img {
    transform: scale(1.08);
  }
}

.production-slider-group a:focus-visible {
  z-index: 2;
  outline: 2px solid var(--color-accent);
  outline-offset: 5px;
}

.production-slider-group a:focus-visible img {
  transform: scale(1.08);
}

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

.production-slider-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18%;
  z-index: 2;
  pointer-events: none;
}

.production-slider-fade-left {
  left: 0;
  background: linear-gradient(90deg, var(--color-black) 0%, rgba(0, 0, 0, 0.92) 28%, rgba(0, 0, 0, 0.55) 62%, transparent 100%);
}

.production-slider-fade-right {
  right: 0;
  background: linear-gradient(270deg, var(--color-black) 0%, rgba(0, 0, 0, 0.92) 28%, rgba(0, 0, 0, 0.55) 62%, transparent 100%);
}

.production-slider-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: clamp(40px, 3.4vw, 52px);
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid rgba(224, 157, 71, 0.82);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: var(--color-white);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transform: translateY(-50%) scale(0.88);
  transition: opacity 220ms ease, transform 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.production-slider-control svg {
  width: 52%;
  height: 52%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.production-slider-prev { left: clamp(10px, 2vw, 30px); }
.production-slider-next { right: clamp(10px, 2vw, 30px); }

.production-slider:hover .production-slider-control,
.production-slider:focus-within .production-slider-control,
.production-slider-control:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.production-slider-control:hover,
.production-slider-control:focus-visible {
  border-color: var(--color-accent);
  outline: none;
  background: var(--color-accent);
}

@media (hover: none) {
  .production-slider-control {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
  }
}

/* =========================================================
   CTA — Comprometidos con la excelencia
   ========================================================= */
.cta {
  position: relative;
  padding: 90px 0;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0.58) 100%),
    var(--cms-background, url('../img/inicio/comprometidos.jpg')) center 54% / cover no-repeat;
}

.cta-content h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
}

.cta-content p {
  margin: 0 0 26px;
  color: var(--color-accent);
  font-weight: 600;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--color-bg-alt); 
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 15px 25px 0px 25px;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-logo { height: 44px; width: auto; }

.footer-divider {
  width: 1px;
  height: 75px;
  background: #d7d8d7;
}

.footer-contact-wrap {
  display: flex;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  fill: var(--color-accent);
  flex-shrink: 0;
}

.footer-bottom {
  padding: 16px 0;
}

.footer-bottom-inner {
  width: min(1000px, 92vw);
  margin: 0 auto;
  border-top: 1px solid var(--section-border-color);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.footer-credit {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.footer-credit svg {
  width: 18px;
  height: 18px;
  fill: var(--color-text);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-legal a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

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

/* =========================================================
   PAGE HERO — cabecera de páginas internas (Grafismo, Etalonaje...)
   ========================================================= */
.page-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.35) 100%);
}

.page-hero-vignette {
  position: absolute;
  inset: -15%;
  width: 130%;
  height: 130%;
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 70% auto;
  mix-blend-mode: multiply;
  opacity: 0.85;
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: 40px 0;
}

.page-hero-content h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
}

.page-hero-content p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.page-hero-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--color-accent);
  font-weight: 500;
}

.page-hero-tag::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 9px;
  border-color: transparent transparent transparent var(--color-accent);
  flex-shrink: 0;
}

/* =========================================================
   INFO BOX — recuadro con línea y triángulo de acento
   (Espacios, Sobre Nosotros)
   ========================================================= */
.info-box {
  position: relative;
  border: 1px solid var(--color-accent);
  padding: 40px;
  max-width: 520px;
}

.info-box::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 35%;
  height: 3px;
  background: var(--color-accent);
}

.info-box::after {
  content: "";
  position: absolute;
  bottom: -11px;
  left: -1px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 11px 11px;
  border-color: transparent transparent var(--color-accent) transparent;
}

.info-box .eyebrow {
  display: block;
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.info-box h2,
.info-box h3 {
  margin: 0 0 14px;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 700;
  color: var(--color-text);
}

.info-box p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.info-box .btn { margin-top: 26px; }

/* =========================================================
   SPLIT SECTION — foto + texto/logos a dos columnas
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-black);
}

.split-media {
  min-height: 480px;
  background-size: cover;
  background-position: center;
}

/* Data flow: imagen contenida, alineada con el inicio del texto. */
.technical-page.dataflow-page .split {
  align-items: stretch;
}

.technical-page.dataflow-page .split-media {
  align-self: stretch;
  width: calc(100% - clamp(56px, 7vw, 120px));
  min-height: 0;
  aspect-ratio: auto;
  margin: 60px auto;
}

.dataflow-media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 0.8vw, 14px);
}

.dataflow-media-item {
  min-width: 0;
  min-height: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Recorta el borde blanco integrado en la imagen de Edición. */
.edicion-page .split-media {
  position: relative;
  overflow: hidden;
  background-image: none !important;
  background-color: #06171c;
}

.edicion-page .split-media::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: url('../img/edicion/foto-texto.jpg') center / cover no-repeat;
}

.grafismo-page .split-media,
.etalonaje-page .split-media,
.protools-page .split-media {
  position: relative;
  overflow: hidden;
  background-image: none !important;
  background-color: #06171c;
}

.grafismo-page .split-media::before,
.etalonaje-page .split-media::before,
.protools-page .split-media::before {
  content: "";
  position: absolute;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.grafismo-page .split-media::before,
.etalonaje-page .split-media::before {
  inset: -2px;
}

.protools-page .split-media::before {
  top: 0;
  right: 0;
  bottom: -2px;
  left: 0;
}

.grafismo-page .split-media::before {
  background-image: var(--cms-background, url('../img/grafismo/foto-texto.jpg'));
}

.etalonaje-page .split-media::before {
  background-image: var(--cms-background, url('../img/etalonaje/foto-texto.jpg'));
}

.protools-page .split-media::before {
  background-image: var(--cms-background, url('../img/protools/foto-texto.jpg'));
}

.split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
}

.split-content h2 {
  margin: 0 0 16px;
  color: var(--color-accent);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 600;
}

.split-content p {
  margin: 0 0 36px;
  color: var(--color-text-muted);
  max-width: 540px;
  line-height: 1.8;
}

.dataflow-services {
  max-width: 580px;
  margin-bottom: 34px;
}

.dataflow-services h3 {
  margin: 0 0 14px;
  color: var(--color-accent);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 600;
}

.dataflow-services ul {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.dataflow-services li {
  position: relative;
  padding-left: 18px;
  color: var(--color-text-muted);
}

.dataflow-services li::before {
  content: '';
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
}

.split-content .dataflow-services-closing {
  margin: 0;
  font-weight: 500;
}

.etalonaje-offer {
  max-width: 560px;
  margin-top: 4px;
}

.etalonaje-offer h3 {
  margin: 0 0 14px;
  color: var(--color-accent);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
}

.split-content .etalonaje-offer p {
  margin-bottom: 0;
}

.logos-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.logos-row:last-child { margin-bottom: 0; }

.logos-row img {
  height: 40px;
  width: auto;
  transform: scale(1);
  transform-origin: center;
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .logos-row img:hover {
    transform: scale(1.07);
  }
}

.logos-row img:active {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .logos-row img,
  .logos-row img:hover,
  .logos-row img:active {
    transform: none;
    transition: none;
    will-change: auto;
  }
}

/* =========================================================
   LANGUAGE PILL (footer)
   ========================================================= */
.lang-pill-wrap {
  display: flex;
  justify-content: center;
  padding: 22px 0;
  background: var(--color-bg-alt);
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  background: transparent;
}

/* =========================================================
   GALERÍA CON CARRUSEL — foto grande + miniaturas
   (Etalonaje, Edición, Data Flow, Pro Tools)
   ========================================================= */
.gallery {
  background: var(--color-black);
  padding: 70px 24px 90px;
}

.gallery-main {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 22px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

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

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
  transition: background 0.2s ease;
}

.gallery-arrow:hover { background: var(--color-accent); }
.gallery-arrow svg { width: 22px; height: 22px; }
.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }

.gallery-thumbs {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.gallery-thumb {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.55;
  border: 2px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.gallery-thumb:hover { opacity: 0.85; }

.gallery-thumb.is-active {
  opacity: 1;
  border-color: var(--color-accent);
}

@media (max-width: 480px) {
  .gallery-thumbs { grid-template-columns: repeat(2, 1fr); }
  .gallery-arrow { width: 36px; height: 36px; }
  .gallery-arrow svg { width: 18px; height: 18px; }
}

/* =========================================================
   PAGE HERO — variante centrada (Sobre Nosotros)
   ========================================================= */
.page-hero.is-centered .page-hero-content {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.page-hero.is-centered .page-hero-tag { justify-content: center; }

/* =========================================================
   ABOUT ROW — bloques alternados foto/texto (Sobre Nosotros)
   ========================================================= */
.about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-black);
}

.about-row-media {
  min-height: 460px;
  background-size: cover;
  background-position: center;
}

.about-row-content {
  display: flex;
  align-items: center;
  padding: 20px;
}

.about-row .info-box,
.info-box-framed {
  border: 0;
  border-top: 1px solid var(--color-accent);
  border-right: 1px solid var(--color-accent);
  background:
    linear-gradient(var(--color-accent), var(--color-accent)) right bottom / 70% 1px no-repeat;
}

.about-row .info-box::before,
.info-box-framed::before {
  top: -4px;
  right: 0;
  left: 0;
  width: 50%;
  height: 4px;
  background: url('../img/inicio/linea-servicio.png') center / 100% 100% no-repeat;
}

.about-row .info-box::after,
.info-box-framed::after {
  bottom: -15px;
  left: 0;
  width: 15px;
  height: 15px;
  border: 0;
  background: url('../img/inicio/triangulo-servicio.png') center / 100% 100% no-repeat;
  transform: scaleX(-1);
}

.about-row.is-reverse .info-box {
  border-right: 0;
  border-left: 1px solid var(--color-accent);
  background:
    linear-gradient(var(--color-accent), var(--color-accent)) left bottom / 70% 1px no-repeat;
  text-align: right;
}

.about-row.is-reverse .info-box::before {
  right: 0;
  left: auto;
  transform: scaleX(-1);
}

.about-row.is-reverse .info-box::after {
  right: 0;
  left: auto;
  transform: none;
}

.about-row.is-reverse .about-row-media { order: 2; }
.about-row.is-reverse .about-row-content {
  order: 1;
  display: flex;
  justify-content: flex-end;
}

/* Edición y Etalonaje reutilizan los bloques de Sobre Nosotros. */
.edicion-page .edicion-row-media,
.etalonaje-page .etalonaje-row-media {
  position: relative;
  overflow: hidden;
  background-color: #06171c;
}

.edicion-page .edicion-row-media::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: var(--cms-background, url('../img/edicion/foto-texto.jpg')) center / cover no-repeat;
}

.etalonaje-page .etalonaje-row-media::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: var(--cms-background, url('../img/etalonaje/bloque-01.jpg')) center / cover no-repeat;
}

.edicion-page .info-box .logos-row,
.etalonaje-page .info-box .logos-row {
  justify-content: flex-start;
  margin: 28px 0 0;
}

.edicion-page .about-row.is-reverse .info-box .logos-row {
  justify-content: flex-end;
}

.etalonaje-page .about-row.is-reverse .etalonaje-services-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.etalonaje-page .about-row.is-reverse .etalonaje-services-list li {
  position: relative;
  padding-left: 18px;
  color: var(--color-white);
  font-size: 1rem;
  line-height: 1.75;
  text-align: justify;
}

.etalonaje-page .about-row.is-reverse .etalonaje-services-list li::after {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.about-banner img {
  width: 100%;
  display: block;
}

/* =========================================================
   CONTACTO — ubicaciones (mapas), transporte y formulario
   ========================================================= */
.locations {
  --location-header-height: clamp(86px, 6.2vw, 126px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  position: relative;
  background: #000;
}

.location-title-line {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 13px;
  overflow: hidden;
  pointer-events: none;
  
}

.location-title-line img {
  display: block;
  width: 50%;
  height: 4px;
}

.is-madrid-line img {
  margin-left: auto;
  transform: scaleX(-1);
}

.is-bcn-line img {
  margin-right: auto;
}

.location-col { position: relative; }

.location-col.is-madrid {
  background:
    linear-gradient(to bottom, transparent 0 93%, #000 98% 100%),
    radial-gradient(circle at 15% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 45%),
    radial-gradient(circle at top right, #000 0 30%, transparent 60%),
    linear-gradient(to bottom right, #5a1b18 0%, #421310 30%, #000 100%);
}

.location-col.is-bcn {
  background:
    linear-gradient(to bottom, transparent 0 93%, #000 98% 100%),
    radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 45%),
    radial-gradient(circle at top left, #000 0 30%, transparent 60%),
    linear-gradient(to bottom left, #5a5814 0%, #3b3a0d 30%, #000 100%);
}

.location-header {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: var(--location-header-height);
  text-align: center;
  padding: 0 20px 20px;
  position: relative;
  overflow: hidden;
}

.location-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/contacto/lineas-codo.svg') center / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(to right, #000 0 60%, transparent 80%);
  mask-image: linear-gradient(to right, #000 0 60%, transparent 80%);
  pointer-events: none;
}

.location-col.is-bcn .location-header::before {
  transform: scaleX(-1);
}

.location-header h2 {
  position: absolute;
  bottom: 24px;
  z-index: 1;
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  display: inline-block; 
}

.location-col.is-madrid .location-header h2 {
  left: 65%;
  transform: translateX(-50%);
}

.location-col.is-bcn .location-header h2 {
  left: 35%;
  transform: translateX(-50%);
}

.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  overflow: hidden;
}

.map-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/contacto/lineas-codo.svg') center / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(to right, #000 0 60%, transparent 80%);
  mask-image: linear-gradient(to right, #000 0 60%, transparent 80%);
  pointer-events: none;
}

.location-col.is-bcn .map-frame::before {
  transform: scaleX(-1);
}

.map-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  opacity: 0;
  filter: grayscale(0.15);
  transition: opacity 0.35s ease;
}

.map-embed.is-loaded {
  opacity: 1;
}

.transport-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
}

.transport-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/contacto/lineas-codo.svg') center / 100% 100% no-repeat;
  -webkit-mask-image:
    linear-gradient(to right, #000 0 60%, transparent 80%),
    linear-gradient(to bottom, #000 0 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, #000 0 60%, transparent 80%),
    linear-gradient(to bottom, #000 0 80%, transparent 100%);
  mask-composite: intersect;
  pointer-events: none;
}

.location-col.is-bcn .transport-grid::after {
  transform: scaleX(-1);
}

.location-col.is-bcn .transport-grid::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.transport-item {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 34px 16px;
}

.transport-item img {
  height: 40px;
  width: auto;
  margin: 0 auto 16px;
}

.transport-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.transport-item span {
  display: block;
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Formulario de contacto */
.contact-form-section {
  background: var(--color-black);
  padding: 20px 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

/* Contacto: animaciones de entrada */
.contact-page.contact-motion .page-hero-content {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.contact-page.contact-motion .page-hero-content.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-page.contact-motion .contact-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-page.contact-motion .map-frame.contact-reveal {
  transform: scale(0.985);
}

.contact-page.contact-motion .contact-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.contact-page.contact-motion .location-title-line {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.7s ease 0.12s;
}

.contact-page.contact-motion .location-col.is-madrid .location-title-line {
  clip-path: inset(0 0 0 100%);
}

.contact-page.contact-motion .location-header.is-visible .location-title-line {
  clip-path: inset(0);
}

.contact-page.contact-motion .transport-item:nth-child(2) { transition-delay: 0.1s; }
.contact-page.contact-motion .transport-item:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .contact-page .page-hero-content,
  .contact-page .contact-reveal,
  .contact-page .location-title-line {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
  }
}

/* =========================================================
   SOBRE NOSOTROS — responsive
   ========================================================= */
@media (max-width: 820px) {
  .about-page .page-hero .container {
    padding-inline: 28px;
  }

  .about-page .page-hero-content h1 {
    font-size: clamp(1.9rem, 5.6vw, 2.7rem);
    line-height: 1.18;
  }

  .about-page .about-row,
  .about-page .about-row.is-reverse {
    grid-template-columns: 1fr;
  }

  .about-page .about-row-media,
  .about-page .about-row.is-reverse .about-row-media {
    order: 1;
    min-height: clamp(300px, 48vw, 400px);
  }

  .about-page .about-row-content,
  .about-page .about-row.is-reverse .about-row-content {
    order: 2;
    justify-content: center;
    padding: 42px 28px 50px;
  }

  .about-page .about-row .info-box {
    width: min(100%, 680px);
    max-width: none;
    padding: 34px;
  }

  .about-page .about-banner img {
    min-height: 190px;
    object-fit: cover;
  }
}

@media (max-width: 600px) {
  .about-page .page-hero {
    min-height: 50svh;
  }

  .about-page .page-hero .container {
    padding-inline: 18px;
  }

  .about-page .page-hero-content {
    padding-block: 30px;
  }

  .about-page .page-hero-content h1 {
    margin-bottom: 14px;
    font-size: clamp(1.55rem, 7vw, 2.05rem);
  }

  .about-page .page-hero-tag {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .about-page .about-row-media,
  .about-page .about-row.is-reverse .about-row-media {
    min-height: clamp(230px, 68vw, 300px);
  }

  .about-page .about-row-content,
  .about-page .about-row.is-reverse .about-row-content {
    padding: 30px 16px 40px;
  }

  .about-page .about-row .info-box {
    padding: 24px 20px 26px;
  }

  .about-page .info-box .eyebrow {
    font-size: 0.78rem;
  }

  .about-page .info-box h2 {
    font-size: clamp(1.2rem, 6vw, 1.55rem);
    line-height: 1.25;
  }

  .about-page .info-box p {
    font-size: 0.88rem;
    line-height: 1.7;
  }

  .about-page .about-banner img {
    min-height: 150px;
  }
}

/* =========================================================
   EDICIÓN — responsive
   ========================================================= */
@media (max-width: 992px) {
  .edicion-page .page-hero .container {
    padding-inline: 28px;
  }

  .edicion-page .page-hero-content {
    max-width: 760px;
  }

  .edicion-page .split-media {
    min-height: clamp(320px, 50vw, 440px);
  }

  .edicion-page .split-content {
    padding: 44px 32px 50px;
  }

  .edicion-page .about-row,
  .edicion-page .about-row.is-reverse {
    grid-template-columns: 1fr;
  }

  .edicion-page .about-row-media,
  .edicion-page .about-row.is-reverse .about-row-media {
    order: 1;
    min-height: clamp(300px, 48vw, 420px);
  }

  .edicion-page .about-row-content,
  .edicion-page .about-row.is-reverse .about-row-content {
    order: 2;
    justify-content: center;
    padding: 42px 28px 50px;
  }

  .edicion-page .about-row .info-box {
    width: min(100%, 680px);
    max-width: none;
    padding: 34px;
  }

  .edicion-page .gallery {
    padding: 52px 28px 66px;
  }
}

@media (max-width: 600px) {
  .edicion-page .page-hero {
    min-height: 50svh;
  }

  .edicion-page .page-hero .container {
    padding-inline: 18px;
  }

  .edicion-page .page-hero-content {
    padding-block: 30px;
  }

  .edicion-page .page-hero-content h1 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .edicion-page .page-hero-content p {
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .edicion-page .split-media {
    min-height: clamp(250px, 68vw, 320px);
  }

  .edicion-page .split-content {
    padding: 32px 20px 40px;
  }

  .edicion-page .about-row-media,
  .edicion-page .about-row.is-reverse .about-row-media {
    min-height: clamp(230px, 68vw, 300px);
  }

  .edicion-page .about-row-content,
  .edicion-page .about-row.is-reverse .about-row-content {
    padding: 30px 16px 40px;
  }

  .edicion-page .about-row .info-box {
    padding: 24px 20px 26px;
  }

  .edicion-page .info-box h2 {
    font-size: clamp(1.2rem, 6vw, 1.55rem);
    line-height: 1.25;
  }

  .edicion-page .info-box p {
    font-size: 0.88rem;
    line-height: 1.7;
  }

  .edicion-page .info-box .logos-row,
  .edicion-page .about-row.is-reverse .info-box .logos-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: initial;
    width: 100%;
    gap: 22px 16px;
  }

  .edicion-page .info-box .logos-row img {
    max-width: 100%;
    height: 30px;
    margin: 0 auto;
  }

  .edicion-page .split-content h2 {
    font-size: 1.25rem;
  }

  .edicion-page .split-content p {
    margin-bottom: 28px;
    font-size: 0.88rem;
    line-height: 1.7;
  }

  .edicion-page .logos-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 24px 18px;
  }

  .edicion-page .logos-row img {
    max-width: 100%;
    height: 32px;
    margin: 0 auto;
  }

  .edicion-page .gallery {
    padding: 40px 14px 52px;
  }

  .edicion-page .gallery-main {
    margin-bottom: 14px;
  }

  .edicion-page .gallery-prev { left: 6px; }
  .edicion-page .gallery-next { right: 6px; }

  .edicion-page .gallery-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

/* =========================================================
   ETALONAJE / PRO TOOLS / DATA FLOW — responsive compartido
   ========================================================= */
@media (max-width: 992px) {
  .technical-page .page-hero .container {
    padding-inline: 28px;
  }

  .technical-page .page-hero-content {
    max-width: 760px;
  }

  .technical-page .split-media {
    min-height: clamp(320px, 50vw, 440px);
  }

  .technical-page.dataflow-page .split-media {
    align-self: center;
    width: calc(100% - 56px);
    min-height: 0;
    aspect-ratio: 1.45 / 1;
    margin: 40px auto 0;
  }

  .technical-page .split-content {
    padding: 44px 32px 50px;
  }

  .technical-page .gallery {
    padding: 52px 28px 66px;
  }
}

@media (max-width: 600px) {
  .technical-page .page-hero {
    min-height: 50svh;
  }

  .technical-page .page-hero .container {
    padding-inline: 18px;
  }

  .technical-page .page-hero-content {
    padding-block: 30px;
  }

  .technical-page .page-hero-content h1 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .technical-page .page-hero-content p {
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .technical-page .split-media {
    min-height: clamp(250px, 68vw, 320px);
  }

  .technical-page.dataflow-page .split-media {
    width: calc(100% - 32px);
    min-height: 0;
    margin: 28px auto 0;
  }

  .technical-page .split-content {
    padding: 32px 20px 40px;
  }

  .technical-page .split-content h2 {
    font-size: 1.25rem;
  }

  .technical-page .split-content p {
    margin-bottom: 28px;
    font-size: 0.88rem;
    line-height: 1.7;
  }

  .technical-page .logos-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 24px 18px;
    margin-bottom: 24px;
  }

  .technical-page .logos-row img {
    max-width: 100%;
    height: 32px;
    margin: 0 auto;
  }

  .technical-page .logos-row:last-child img:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .technical-page .gallery {
    padding: 40px 14px 52px;
  }

  .technical-page .gallery-main {
    margin-bottom: 14px;
  }

  .technical-page .gallery-prev { left: 6px; }
  .technical-page .gallery-next { right: 6px; }

  .technical-page .gallery-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

/* =========================================================
   ESPACIOS — responsive
   ========================================================= */
@media (max-width: 992px) {
  .espacios-page .page-hero .container {
    padding-inline: 28px;
  }

  .espacios-page .split-media {
    min-height: clamp(320px, 50vw, 440px);
  }

  .espacios-page .split-content {
    padding: 44px 28px 52px;
  }

  .espacios-page .info-box-framed {
    width: min(100%, 680px);
    max-width: none;
    margin-inline: auto;
  }
}

@media (max-width: 820px) {
  .espacios-page .photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

  .espacios-page .photo-grid img:nth-child(n) {
    grid-column: span 1;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 600px) {
  .espacios-page .page-hero {
    min-height: 50svh;
  }

  .espacios-page .page-hero .container {
    padding-inline: 18px;
  }

  .espacios-page .page-hero-content {
    padding-block: 30px;
  }

  .espacios-page .page-hero-content h1 {
    margin-bottom: 12px;
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }

  .espacios-page .page-hero-tag {
    font-size: 0.88rem;
  }

  .espacios-page .split-media {
    min-height: clamp(250px, 68vw, 320px);
  }

  .espacios-page .split-content {
    padding: 32px 16px 42px;
  }

  .espacios-page .info-box-framed {
    padding: 24px 20px 28px;
  }

  .espacios-page .info-box-framed h2 {
    font-size: 1.35rem;
  }

  .espacios-page .info-box-framed p {
    font-size: 0.88rem;
    line-height: 1.7;
  }

  .espacios-page .info-box-framed .btn {
    padding-inline: 22px;
    font-size: 0.82rem;
  }

  .espacios-page .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .espacios-page .photo-grid img:nth-child(n) {
    aspect-ratio: 1 / 1;
  }

}

/* =========================================================
   CONTACTO — responsive
   ========================================================= */
@media (max-width: 900px) {
  .contact-page .page-hero .container {
    padding-inline: 28px;
  }

  .contact-page .locations {
    grid-template-columns: 1fr;
  }

  .contact-page .location-col.is-madrid .location-header h2,
  .contact-page .location-col.is-bcn .location-header h2 {
    left: 50%;
  }

  .contact-page .location-title-line img,
  .contact-page .is-madrid-line img,
  .contact-page .is-bcn-line img {
    margin-inline: auto;
  }

  .contact-page .location-col.is-bcn .transport-grid::before {
    display: none;
  }

  .contact-page .contact-form-section {
    padding-inline: 28px;
  }
}

@media (max-width: 600px) {
  .contact-page .page-hero {
    min-height: 50svh;
  }

  .contact-page .page-hero .container {
    padding-inline: 18px;
  }

  .contact-page .page-hero-content {
    padding-block: 30px;
  }

  .contact-page .page-hero-content h1 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .contact-page .page-hero-tag {
    font-size: 0.86rem;
  }

  .contact-page .map-frame {
    aspect-ratio: 16 / 9;
  }

  .contact-page .transport-grid {
    grid-template-columns: 1fr;
    padding: 12px 14px 28px;
  }

  .contact-page .transport-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 16px;
    padding: 18px 8px;
    text-align: left;
  }

  .contact-page .transport-item img {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    height: 34px;
    margin: 0 auto;
  }

  .contact-page .transport-item strong,
  .contact-page .transport-item span {
    grid-column: 2;
  }

  .contact-page .transport-item strong {
    margin-bottom: 4px;
    font-size: 0.86rem;
  }

  .contact-page .transport-item span {
    font-size: 0.76rem;
  }

  .contact-page .contact-form-section {
    padding: 48px 14px 58px;
  }

  .contact-page .contact-form-wrap {
    padding: 26px 16px;
  }

  .contact-page .contact-form-wrap h2 {
    font-size: 1.18rem;
  }

  .contact-page .contact-form-wrap > p {
    font-size: 0.84rem;
    line-height: 1.65;
  }

  .contact-page .contact-form input,
  .contact-page .contact-form textarea {
    font-size: 16px;
  }

  .contact-page .form-consent,
  .contact-page .form-fineprint {
    font-size: 0.76rem;
    line-height: 1.55;
  }

  .a11y-panel {
    top: auto;
    right: 12px;
    bottom: 74px;
    max-height: calc(100svh - 96px);
    overflow-y: auto;
  }
}

.contact-form-wrap {
  max-width: 836px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 46px;
  text-align: center;
  border-radius: 10px;
}

.contact-form-wrap .mail-icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
  margin: 0 auto 14px;
}

.contact-form-wrap h2 {
  margin: 0 0 14px;
  font-size: 1.3rem;
  font-weight: 600;
}

.contact-form-wrap > p {
  margin: 0 0 20px;
  color: var(--color-text-muted); 
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.contact-form {
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-text);
  padding: 13px 16px;
  font-family: var(--font-main);
  font-size: 0.92rem;
}

.contact-form textarea {
  min-height: 110px;
  resize: vertical;
  margin-bottom: 16px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--color-text-muted); }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(230, 146, 57, 0.14), 0 0 18px rgba(230, 146, 57, 0.1);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}

.form-consent a { color: var(--color-accent); }

.form-fineprint {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 26px;
}

.form-fineprint strong { display: block; margin-bottom: 6px; color: var(--color-text); }
.form-fineprint ul { margin: 0; padding-left: 18px; }
.form-fineprint li { margin-bottom: 3px; }
.form-fineprint a { color: var(--color-accent); }

.contact-form button[type="submit"] {
  width: 100%;
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
}

.contact-form button[type="submit"]:hover {
  background: #fff;
  border-color: #fff;
  color: #111;
}

.form-status {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--color-accent);
  text-align: center;
}

/* =========================================================
   PRODUCCIONES — carrusel de pósters
   ========================================================= */
.posters-section {
  background: var(--color-black);
  padding: 60px 0 90px;
}

.posters-carousel-wrap {
  position: relative;
}

.posters-carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 4px 60px 20px;
  -ms-overflow-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) transparent;
}

.poster-item {
  flex: 0 0 auto;
  width: 200px;
  aspect-ratio: 2 / 3;
  scroll-snap-align: start;
  overflow: hidden;
  background: #111;
}

.poster-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.poster-item:hover img { transform: scale(1.05); }

.posters-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease;
}

.posters-arrow:hover { background: var(--color-accent); }
.posters-arrow svg { width: 24px; height: 24px; }
.posters-prev { left: 4px; }
.posters-next { right: 4px; }

@media (max-width: 600px) {
  .poster-item { width: 140px; }
  .posters-carousel { padding: 4px 44px 16px; }
  .posters-arrow { width: 36px; height: 36px; }
  .posters-arrow svg { width: 18px; height: 18px; }
}

/* =========================================================
   PHOTO GRID — cuadrícula de fotos a sangre (Espacios)
   ========================================================= */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(130px, 12vw, 230px);
  gap: clamp(3px, 0.35vw, 6px);
  background: var(--color-black);
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: filter 0.3s ease;
}

.photo-grid img:hover {
  filter: brightness(1.08);
}

.photo-grid img:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: -3px;
}

.photo-grid img:nth-child(1) {
  grid-column: span 4;
  grid-row: span 2;
}

.photo-grid img:nth-child(n + 2):not(:last-child) {
  grid-column: span 2;
  aspect-ratio: 1 / 1;
}

.photo-grid img:last-child {
  grid-column: 11 / span 2;
  grid-row: 1 / span 2;
}

@media (min-width: 821px) {
  .photo-grid {
    grid-template-columns: minmax(0, 16fr) repeat(3, minmax(0, 10fr)) minmax(0, 14fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    aspect-ratio: 3 / 1;
  }

  .photo-grid img:nth-child(1) {
    grid-column: 1;
  }

  .photo-grid img:nth-child(n + 2):not(:last-child) {
    grid-column: auto;
  }

  .photo-grid img:last-child {
    grid-column: 5;
  }
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  grid-template-columns: clamp(44px, 6vw, 76px) minmax(0, 1fr) clamp(44px, 6vw, 76px);
  align-items: center;
  padding: clamp(18px, 3vw, 42px);
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.photo-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.photo-lightbox-figure {
  grid-column: 2;
  max-width: 100%;
  max-height: calc(100svh - 84px);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.photo-lightbox-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100svh - 130px);
  object-fit: contain;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.photo-lightbox.is-open .photo-lightbox-image {
  opacity: 1;
  transform: scale(1);
}

.photo-lightbox-image.is-changing {
  opacity: 0;
  transform: scale(0.96);
  transition-duration: 0.16s;
}

.photo-lightbox-caption {
  min-height: 1.5em;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
  text-align: center;
}

.photo-lightbox-close,
.photo-lightbox-nav {
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.photo-lightbox-close:hover,
.photo-lightbox-close:focus-visible,
.photo-lightbox-nav:hover,
.photo-lightbox-nav:focus-visible {
  border-color: var(--color-accent);
  background: var(--color-accent);
  outline: none;
  transform: scale(1.08);
}

.photo-lightbox-close {
  position: absolute;
  top: clamp(14px, 2vw, 28px);
  right: clamp(14px, 2vw, 28px);
  width: 46px;
  height: 46px;
  font-size: 2rem;
  line-height: 1;
}

.photo-lightbox-nav {
  width: clamp(42px, 4vw, 58px);
  height: clamp(42px, 4vw, 58px);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.8;
}

.photo-lightbox-prev {
  grid-column: 1;
  justify-self: start;
}

.photo-lightbox-next {
  grid-column: 3;
  justify-self: end;
}

body.photo-lightbox-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .photo-lightbox {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    padding: 62px 10px 22px;
  }

  .photo-lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .photo-lightbox-close {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-lightbox,
  .photo-lightbox-image {
    transition: none;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
  body.nav-open { overflow: hidden; }

  .main-nav { display: none; }
  .nav-toggle {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
  }

  .main-nav.is-open {
    display: block;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-black);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 0;
  }

  .main-nav.is-open ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 0 24px;
  }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .split { grid-template-columns: 1fr; }
  .split-media { min-height: 320px; }
  .split-content { padding: 44px 28px; }
}

@media (max-width: 600px) {
  :root { --header-height: 64px; }
  .brand-logo { height: 32px; }
  .hero-content { padding-bottom: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-col {
    min-height: 0;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .footer-top { flex-direction: column; gap: 20px; align-items: flex-start; }
  .footer-brand,
  .footer-contact-wrap { flex: none; width: 100%; justify-content: flex-start; }
  .footer-divider { display: none; }
  .a11y-btn { top: auto; bottom: 20px; }

  .page-hero { min-height: 46vh; }
  .split-content { padding: 32px 20px; }
  .logos-row { gap: 20px; }
  .logos-row img { height: 36px; }

  .info-box { padding: 26px; }
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }
  .photo-grid img:nth-child(n) {
    grid-column: span 1;
    aspect-ratio: 1 / 1;
  }

  .about-row,
  .about-row.is-reverse { grid-template-columns: 1fr; }
  .about-row-media,
  .about-row.is-reverse .about-row-media { order: 1; min-height: 280px; }
  .about-row-content,
  .about-row.is-reverse .about-row-content { order: 2; padding: 32px 20px; }

  .locations { grid-template-columns: 1fr; }
  .transport-grid { grid-template-columns: repeat(3, 1fr); }
  .location-col.is-bcn .transport-grid::before { display: none; }
  .transport-item { padding: 22px 10px; }
  .transport-item img { height: 30px; margin-bottom: 10px; }

  .contact-form-wrap { padding: 26px 18px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* =========================================================
   INICIO — responsive (sin modificar el diseño de escritorio)
   ========================================================= */
@media (max-width: 992px) {
  .home-page .header-inner {
    padding-inline: 28px;
  }

  .home-page .main-nav.is-open {
    max-height: calc(100svh - var(--header-height));
    overflow-y: auto;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45);
  }

  .home-page .main-nav.is-open a {
    display: block;
    width: 100%;
    padding: 10px 0;
  }

  .home-page .hero {
    min-height: calc(100svh - var(--header-height));
  }

  .home-page .hero-content {
    padding-inline: 32px;
  }

  .home-page .hero-title {
    max-width: 82vw;
  }

  .home-page .hero-subtitle {
    max-width: 720px;
  }

  .home-page .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .service-col {
    height: clamp(360px, 50vw, 480px);
  }

  .home-page .service-col:last-child {
    grid-column: 1 / -1;
    height: clamp(320px, 44vw, 430px);
  }

  .home-page .espacios,
  .home-page .producciones {
    padding-bottom: 42px;
  }

  .home-page .espacios-image {
    height: 100%;
    min-height: 0;
  }

  .home-page .espacios-slider {
    height: clamp(320px, 48vw, 470px);
  }

  .home-page .production-slider {
    --slider-gap: clamp(24px, 4vw, 40px);
  }

  .home-page .production-slider-group img {
    width: clamp(160px, 24vw, 220px);
  }

  .home-page .cta {
    padding-inline: 28px;
  }
}

@media (max-width: 600px) {
  .home-page .header-inner {
    padding-inline: 18px;
  }

  .home-page .a11y-panel {
    top: auto;
    right: 12px;
    bottom: 74px;
    max-height: calc(100svh - 96px);
    overflow-y: auto;
  }

  .home-page .main-nav.is-open ul {
    padding-inline: 18px;
  }

  .home-page .hero {
    min-height: calc(100svh - var(--header-height));
  }

  .home-page .hero-slide {
    background-position: center center;
  }

  .home-page .hero-content {
    padding: 32px 20px 38px;
  }

  .home-page .hero-title {
    width: 100%;
    max-width: 100%;
    gap: 0.22em;
    font-size: clamp(1.55rem, 7vw, 2.4rem);
  }

  .home-page .hero-shine {
    width: min(420px, 108%);
    margin: -34px auto -32px;
  }

  .home-page .hero-subtitle {
    max-width: 34rem;
    margin-bottom: 0;
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .home-page .hero .btn {
    max-width: 100%;
    padding: 8px 22px;
    font-size: 0.82rem;
  }

  .home-page .section-title-strip {
    padding: 14px 12px 16px;
  }

  .home-page .title-line-wrap {
    gap: 8px;
  }

  .home-page .title-line-wrap h2 {
    min-width: 0;
    font-size: clamp(0.92rem, 4.5vw, 1.08rem);
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  .home-page .title-line {
    min-width: 20px;
  }

  .home-page .services-grid {
    --service-band-height: 64px;
    grid-template-columns: 1fr;
  }

  .home-page .service-col,
  .home-page .service-col:last-child {
    grid-column: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .home-page .service-label {
    right: 14px;
    bottom: 9px;
    padding-left: 16px;
    font-size: 1.05rem;
  }

  .home-page .service-decoration {
    height: 24px;
  }

  .home-page .espacios,
  .home-page .producciones {
    padding-bottom: 30px;
  }

  .home-page .section-tag--ramp,
  .home-page .section-tag--carousel {
    width: min(58%, 220px);
  }

  .home-page .section-tag--ramp {
    padding: 0 38px 9px 14px;
  }

  .home-page .section-tag--carousel {
    padding: 12px 20px 14px 14px;
  }

  .home-page .section-tag > span:first-child {
    font-size: 1rem;
  }

  .home-page .espacios-image {
    height: 100%;
    min-height: 0;
    background-position: center;
  }

  .home-page .espacios-slider {
    height: clamp(250px, 58vw, 350px);
  }

  .home-page .espacios-slider-control {
    width: 40px;
    height: 40px;
    opacity: 1;
  }

  .home-page .production-slider {
    --slider-gap: 20px;
    padding: 34px 0;
  }

  .home-page .production-slider-group img {
    width: clamp(138px, 42vw, 175px);
  }

  .home-page .production-slider-fade {
    width: 23%;
  }

  .home-page .production-slider-glow {
    inset: -20% -5%;
    background-size: 110% 115%;
    opacity: 0.28;
  }

  .home-page .cta {
    padding: 58px 20px;
  }

  .home-page .cta-content p {
    font-size: 0.92rem;
  }

  .home-page .cta .btn {
    width: min(100%, 340px);
    padding: 9px 16px;
    font-size: 0.76rem;
    line-height: 1.4;
  }

  .home-page .footer-top {
    padding-inline: 20px;
  }

  .home-page .footer-contact li {
    align-items: flex-start;
    overflow-wrap: anywhere;
  }

  .home-page .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .home-page .footer-legal {
    justify-content: center;
    gap: 8px 16px;
  }
}

@media (max-width: 380px) {
  .home-page .hero-content {
    padding-inline: 16px;
  }

  .home-page .hero-subtitle {
    font-size: 0.82rem;
  }

  .home-page .title-line-wrap h2 {
    font-size: 0.88rem;
  }

  .home-page .service-col,
  .home-page .service-col:last-child {
    aspect-ratio: 1 / 1.18;
  }

  .home-page .footer-legal {
    flex-direction: column;
  }
}

@media (max-width: 992px) and (max-height: 520px) and (orientation: landscape) {
  .home-page {
    --header-height: 64px;
  }

  .home-page .hero-content {
    padding: 22px 32px 26px;
  }

  .home-page .hero-title {
    max-width: 70vw;
  }

  .home-page .hero-shine {
    width: min(520px, 72vw);
    margin: -52px auto -48px;
  }

  .home-page .hero-subtitle {
    max-width: 680px;
    margin-bottom: 0;
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .home-page .hero .btn {
    padding-block: 6px;
    font-size: 0.76rem;
  }
}

@media (hover: none) {
  .home-page .service-line {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .hero-slide,
  .home-page .service-col-bg,
  .home-page .service-line,
  .home-page .service-label,
  .home-page .service-triangle,
  .home-page .section-tag-line,
  .home-page .section-tag-triangle,
  .home-page .espacios-image,
  .home-page .espacios-slider-track,
  .home-page .espacios-slider-dot,
  .home-page .production-slider-group img {
    transition: none;
  }

  .home-page .production-slider-track {
    animation-play-state: paused;
  }
}

/* =========================================================
   GRAFISMO / REEL — consolidado
   ========================================================= */
/* =========================================================
   GRAFISMO — sección Demo Reel
   ========================================================= */
.grafismo-page .split-content > p {
  text-align: justify;
}

.reel {
  position: relative;
  background: var(--color-black);
  padding: 44px 24px 40px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.reel-signature {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  transform: translateY(-50%);
  opacity: 0.85;
  pointer-events: none;
  user-select: none;
}

.reel-signature-left { display: block; }
.reel-signature-right { display: none; }

.reel-player {
  position: relative;
  z-index: 1;
  width: min(1000px, 52vw);
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #000;
  overflow: hidden;
}

.reel-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reel-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.reel-play svg { width: 34px; height: 34px; margin-left: 4px; }

.reel-play:hover { background: var(--color-accent); transform: scale(1.06); }

.reel-player.is-playing .reel-play { display: none; }

@media (max-width: 600px) {
  .reel { padding: 50px 16px; }
  .reel-player { width: 100%; }
  .reel-play { width: 64px; height: 64px; }
  .reel-play svg { width: 24px; height: 24px; }
  .reel-signature { width: 100%; height: 150%; opacity: 0.65; }
}

@media (max-width: 992px) {
  .grafismo-page .page-hero .container {
    padding-inline: 28px;
  }

  .grafismo-page .page-hero-content {
    max-width: 760px;
  }

  .grafismo-page .split-media {
    min-height: clamp(320px, 50vw, 440px);
  }

  .grafismo-page .split-content {
    padding: 44px 32px 50px;
  }

  .grafismo-page .reel,
  .etalonaje-page .reel {
    padding: 52px 24px;
  }

  .grafismo-page .reel-player,
  .etalonaje-page .reel-player {
    width: min(760px, 82vw);
  }

  .grafismo-page .reel-signature,
  .etalonaje-page .reel-signature {
    left: -20%;
    width: 140%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
  }
}

@media (max-width: 600px) {
  .grafismo-page .page-hero {
    min-height: 50svh;
  }

  .grafismo-page .page-hero .container {
    padding-inline: 18px;
  }

  .grafismo-page .page-hero-content {
    padding-block: 30px;
  }

  .grafismo-page .page-hero-content h1 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .grafismo-page .page-hero-content p {
    font-size: 0.86rem;
    line-height: 1.65;
  }

  .grafismo-page .split-media {
    min-height: clamp(250px, 68vw, 320px);
  }

  .grafismo-page .split-content {
    padding: 32px 20px 40px;
  }

  .grafismo-page .split-content h2 {
    font-size: 1.25rem;
  }

  .grafismo-page .split-content > p {
    margin-bottom: 28px;
    font-size: 0.86rem;
    line-height: 1.7;
    hyphens: auto;
  }

  .grafismo-page .logos-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 22px 18px;
    margin-bottom: 24px;
  }

  .grafismo-page .logos-row img {
    max-width: 100%;
    height: 32px;
    margin: 0 auto;
  }

  .grafismo-page .logos-row:last-child img:last-child {
    grid-column: 1 / -1;
  }

  .grafismo-page .reel,
  .etalonaje-page .reel {
    padding: 42px 14px;
  }

  .grafismo-page .reel-player,
  .etalonaje-page .reel-player {
    width: 100%;
  }

  .grafismo-page .reel-signature,
  .etalonaje-page .reel-signature {
    left: -50%;
    width: 200%;
    height: 100%;
    opacity: 0.58;
  }

  .grafismo-page .reel-play,
  .etalonaje-page .reel-play {
    width: 58px;
    height: 58px;
    border-width: 3px;
  }
}

/* =========================================================
   PRODUCCIONES — consolidado
   ========================================================= */
/* =========================================================
   PRODUCCIONES — carrusel, ficha destacada y contacto
   ========================================================= */

.productions-body {
  --production-detail-image: url('../img/producciones/detalle-01.png');
  position: relative;
  background: #000; 
}

.productions-showcase {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #000;
}

.productions-showcase::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -38px;
  z-index: -1;
  width: auto;
  height: 100%;
  aspect-ratio: 450 / 725;
  background: var(--production-detail-image) center / cover no-repeat;
  -webkit-mask-image:
    linear-gradient(to right, #000 0%, #000 60%, transparent 100%),
    linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, #000 0%, #000 60%, transparent 100%),
    linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
  mask-composite: intersect;
  opacity: 0.92;
  pointer-events: none;
  display: none;
}

.posters-section {
  position: relative;
  background: transparent;
  padding: 62px 0 26px;
}

.posters-carousel-wrap {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.posters-carousel {
  display: block;
  overflow: hidden;
  padding: 8px clamp(48px, 5vw, 84px) 22px;
  scroll-snap-type: none;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.producciones-page .posters-carousel.is-loading {
  position: relative;
  min-height: clamp(192px, 15vw, 255px);
  cursor: default;
}

.producciones-page .posters-carousel.is-loading > .poster-item {
  display: none;
}

.producciones-page .posters-carousel.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: productions-loader-spin 0.75s linear infinite;
}

.producciones-page .posters-carousel-wrap:has(.posters-carousel.is-loading) .posters-arrow {
  opacity: 0;
  pointer-events: none;
}

@keyframes productions-loader-spin {
  to { transform: rotate(360deg); }
}

.producciones-page .posters-load-error {
  margin: 0;
  padding: 70px 24px;
  color: var(--color-text-muted);
  text-align: center;
}

.posters-carousel.is-dragging { cursor: grabbing; }

.posters-carousel::-webkit-scrollbar { display: none; }

.posters-carousel-track {
  --posters-gap: clamp(10px, 1vw, 18px);
  display: flex;
  width: max-content;
  animation: posters-page-scroll var(--posters-duration, 126s) linear infinite;
  will-change: transform;
}

.posters-carousel-group {
  display: flex;
  flex: 0 0 auto;
  gap: var(--posters-gap);
  padding-right: var(--posters-gap);
}

.posters-carousel-wrap:hover .posters-carousel-track,
.posters-carousel-wrap:focus-within .posters-carousel-track {
  animation-play-state: paused;
}

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

.poster-item {
  width: clamp(108px, 8.5vw, 150px);
  border-top: 3px solid transparent;
  opacity: 0.72;
  cursor: pointer;
  transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.poster-item:hover,
.poster-item.is-active {
  opacity: 1;
  border-top-color: var(--color-accent);
  transform: translateY(-3px);
}

.posters-arrow {
  width: 34px;
  height: 34px;
  background: transparent;
  color: var(--color-accent);
}

.posters-arrow:hover,
.posters-arrow:focus-visible {
  color: #ffffff;
}

.posters-prev { left: 0; }
.posters-next { right: 0; }

@media (prefers-reduced-motion: reduce) {
  .posters-carousel {
    overflow-x: auto;
  }

  .posters-carousel-track {
    animation: none;
  }

  .posters-carousel-group[aria-hidden="true"] {
    display: none;
  }
}

.featured-production {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(250px, 34%) 1fr;
  width: min(920px, calc(100% - 48px));
  margin: 12px auto 80px;
  align-items: stretch;
}

.featured-poster {
  position: relative;
  z-index: 2;
  background: #080808;
  padding: 12px;
}

.featured-poster img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  display: block;
}

.featured-info {
  position: relative;
  min-height: 100%;
  padding: 28px 30px;
  background: #1b1b1d;
}

.featured-info-line {
  position: absolute;
  top: -4px;
  left: 0;
  width: 52%;
  height: 4px;
  background: url('../img/inicio/linea-servicio.png') center / 100% 100% no-repeat;
}

.featured-info h2 {
  margin: 0 0 22px;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 500;
}

.featured-meta {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0 0 28px;
}

.featured-meta > div {
  display: grid;
  gap: 3px;
}

.featured-meta > div[hidden] {
  display: none;
}

.featured-meta dt {
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.featured-meta dd {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.featured-info-triangle {
  position: absolute;
  right: 15px;
  bottom: 15px;
  width: 15px;
  height: 15px;
}

.production-contact { 
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) 1.2fr;
  gap: clamp(40px, 7vw, 100px);
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: 10px 0 90px;
}

.production-contact-copy > span {
  display: block;
  margin-bottom: 8px;
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.production-contact-copy h2 {
  max-width: 390px;
  margin: 0 0 22px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.08;
}

.production-contact-copy p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.production-contact-form {
  align-self: start;
}

.production-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  margin-bottom: 20px;
}

.production-contact-form input[type="text"],
.production-contact-form input[type="email"],
.production-contact-form input[type="tel"] {
  width: 100%;
  padding: 8px 2px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
}

.production-contact-form input:focus {
  border-bottom-color: var(--color-accent);
}

.production-contact-form .form-consent {
  margin: 8px 0 18px;
}

.production-contact-form .form-consent input {
  width: auto;
  margin-top: 3px;
}

.production-contact-form .form-fineprint {
  margin-bottom: 24px;
}

.production-contact-form .form-fineprint ul {
  list-style: disc;
  padding-left: 18px;
}

.production-contact-form .btn {
  width: 100%;
  padding: 10px 24px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .productions-showcase::before {
    top: 18%;
    bottom: auto;
    left: -2px;
    width: 70vw;
    height: auto;
    aspect-ratio: 450 / 725;
    opacity: 0.86;
  }

  .featured-production,
  .production-contact {
    grid-template-columns: 1fr;
  }

  .featured-production {
    width: min(520px, calc(100% - 32px));
    margin-bottom: 58px;
  }

  .featured-poster img { min-height: 0; }
  .featured-info { min-height: 260px; }

  .production-contact {
    width: min(560px, calc(100% - 32px));
    gap: 38px;
    padding-bottom: 60px;
  }
}

@media (max-width: 520px) {
  .posters-section { padding-top: 42px; }
  .posters-carousel-wrap { width: 100%; }
  .poster-item { width: 108px; }
  .production-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 992px) {
  .producciones-page .page-hero .container {
    padding-inline: 28px;
  }

  .producciones-page .posters-carousel {
    overscroll-behavior-inline: contain;
    touch-action: pan-x;
  }
}

@media (max-width: 760px) {
  .producciones-page .featured-poster {
    width: min(100%, 360px);
    margin-inline: auto;
  }
}

@media (max-width: 600px) {
  .producciones-page .page-hero {
    min-height: 50svh;
  }

  .producciones-page .page-hero .container {
    padding-inline: 18px;
  }

  .producciones-page .page-hero-content {
    padding-block: 30px;
  }

  .producciones-page .page-hero-content h1 {
    margin-bottom: 12px;
    font-size: clamp(1.85rem, 9vw, 2.55rem);
  }

  .producciones-page .page-hero-tag {
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .producciones-page .posters-section {
    padding: 36px 0 20px;
  }

  .producciones-page .posters-carousel {
    padding: 4px 42px 14px;
  }

  .producciones-page .poster-item {
    width: 102px;
  }

  .producciones-page .posters-arrow {
    width: 36px;
    height: 36px;
  }

  .producciones-page .featured-production {
    width: calc(100% - 24px);
    margin: 8px auto 48px;
  }

  .producciones-page .featured-poster {
    width: min(100%, 320px);
    padding: 8px;
  }

  .producciones-page .featured-info {
    min-height: 220px;
    padding: 24px 20px;
  }

  .producciones-page .featured-info h2 {
    margin-bottom: 20px;
    font-size: 1.2rem;
  }

  .producciones-page .featured-meta dd {
    font-size: 0.88rem;
  }

  .producciones-page .featured-meta {
    gap: 12px;
  }

  .producciones-page .production-contact {
    width: calc(100% - 28px);
    gap: 28px;
    padding: 0 0 52px;
  }

  .producciones-page .production-contact-copy > span {
    font-size: 0.78rem;
  }

  .producciones-page .production-contact-copy h2 {
    margin-bottom: 16px;
    font-size: 1.55rem;
    line-height: 1.15;
  }

  .producciones-page .production-contact-copy p {
    font-size: 0.86rem;
    line-height: 1.7;
  }

  .producciones-page .production-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .producciones-page .production-contact-form input[type="text"],
  .producciones-page .production-contact-form input[type="email"],
  .producciones-page .production-contact-form input[type="tel"] {
    min-height: 42px;
    font-size: 16px;
  }

  .producciones-page .production-contact-form .form-consent,
  .producciones-page .production-contact-form .form-fineprint {
    font-size: 0.76rem;
    line-height: 1.55;
  }

  .producciones-page .production-contact-form .btn {
    min-height: 42px;
    font-size: 0.82rem;
  }
}

/* =========================================================
   POLÍTICA DE PRIVACIDAD
   ========================================================= */
.legal-page {
  background: var(--color-black);
}

.legal-page .legal-hero {
  min-height: min(52svh, 520px);
}

.legal-section {
  padding: clamp(52px, 7vw, 96px) 24px;
  background:
    radial-gradient(circle at 90% 8%, rgba(232, 141, 50, 0.08), transparent 24%),
    #0b0b0c;
}

.legal-document {
  width: min(920px, 100%);
  margin: 0 auto;
  color: var(--color-text-muted);
}

.legal-intro {
  margin-bottom: 42px;
  padding: clamp(24px, 4vw, 38px);
  border-top: 4px solid var(--color-accent);
  background: #171719;
}

.legal-updated {
  margin: 0 0 13px;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.legal-document > section {
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-document h2 {
  margin: 0 0 15px;
  color: #fff;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  font-weight: 600;
}

.legal-document p,
.legal-document li,
.legal-data dd {
  font-size: clamp(0.88rem, 1.1vw, 0.98rem);
  line-height: 1.8;
}

.legal-document p {
  margin: 0 0 13px;
}

.legal-document p:last-child {
  margin-bottom: 0;
}

.legal-document ul {
  margin: 0 0 16px;
  padding-left: 22px;
  list-style: disc;
}

.legal-document li + li {
  margin-top: 7px;
}

.legal-document a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-data {
  display: grid;
  gap: 10px;
  margin: 0;
}

.legal-data > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) 1fr;
  gap: 20px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.035);
}

.legal-data dt {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}

.legal-data dd {
  margin: 0;
}

.legal-sources {
  margin-top: 42px;
  padding: 24px;
  border: 1px solid rgba(232, 141, 50, 0.38);
  background: rgba(232, 141, 50, 0.055);
}

.legal-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.025);
}

.legal-table th,
.legal-table td {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.84rem;
  line-height: 1.6;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  color: #fff;
  background: rgba(232, 141, 50, 0.1);
}

.legal-table code {
  color: var(--color-accent);
}

@media (max-width: 600px) {
  .legal-section {
    padding: 42px 16px 58px;
  }

  .legal-page .legal-hero {
    min-height: 44svh;
  }

  .legal-data > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Ajustes móviles finales del encabezado y pie compartidos */
@media (max-width: 600px) {
  .site-header .header-inner {
    padding-inline: 18px;
  }

  .site-header .brand {
    flex: 0 1 auto;
    min-width: 0;
  }

  .site-header .nav-toggle {
    margin-left: auto;
  }

  .footer-top,
  .home-page .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-inline: 18px;
    text-align: center;
  }

  .footer-brand,
  .footer-contact-wrap,
  .home-page .footer-brand,
  .home-page .footer-contact-wrap {
    width: 100%;
    justify-content: center;
  }

  .footer-contact {
    width: 100%;
    align-items: center;
  }

  .footer-contact li,
  .home-page .footer-contact li {
    width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .footer-bottom-inner,
  .home-page .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-credit {
    justify-content: center;
  }

  .footer-legal,
  .home-page .footer-legal {
    justify-content: center;
  }
}
