/* ==========================================================================
   FACSO PRODUCCIONES — clon responsive (Bootstrap 5)
   Negro + magenta, tipografía Bebas Neue condensada en mayúsculas,
   secciones full-bleed alternando video/imagen y texto.
   ========================================================================== */

/* Bebas Neue (FontFabric, 2014 — SIL Open Font License 1.1), autohospedada.
   Colocá los archivos que te dieron en /assets/fonts/ con estos nombres
   exactos (o ajustá las rutas de abajo si preferís mantener los originales).
   Mientras los archivos no estén, el navegador cae al fallback
   "Archivo Narrow"/Impact automáticamente — no rompe nada. */
@font-face {
  font-family: "Bebas Neue";
  src: url("assets/fonts/BebasNeue-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bebas Neue";
  src: url("assets/fonts/BebasNeue-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bebas Neue";
  src: url("assets/fonts/BebasNeue-Book.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bebas Neue";
  src: url("assets/fonts/BebasNeue-Regular.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bebas Neue";
  src: url("assets/fonts/BebasNeue-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Inter, autoalojada (antes venía de Google Fonts vía CDN) */
@font-face {
  font-family: "Inter";
  src: url("assets/vendor/inter/files/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/vendor/inter/files/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/vendor/inter/files/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/vendor/inter/files/inter-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #0a0a0a;
  --panel: #121212;
  --red: #ae22aa;
  --red-dark: #911c8e;
  --red-light: #da3fd5;
  --white: #ffffff;
  --gray-text: #b7b7b7;
  --gray-band: #d9d9d9;

  --display: "Bebas Neue", "Archivo Narrow", Impact, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

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

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

h1, h2, h3, .display {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin: 0;
}

.btn-red {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.7rem 1.6rem;
  border-radius: 3px;
  border: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-red:hover { background: var(--red-dark); color: var(--white); transform: translateY(-1px); }

.btn-outline-white {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.7rem 1.6rem;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: border-color 0.2s ease;
}

.btn-outline-white:hover { border-color: var(--white); color: var(--white); }

/* acento cuadrado decorativo — marca los límites entre secciones, como en el original */
.corner-accent {
  position: absolute;
  width: 26px;
  height: 26px;
  background: var(--red);
  z-index: 3;
}
.corner-accent.top-left { top: 0; left: 0; }
.corner-accent.top-right { top: 0; right: 0; }
.corner-accent.bottom-left { bottom: 0; left: 0; }
.corner-accent.bottom-right { bottom: 0; right: 0; }

.section-rel { position: relative; }

/* focus visible accesible */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ---------- Navbar ---------- */
.navbar-fp {
  /* transparente: sin color sólido, solo un degradé sutil para que el texto
     blanco se siga leyendo sobre secciones claras */
  background: linear-gradient(180deg, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0) 100%);
  padding: 1.1rem 0;
}

.navbar-brand-fp {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  position: relative;
  /* "carril" de altura fija: el menú siempre mide esto de alto en esta fila,
     sin importar qué tan grande sea la imagen del logo */
  height: 34px;
}

.navbar-brand-fp .dot { color: var(--red); }

.navbar-brand-fp #brand-image {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: auto;
  height: 34px; /* valor por defecto — se sobreescribe desde content.json (site.logo.height) */
}

.nav-link-nitido {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white) !important;
  margin: 0 0.85rem;
  opacity: 0.9;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.nav-link-nitido:hover { opacity: 1; color: var(--red) !important; }

.btn-nav-cta { box-shadow: 0 1px 6px rgba(0,0,0,0.35); }

/* ---------- Hero: video completo, sin recorte ni texto superpuesto ---------- */
.hero {
  position: relative;
  background: var(--black);
  /* el video arranca desde arriba de todo (y:0) — el navbar, transparente y
     fixed-top, flota por encima con su propio z-index (no hace falta padding) */
}

.hero-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* misma proporción que el video real (1920x1080) —
    así "contain" no deja barras vacías: el cuadro ya tiene la forma del video */
  background: var(--black);
  overflow: hidden;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.media-video,
.bg-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

.hero-cta-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  background: var(--black);
}

/* ---------- Servicios (fullscreen, fondo negro) ---------- */
.services-full {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--black);
  padding: 6rem 0;
}

.services-full .section-title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  margin-bottom: 2rem;
}

.services-full .rule {
  width: 90px;
  height: 4px;
  background: var(--red);
  margin-bottom: 2.5rem;
}

.services-list {
  color: var(--gray-text);
  font-size: 1.05rem;
  line-height: 2.1;
  margin-bottom: 2.5rem;
}

.services-list .sep { color: var(--red); margin: 0 0.6rem; }

/* ---------- Secciones media + texto ---------- */
.media-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--black);
  padding: 4.5rem 0;
}

.media-section.section-white { background: var(--white); }
.media-section.section-white .section-title { color: var(--black); }
.media-section.section-white .text-col { background: var(--white); }

.media-section .media-col {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  min-height: 50vh;
}

.media-section .media-col img,
.media-section .media-col video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* envoltorio interno: se queda con el recorte redondeado del video/imagen,
   así el contenedor de afuera puede quedar libre (overflow visible) para
   que el marco de esquinas se vea POR FUERA del video, no encima */
.media-inner {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
}

/* marco de esquinas: solo arriba-izquierda y abajo-derecha, por fuera del
   video, activable por sección con "cornerBorder": true en content.json */
.media-section .media-col-bordered {
  overflow: visible;
}

.media-col-bordered::before,
.media-col-bordered::after {
  content: "";
  position: absolute;
  width: 46px;
  height: 46px;
  border-color: var(--red);
  border-style: solid;
  z-index: 3;
  pointer-events: none;
}

.media-col-bordered::before {
  top: -1em;
  left: -1em;
  border-width: 3px 0 0 3px;
}

.media-col-bordered::after {
  bottom: -1em;
  right: -1em;
  border-width: 0 3px 3px 0;
}

.text-col {
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
}

.text-col .section-title {
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  margin-bottom: 1.75rem;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.text-col .inner { max-width: min(34ch, 90%); margin: 0 auto; }

/* variante: video/imagen ocupando fondo completo de toda la sección */
.media-bg-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.media-bg-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 65%, rgba(0,0,0,0.75) 100%);
  z-index: 1;
}

.media-bg-section .container { position: relative; z-index: 2; }

.media-bg-section .section-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin-bottom: 1.75rem;
}

