:root {
  --bg-light: #eaeaea; /* Gris muy claro, casi blanco pero "crudo" */
  --bg-dark: #0a0a0a; /* Negro absoluto */
  --text-light: #0a0a0a; /* Texto oscuro sobre fondo claro */
  --text-dark: #f0f0f0; /* Texto claro sobre fondo oscuro */
  --accent: #ff0000; /* Rojo vibrante estilo internacional */
  --border-light: rgba(0, 0, 0, 0.2);
  --border-dark: rgba(255, 255, 255, 0.2);
  --font-display: "Montserrat", sans-serif;
  --font-body: "Montserrat", sans-serif;
  --font-mono: "Courier New", Courier, monospace; /* Para detalles técnicos */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-light);
  line-height: 1.4;
  overflow-x: hidden;
  transition:
    background-color 0.8s ease,
    color 0.8s ease;
}

/* --- TIPOGRAFÍA --- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: -1px; /* Estilo apretado moderno */
}

/***************************************************/
/* ---                 HEADER                  --- */
/***************************************************/
header {
  background-color: var(--bg-light);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  color: #000000;
}

.container {
  max-width: 1400px; /* Más ancho para estilo inmersivo */
  margin: 0 auto;
  padding: 0 2rem;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo img {
  width: 75%;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 3rem;
}

nav a {
  color: #000000;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
}

/* --- HEADER INVERTIDO --- */
header {
  transition: all 0.8s ease;
}

header.header-inverse {
  background-color: var(--bg-dark);
}

header.header-inverse nav a {
  color: var(--text-dark) !important;
}

/* Invertir el logo (negro a blanco) */
header.header-inverse .logo img {
  filter: brightness(0) invert(1);
}

header.header-inverse .fas {
  color: var(--text-dark);
}

/***************************************************/
/* ---         HEADER RESPONSIVE MENU          --- */
/***************************************************/

/* Botón hamburguesa - solo visible en móvil */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  position: relative;
}

.hamburger-icon {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #000000;
  position: relative;
  transition: all 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 2px;
  background-color: #000000;
  transition: all 0.3s ease;
}

.hamburger-icon::before {
  top: -8px;
}

.hamburger-icon::after {
  bottom: -8px;
}

/* Estilo del icono cuando el header está invertido (fondo oscuro) */
header.header-inverse .hamburger-icon,
header.header-inverse .hamburger-icon::before,
header.header-inverse .hamburger-icon::after {
  background-color: var(--text-dark);
}

/* Menú lateral (off-canvas) */
.side-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--bg-light);
  z-index: 1002;
  transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.side-menu.active {
  right: 0;
}

/* Overlay (fondo oscuro cuando el menú está abierto) */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Header del menú lateral */
.side-menu-header {
  display: flex;
  justify-content: flex-end;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.close-menu {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  width: 30px;
  height: 30px;
}

.close-icon {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.close-icon::before,
.close-icon::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 2px;
  background-color: #000000;
  top: 50%;
  left: 50%;
}

.close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Navegación del menú lateral */
.side-menu nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2rem;
}

.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.side-menu li {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.3s ease;
  text-align: left;
}

.side-menu.active li {
  opacity: 1;
  transform: translateX(0);
}

/* Animación escalonada para los items del menú */
.side-menu.active li:nth-child(1) { transition-delay: 0.05s; }
.side-menu.active li:nth-child(2) { transition-delay: 0.1s; }
.side-menu.active li:nth-child(3) { transition-delay: 0.15s; }
.side-menu.active li:nth-child(4) { transition-delay: 0.2s; }
.side-menu.active li:nth-child(5) { transition-delay: 0.25s; }
.side-menu.active li:nth-child(6) { transition-delay: 0.3s; }

.side-menu a {
  color: #000000;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  text-transform: uppercase;
  display: inline-block;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
  letter-spacing: 1px;
}

.side-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.side-menu a:hover {
  color: var(--accent);
  transform: translateX(10px);
}

.side-menu a:hover::after {
  width: 100%;
}

/* Estilo del menú cuando el header está invertido */
header.header-inverse .side-menu {
  background-color: var(--bg-dark);
}

