*{
	margin:0px;
	padding: 0;
}
html, body{
	width: 100%;
}
header {
    width: 100%;
    height: 200px;
    top: 0px;
    /* justify-content:space-between; es correcto para las 3 imágenes */
    justify-content: space-between; 
    background-color: #000;
    display: flex;
    /* CLAVE: Permite que los elementos pasen a la siguiente línea */
    flex-wrap: wrap; 
    position: fixed;
    transform: translateY(0);
    transition: transform 1s ease;
    z-index: 1;
}

.img_left {
    /* CORRECCIÓN: Usa un valor fijo o más pequeño para el ancho */
    flex: 0 0 15%; /* Ocupa el 15% del ancho */
    height: 100%;
    margin-left: 3%;
}

.emblem {
    /* CORRECCIÓN: Permite que tome el espacio restante en el centro, lo que lo centrará */
    flex: 1 1 auto; 
    height: 100%;
    text-align: center;
}

.img_right {
    /* CORRECCIÓN: Igual que img_left */
    flex: 0 0 15%; /* Ocupa el 15% del ancho */
    height: 100%;
    margin-right: 3%;
}

.nav-content {
    /* CLAVE: Ocupa el 100% del ancho, forzándolo a la segunda línea */
    flex: 0 0 100%; 
    height: auto;
    width: 100%;
    position: relative;
    background-color: #333;
    padding: 0.5% 0;
    font-size: 1.4em;
    /* Asegura que la navegación esté en la parte inferior de los 200px del header */
    align-self: flex-end; 
}

/* * Ajustes adicionales para que el contenido de las imágenes se centre *
*/
.img_left, .emblem, .img_right {
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center;     /* Centra verticalmente */
}

/* * Ajuste de altura para que el nav no se "coma" la altura de las imágenes
* Si la altura total es 200px, y el nav ocupa unos 40px, las imágenes tendrán 160px
*/
.img_left, .emblem, .img_right {
    /* La altura se ajustará dinámicamente */
    height: calc(100% - 40px); /* Ajusta 40px al alto real de tu barra de navegación */
}
.nav-content ul{
	display: flex;
	transition-delay: transform 0.3s ease-in-out;
	list-style: none;
	padding:0;
	margin:0;
	justify-content:space-between;
}
.nav-content ul li{
	flex: 1;
	text-align: center;
}
.nav-content ul a {
	color: #fff;
	text-decoration: none;
}
.nav-content ul a:hover{
	padding: 4% 10%;
	border-radius: 8px;
	-webkit-box-shadow: 0px 10px 20px 0px rgba(25,223,0,1);
	-moz-box-shadow: 0px 10px 20px 0px rgba(25,223,0,1);
	box-shadow:  0px 10px 20px 0px rgba(25,223,0,1);
}
.nav-content ul li a,
a:visited,
a:active,
a:hover {
    color: #fff !important;
}
/* ====== BOTÓN HAMBURGUESA ====== */
.hamburger {
    display: none;
    position: absolute;
    top: 5px;
    right: 20px;
    width: 32px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1000;
    background: none;
    border: none;
    transition: transform 0.3s ease;
}

.hamburger span {
    display: block;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, #1aff00, #00ccff);
    box-shadow: 0 0 6px #1aff00, 0 0 12px #00ccff;
    transition: all 0.3s ease;
}

/* Animación hamburguesa */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}
@media screen and (max-width: 800px){
	,nav{display:none;}
	.img_left{ display:none;}
	.img_right{display:none;}
	.emblem{width:100%;}
		main{
		display: flex;
		flex-direction: column;
		gap: 20px;
		padding: 5px;
		margin-top: 200px;
		background-color:#046307;
	}
	.nav-content {
    	height: auto;
        /* Fondo semitransparente con blur solo en móviles */
        background: rgba(17, 17, 17, 0.8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 2px solid #1aff00;
        box-shadow: 0 0 15px rgba(0,255,100,0.25);
    }

    .nav-content ul {
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
    }

    .nav-content ul.show {
        max-height: 600px;
    }

    .hamburger {
        display: flex;
    }
}