/* ===================================
   HERO VIDEO BACKGROUND SECTION
   =================================== */




/* ===== SECCIÓN DE VIDEO CON PARALLAX ===== */
.video-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    top: -4px;
}

.video-background {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /*border: solid 5px red;*/
}

/* 
   Video LOCAL configurado para loop infinito y efecto parallax
   El video debe estar en la misma carpeta que el HTML
   Nombre del archivo: Banner-de-inicio.mp4
*/
.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    margin-top: 220px;
}



/* Soporte para diferentes tamaños de pantalla */
@media (min-aspect-ratio: 16/9) {
    .video-background video {
        width: 100%;
        height: auto;
    }
}

@media (max-aspect-ratio: 16/9) {
    .video-background video {
        width: auto;
        height: 100%;
    }
}

/* Overlay para mejorar legibilidad del texto */
/*.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}*/

/* Contenido sobre el video */
.video-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #fff;
    text-align: center;
    padding: 0 20px;
    margin-top: 100px;
    
    
}

.video-content h1 {
    font-size: 37px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
    animation: fadeInUp 1s ease;
    
}

.video-content p {
    font-size: 24px;
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.9);
    animation: fadeInUp 1.2s ease;
}

.Button-mas {
    width: 120px;
    animation: fadeInUp 1.2s ease;
    margin-top: 35px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}







/* CONTENIDO */

.video-container {
    position: relative;
  z-index: 1100; /* mayor que el video */
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  height: 100%;
  padding: 5vw; /*Margen de Espacio */
  box-sizing: border-box;
  
}



/* CADA COLUMNA */
.hero-col-1 {
  width: 45%;
  color: #ffffff;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding-top: 150px;
  margin-right: 25px;
  padding-left: 10px;

  /* solo para visualizar, puedes quitarlo */
  /*background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;*/
  animation: fadeIn 1s var(--transition-ease) 0.3s backwards;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 5);
}

.bullets {
    font-family: 'Trebuchet MS';
    font-size: 22px;
    
}



.hero-col-2 {
width: 30%;
align-items: center;
  justify-content: center;
  text-align: left;
  padding-top: 150px;
    /* solo para visualizar, puedes quitarlo */
  /*background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;*/
  animation: alternate 1s var(--transition-ease) 0.3s backwards;
}

.foto-portada {
    width: 70%;
    height: auto;
    text-align: center;
    margin: auto;
    border: solid 2px white;
    animation: fadeIn 1s var(--transition-ease) 0.3s backwards;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.95);
}

.Edicion-Revista {
    color: white;
    text-align: center;
    font-weight: bold;
}


.hero-col-3 {
width: 20%;
align-items: center;
  justify-content: center;
  text-align: left;
  padding-top: 150px;
  
   
}






.hero-content2 {
  position: relative;
  z-index: 900;
  display: grid;
  grid-template-columns: 90% 10%;
  height: 100%;
  width: 150%;
  /*padding: 5vw;*/
  box-sizing: border-box;
  color: #ffffff;
  border: 1px solid yellow;
}

/* COLUMNA IZQUIERDA */
.hero-left2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
  max-width: 1100px;
  border: 1px solid red;
  text-align: left;
  margin: auto;
  margin-left: 260px;
}

/* BLOQUES DE TEXTO */
.text-block h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0;
}

.text-block p {
  font-size: 42px;
  margin: 0.4rem 0;
  line-height: 1.5;
}

.text-block span {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* COLUMNA DERECHA VACÍA */
/*].hero-right {*/
  /* Intencionalmente vacía */
  /*border: 2px solid green;
}*/





/* RESPONSIVE MOBILE */
@media (max-width: 768px) {



.video-background {
    position: absolute;
    top: -115px;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /*border: solid 5px red;*/
}


.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    margin-top: 270px;
}



  .hero-columns {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-col {
    width: 100%;
  }


.video-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    top: -90px;
}



/* CONTENIDO */

.video-container {
    position: relative;
  z-index: 1100; /* mayor que el video */
  display: block;
  justify-content: space-between;
  align-items: stretch;
  height: 160%;
  padding: 4vw;
  box-sizing: border-box;
}



/* CADA COLUMNA */
.hero-col-1 {
  width: 90%;
  color: #ffffff;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding-top: 195px;
  margin-right: 25px;
  padding-left: 20px;

  /* solo para visualizar, puedes quitarlo */
  /*background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;*/
  animation: fadeIn 1s var(--transition-ease) 0.3s backwards;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 5);
}