header.header-inverse .side-menu a {
  color: var(--text-dark);
}

header.header-inverse .close-icon::before,
header.header-inverse .close-icon::after {
  background-color: var(--text-dark);
}

/* Responsive: ocultar navegación normal y mostrar botón hamburguesa */
@media (max-width: 992px) {
  #mainNav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-container {
    justify-content: space-between;
  }

  .logo img {
    width: 60%;
  }
}

/* Ajustes para móviles pequeños */
@media (max-width: 576px) {
  .side-menu {
    max-width: 100%;
  }

  .side-menu nav {
    padding: 1.5rem;
  }

  .side-menu ul {
    gap: 1.5rem;
  }

  .side-menu a {
    font-size: 1.1rem;
  }
}

@media (max-width: 380px) {
  .side-menu a {
    font-size: 0.95rem;
  }

  .side-menu ul {
    gap: 1.2rem;
  }
}

/* Prevenir scroll del body cuando el menú está abierto */
body.menu-open {
  overflow: hidden;
}

/***************************************************/
/* ---                 HERO                    --- */
/***************************************************/
.hero {
  min-height: 100vh;
  padding-top: 8rem;
  padding-bottom: 4rem;
  background-color: var(--bg-light);
  position: relative;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

.hero-container {
  position: relative;
}

.hero-content-wrapper {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 12rem);
  display: block;
}

/* El texto debe estar SIEMPRE por encima del video */
.hero-text-block {
  position: relative;
  z-index: 10;
  width: 100%;
  pointer-events: none;
  padding-top: 0;
}

/* Tipografía Gigante */
.hero-display-title {
  font-family: "Segoe UI", sans-serif;
  font-size: clamp(4.6rem, 9.4vw, 9.9rem);
  line-height: 0.90;
  font-weight: 700;
  color: var(--accent);
  z-index: 2;
  position: relative;
  letter-spacing: -0.055em;
  transform-origin: top left;
  width: max-content;
  max-width: none;
}

.hero-display-title .line {
  overflow: hidden;
  display: block;
  white-space: nowrap;
}

.hero-display-title .line > span {
  display: block;
  transform: translateY(100%); /* Estado inicial para JS */
}

/* Desplazamiento estético de las últimas líneas */
.indent-right {
  margin-left: 0;
}

/* Ajustes finos para que queden como en tu imagen */
.om-line-la {
  margin-top: 0.01em;
}

.om-line-estructura {
  margin-top: -0.025em;
}

.om-line-final {
  margin-top: -0.04em;
}

/* ===== VIDEO ANTORCHA ===== */
.hero-media-insert {
  position: absolute;
  top: 1.1rem;
  right: 0.35rem;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  width: min(860px, 64vw);
  aspect-ratio: 5 / 3;
  height: auto;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* ===== HUMO / SOMBREADO ROJO HERO ===== */
.hero-smoke-ring {
  position: absolute;
  top: -0.2rem;
  right: -1.8rem;
  width: min(1180px, 90vw);
  height: min(760px, 78vh);
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transform: scale(0.82);
  border-radius: 50%;
  will-change: transform, opacity, filter;
  background:
    radial-gradient(
      ellipse at center,
      rgba(255, 0, 0, 0) 42%,
      rgba(255, 0, 0, 0.10) 54%,
      rgba(255, 0, 0, 0.20) 63%,
      rgba(255, 0, 0, 0.12) 72%,
      rgba(255, 0, 0, 0.04) 82%,
      rgba(255, 0, 0, 0) 100%
    );
  filter: blur(22px);
}

.hero-smoke-ring::before,
.hero-smoke-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.hero-smoke-ring::before {
  background:
    radial-gradient(
      ellipse at 49% 51%,
      rgba(255, 0, 0, 0) 48%,
      rgba(255, 30, 30, 0.16) 60%,
      rgba(255, 40, 40, 0.11) 70%,
      rgba(255, 0, 0, 0) 100%
    );
  filter: blur(18px);
}

.hero-smoke-ring::after {
  background:
    radial-gradient(
      ellipse at 50% 50%,
      rgba(255, 60, 60, 0) 56%,
      rgba(255, 0, 0, 0.14) 68%,
      rgba(255, 0, 0, 0.05) 80%,
      rgba(255, 0, 0, 0) 100%
    );
  filter: blur(34px);
}

/*            INICIO ESTILOS GENERALES             */

/***************************************************/
/* ---          SECCIONES GENERALES            --- */
/***************************************************/
section {
  padding: 8rem 0;
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  margin-bottom: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
}

.section-subtitle {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 3rem;
  max-width: 800px;
  line-height: 1;
}

/***************************************************/
/* ---                LISTAS                   --- */
/***************************************************/
.services-list {
  display: flex;
  flex-direction: column;
}

.service-item {
  display: grid;
  grid-template-columns: 0.5fr 2fr 1fr; /* Número - Título - Descripción */
  align-items: start;
  padding: 3rem 0;
  border-top: 1px solid var(--border-light);
  transition: all 0.4s ease;
  cursor: default;
}

.two-colums {
  grid-template-columns: 0.5fr 2fr; /* Solo Número y Título, sin descripción */
}

.service-item:last-child {
  border-bottom: 1px solid var(--border-light);
}

.service-num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1rem;
}