/* variante: 3 videos verticales a la izquierda + texto a la derecha */
.triple-media-section {
  min-height: 90vh;
  display: flex;
  align-items: stretch;
  background: var(--black);
}

.triple-media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  padding: 2.5rem 1.5rem;
  background: var(--black);
  align-items: center;
}

.triple-media-grid .media-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* mockup de celular: el PNG del marco (con la pantalla ya recortada/transparente)
   se superpone directamente al video. Si en algún momento se reemplaza por un
   PNG con la pantalla en blanco sólido (no transparente), volver a agregar
   mix-blend-mode: multiply acá para que el blanco se comporte como hueco. */
.phone-frame {
  position: relative;
  width: 100%;
  max-width: 250px;
  aspect-ratio: 347 / 686;
  margin: 0 auto;
}

.phone-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.phone-frame .frame-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 2;
  pointer-events: none;
}

/* variante: texto izq + carrusel de fotos derecha */
.photo-carousel { position: relative; height: 100%; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.photo-carousel .carousel,
.photo-carousel .carousel-inner,
.photo-carousel .carousel-item { height: 100%; }
.photo-carousel .carousel-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.photo-carousel .carousel-indicators { margin-bottom: 1.25rem; }
.photo-carousel .carousel-indicators [data-bs-target] {
  background-color: var(--red);
  width: 8px; height: 8px;
  border-radius: 50%;
  opacity: 0.5;
}
.photo-carousel .carousel-indicators .active { opacity: 1; }
.photo-carousel .carousel-control-prev,
.photo-carousel .carousel-control-next { width: 3.5rem; opacity: 0.8; }

/* ---------- Estudio (texto izq + fondo imagen) ---------- */
.studio-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.studio-section img.bg-fill {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.studio-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.15) 100%);
  z-index: 1;
}

.studio-section .container { position: relative; z-index: 2; }

.studio-logo {
  display: inline-block;
  border: 2px solid var(--white);
  padding: 0.6rem 1.1rem;
  margin-bottom: 1.75rem;
}

.studio-logo .line1 { font-size: 0.85rem; letter-spacing: 0.15em; display: block; }
.studio-logo .line2 {
  font-size: 1.6rem;
  color: var(--red);
  display: block;
  line-height: 1;
}

.studio-section p {
  color: var(--gray-text);
  max-width: 42ch;
  margin-bottom: 1rem;
}

/* ---------- Carrusel de marcas ---------- */
.brands-band {
  background: var(--gray-band);
  padding: 3.2rem 0;
  overflow: hidden;
}

.brands-track {
  display: flex;
  align-items: center;
  gap: 5.5rem;
  width: max-content;
  animation: scroll-brands 28s linear infinite;
}

.brands-track img {
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
}

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

@media (prefers-reduced-motion: reduce) {
  .brands-track { animation: none; overflow-x: auto; }
}

/* ---------- Contacto (sin formulario) ---------- */
.contact-section {
  background: #1a1a1a;
  padding: 5.5rem 0;
}

