/**
 * GSS Video Modal
 * Sección de vídeo con modal de YouTube.
 *
 * Marker: .gss-video-section
 * JS:     assets/js/components/gss-video-modal.js
 */

.gss-video-section .video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
  overflow: hidden;
  border-radius: 12px;
}
.gss-video-section .video-wrapper video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none;
}
.gss-video-section .video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
  z-index: 1;
  pointer-events: none;
}
.gss-video-section .video-btn-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.gss-video-section .btn-ver-video {
  background: #ffffff;
  color: #041438;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  cursor: pointer;
}
.gss-video-section .btn-ver-video:hover {
  background: #00FFD7;
  color: #041438;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.gss-video-section .btn-ver-video:focus-visible {
  outline: 3px solid #5078FF;
  outline-offset: 3px;
}
.gss-video-section .hero-decoration {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 120px;
  z-index: 3;
  pointer-events: none;
}

/* Modal */
.gss-video-section .video-modal {
  display: none;
  position: fixed;
  z-index: 100000;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  padding: 24px;
}
.gss-video-section .video-modal.is-open {
  display: flex;
}
.gss-video-section .video-modal-content {
  position: relative;
  width: min(960px, 90vw);
  max-height: 90vh;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.gss-video-section .video-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 28px;
  line-height: 40px;
  cursor: pointer;
  transition: background .2s ease, transform .08s ease;
}
.gss-video-section .video-close:hover { background: rgba(255,255,255,.2); }
.gss-video-section .video-close:active { transform: scale(.98); }
.gss-video-section .video-close:focus-visible {
  outline: 2px solid #5078FF;
  outline-offset: 2px;
}
.gss-video-section .video-embed {
  position: relative;
  width: 100%;
}
.gss-video-section .video-embed::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}
.gss-video-section .video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

body.gss-no-scroll {
  overflow: hidden;
}

@media (max-width: 480px) {
  .gss-video-section .video-close {
    top: 6px;
    right: 8px;
    width: 36px;
    height: 36px;
    font-size: 24px;
    line-height: 36px;
  }
}
