/* ===== RESET ===== */
html, body {
  margin: 0;
  background: rgb(248, 241, 227);
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}
video::-webkit-media-controls-panel {
  background: none !important;
}

video::-webkit-media-controls-volume-slider {
  display: none;
}

video::-webkit-media-controls-mute-button {
  display: none;
}


/* ESCALA GLOBAL */
html {
  font-size: clamp(14px, 1vw, 18px);
}

/* ===== HEADER ===== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2vw;
}

/* BOTÓN VOLVER */
.btn-back {
  text-decoration: none;
  font-family: 'MiFuente', sans-serif;
  color: rgba(0,10,147,0.84);
  letter-spacing: -0.02em;
  font-weight: 600;
  font-size: 2.25rem;
}

/* ===== IDIOMA ===== */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.lang-switch button {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  opacity: 0.4;
}

.lang-switch button.active {
  opacity: 1;
}

.lang-switch span {
  opacity: 0.4;
}

/* ===== GRID COMPACTO ===== */
.grid-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  padding: 1.5rem 2vw;
}

/* ===== TARJETAS ===== */
.video-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  transition: transform 0.2s ease;
}

.video-card:hover {
  transform: scale(1.02);
}

/* ===== VIDEO CONTENEDOR ===== */
.video-wrapper {
  width: 100%;
  height: 100%;
  height: 260px;
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
  position: relative;
}


/* ===== VIDEO ===== */
.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  outline: none;
  background: black;
}

/* ===== TEXTO ===== */
.video-title {
  font-family: 'MiFuente', sans-serif;
  font-size: 0.95rem;
  color: rgba(0,10,147,0.84);
  letter-spacing: -0.02em;
  margin: 0;
}

/* ===== FUENTE ===== */
@font-face {
  font-family: 'MiFuente';
  src: url('CargoMonumentGroteskPlusVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
}

/* ocultar idioma */
[hidden] {
  display: none !important;
}