/* ============================================= */
/*               NETWORK.CSS                     */
/* Página de red global Enigmarketing            */
/* ============================================= */

/* ============================================= */
/*                 HERO NETWORK                  */
/* ============================================= */

#hero-network {
  background-color: var(--black-color);
  padding: clamp(6rem, 10vw, 8rem) 5vw 5rem;
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-network-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-network-texto {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Título general */
.hero-network-title {
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--white-color);
  margin-bottom: 1rem;
}

/* Variantes para visibilidad por dispositivo */
.hero-escritorio {
  display: block;
}
.hero-movil {
  display: none;
}

/* Span dentro del título */
.hero-network-title span {
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--primary-color);
  display: block;
  margin-bottom: 1rem;
}

/* Subtítulo */
.hero-network-subtitle {
  font-family: var(--font-family-main);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  color: var(--white-color);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Mostrar solo el video de escritorio por defecto */
.hero-network-video-wrapper {
  position: relative;
  width: 70%;
  margin: 0 auto;
}

.hero-network-video-wrapper video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1.2rem;
  object-fit: cover;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.hero-network-video-wrapper video.mobile {
  display: none;
}
.hero-network-video-wrapper video.desktop {
  display: block;
}

/* Botón de sonido */
.video-sound-toggle {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(4px);
  transition: background 0.3s ease, transform 0.3s ease;
}

.video-sound-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

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

/* Tablets: cambio de video */
@media (max-width: 991px) {
  .hero-network-video-wrapper video.desktop {
    display: none;
  }

  .hero-network-video-wrapper video.mobile {
    display: block;
  }
}

/* Móviles */
@media (max-width: 768px) {
  .hero-network-video-wrapper {
    width: 100%;
  }

  .video-sound-toggle {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    bottom: 0.75rem;
    right: 0.75rem;
  }

  .hero-escritorio {
    display: none;
  }

  .hero-movil {
    display: block;
  }
}


/* ============================================= */
/*             VISIÓN DE LA RED (HERO STYLE)     */
/* ============================================= */

#vision-network {
  background-color: var(--white-color);
  padding: clamp(5rem, 8vw, 9rem) 5vw;
  position: relative;
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vision-network-container {
  display: grid;
  grid-template-columns: 60% 40%;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  gap: 4rem;
  height: 100%;
}

.network-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.network-title {
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.network-title span {
  color: var(--black-color);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  display: block;
  margin-top: 0.4rem;
}

/* Descripciones con control por dispositivo */
.network-description {
  font-family: var(--font-family-main);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  color: var(--black-color);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 1.5rem;
}

.network-escritorio {
  display: block;
}

.network-movil {
  display: none;
}

/* Imagen (lado derecho) */
.vision-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* ------------------ RESPONSIVE ------------------ */
@media (max-width: 991px) {
  #vision-network {
    padding: 4rem 5vw;
    min-height: auto;
  }

  .vision-network-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
    height: auto;
  }

  .network-text {
    text-align: center;
    align-items: center;
  }

  .network-description {
    margin: 0 auto;
  }

  .vision-image img {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  #vision-network {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
    padding: 3rem 1.5rem;
  }

  .network-escritorio {
    display: none;
  }

  .network-movil {
    display: block;
    text-align: center;
    max-width: 90%;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
  }
}

/* ============================================= */
/*         SECCIÓN: CASOS DE NETWORK             */
/* ============================================= */

#casos-network {
  background-color: var(--white-color);
  padding: clamp(5rem, 8vw, 9rem) 5vw;
  text-align: center;
}

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

.casos-title {
  text-align: center;
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Visibilidad por dispositivo */
.titulo-escritorio {
  display: block;
}

.titulo-movil {
  display: none;
}

@media (max-width: 768px) {
  .titulo-escritorio {
    display: none;
  }

  .titulo-movil {
    display: block;
    text-align: center;
    line-height: 1.3;
  }
}


/* === INTRODUCCIÓN: escritorio y móvil === */
.casos-intro {
  font-family: var(--font-family-main);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  max-width: 900px;
  margin: 0 auto 3rem;
  color: var(--black-color);
  padding: 0 1rem;
}

.intro-escritorio {
  display: block;
  max-width: 900px;
  margin: 0 auto 3rem;
}

.intro-movil {
  display: none;
}

/* === GRID RESPONSIVE === */
.casos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
}

/* === CARD DE TESTIMONIO === */
.caso-card {
  background-color: #fff;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.caso-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 32px rgba(0, 0, 0, 0.1);
}

.caso-texto {
  color: var(--black-color);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.5;
  display: block;
  margin-top: 0.4rem;
}

.caso-nombre {
  color: var(--black-color);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
  display: block;
  margin-top: 0.4rem;
}

.caso-cargo {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  display: inline-block;
}

/* === Responsive ajustes finos === */
@media (max-width: 768px) {
  .caso-card {
    padding: 1.5rem;
  }

  .caso-texto {
    font-size: 0.95rem;
  }

  .intro-escritorio {
    display: none;
  }

  .intro-movil {
    display: block;
    text-align: center;
    max-width: 90%;
    margin: 0 auto 2rem;
    line-height: 1.6;
  }
}


/* ============================================= */
/*         SECCIÓN: ECOSISTEMA DE IMPACTO        */
/* ============================================= */

#ecosistema-network {
  background-color: var(--white-color);
  padding: clamp(6rem, 8vw, 9rem) 5vw;
  text-align: center;
}

.ecosistema-container {
  max-width: 1280px;
  margin: 0 auto;
}

/* Título principal */
.ecosistema-title {
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Visibilidad por dispositivo */
.titulo-escritorio {
  display: block;
}

.titulo-movil {
  display: none;
}

/* Subtítulo */
.ecosistema-subtitle {
  font-family: var(--font-family-main);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  max-width: 900px;
  margin: 0 auto 3rem;
  color: var(--black-color);
  padding: 0 1rem;
}

/* Grid modular */
.ecosistema-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  justify-items: center;
}

@media (max-width: 1024px) {
  .ecosistema-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .ecosistema-grid {
    grid-template-columns: 1fr;
  }
}

/* Tarjeta individual */
.ecosistema-card {
  background-color: #fff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 340px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ecosistema-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Título de grupo */
.grupo-titulo {
  color: var(--primary-color);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
  display: block;
  margin-top: 0.4rem;
}

/* Contenedor de logos */
.grupo-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.8rem;
  align-items: center;
}

/* Logo individual */
.grupo-logos img {
  max-width: 100px;
  max-height: 150px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.9);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.grupo-logos img:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

/* Responsive: mostrar título móvil */
@media (max-width: 768px) {
  .titulo-escritorio {
    display: none;
  }

  .titulo-movil {
    display: block;
    text-align: center;
    line-height: 1.3;
  }
}



/* ============================================= */
/*                  CTA FINAL                    */
/* ============================================= */

#cta-network {
  background-color: var(--white-color);
  padding: clamp(5rem, 8vw, 9rem) 10vw;
  min-height: 90vh;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 10;
}

.cta-network-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

/* Frase principal */
.cta-frase {
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

/* Palabra destacada */
.cta-frase .cta-destacado {
  color: var(--black-color);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  display: block;
  margin-top: 0.4rem;
}

/* Subfrase informativa */
.cta-subtexto {
  font-family: var(--font-family-main);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  margin: 0 auto 2rem;
  line-height: 1.6;
  color: var(--black-color);
}

/* Botones de acción */
.cta-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 4rem;
}
