﻿/* Estilos para el modal de YouTube */
.youtube-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.1s ease-in-out;
  }  
  .youtube-modal-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    animation: slideIn 0.2s ease-in-out;
  }  
  .youtube-modal-close {
    position: absolute;
    top: 15px;
    right: 0px;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: transparent !important;
    width: 30px;
    height: 30px;
  }  
  .youtube-modal-close:hover {
    transform: scale(1.1);
  }  
  .youtube-video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
  }  
  .youtube-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }  
  /* Animaciones */
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }  
  @keyframes slideIn {
    from {
      transform: scale(0.6);
      opacity: 0;
    }
    to {
      transform: scale(1);
      opacity: 1;
    }
  } 
  @media(width >=1024px){
      .youtube-modal-content {                
        max-width: 1200px;
      }  
  } 
  /* Responsive */  
  @media (max-width: 768px) {   
    .youtube-modal-content {
      width: 95%;
      margin: 20px;
    }  
    .youtube-modal-close {
      top: -35px;
      font-size: 25px;
      width: 35px;
      height: 35px;
    }
  }  
  @media (max-width: 480px) {
    .youtube-modal-content {
      width: 90%;
      margin: 10px;
    }
  }