@charset "UTF-8";
/* ==========================================
   SALUD DEPORTIVA
   GALERIA DE VIDEOS YOUTUBE
========================================== */

.sd-gallery {
  --sd-green: #a6ff00;
  --sd-bg: #080a09;
  --sd-card: #111512;
  --sd-text: #ffffff;
  --sd-muted: #a6ada8;
  --sd-border: #303a31;

  position: relative;
  width: 100%;
  padding: 75px 25px;
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(166,255,0,.08),
      transparent 60%
    ),
    var(--sd-bg);

  color: var(--sd-text);
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
  isolation: isolate;
}

.sd-gallery *,
.sd-video-modal *,
.sd-gallery *::before,
.sd-gallery *::after {
  box-sizing: border-box;
}

.sd-gallery-container {
  width: 100%;
  max-width: 1250px;
  margin: auto;
}

/* ==========================================
   ENCABEZADO
========================================== */

.sd-gallery-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.sd-gallery-eyebrow {
  display: inline-block;
  color: var(--sd-green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 4px;
  margin-bottom: 12px;
}

.sd-gallery-header h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -1px;
}

.sd-gallery-header h2 span {
  color: var(--sd-green);
}

/* ==========================================
   CONTROLES
========================================== */

.sd-gallery-controls {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.sd-gallery-arrow {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--sd-border);
  border-radius: 50%;
  background: #151b15;

  color: var(--sd-green);
  font-size: 15px;
  cursor: pointer;

  transition: .3s ease;
}

.sd-gallery-arrow:hover:not(:disabled) {
  background: var(--sd-green);
  color: #080a09;
  border-color: var(--sd-green);
  box-shadow: 0 0 20px rgba(166,255,0,.25);
}

.sd-gallery-arrow:disabled {
  opacity: .25;
  cursor: not-allowed;
}

/* ==========================================
   CARRUSEL
========================================== */

.sd-gallery-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;

  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;

  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
}

.sd-gallery-viewport::-webkit-scrollbar {
  display: none;
}

.sd-gallery-track {
  display: flex;
  align-items: stretch;
  gap: 22px;
  width: 100%;
  padding: 5px 2px 15px;
}

/* ==========================================
   TARJETAS
========================================== */

.sd-gallery-card {
  position: relative;
  flex: 0 0 calc((100% - 44px) / 3);
  min-width: 0;

  padding: 10px;
  overflow: hidden;

  background: var(--sd-card);
  border: 1px solid var(--sd-border);
  border-radius: 17px;

  color: var(--sd-text);
  cursor: pointer;
  text-align: left;
  font-family: inherit;

  transition:
    transform .4s ease,
    border-color .4s ease,
    box-shadow .4s ease;
}

.sd-gallery-card:hover {
  transform: translateY(-7px);
  border-color: var(--sd-green);

  box-shadow:
    0 0 25px rgba(166,255,0,.12),
    0 18px 40px rgba(0,0,0,.35);
}

.sd-gallery-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 11px;
  background: #000;
}

.sd-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.sd-gallery-card:hover img {
  transform: scale(1.08);
}

/* ICONO PLAY */

.sd-gallery-play {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 58px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  transform: translate(-50%,-50%);
  border-radius: 50%;

  background: rgba(166,255,0,.96);
  color: #080a09;

  font-size: 20px;
  box-shadow: 0 0 25px rgba(166,255,0,.4);

  transition: .3s ease;
}

.sd-gallery-card:hover .sd-gallery-play {
  transform: translate(-50%,-50%) scale(1.15);
}

/* INFORMACION */

.sd-gallery-card-info {
  padding: 17px 9px 12px;
}

.sd-gallery-card-info span {
  color: var(--sd-green);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 2px;
}

.sd-gallery-card-info h3 {
  margin: 9px 0 0;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 800;
}

/* ==========================================
   PROGRESO
========================================== */

.sd-gallery-progress {
  width: 100%;
  height: 3px;
  margin-top: 10px;
  background: #252c26;
  border-radius: 10px;
  overflow: hidden;
}

.sd-gallery-progress div {
  width: 0;
  height: 100%;
  background: var(--sd-green);
  box-shadow: 0 0 12px var(--sd-green);
  transition: width .25s ease;
}