.bullets {
    font-family: 'Trebuchet MS';
    font-size: 17px;
    line-height: 17px;
}

.sub-tema {

    font-size: 13px;
    line-height: 14px;
}



.hero-col-2 {
width: 100%;
align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px;
    /* solo para visualizar, puedes quitarlo */
  /*background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;*/
  animation: alternate 1s var(--transition-ease) 0.3s backwards;
  /*border: solid 2px yellow;*/
}

.banner-publicidad {
    width: 40%;
    height: auto;
    text-align: center;
    margin: auto;
    border: solid 2px white;
    animation: fadeIn 1s var(--transition-ease) 0.3s backwards;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.95);
}

.Edicion-Revista {
    color: white;
    text-align: center;
    font-weight: bold;
}


.hero-col-3 {
width: 20%;
align-items: center;
  justify-content: center;
  text-align: left;
  padding-top: 150px;
  
   
}


}







@media (max-width: 768px) {
  .hero-content2 {
    grid-template-columns: 1fr;
    padding: 8vw;
  }

  .hero-right2 {
    display: none;
  }

.video-section {
    position: relative;
    height: 165vh;
    width: 115%;
    overflow: hidden;
    top: -90px;
}

.video-background {
width: 100%;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    margin-top: 270px;
}

.hero-col-3 {
    width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 5px;
    /* solo para visualizar, puedes quitarlo */
    /*background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;*/
    animation: alternate 1s var(--transition-ease) 0.3s backwards;
}

.banner-publicidad {
    width: 55%;
    height: auto;
    text-align: center;
    margin: auto;
    border: solid 2px white;
    animation: fadeIn 1s var(--transition-ease) 0.3s backwards;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.95);
}



}


@media (max-width: 480px) {

    .video-section {
    position: relative;
    height: 164vh; /*Controlamos altura del video*/
    width: 100%;
    overflow: hidden;
    top: -90px;
}

.video-background {
width: 100%;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    margin-top: 270px;
}

.hero-col-3 {
    width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 5px;
    /* solo para visualizar, puedes quitarlo */
    /*background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;*/
    animation: alternate 1s var(--transition-ease) 0.3s backwards;
}

.banner-publicidad {
    width: 60%;
    height: auto;
    text-align: center;
    margin: auto;
    border: solid 2px white;
    animation: fadeIn 1s var(--transition-ease) 0.3s backwards;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.95);
}


}
















/*====== YA NO FUNCIONA =====*/
#hero-video2 {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 500px;
    max-height: 700px;
    margin-top: 148px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.video-container iframe {
    position: absolute;
    top: 45%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Video overlay for better text readability */
/*.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(30, 58, 95, 0.7) 0%,
        rgba(6, 66, 115, 0.8) 50%,
        rgba(30, 58, 95, 0.9) 100%
    );
    z-index: 20;
}*/

.hero-content {
    position: relative;
    z-index: 30;
    max-width: 900px;
    padding: var(--spacing-md);
    text-align: center;
    color: var(--white);
    animation: fadeIn 1s var(--transition-ease) 0.3s backwards;
}

.hero-content h1 {
    color: var(--white);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-content p {
    font-family: var(--font-primary);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
}

/* News Headlines Section */
#news-headlines {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
    padding: var(--spacing-md) 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

.news-item {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md);
    border-left: 4px solid var(--accent-gold);
    backdrop-filter: blur(10px);
    transition: all var(--transition-speed) var(--transition-ease);
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.news-item h3 {
    color: var(--white);
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-primary);
}

.news-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    #hero-video {
        margin-top: 138px;
        height: 60vh;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    #hero-video {
        margin-top: 138px;
        height: 50vh;
        min-height: 350px;
    }
    
    .hero-content {
        padding: var(--spacing-sm);
    }
    
    #news-headlines {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm);
    }
    
    .news-item {
        padding: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    #hero-video {
        margin-top: 130px;
    }
    
    .video-container iframe {
        width: 150vw;
        height: 150vh;
    }
}

/* Animation delays for news items */
.news-item:nth-child(1) {
    animation: slideInLeft 0.6s var(--transition-ease) 0.2s backwards;
}

.news-item:nth-child(2) {
    animation: slideInRight 0.6s var(--transition-ease) 0.4s backwards;
}
