/*

Negro Ciberespacial	#080D17	Fondo Principal. Un negro muy oscuro que proporciona el lienzo perfecto para el efecto de neón y la hace ideal para el modo oscuro (Dark Mode).

Neón Primario	#00FF99	Elementos Clave, Llamadas a la Acción (CTA). El verde brillante que usaste en los fondos. Úsalo para botones, enlaces activos y títulos importantes.

Azul Digital	#00B8FF	Acento Secundario/Gráficos. Combina perfectamente con el verde neón para crear ese look de degradado tecnológico que tiene tu logo. Úsalo en iconos o ilustraciones.

Gris Claro Programador	#C7C7C7	Texto Secundario/Cuerpo. Un gris suave que garantiza legibilidad sobre el fondo oscuro sin ser demasiado brillante (como el blanco puro).

Verde Oscuro Base	#1C7053	Sub-Fondos/Tarjetas. Úsalo como color de fondo para tarjetas de cursos o secciones específicas para darles estructura y mantener la coherencia con el verde principal.	[Color
    
.caballero{
    width: 30.571px;
    max-height: 60px;
    background-image: url("../img/svg/istockphoto-1177269354-612x612.jpg");
    background-position: center;
    background-size: cover;
    animation:    walk 0.75s steps(12) infinite,
    move 6s linear normal infinite,
    mirror 6s steps(1) normal infinite;
}
  
  @keyframes walk {
    to { background-position: -612px; }
  }

  @keyframes move {
    0% { translate: 0 }
    50% { translate: 612px }
    100% { translate: 0 }
  }

  @keyframes mirror {
    0% { scale: 1 1; }
    50% { scale: -1 1; }
  }
*/

/* ----------- Variables ----------- */

:root {
  --negro-ciberespacial: #080D17;
  --neon-primario: #00FF99;
  --azul-digital: #00B8FF;
  --gris-programador: #C7C7C7;
  --verde-oscuro-base: #1C7053;
}

.darkmode {
  --negro-ciberespacial: #080D17;
  --neon-primario: #00FF99;
  --azul-digital: #00B8FF;
  --gris-programador: #C7C7C7;
  --verde-oscuro-base: #1C7053;
}

/* ----------- html ----------- */

body {
  background-color: var(--negro-ciberespacial);
  color: var(--gris-programador);
  font-size: 1em;
  font-family: 'Inter', sans-serif;
  cursor: url("../img/otros/cursor-neon.png") 16 16, auto;
}

a:hover, button:hover{
  cursor: pointer;
}




h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--neon-primario);
  font-weight: 500;
  font-family: 'Rajdhani', sans-serif;
  margin: 0;
}

ul,
li {
  text-decoration: none;
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 2;
}



/* ----------- nav ----------- */

nav {

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--color-principal);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem 0.8rem 1rem;
  border-bottom: 1px solid var(--verde-oscuro-base);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0px 7px 10px;
  animation: change-color 5s alternate infinite;
}