.service-content h3 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.service-desc {
  font-size: 1rem;
  opacity: 0.7;
  max-width: 300px;
}

/* Hover effect en listas */
.service-item:hover {
  padding-left: 20px; /* Desplazamiento sutil */
  background-color: rgba(0, 0, 0, 0.02);
}

/***************************************************/
/* ---            ESTILOS BOTONES              --- */
/***************************************************/
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border: 1px solid currentColor;
  text-transform: uppercase;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  margin-top: 2rem;
  color: inherit;
}

.btn:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: white;
}
/*             FIN ESTILOS GENERALES               */

/***************************************************/
/* ---                INTRO                    --- */
/***************************************************/
.intro {
  padding: 10rem 5rem;
  background-color: var(--bg-light);
  overflow: hidden; /* Para evitar scrollbars si el foco se sale un poco */
}

/* Contenedor Grid Principal */
.intro-body-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr; /* La columna de texto es un poco más ancha */
  gap: 4rem; /* Espacio entre las columnas */
  align-items: start;
  position: relative;
}

/* Utilidad para la animación de revelado */
.overflow-hidden {
  overflow: hidden;
}

/* Estado inicial del texto animado (se controlará con JS) */
.anim-text {
  display: block;
  transform: translateY(100%); /* Empieza escondido abajo */
  opacity: 0;
}

/* --- Bloque 1: Lead --- */
.intro-lead p {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.2;
  color: var(--text-light);
}

.text-bold {
  font-weight: 700;
  font-family: var(--font-display);
}

/* --- Bloque 2: Lista --- */
.intro-list {
  padding-left: 2rem;
  border-left: 2px solid var(--border-light); /* Una línea guía visual */
}

.list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.list-marker {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.5rem;
}

.intro-list p {
  font-size: 1.25rem;
  font-family: var(--font-mono); /* Toque técnico */
  margin: 0;
}

/* --- Bloque 3: Clímax --- */
.small-label {
  font-size: 1rem;
  font-family: var(--font-mono);
  margin-bottom: 1rem;
  color: var(--text-light);
  opacity: 0.7;
}

.display-question {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem); /* Gigante y responsivo */
  line-height: 0.9;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: -2px;
}

.highlight-accent {
  color: var(--accent); /* La parte final en rojo */
  display: block; /* Fuerza salto de línea si es necesario y mejora animación */
}

