/* --------------------------------------------- */
/*                   HERO GENERAL                */
/* --------------------------------------------- */

#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    
  }
  
  /* Video de Fondo */
  .video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
  }
  
  .video-background.mobile {
    display: none;
  }
  
  @media (max-width: 767px) {
    .video-background.desktop {
      display: none;
    }
    .video-background.mobile {
      display: block;
    }
  }
  
  /* Capa Oscura Overley */
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
  }
  
  /* Contenido del HERO */
  .hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    padding: 8rem 2rem 2rem;
  }
  
  /* Estilo del Nombre de Enigmarketing */
  .brand-name {
    font-family: var(--font-family-logo);
    font-size: clamp(2.2rem, 6vw, 5rem);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
  }
  
  .enig {
    color: var(--white-color);
  }
  
  .marketing {
    color: var(--primary-color);
  }
  
  /* Frase Principal */
  .main-phrase {
    font-family: var(--font-family-heading);
    color: var(--white-color);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
  }
  
  /* Texto Dinamico ING */
  .dynamic-text {
    font-family: var(--font-family-main);
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #changing-part {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
  }
  
  .fixed-ing {
    font-family: var(--font-family-main);
    color: var(--primary-color);
  }
  
 /* Responsive */
  @media (max-width: 767px) {
    .brand-name {
      font-size: 1.2rem;
    }
    .main-phrase {
      font-size: 2rem;
    }
    .dynamic-text {
      font-size: 2rem;
    }
  }

/* Pilares Fundamentales */

.pilar-item {
  position: relative;
}

.pilar-overlay-link {
  position: absolute;
  inset: 0;
  z-index: 5;
  text-indent: -9999px;
  overflow: hidden;
}


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

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

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

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


/* GRID 2x2 */
.pilares-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

/* TARJETA PILAR */
.pilar-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 360px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.pilar-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* FONDO */
.pilar-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.pilar-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) saturate(1.1);
  transition: transform 0.4s ease;
}

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

/* Capa blanca translucida */
.pilar-item::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(0.2px);
  z-index: 2;
  border-radius: 16px;
}

/* CONTENIDO */
.pilar-content {
  position: relative;
  z-index: 3;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 2.5rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.pilar-nombre {
  font-family: var(--font-family-heading);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.pilar-descripcion {
  font-family: var(--font-family-main);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--black-color);
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .pilares-grid {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }

  .pilar-item {
    max-width: 100%;
    margin: 0 auto;
  }
}


/* ============================================= */
/*     SECCIÓN: RED MUNDIAL DE INNOVADORES       */
/* Logos estáticos en 2 filas centradas          */
/* ============================================= */

#network-section {
  padding: clamp(5rem, 8vw, 9rem) 5vw;
  background-color: var(--white-color);
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

/* Titulo de la Sección */
#network-section .section-title {
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 3rem;
  color: var(--primary-color);
}

/* Grid de Logos */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* estructura fija de 5 logos por fila */
  gap: 2.5rem 4rem;
  justify-items: center;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 3vw;
}

/* Cada logo individual */
.logo-item {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.logo-item img {
  max-height: 120px;
  max-width: 180px;
  width: 100%;
  height: auto;
  filter: grayscale(100%) brightness(0.7);
  opacity: 0.85;
  transition: all 0.3s ease;
  object-fit: contain;
}

.logo-item img:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
  transform: scale(1.05);
}

/* CTA Botón */
.cta-network {
  margin-top: 3rem;
  margin-bottom: 5rem;
  text-align: center;
  position: relative;
  z-index: 20;
}

/* Responsive */
@media (max-width: 1024px) {
  .logo-grid {
    grid-template-columns: repeat(3, 1fr); /* en tablet, 3 logos por fila */
    gap: 2rem 2.5rem;
  }
}

@media (max-width: 768px) {
  #network-section .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .logo-grid {
    grid-template-columns: repeat(2, 1fr); /* en móvil, 2 logos por fila */
    gap: 1.5rem 1.5rem;
    padding: 1rem;
  }

  .logo-item img {
    max-height: 70px;
    max-width: 120px;
  }
}


/* ============================================= */
/*     SECCIÓN: INNOVACIÓN, CRECIMIENTO, ETC     */
/*      Estilo vertical con fade y counters      */
/* ============================================= */

#impact-section {
  padding: clamp(5rem, 8vw, 9rem) 10vw;
  background-color: var(--white-color);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.impact-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* Títulos Principales */
.impact-heading {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--primary-color);
  text-align: center;
}

/* Texto Explicativo - versión escritorio y móvil */
.texto-escritorio,
.texto-movil {
  font-family: var(--font-family-main);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  color: var(--black-color);
  padding: 0 1rem;
}

.texto-movil {
  display: none;
}

/* Mostrar solo versión móvil en pantallas pequeñas */
@media (max-width: 768px) {
  .texto-escritorio {
    display: none;
  }

  .texto-movil {
    display: block;
  }
}

