* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  overflow-x: hidden;
}
body {
  background: #050510;
  color: #ffffff;
  font-family: system-ui, sans-serif;
}
#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(0,229,255,0.08), transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(255,0,255,0.06), transparent 40%),
              radial-gradient(circle at 20% 80%, rgba(255,234,0,0.05), transparent 35%);
  z-index: 1;
  pointer-events: none;
}
header {
  position: fixed;
  top: 0; left: 0;
  padding: 28px 36px;
  z-index: 10;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.llamada{
  position:fixed;
  top:0; right:0;
  padding: 26px 34px;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
header span {
  color: #00E5FF;
  text-shadow: 0 0 10px rgba(0,229,255,0.6);
}
main {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 80px;
  text-align: center;
}
.title {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(3.5rem, 13vw, 9rem);
  color: #FF00FF;
  margin-bottom: 48px;
  animation: flicker 4s infinite alternate;
}
@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; text-shadow: 0 0 30px #FF00FF; }
  20%, 24%, 55% { opacity: 0.88; text-shadow: 0 0 10px #FF00FF; }
}
.cta {
  background: #00E5FF;
  color: #050510;
  padding: 17px 36px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 90px;
  transition: all 0.3s ease;
}
.cta:hover {
  background: #FFEA00;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255,234,0,0.9);
}
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    transition: opacity 0.6s ease;
    opacity: 0;
    visibility: hidden;
    height: 0; 
    transition: opacity 0.6s ease;
}
.cards.show {
  
    opacity: 1;
    visibility: visible;
    height: auto; 
}
.card {
  background: rgba(17,17,31,0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
  border-bottom: 4px solid #FF00FF;
  border-radius: 14px;
  padding: 32px 28px;
  text-align: left;
  transition: all 0.4s ease;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-10px);
  border-bottom-color: #FFEA00;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: #a8a8c0; text-align:left; }
.card-1 h3 { color: #00E5FF; }
.card-2 h3 { color: #FF00FF; }
.card-3 h3 { color: #FFEA00; }
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr; max-width: 420px; }
}
.oculto {
}
.oculta{
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
  height: 0; 
  overflow: hidden; 
}
.ventana{
  background: rgba(17,17,31,0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
  border-bottom: 4px solid #FF00FF;
  border-radius: 14px;
  padding: 32px 28px;
  transition: all 0.4s ease;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(17,17,31,0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 50px 40px;
  z-index: 20;
  width: 90%;
  max-width: 400px;
  text-align: center;
}
.ventana p {font-size: 14.5px; color: #a8a8c0; text-align:center;}
@font-face {
  font-family: "Rubik Glitch";
  src: url('RubikGlitch-Regular.ttf') format('truetype');
}
.rubik1 {
  font-family: "Rubik Glitch", system-ui;
  font-weight: 80;
  font-size: 80px;
  font-style: normal;
  text-align: left;
  color: #00E5FF;
  padding-top: 100px;
  padding-left: 70px;
  padding-right: 80px;
}
.rubik2 {
  font-family: "Rubik Glitch", system-ui;
  font-weight: 80;
  font-size: 80px;
  font-style: normal;
  text-align: left;
  color: #FF00FF;
  padding-top: 100px;
  padding-left: 70px;
  padding-right: 80px;
}
.rubik3 {
  font-family: "Rubik Glitch", system-ui;
  font-weight: 80;
  font-size: 80px;
  font-style: normal;
  text-align: left;
  color: #FFEA00;
  padding-top: 100px;
  padding-left: 70px;
  padding-right: 80px;
}
.texto{
  font-size: 25px;
  color:ghostwhite;
  text-align: left;
  padding-top: 25px;

  opacity: 1;
}
.rubik{
  font-family: "Rubik Glitch", system-ui;
  font-weight: 100;
  font-size: 75px;
  font-style: normal;
  text-align: center;
  color:ghostwhite;
  padding-top: 25px;
}
.logo-img {
    height: 60px; 
    width: auto;
    vertical-align:bottom; 
    margin-bottom: 10px; 
}
.medio{
  text-align: center;
  font-size: 20px;
  color: ghostwhite;
  padding-bottom: 25px;
}
p, h1, h2, h3 {
    overflow-wrap: break-word;    
}
.contenedor-texto {
    width: 85%;             
    max-width: 980px;        
    margin: 0 auto;          
    padding: 0 20px;
    box-sizing: border-box;  
}
.contenedor-texto p {
    text-align: left; 
    width: 90%;      
    padding: 0;       
}
.contenedor-textot {
    width: 85%;             
    max-width: 980px;
    margin: 0 auto;          
    padding-top: 80px;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;  
}
#overlay-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* Forzamos el ancho de la pantalla */
    height: 100vh; /* Forzamos el alto de la pantalla */
    background: rgba(5, 5, 16, 0.95);
    backdrop-filter: blur(5px);
    z-index: 9999; /* Asegura que esté por encima de TODO */
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* La caja contenedora del video */
.contenedor-video {
    position: relative;
    width: 90%;
    max-width: 800px; /* En PC no pasará de 800px */
    max-height: 80vh; /* ¡ESTA ES LA CLAVE! No puede ocupar más del 80% del alto del monitor */
    background: #050510;
    border: 1px solid #00E5FF;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
    box-sizing: border-box;
}

/* El tag <video> propiamente tal */
.contenedor-video video {
    width: 100%;       /* Se adapta al ancho del contenedor */
    height: auto;      /* Mantiene la proporción */
    max-height: 75vh;  /* Evita que se estire hacia abajo y oculte cosas */
    display: block;
    border-radius: 4px;
}

/* El botón de cerrar (la X) */
.btn-cerrar-video {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #FF00FF;
    color: #ffffff;
    width: 44px;         /* ESTÁNDAR DE UX MÓVIL: Mínimo 44px para que quepa el dedo */
    height: 44px;        /* Mínimo 44px */
    border-radius: 50%;
    text-align: center;
    line-height: 44px;   /* Alinea la X perfectamente al centro del nuevo tamaño */
    font-weight: bold;
    cursor: pointer;
    z-index: 999999 !important;
    pointer-events: auto !important;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.btn-cerrar-video:hover {
    transform: scale(1.1);
}
.categorias {
  font-size: 25px;
  color:ghostwhite;
  text-align: center;
  padding-top: 25px;
  padding-bottom: 25px;
  opacity: 1;
}
.cardd {
  background: rgba(17,17,31,0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
  border-bottom: 4px solid #FF00FF;
  border-radius: 14px;
  padding: 32px 28px;
  text-align: left;
  transition: all 0.4s ease;
}
.cardd:hover {
  transform: translateY(-10px);
  border-bottom-color: #FFEA00;
}
.cardd h3 { font-size: 19px; margin-bottom: 10px; }
.cardd p { font-size: 14.5px; color: #a8a8c0; text-align:left; }
.cardd-1 h3 { color: #00E5FF; }
.cardd-2 h3 { color: #FF00FF; }
.cardd-3 h3 { color: #FFEA00; }