/* Columna Izquierda (Texto) */
.intro-content-left {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

/* Columna Derecha (Visual) */
.intro-visual-right {
  position: relative;
  height: 100%; /* Ocupa toda la altura para la trayectoria de caída */
  min-height: 600px; /* Asegura espacio vertical */
  display: flex;
  justify-content: center;
}

/* Contenedor del objeto que cae */
.falling-object-container {
  position: relative; /* Relativo para que la animación JS funcione bien */
  width: 100%;
  max-width: 600px;
  top: 10%;
}

.falling-object-container img {
  width: 100%;
  max-width: 600px;
  object-fit: contain;
}

/***************************************************/
/* ---          SECCION PARA QUIEN ES          --- */
/***************************************************/
.audience-filter {
  padding: 8rem 0;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.audience-filter .container {
  position: relative;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.filter-col-left {
  position: relative;
}

/* CAMBIO: wrapper para controlar video + título */
.filter-title-media-wrap {
  position: relative;
  width: 100%;
  max-width: 760px;
  isolation: isolate;
}

/* Títulos Izquierda */
.filter-title {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.9;
  margin: 1.5rem 0 0;
  color: var(--text-light);
  max-width: 760px;
}

/* Efecto de texto contorno */
.text-outline,
.solo-contorno {
  color: transparent;
  -webkit-text-stroke: 2px var(--text-light); /* Solo borde */
  display: block;
}

.filter-subtitle-mono {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  color: var(--accent); /* Rojo */
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 1.75rem;
}

/* Columna Derecha */
.criteria-header {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  opacity: 0.6;
  text-transform: uppercase;
}

/* Lista del NO */
.criteria-list {
  list-style: none;
  padding: 0;
  margin-bottom: 4rem;
}

.criteria-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-light);
  font-size: 1.3rem;
  line-height: 1.3;
  font-family: var(--font-body);
}

.criteria-item:last-child {
  border-bottom: 1px solid var(--border-light);
}

.icon-x {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
}

/* Declaración Final (Positiva) */
.positive-statement {
  position: relative;
  padding-left: 2rem;
}

.statement-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--text-light); /* Barra negra gruesa lateral */
}

.positive-statement p {
  font-size: 1.5rem;
  line-height: 1.4;
  font-family: var(--font-display);
  text-transform: uppercase;
}

.highlight-text {
  color: var(--accent); /* Rojo */
}

/***************************************************/
/* ---   VIDEO DETRÁS DEL TÍTULO / RESPONSIVE  --- */
/***************************************************/
.filtro-video-media {
  position: absolute;
  top: 2rem;
  left: 0;
  width: min(100%, 700px);
  height: 395px;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.filtro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/***************************************************/
/* ---       SECCION SERVICIOS OSCURA          --- */
/***************************************************/
#servicios {
  background-color: var(--bg-light); /* Empieza claro */
  transition:
    background-color 0.8s ease,
    color 0.8s ease;
}

/* Estado Oscuro (activado por JS) */
#servicios.dark-mode {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

#servicios.dark-mode .section-title,
#servicios.dark-mode p {
  color: var(--text-dark);
}

#servicios.dark-mode .service-item {
  border-color: var(--border-dark);
}

#servicios.dark-mode .service-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/***************************************************/
/* ---       SECCION SOBRE NOSOTROS            --- */
/***************************************************/
.about-manifesto {
  padding: 10rem 0;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.about-layout,
.service-layout,
.que-somos-layout {
  display: grid;
  grid-template-columns: 0.5fr 7fr;
  gap: 4rem;
}

/* Etiqueta Lateral "ABOUT" */
.vertical-label {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  writing-mode: vertical-rl; /* Texto vertical */
  transform: rotate(180deg); /* Orientación correcta */
  position: sticky;
  top: 20%;
}

/* Tipografía de Impacto */
.manifesto-title {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  text-transform: uppercase;
  opacity: 0.7;
}

.manifesto-display {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  text-transform: uppercase;
  font-weight: 700;
}

.dimmed {
  color: var(--text-light);
  opacity: 0.3; /* Gris suave para "falta de ideas" */
  transition: opacity 0.5s ease;
}

.highlighted {
  color: var(--text-light); /* Negro sólido para "estructura" */
  display: block; /* Fuerza salto de línea */
}

/* Línea divisoria animada */
.manifesto-divider {
  height: 2px;
  background-color: var(--accent);
  width: 100%;
  margin: 4rem 0;
  transform-origin: left;
}

/* Detalles y Cierre */
.manifesto-desc {
  font-family: var(--font-body);
  font-size: 1.5rem;
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 1.5;
}

.manifesto-climax {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  text-transform: uppercase;
}

.climax-accent {
  color: var(--accent); /* Rojo vibrante */
  font-size: 1.1em; /* Un poco más grande para énfasis */
}

/* CAMBIO: video elegante dentro de Sobre Nosotros */
.manifesto-media-row {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  margin-top: 2.2rem;
}

.manifesto-video-panel {
  width: 100%;
}

/* CAMBIO SOLO AQUÍ: se quitan contornos, bordes, sombras y redondeado */
.manifesto-video-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.manifesto-video-shell::before {
  content: none;
  display: none;
}

.manifesto-video-shell::after {
  content: none;
  display: none;
}

.manifesto-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
  outline: none;
  box-shadow: none;
  border-radius: 0;
}