/* Métricas Inferiores */
.impact-metrics {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem 4rem;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.metric strong {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--primary-color);
  font-family: var(--font-family-heading);
}

.metric span {
  margin-top: 0.5rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--black-color);
  font-family: var(--font-family-main);
}

/* Responsive */
@media (max-width: 768px) {
  .impact-metrics {
    gap: 2rem 2.5rem;
  }

  .metric strong {
    font-size: 2rem;
  }

  .metric span {
    font-size: 0.95rem;
  }
}


/* ============================================= */
/*     SECCIÓN: REVOLUCIÓN DEL MARKETING         */
/* ============================================= */

#revolucion-section {
  min-height: 100vh;
  padding: clamp(5rem, 8vw, 9rem) 10vw;
  background-color: var(--white-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

/* Gride de Banderas */
.banderas-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  max-width: 1200px;
  width: 60%;
  padding: 0 1rem;
}

/* Cada bandera */
.bandera {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.bandera img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  transition: filter 0.3s ease;
}

/* Hover efecto con testimonio */
.bandera:hover {
  transform: scale(1.08);
  box-shadow: 0 20px 20px rgba(0, 0, 0, 0.2), 0 0 10px var(--color);
}

.bandera:hover img {
  filter: brightness(0.5);
}

.mensaje-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-family-main);
  font-weight: 400;
  font-size: 1rem;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 1rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.bandera:hover .mensaje-hover {
  opacity: 1;
}

/* CTA Botón */
.cta-revolucion {
  margin-top: 5rem;
  margin-bottom: 5rem;
  text-align: center;
  position: relative;
  z-index: 20;
}

/* Responsive design */
@media (max-width: 1024px) {
  .banderas-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .banderas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .revolucion-title {
    font-size: 1.8rem;
  }

  .mensaje-hover {
    font-size: 0.9rem;
  }
}

/* ============================================= */
/*        SECCIÓN: NOTICIAS Y TENDENCIAS         */
/* ============================================= */

#noticias-section {
  padding: clamp(5rem, 8vw, 9rem) 5vw;
  min-height: 100vh;
  background-color: var(--white-color);
  text-align: center;
  min-height: auto;

}

.noticias-header {
  text-align: center;
  margin-bottom: 3rem;
}

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

/* Tabs de navegación */
.noticias-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.tab-button {
  padding: 0.6rem 1.4rem;
  font-size: 1rem;
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  background: transparent;
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-button.active,
.tab-button:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

/* Contenedor de noticias */
.noticias-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Contenido por tab */
.noticias-tab-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  pointer-events: none;
  width: 100%;
  transition: opacity 0.4s ease;
}

.noticias-tab-content.active {
  opacity: 1;
  visibility: visible;
  position: static;
  pointer-events: auto;
}

/* Tarjeta de noticia */
.noticia-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.noticia-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.1);
}

.noticia-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.noticia-content {
  padding: 1.2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.noticia-content h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 600;
  color: var(--black-color);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.noticia-content p {
  font-size: 0.95rem;
  color: #000000;
  margin-bottom: 1rem;
}

.noticia-content a {
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.noticia-content a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 1024px) {
  .noticias-tab-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .noticias-tab-content {
    grid-template-columns: 1fr;
  }

  .noticias-title {
    font-size: 1.8rem;
  }

  .noticia-card img {
    height: 160px;
  }
}



/* ============================================= */
/*   SECCIÓN: ¿ERES UN AGENTE DE MARKETING?      */
/* ============================================= */

#agente-marketing-section {
  padding: clamp(3rem, 5vw, 5rem) 5vw clamp(5rem, 8vw, 7rem);
  background-color: var(--white-color);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.agente-container {
  max-width: 1200px;
  width: 100%;
  display: flex;
  gap: 4rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Columna izquierda: texto */
.agente-texto {
  flex: 1 1 600px;
}

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

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

/* Párrafos descriptivos: versión escritorio y móvil */
.agente-descripcion {
  font-family: var(--font-family-main);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.7;
  color: var(--black-color);
  margin-bottom: 2rem;
}

/* Mostrar solo en escritorio */
.agente-escritorio {
  display: block;
}

/* Mostrar solo en móvil */
.agente-movil {
  display: none;
}

/* Lista de beneficios */
.agente-beneficios {
  list-style: none;
  padding-left: 0;
  font-family: var(--font-family-main);
  font-size: 1rem;
  color: var(--black-color);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.agente-beneficios li::before {
  content: "✔";
  margin-right: 0.5rem;
  color: var(--primary-color);
}

/* CTA Botón */
.agente-cta {
  margin-top: 1rem;
  margin-bottom: 4rem;
}

/* Columna derecha: imagen */
.agente-imagen {
  flex: 1 1 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.agente-imagen img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.agente-imagen img:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

/* Responsive: columna única y texto móvil */
@media (max-width: 992px) {
  .agente-container {
    flex-direction: column;
    text-align: center;
  }

  .agente-texto,
  .agente-imagen {
    flex: 1 1 100%;
  }
}

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

  .agente-movil {
    display: block;
  }
}