/* HEADER GENERAL */
#header {
	background-color: #000;
	color: #fff;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1em 2em;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 6em;
	z-index: 1000;
	backdrop-filter: blur(4px);
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
	line-height: 1;
	outline: none;
}

/* TÍTULO */
#header h1 {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	font-size: 1.5rem;
	z-index: 1001;
	position: relative;
	outline: none;
	font-family: 'Space Age', sans-serif;
}
/* Efecto hover Team Laser*/
#header h1 a.nav-style:hover {
	color: #721a1a;
}

/* Posicion Team Laser Titulo */
#header h1 a.nav-style {
	position: relative;
	display: inline-block;
	padding-bottom: 20px;
	margin-left: 0.5rem; /* separa del logo */
	font-size: 1.5rem;
	text-transform: uppercase;
	font-weight: 700;
	color: rgb(255, 255, 255);
	text-decoration: none;
	font-family: 'Space Age', sans-serif;
	font-size: 2rem;
}

/* Línea láser  Titulo */
#header h1 a.nav-style::before {
	content: '';
	position: absolute;
	bottom: 1px;
	left: -20px;
	width: 0px;
	height: 2px;
	background: #ff4500;
	box-shadow: 0 0 15px #ff4500, 0 0 30px #ff0000;
	filter: drop-shadow(0 0 8px #ff4500);
	transition: none;
	opacity: 30%;
}

/* Chispa Titulo*/
#header h1 a.nav-style::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: -20px;
	width: 6px;
	height: 6px;
	background: #ffaa00;
	border-radius: 50%;
	box-shadow: 0 0 10px #ffaa00, 0 0 20px #ff6600;
	opacity: 0;
	transform: scale(0.8);
}

#header h1 a.nav-style:hover::before {
	animation: fire-line-title 0.6s forwards;
}

#header h1 a.nav-style:hover::after {
	animation: spark-fire-title 0.6s forwards;
}


#header h1 a.nav-link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.5rem;
	text-transform: uppercase;
	font-weight: 700;
	color: rgb(255, 255, 255);
	text-decoration: none;
	outline: none;
}

/* LOGO */
#header h1 a .logo {
	height: 7.2em;
	width: auto;
	outline: none;
}


/* NAVEGACIÓN */
#nav-horizontal ul {
	display: flex;
	gap: 2em;
	list-style: none;
	margin: 0;
	padding: 0;
	outline: none;
	font-family: 'Space Age', sans-serif;
	font-size: 1.5rem;
}
/* NAVEGACIÓN Ubicacion*/
#nav-horizontal ul li a {
	position: relative;
	color: white;
	text-decoration: none;
	text-transform: uppercase;
	font-weight: 600;
	transition: color 0.3s ease;
	overflow: hidden;
	outline: none; /* 🔥 Elimina línea punteada al hacer clic */
}

/* Efecto hover Team Laser*/
#nav-horizontal ul li a:hover {
	color: #721a1a;
}

/* Enlace */
#nav-horizontal ul li a {
	position: relative;
	display: inline-block;
	padding: 12px 20px 35px; /* top, sides, bottom */
	line-height: 1.4; /* ayuda a que no se corte la parte superior del texto */
	overflow: visible; /* evita que se recorte el brillo o caracteres */
}

/* Línea láser */
#nav-horizontal ul li a::before {
	content: '';
	position: absolute;
	bottom: -12px;
	left: 5px;
	width: 0px;
	height: 2px;
	background: #ff4500;
	box-shadow: 0 0 15px #ff4500, 0 0 30px #ff0000;
	filter: drop-shadow(0 0 8px #ff4500);
	transition: none;
	opacity: 30%;
}



/* Chispa */
#nav-horizontal ul li a::after {
	content: '';
	position: absolute;
	bottom: -14px;
	left: 0;
	width: 6px;
	height: 6px;
	background: #ffaa00;
	border-radius: 50%;
	box-shadow: 0 0 10px #ffaa00, 0 0 20px #ff6600;
	opacity: 0;
	transform: scale(0.8);
}


/* Animaciones al pasar el cursor */
#nav-horizontal ul li a:hover::before {
	animation: fire-line 0.6s forwards;
}

#nav-horizontal ul li a:hover::after {
	animation: spark-fire 0.6s forwards;
}

/* ANIMACIONES */
/* Animación línea */
@keyframes fire-line-title {
	0% { width: 0; }
	100% { width: 120%; } /* un poco más larga */
}


@keyframes fire-line {
	0% { width: 0; }
	100% { width: 95%; }
}

/* Animación chispa */
@keyframes spark-fire-title {
	0% {
		left: 0;
		opacity: 1;
		transform: scale(1.2); /* más grande al inicio */
	}
	50% {
		opacity: 1;
	}
	100% {
		left: 110%; /* recorre más distancia */
		opacity: 0;
		transform: scale(0.9); /* se desvanece más suavemente */
	}
}
@keyframes spark-fire {
	0% {
		left: 0;
		opacity: 1;
		transform: scale(1);
	}
	70% { opacity: 1; }
	100% {
		left: 95%;
		opacity: 0;
		transform: scale(0.8);
	}
}