.manifesto-video-note {
  margin-top: 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.about-manifesto .manifesto-details {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.about-manifesto .manifesto-desc {
  max-width: 34rem;
}

.about-manifesto .manifesto-climax {
  margin-top: 1.35rem;
}

/***************************************************/
/* ---         SECCION CONTACTANOS             --- */
/***************************************************/
.cta-editorial {
  padding: 10rem 0; /* Mucho espacio vertical */
  background-color: var(--bg-light); /* Fondo Gris Claro */
  position: relative;
  overflow: hidden; /* Para recortar el texto gigante */
}

/* La palabra gigante "ESTRUCTURA" */
.cta-huge-title {
  font-family: var(--font-display);
  font-size: 16vw; /* Gigantesco */
  line-height: 0.8;
  color: var(--accent); /* Rojo */
  position: absolute;
  top: -2%; /* Lo subimos para que se corte un poco como en la imagen */
  left: 75%;
  transform: translateX(-85%); /* Centrado horizontal */
  white-space: nowrap;
  opacity: 0.15; /* Sutil para no tapar el texto, o 1 si quieres que sea agresivo */
  z-index: 0;
  pointer-events: none;
  font-weight: 550;
  letter-spacing: -0.15em;
}

/* Grid para los textos pequeños */
.cta-grid-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-end; /* Alineados abajo */
  position: relative;
  z-index: 2; /* Encima del texto gigante */
  margin-top: 10vw; /* Empujamos el contenido abajo del texto gigante */
  gap: 4rem;
}

/* Estilo de los párrafos (Rojo Monospace como la imagen) */
.cta-block {
  max-width: 400px;
}

.cta-text-mono {
  font-family: var(--font-mono); /* Fuente tipo máquina de escribir/código */
  color: var(--accent); /* Texto ROJO vibrante */
  font-size: 1.1rem;
  line-height: 1.5;
  text-transform: uppercase; /* Todo mayúsculas */
  margin-bottom: 2rem;
}

/* Alineaciones específicas */
.cta-left {
  text-align: left;
}

.cta-right {
  text-align: right; /* Alineación a la derecha estilo editorial */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Botón Minimalista Brutalista */
.cta-brutalist-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--accent);
  color: white; /* Texto blanco sobre fondo rojo */
  font-family: var(--font-mono);
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid var(--accent);
}

.cta-brutalist-btn:hover {
  background-color: transparent;
  color: var(--accent);
}

.cta-brutalist-btn i {
  margin-left: 10px;
  font-size: 0.8em;
}

/***************************************************/
/* ---            SECCION FOOTER               --- */
/***************************************************/
footer {
  background-color: var(--bg-dark);
  color: var(--text-dark); /* Texto gris/blanco */
  padding: 6rem 0 2rem;
  border-top: 1px solid var(--accent); /* Línea roja superior para delimitar */
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr; /* Asimétrico */
  gap: 4rem;
  margin-bottom: 6rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Línea sutil divisoria */
}

/* Etiquetas estilo técnico (// SECCIÓN) */
.footer-label {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Textos generales */
.footer-text {
  font-family: var(--font-body);
  color: #888; /* Gris medio para no cansar la vista */
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 400px;
}

.text-white {
  color: white;
  font-weight: 500;
}

/* Enlaces */
.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #888;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  text-transform: uppercase;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(10px); /* Pequeño desplazamiento al hover */
}

.footer-highlight {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.1;
  color: white;
}