.contact-section .section-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 2.5rem;
}

.location-block { margin-bottom: 1.5rem; }
.location-block .city { color: var(--gray-text); font-size: 0.95rem; }
.location-block .address {
  font-weight: 700;
  text-decoration: underline;
  font-size: 1.05rem;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
  font-size: 0.98rem;
}

.contact-line i { color: var(--red); }
.contact-line a:hover { color: var(--red); }

.social-row-fp { display: flex; gap: 0.85rem; margin-top: 1.75rem; }

.social-row-fp a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: background 0.2s ease;
}

.social-row-fp a:hover { background: var(--red-dark); }

/* ---------- Footer ---------- */
.footer-fp {
  background: var(--black);
  padding: 3.5rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  font-family: var(--display);
  font-size: 1.6rem;
  margin-bottom: 2rem;
  position: relative;
  /* mismo criterio que el navbar: carril de altura fija para que la imagen
     pueda agrandarse sin mover el resto del footer */
  height: 38px;
}

.footer-brand #footer-brand-image {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: auto;
  height: 38px; /* valor por defecto — se sobreescribe desde content.json (site.logo.footerHeight) */
}

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: var(--gray-text);
  font-size: 0.88rem;
  margin-bottom: 0.55rem;
}

.footer-col a:hover { color: var(--red); }

.footer-copy {
  color: #6b6b6b;
  font-size: 0.78rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .media-section, .triple-media-section, .studio-section {
    min-height: auto;
  }
  .media-bg-section { min-height: 88vh; }
  .media-section { flex-direction: column; }
  .media-section .media-col { min-height: 42vh; }
  .media-section .text-col { padding: 3rem 1.75rem; }
  .triple-media-section { flex-direction: column; }
  .triple-media-grid { grid-template-columns: 1fr; }
  .phone-frame { max-width: min(80vw, 340px); }
  .services-full { min-height: auto; padding: 5rem 0; }
  /* el carrusel de fotos usa una relación de aspecto fija en vez de vh:
     en mobile el vh cambia según la barra de direcciones del navegador
     y eso hacía que el carrusel se viera inconsistente/roto */
  .photo-carousel { height: auto; min-height: unset; aspect-ratio: 4 / 5; }
}

@media (max-width: 767.98px) {
  /* el hero ya no fuerza altura de viewport: su tamaño lo define la
     relación de aspecto del video (16:9), no hace falta nada acá */
  .contact-section, .studio-section { padding-top: 4rem; padding-bottom: 4rem; }
  .media-bg-section { min-height: 85vh; }
  .phone-frame { max-width: min(85vw, 300px); }
}

/* filas de layout media/texto usando bootstrap row, forzamos altura igual */
.media-section .row,
.triple-media-section .row {
  width: 100%;
  margin: 0;
}
.media-section .row > [class^="col"],
.triple-media-section .row > [class^="col"] {
  padding: 0;
}
.media-section .text-col { height: 100%; }

/* ==========================================================================
   Subpáginas de servicio (ej: /productoraaudiovisual) — secciones propias
   que reutilizan el mismo sistema visual: tipografía Bebas Neue en títulos,
   magenta de acento, tarjetas oscuras.
   ========================================================================== */

/* ---------- Cómo trabajamos ---------- */
.workflow-section { padding: 6.5rem 0; background: var(--black); }

.workflow-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 2.2rem 2rem;
  height: 100%;
}

.workflow-number {
  font-family: var(--display);
  font-size: 2.5rem;
  color: var(--red);
  display: block;
  margin-bottom: 1rem;
  line-height: 1;
}

.workflow-card h3 {
  font-family: var(--body);
  text-transform: none;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}

.workflow-card p { color: var(--gray-text); font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Directores / equipo ---------- */
.team-section { padding: 6.5rem 0; background: var(--panel); }

.team-card { text-align: center; }

.team-photo {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.25rem;
  border: 2px solid var(--red);
}

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

.team-card h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.team-social { display: flex; justify-content: center; gap: 0.6rem; }

.team-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background 0.2s ease;
}

.team-social a:hover { background: var(--red-dark); }

/* ---------- Categorías de video ---------- */
.video-categories-section { padding: 6.5rem 0; background: var(--black); }

.video-category-card {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.video-category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.video-category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.video-category-label {
  position: absolute;
  left: 1.25rem;
  bottom: 1.1rem;
  z-index: 2;
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--white);
  text-transform: uppercase;
}

.video-category-card:hover img { transform: scale(1.05); }

/* hero de subpágina con varios párrafos de descripción */
.hero-content .hero-desc + .hero-desc { margin-top: -0.75rem; }
