
/* /////Reset general///// */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: white;
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-style: normal; 
  background-color: #15013C;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
  font-size: clamp(1rem, 2vw, 1.25rem);
}

a {
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
}

a:hover {
  color: #ffffff;
}

/* /////Header///// */
.header {
  position: relative;
  width: 100%;
 
  display: flex;
  justify-content: center; 
  align-items: flex-start; 
  overflow: hidden;
}

.header video {
  max-width: 100%; 
  height: auto; 
}


/* /////Videos///// */
  .video-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  align-items: flex-start; 
}

.video-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1800px;
  width: 100%;
}

.video-item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 800px;
  height: 450px;
  border-radius: 20px;
  overflow: hidden; 
}

.video-item video {
  width: 100%;
  max-width: 800px;
  border-radius: 20px;
}

.video-iframe {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover; 
}

.video-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative; 
  width: 100%;
  max-width: 800px;
  border-radius: 20px;
  cursor: pointer;
  aspect-ratio: 16 / 9; 
  display: block;
  height: auto;
}

.video-thumbnail {
  width: 100%;
  display: block;
  border-radius: 20px; 
}

.video-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}


.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  border-radius: 20px; 
}

.video-mobile {
  display: none;
}

/* /////Boton Play///// */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 50px;
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.6);
  transition: background 0.3s ease, transform 0.2s ease;
}

.play-button:hover {
  background-color: rgba(0, 0, 0, 0.9);
  background: rgba(255, 255, 255, 0.8);
  transform: translate(-50%, -50%) scale(1.1);
}

.play-button::before {
  content: "▶";
  font-size: 24px;
  color: white;
  font-family: Arial, sans-serif;
  margin-left: 3px; 
} 

.play-button:active {
  transform: translate(-50%, -50%) scale(0.9);
}


/* /////Footer///// */
footer {
  background-color: #15013C;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 5px;
}

.footer-redes {
  display: flex;
  justify-content: center;
  text-align: center;
}

.footer-redes img {
  max-height: 80px;
  padding: 10px;
}

.footer-links {
  display: flex;
  justify-content: center;
  text-align: center;
}

.footer-links a {
  padding: 10px;
  display: block;
}


/* /////////// MEDIA QUERIES/////////// */
@media (max-width: 768px) {
  
  .video-wrapper {
    aspect-ratio: 16 / 9; 
    border-radius: 5px;
    display: block;
    width: 100%;
    height: auto;
  }

  .video-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; 
    max-width: 800px;
    border-radius: 10px;
  }

  .video-item video {
    width: 100%;
    max-width: 800px;
    border-radius: 10px;
  }

  .video-desktop {
      display: none;
  }
    
    .video-wrapper iframe {
      width: 100%;
      height: 100%;
      object-fit: cover; 
      border-radius: 10px;
    }

    .play-button {
      width: 50px;  
      height: 50px;
    }


  .video-mobile {
      display: block;
      width: 100%;
  }

}