/* LOGO GIGANTE INFERIOR */
.footer-giant-logo {
  font-family: var(--font-display);
  font-size: 18vw; /* Ocupa casi todo el ancho */
  line-height: 0.8;
  color: white;
  text-align: center;
  letter-spacing: -0.05em;
  margin: 0;
  opacity: 0.1; /* Sutil marca de agua o sólido, a tu gusto */
  user-select: none;
  transition: opacity 0.5s ease;
}

.footer-giant-logo:hover {
  opacity: 1; /* Efecto interactivo: se ilumina al pasar el mouse */
}

/* Barra de Copyright */
.copyright-bar {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #555;
  margin-top: 1rem;
  text-transform: uppercase;
}


/***************************************************/
/* ---        BOTON FLOTANTE DE WHATSAPP       --- */
/***************************************************/

/***************************************************/
/* ---        BOTON FLOTANTE DE WHATSAPP       --- */
/***************************************************/

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 1;
    visibility: visible;
}

/* Botón principal */
.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    background-color: #128C7E;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* Menú de opciones */
.whatsapp-options {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    padding: 8px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1001;
}

.whatsapp-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-options a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.whatsapp-options a:last-child {
    border-bottom: none;
}

.whatsapp-options a:hover {
    background-color: #f5f5f5;
}

.whatsapp-options i {
    font-size: 20px;
    width: 24px;
    color: #25D366;
}