@keyframes change-color{
  0%{ box-shadow: #111b30 0px 7px 10px;}
  10%{ box-shadow: #00b7ff 0px 7px 10px;}
  50%{ box-shadow: #00FF99 0px 7px 10px;}
  90%{ box-shadow: #104130 0px 7px 10px;}
  100%{ box-shadow: #111b30 0px 7px 10px;}
}

.logo img {
  max-width: 60.571px;
  max-height: 60px;
  display: block;
  margin: 0 auto
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.2em;
  ;
}

.main-nav a {
  position: relative;
  font-family: "cience", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: bolder;
  font-size: 1.3em;
  transition: -webkit-text-stroke 1s linear 0.1s ease-in , -webkit-text-fill-color 1s step-start 0.1s ease-in, filter 0.1s;
}

.main-nav a:hover {
  -webkit-text-stroke: var(--azul-digital)0.75px;
  -webkit-text-fill-color: var(--negro-ciberespacial);
  filter: brightness(2);
}

.main-nav a::after {
  content: " ";
  position: absolute;
  height: 2.5px;
  left: 0;
  bottom: -5px;
  width: 0px;
  background-color: var(--neon-primario);
  transition: width 0.5s ease-in-out;
}

.main-nav a:hover::after {
  width: 100%;
}

/* ----------- header ----------- */

header {
  text-align: center;
  align-items: center;
  align-content: center;
  background-image: url("../img/otros/Gemini_Generated_Image_x5rytox5rytox5ry.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }

  50% {
    opacity: 0.8;
  }

  100% {
    opacity: 0.6;
  }
}


header h1 {
  font-size: 2.5em;
  font-family: "anton", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.3;
  text-shadow: var(--azul-digital) 5px 0px 15px, var(--azul-digital) -5px 0px 15px, var(--azul-digital) 0px 5px 15px, var(--azul-digital) 0px -5px 15px,
  var(--negro-ciberespacial) 0px 2px 2px;
}

header p {
  color: var(--gris-programador);
  font-size: 1.5em;
  font-weight: bold;
  font-family: "cience", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-shadow: var(--negro-ciberespacial) 0px 0px 15px;
  backdrop-filter: blur(1.01px);
}

/* ---------- main ----------- */

/* main {
  border-bottom: 1px solid var(--verde-oscuro-base);
} */

.column-grid-3 {
  display: grid;
  height: fit-content;
  gap: 1.2em;
  grid-template-columns: 1fr 1fr;
}

.caja-bg {
  background-image: url(../img/otros/Gemini_Generated_Image_a0ulwya0ulwya0ul.webp);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: var(--azul-digital) solid 2px;
  border-radius: 1.1em;
  height: fit-content;
  transform: translateY(0em);
  transition: transform 0.5s ease-in-out;
}

.caja-bg:hover {
  transform: translateY(-0.5em);
  transition: transform 0.5s ease-in-out;
  box-shadow: var(--neon-primario) 0px 2px 15px;
}

.caja {
  backdrop-filter: blur(20px);
  padding: 0.5em;
  border-radius: 1em;
}

.titulo {
  margin: 1em 0 0 1em;
  padding: 0 auto;
  background-color: var(--verde-oscuro-base);
  border-radius: 1em;
  padding: 0.5em;
  width: fit-content;
}

.contenido ol {
  counter-reset: my-contenido;
}

.contenido ol li::before {
  counter-increment: my-contenido;
  content: counters(my-contenido, ".", decimal)"👾";
}

.contenido li a:hover {
  color: var(--azul-digital);
}

.contenido li a:hover::after {
  content: counter(my-contenido, none) " 📂​";
}



/* ----------- Footer ----------- */

footer {
  background-color: var(--negro-ciberespacial);
  color: var(--azul-digital);
}

footer address {
  line-height: 1.5em;
}

footer address a:hover {
  color: var(--verde-oscuro-base);
}

/* ----------- vidio ----------- */

.hero{
  position: relative;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  margin: 2em;
}

.hero iframe{
  aspect-ratio: 16/9;
}

.dentro{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(8, 13, 23, 0.450);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
  z-index: 0;
}

/* ----------- Containers ----------- */

.header-contain {
  width: 100%;
  height: clamp(400px, 50vh, 65vw);
}

.container-principal {
  width: clamp(85%, 90%, 95%);
  margin: 0 auto;
  padding: 1rem 0 1.5rem 0;
}

/* ----------- Queris ----------- */

@media screen and (max-width: 610px) {
  .column-grid-3 {
    display: grid;
    height: fit-content;
    gap: 1em;
    grid-template-columns: 1fr;
  }
}

/* ----------- Fonts ----------- */

@font-face {
  font-family: 'Inter';
  src: url('font/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}

@font-face {
  font-family: 'Rajdhani';
  src: url('font/Rajdhani/Rajdhani-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 700;
  font-style: normal;
}

@font-face {
  font-family: "out";
  src: url("font/Outfit/Outfit-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
}

@font-face {
  font-family: "anton";
  src: url("font/Anton_SC/AntonSC-Regular.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
}

@font-face {
  font-family: "dot16";
  src: url("font/DotGothic16/DotGothic16-Regular.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
}

@font-face {
  font-family: "cience";
  src: url("font/Science_Gothic/ScienceGothic-VariableFont_CTRS\,slnt\,wdth\,wght.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
}