/* RESPONSIVE */
@media screen and (max-width: 736px) {
	#header h1 a {
		font-size: 0.8em;
	}
	#header nav > ul > li > a {
		padding: 0 0 0 1.5em;
	}
	#header nav > ul > li > a.menuToggle {
		padding: 0 1.5em;
	}
	#header nav > ul > li > a.menuToggle span {
		display: none;
	}
}

/* NAV LAYOUT INDEPENDIENTE */
#header nav {
	position: absolute;
	right: 2%;
	top: 35%;
	height: inherit;
	line-height: inherit;
}

#header nav > ul {
	list-style: none;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}

#header nav > ul > li {
	display: inline-block;
	padding: 0;
}

#header nav > ul > li > a {
	border: 0;
	color: #fff;
	display: block;
	font-size: 0.8em;
	letter-spacing: 0.225em;
	padding: 0 1.5em;
	text-transform: uppercase;
}

/* ICONO MENÚ (si lo usas) */
#header nav > ul > li > a.menuToggle:after {
	background-image: url("images/bars.svg");
	background-position: right center;
	background-repeat: no-repeat;
	content: '';
	display: inline-block;
	height: 3.75em;
	vertical-align: top;
	width: 2em;
}

/* ESTADO ALTERNATIVO DEL HEADER */
#header.alt {
	background: transparent;
}
#header.alt h1 {
	pointer-events: none;
	opacity: 0;
}

#header h1 a.nav-link,
#header h1 a.nav-link:focus,
#header h1 a.nav-link:active,
#header h1 a.nav-link .logo,
#header h1 a.nav-link .logo:focus,
#header h1 a.nav-style,
#header h1 a.nav-link .logo:active {
	outline: none !important;
	border: none !important;
	box-shadow: none !important;
	text-decoration: none !important;
}





/* HEADER GENERAL */
#header {
  background-color: #000;
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1em 0;
  z-index: 1000;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  min-height: 4.2em;
  padding: 0.6em 1em;
}

/* CONTENEDOR INTERNO */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1em 2em;
  box-sizing: border-box;
}


/* BRANDING (LOGO + TEXTO) */
.branding {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start; /* 🔥 Fuerza a alinearse a la izquierda */
  flex: 0.5; /* 🔥 Permite que empuje el contenido a la derecha */
}

/* LOGO */
.logo {
  height: 8em;
  width: auto;
  max-width: 100%;
}


/* TEXTO “TEAM LASER” */
.nav-style {
  font-family: 'Space Age', sans-serif;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  text-transform: uppercase;
  text-decoration: none;
  outline: none;
  letter-spacing: 0.1em;
}

/* ENLACE DEL LOGO */
.nav-link {
  display: flex;
  align-items: center;
  outline: none;
  text-decoration: none;
}

/* NAVEGACIÓN */
#nav-horizontal .nav-links {
  display: flex;
  gap: 2em;
  list-style: none;
  margin: 0;
  padding: 0;
}

#nav-horizontal .nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

#nav-horizontal .nav-links li a:hover {
  color: #ff2d2d;
}

/* BOTÓN HAMBURGUESA (OCULTO POR DEFECTO) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: white;
  cursor: pointer;
  padding: 0.5em;
}

/* GENERAL - REMOVER EFECTOS VISUALES NO DESEADOS */
#header a,
#header a:focus,
#header a:active {
  text-decoration: none;
  outline: none;
  border: none;
  box-shadow: none;
}

/* RESPONSIVE HASTA 1024px */
@media screen and (max-width: 1024px) {
  #header {
    padding: 0.6em 1em;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1em;
    gap: 1em;
  }

  .branding {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: auto;
  }

  .logo {
    height: 3.5em;
    width: auto;
    max-width: 100%;
  }

  .nav-style {
    font-size: 1.2rem;
    text-align: center;
    margin-top: 0.3em;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    padding: 0.3em;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    outline: none;
    box-shadow: none;
  }

  .menu-toggle:focus,
  .menu-toggle:active {
    outline: none;
    border: none;
    box-shadow: none;
  }

  #nav-horizontal .nav-links {
    flex-direction: column;
    display: none;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 1em 0;
    width: 100%;
    border-radius: 8px;
    text-align: center;
  }

  #nav-horizontal .nav-links.active {
    display: flex;
  }

  #nav-horizontal .nav-links li {
    margin: 0.5em 0;
  }

  #nav-horizontal .nav-links li a {
    font-size: 1.1rem;
  }
}

/* OPTIMIZACIÓN EXTRA PARA PANTALLAS PEQUEÑAS (HASTA 768px) */
@media screen and (max-width: 768px) {
  .logo {
    width: 12em;
    height: auto;
  }

  .nav-style {
    font-size: 1.1rem;
  }

  .menu-toggle {
    font-size: 1.6rem;
  }
}

































@media screen and (max-width: 768px) {
  #header {
    padding: 0.6em 1em;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .menu-toggle {
    font-size: 1.5rem;
    padding: 0.3em;
    margin: 0;
  }

  .branding {
    gap: 8px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }

  .logo {
    height: 3.5em;
	width: 15em;
  }

  .nav-style {
    font-size: 1.2rem;
  }
}
/* ELIMINAR LÍNEAS PUNTEADAS / EFECTOS NO DESEADOS EN ENLACES */
#header a,
#header a:focus,
#header a:active {
  text-decoration: none;
  outline: none;
  border: none;
  box-shadow: none;
}