/* Flecha indicadora (opcional) */
.whatsapp-options::before {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

/* Ocultar cuando el footer está visible */
.whatsapp-float.hide {
    opacity: 0;
    visibility: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    .whatsapp-options {
        bottom: 60px;
        min-width: 190px;
    }
    .whatsapp-options a {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/***************************************************/
/* ---              RESPONSIVE                 --- */
/***************************************************/
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr; /* Una sola columna en móvil */
    gap: 3rem;
  }

  .copyright-bar {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
  }

  .cta-brutalist-btn {
    font-size: 3.5vw;
  }
}

@media (min-width: 992px) {
  .indent-right {
    margin-left: clamp(110px, 13vw, 245px);
  }

  .hero-media-insert {
    top: 1.1rem;
    right: 0.35rem;
    width: min(860px, 64vw);
    aspect-ratio: 5 / 3;
    height: auto;
    max-width: none;
    transform: none;
  }

  .hero-smoke-ring {
    top: -0.2rem;
    right: -1.8rem;
    width: min(1180px, 90vw);
    height: min(760px, 78vh);
  }
}

@media (max-width: 991px) {
  .hero-display-title {
    font-size: clamp(3.5rem, 11.8vw, 7.8rem);
    line-height: 0.90;
    width: 100%;
    max-width: 100%;
  }

  .hero-display-title .line {
    white-space: normal;
  }

  .indent-right {
    margin-left: 0;
  }

  .hero-media-insert {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: min(90vw, 600px);
    aspect-ratio: 5 / 3;
    height: auto;
    max-width: none;
    min-width: 0;
    min-height: 0;
    margin: 1.6rem auto 0;
  }

  .hero-smoke-ring {
    top: 0.4rem;
    right: 50%;
    transform: translateX(50%) scale(0.82);
    width: min(96vw, 780px);
    height: min(580px, 60vh);
  }

  /* CAMBIO: audiencia / tablet */
  .filter-title-media-wrap {
    max-width: 100%;
  }

  .filtro-video-media {
    top: 1.6rem;
    width: 100%;
    height: 285px;
  }
}

@media (max-width: 980px) {
  .manifesto-media-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  .manifesto-video-shell {
    aspect-ratio: 16 / 9;
    border-radius: 0;
  }

  .manifesto-video-note {
    margin-top: 0.8rem;
  }
}

@media (max-width: 768px) {
  .hero-content-wrapper {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 40px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-text-block {
    padding-top: 0;
  }

  .hero-display-title {
    font-size: 15vw;
    line-height: 0.9;
  }

  .hero-media-insert {
    width: min(88vw, 420px);
    margin: 1.5rem auto 0;
  }

  .hero-smoke-ring {
    width: min(98vw, 640px);
    height: min(460px, 52vh);
    filter: blur(20px);
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .filter-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .filter-col-left {
    margin-bottom: 0.5rem;
  }

  .filter-title-media-wrap {
    max-width: 100%;
  }

  .filter-title {
    font-size: clamp(2.7rem, 14vw, 4rem);
    line-height: 0.92;
    max-width: 100%;
  }

  .filtro-video-media {
    top: 1rem;
    left: 0;
    width: 78vw;
    max-width: 100%;
    height: 180px;
  }

  .filter-subtitle-mono {
    margin-top: 1.2rem;
  }

  .positive-statement p {
    font-size: 1.2rem;
  }

  .about-layout,
  .service-layout,
  .que-somos-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .vertical-label {
    writing-mode: horizontal-tb;
    transform: none;
    position: static;
    margin-bottom: 1rem;
    border-left: 2px solid var(--accent);
    padding-left: 1rem;
  }

  .manifesto-divider {
    margin: 2rem 0;
  }

  .manifesto-media-row {
    margin-top: 1.6rem;
  }

  .about-manifesto .manifesto-desc {
    max-width: 100%;
  }

  .cta-grid-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 3rem;
  }

  .cta-right {
    align-items: flex-start;
    text-align: left;
  }

  .cta-huge-title {
    font-size: 18vw;
    top: 0;
  }

  .marquee-item {
    width: 220px;
    height: 280px;
  }

  .marquee-track {
    gap: 1rem;
  }

  .marquee-wrapper {
    margin-bottom: 1rem; /* Menos espacio entre las dos filas en móvil */
  }
}

@media (max-width: 576px) {
  
  .filtro-video-media {
    top: 0.9rem;
    width: 82vw;
    height: 165px;
  }

  .filter-title {
    font-size: clamp(2.45rem, 14.5vw, 3.6rem);
  }

  .filter-subtitle-mono {
    font-size: 1rem;
  }

  .manifesto-video-shell {
    border-radius: 0;
  }

  .manifesto-video-shell::before {
    content: none;
    display: none;
  }
}

/***************************************************/
/* ---      RESPONSIVE INTRO SECTION           --- */
/***************************************************/

/* Tablets grandes y laptops pequeñas (1200px - 992px) */
@media (max-width: 1200px) {
  .intro {
    padding: 8rem 3rem;
  }

  .intro-body-grid {
    gap: 3rem;
  }

  .intro-content-left {
    gap: 4rem;
  }

  .intro-lead p {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  }

  .intro-list p {
    font-size: 1.1rem;
  }

  .display-question {
    font-size: clamp(2.5rem, 6vw, 4rem);
  }

  .falling-object-container {
    max-width: 450px;
    top: 5%;
  }
}

/* Tablets y dispositivos medianos (992px - 768px) */
@media (max-width: 992px) {
  .intro {
    padding: 6rem 2rem;
  }

  /* Cambiar a columna única */
  .intro-body-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-top: 2rem;
  }

  .intro-content-left {
    gap: 3rem;
  }

  /* Reordenar: la imagen va arriba o abajo según prefieras */
  .intro-visual-right {
    order: -1; /* La imagen aparece arriba del texto */
    min-height: 400px;
    margin-bottom: 2rem;
  }

  .falling-object-container {
    max-width: 400px;
    top: 0;
    margin: 0 auto;
  }

  .intro-list {
    padding-left: 1.5rem;
  }

  .list-item {
    gap: 0.8rem;
    margin-bottom: 1.2rem;
  }

  .list-marker {
    font-size: 1.3rem;
  }

  .intro-list p {
    font-size: 1rem;
  }

  .small-label {
    font-size: 0.9rem;
  }

  .display-question {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -1px;
  }
}

/* Móviles grandes (768px - 576px) */
@media (max-width: 768px) {
  .intro {
    padding: 5rem 1.5rem;
  }

  .intro-body-grid {
    gap: 3rem;
    margin-top: 1.5rem;
  }

  .intro-content-left {
    gap: 2.5rem;
  }

  .intro-lead p {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
  }

  .intro-list {
    padding-left: 1rem;
    border-left-width: 1.5px;
  }

  .list-item {
    gap: 0.7rem;
    margin-bottom: 1rem;
  }

  .icon-x {
    font-size: 1.2rem;
  }

  .intro-list p {
    font-size: 0.95rem;
  }

  .small-label {
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
  }

  .display-question {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    letter-spacing: -0.5px;
    line-height: 1.1;
  }

  .intro-visual-right {
    min-height: 300px;
  }

  .falling-object-container {
    max-width: 280px;
  }

  .highlight-accent {
    display: inline-block; /* En móvil puede ir en la misma línea */
  }
}

/* Móviles pequeños (576px y menos) */
@media (max-width: 576px) {
  .intro {
    padding: 4rem 1rem;
  }

  .intro-body-grid {
    gap: 2.5rem;
    margin-top: 1rem;
  }

  .intro-content-left {
    gap: 2rem;
  }

  .intro-lead p {
    font-size: 1.2rem;
  }

  .intro-list {
    padding-left: 0.8rem;
  }

  .list-item {
    gap: 0.6rem;
    margin-bottom: 0.9rem;
  }

  .icon-x {
    font-size: 1rem;
  }

  .intro-list p {
    font-size: 0.85rem;
  }

  .small-label {
    font-size: 0.7rem;
  }

  .display-question {
    font-size: 1.6rem;
    letter-spacing: -0.3px;
    line-height: 1.2;
  }

  .intro-visual-right {
    min-height: 250px;
  }

  .falling-object-container {
    max-width: 220px;
  }
}

/* Ajustes para landscape en móviles */
@media (max-width: 768px) and (orientation: landscape) {
  .intro {
    padding: 4rem 2rem;
  }

  .intro-body-grid {
    gap: 2rem;
  }

  .intro-visual-right {
    min-height: 250px;
  }

  .falling-object-container {
    max-width: 200px;
  }

  .display-question {
    font-size: 2rem;
  }
}

/***************************************************/
/* ---  AJUSTE MÓVIL SECCIÓN ABOUT / MANIFESTO --- */
/***************************************************/
@media (max-width: 980px) {
  .about-manifesto .manifesto-media-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.4rem !important;
    align-items: start !important;
    margin-top: 1.4rem !important;
  }

  .about-manifesto .manifesto-media-row > * {
    min-width: 0 !important;
    grid-column: 1 / -1 !important;
  }

  .about-manifesto .manifesto-details {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .about-manifesto .manifesto-video-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-self: stretch !important;
  }

  .about-manifesto .manifesto-video-shell {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
  }

  .about-manifesto .manifesto-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }
}