/* ==========================================
   LLAMADO A LA ACCIÓN
========================================== */

.sd-gallery-accion {
    text-align: center;
    padding-top: 85px;
}

.sd-gallery-accion h3 {
    font-size: clamp(23px,3vw,34px);
    font-weight: 900;
    margin: 0 0 15px;
}

.sd-gallery-accion p {
    color: #a0a8a2;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.sd-gallery-accion-button {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 17px 27px;
    background: var(--sd-green);
    color: #080a09;
    text-decoration: none;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    transition: .3s;
}

.sd-gallery-accion-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(166,255,0,.2);
}

/* ==========================================
   VENTANA MODAL
========================================== */

.sd-video-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 25px;

  opacity: 0;
  visibility: hidden;

  transition:
    opacity .3s ease,
    visibility .3s ease;
}

.sd-video-modal.sd-modal-open {
  opacity: 1;
  visibility: visible;
}

.sd-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sd-modal-content {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 1050px;

  padding: 12px;

  background: #101410;
  border: 1px solid rgba(166,255,0,.45);
  border-radius: 18px;

  box-shadow:
    0 0 45px rgba(166,255,0,.09),
    0 30px 100px rgba(0,0,0,.8);

  transform: scale(.94) translateY(15px);

  transition: transform .35s ease;
}

.sd-modal-open .sd-modal-content {
  transform: scale(1) translateY(0);
}

/* CERRAR */

.sd-modal-close {
  position: absolute;
  z-index: 5;

  top: -19px;
  right: -19px;

  width: 45px;
  height: 45px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--sd-green);
  border-radius: 50%;

  background: var(--sd-green);
  color: #080a09;

  font-size: 30px;
  line-height: 1;
  cursor: pointer;

  transition: .3s ease;
}

.sd-modal-close:hover {
  transform: rotate(90deg);
  background: #fff;
  border-color: #fff;
}

/* REPRODUCTOR MODAL */

.sd-modal-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 11px;
  background: #000;
}

.sd-modal-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* INFORMACION MODAL */

.sd-modal-info {
  padding: 20px 12px 10px;
}

.sd-modal-info span {
  color: var(--sd-green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
}

.sd-modal-info h3 {
  margin: 8px 0 0;
  color: #fff;
  font-size: clamp(18px,3vw,25px);
}

/* ==========================================
   TABLETS
========================================== */

@media (max-width: 900px) {

  .sd-gallery {
    padding: 65px 22px;
  }

  .sd-gallery-card {
    flex-basis: calc((100% - 22px) / 2);
  }

}

/* ==========================================
   CELULARES
========================================== */

@media (max-width: 600px) {

  .sd-gallery {
    padding: 50px 15px;
  }

  .sd-gallery-header {
    align-items: center;
    gap: 10px;
  }

  .sd-gallery-header h2 {
    font-size: clamp(23px,6vw,32px);
  }

  .sd-gallery-eyebrow {
    font-size: 9px;
    letter-spacing: 3px;
  }

  .sd-gallery-controls {
    gap: 6px;
  }

  .sd-gallery-arrow {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .sd-gallery-track {
    gap: 14px;
  }

  .sd-gallery-card {
    flex-basis: 85%;
    padding: 9px;
  }

  .sd-gallery-card-info h3 {
    font-size: 16px;
  }

  .sd-gallery-play {
    width: 48px;
    height: 48px;
    font-size: 17px;
  }

  /* MODAL EN CELULAR */

  .sd-video-modal {
    padding: 14px;
  }

  .sd-modal-content {
    padding: 7px;
    border-radius: 12px;
  }

  .sd-modal-close {
    top: -16px;
    right: -7px;
    width: 38px;
    height: 38px;
    font-size: 25px;
  }

  .sd-modal-player {
    border-radius: 8px;
  }

  .sd-modal-info {
    padding: 14px 8px 8px;
  }

}

/* ==========================================
   PANTALLAS PEQUEÑAS
========================================== */

@media (max-width: 360px) {

  .sd-gallery {
    padding-left: 12px;
    padding-right: 12px;
  }

  .sd-gallery-card {
    flex-basis: 90%;
  }

  .sd-gallery-header h2 {
    font-size: 22px;
  }

}

/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {

  .sd-gallery *,
  .sd-video-modal * {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

}