* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: #ffffff;
  color: #202020;
  line-height: 1.6;
}

header {
  display: flex;
  align-items: center;
  padding: 20px;
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;  
  width: 100%;
  z-index: 100;
}

.logo img {
  width: 90px;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  margin-left: 150px;
}

nav ul li {
  margin-right: 15px;
}

nav ul li a {
  text-decoration: none;
  color: #ffffff;
  font-family: 'Myriad Pro', sans-serif;
  font-size: 10pt;
  padding: 5px 10px;
  transition: transform 0.3s;
}

nav ul li a:hover {
  transform: scale(1.1);
}

nav ul li.active a {
  background-color: #791425;
  border-radius: 20px;
}

.hero {
  position: relative;
  overflow: hidden;
  height: 100vh;
  background: url('images/pelicula1.jpg') center/cover no-repeat fixed;
  color: #ffffff;
}

.fondo-hero {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero .content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 40px;
  gap: 10px;
  position: relative;
  z-index: 10;
  padding-top: 15%
}

.hero h1 {
  font-family: 'Impact', sans-serif;
  font-size: 60pt;
  line-height: 1.2;
  max-width: 600px;
  color: #ffffff;
  margin: 0;
}

.btn-suscribete {
  padding: 8px 20px;
  background-color: #eb0505;
  color: #ffffff;
  cursor: pointer;
  font-weight: bold;
  border-radius: 10px;
  font-size: 16px;
}

.rectangulo {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: black;
  transform-origin: left;
  transition: width 2s ease;
  clip-path: polygon(0 0, 100% 0, calc(100% - 70vh) 100%, 0 100%);
}

#rect1 { opacity: 0.2; z-index: 1; }
#rect2 { opacity: 0.3; z-index: 2; }
#rect3 { opacity: 0.5; z-index: 3; }
#rect4 { opacity: 1; z-index: 4; }

.titulares {
  opacity: 0;
  animation: fadeInSlide 1.5s ease forwards;
  animation-delay: 1.2s;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
 
  .hero {
    padding: 150px 20px 100px 20px;
    background-position: center center;
  }

  .hero h1 {
    font-size: 32pt;
    max-width: 100%;
  }

  .titulares {
    animation: fadeInSlideSmall 1.5s ease forwards;
    animation-delay: 1s;
  }

  @keyframes fadeInSlideSmall {
    from {
      opacity: 0;
      transform: translateX(-40px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .btn-suscribete {
    font-size: 14px;
    padding: 6px 14px;
  }
}

.cta-container-img{

  background-color: azure;
    width: 100%;
    height: 50vh;
    overflow: hidden;
    position: relative;
    -webkit-clip-path: inset(0);
          clip-path: inset(0);
}


.cta-container-img:before{
  
  content: '';
   background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    inset: 0;
    z-index: 2;
}

.cta-container img{
  
  position: fixed;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
      object-fit: cover;
  z-index: 1;
  overflow: hidden;
}

.cta-container-text{
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 3;
}

.cta-container-text h2, .cta-container-text p{
  color: white;
  margin-bottom: 1rem;
  margin-left: 20%;
  margin-right: 20%;
  text-align: center;
  font-family: Helvetica, sans-serif;
  font-size: 20pt;
}
  
.cta-container-text a{
  color: white;
  margin-bottom: 1rem;
  text-decoration: none;
  border: 1px solid white;
  padding: .5rem 1rem;
  cursor: pointer;
  transition: .2s ease;
}

.cta-container-text a:hover{
  background-color: white;
  color: black;
  border: 1px solid white;
}



/* Hamburguesa oculta por defecto */
#menu-toggle {
  display: none;
}



/* Menú horizontal por defecto */
.menu ul {
  list-style: none;
  display: flex;
  gap: 15px;
}

.menu ul li a {
  text-decoration: none;
  color: white;
}

/* En móviles */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    color: white;
    cursor: pointer;
    z-index: 999;
  }
  
  

  .menu ul {
    flex-direction: column;
    gap: 30px;
    background-color: rgba(0,0,0,0.8);
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    justify-content: center;
    align-items: center;
    transition: left 0.3s ease;
    z-index: 998;
    display: flex;
  }

  /* MOSTRAR cuando el toggle está activo */
  #menu-toggle:checked + .menu-icon + .menu ul {
    left: 0;
  }
}
.menu-icon {
  display: ;
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  z-index: 999;
}