@media (max-width: 768px) {
  .about-manifesto {
    padding: 6rem 0 !important;
  }

  .about-manifesto .manifesto-desc {
    max-width: 100% !important;
    margin: 0 0 1.4rem 0 !important;
    font-size: clamp(1.15rem, 5.8vw, 1.65rem) !important;
    line-height: 1.4 !important;
  }

  .about-manifesto .manifesto-climax {
    margin-top: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    font-size: clamp(2.15rem, 12vw, 4rem) !important;
    line-height: 0.92 !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  .about-manifesto .manifesto-video-panel {
    margin-top: 0.35rem !important;
  }

  .about-manifesto .manifesto-video-note {
    margin-top: 0.75rem !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.14em !important;
    line-height: 1.35 !important;
    word-break: break-word;
  }
}

@media (max-width: 480px) {
  .about-manifesto .container {
    padding: 0 1.2rem !important;
  }

  .about-manifesto .manifesto-desc {
    font-size: 1rem !important;
    line-height: 1.45 !important;
  }

  .about-manifesto .manifesto-climax {
    font-size: clamp(2rem, 11vw, 3.2rem) !important;
    line-height: 0.94 !important;
  }

  .about-manifesto .manifesto-video-shell {
    aspect-ratio: 16 / 10 !important;
  }

  .about-manifesto .manifesto-video-note {
    font-size: 0.68rem !important;
    letter-spacing: 0.12em !important;
  }
}

@media (min-width: 1500px) {
  .footer-giant-logo {
    font-size: 18rem; /* Valor fijo seguro */
  }
}