@charset "utf-8";

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Dosis', sans-serif;
}

/* HEADER GENERAL */
header {
    height: 80px; /* Altura más razonable para móviles */
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(0,0,0,0.95);
}

#contenedor {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

#logo {
    height: 100%;
    display: flex;
    align-items: center;
	width: 90%;
}

#logo img {
    height: 50px; /* Tamaño controlado del logo */
    width: auto;
}

/* BOTÓN HAMBURGUESA */
.nav-bar {
    color: white;
    cursor: pointer;
    font-size: 30px;
    z-index: 1100;
	float: right;
}

/* MENÚ LATERAL (MÓVIL Y PC) */
.menu {
    list-style: none;
    background: rgba(0,0,0,0.98);
    position: fixed;
    top: 80px; /* Empieza justo debajo del header */
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    /* Animación corregida */
    transition: transform 0.5s ease;
    transform: translateX(-100%); 
    opacity: 0;
    visibility: hidden;
}

/* Clase para mostrar el menú */
.menu.mostrar {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.menu__link {
    display: block;
    padding: 20px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 24px; /* Tamaño legible en móviles */
    letter-spacing: 2px;
}

.menu__link:hover {
    background: rgba(255,255,255,0.1);
}

/* MEDIA QUERY PARA PC (1024px en adelante) */
@media screen and (min-width: 1024px) {
    header {
        height: 90px;
    }
    
	
    #logo img {
        height: 60px;
    }

    /* Como quieres que el menú sea por botón también en PC, 
       ajustamos el ancho para que no ocupe toda la pantalla */
    .menu {
        width: 350px; /* Menú lateral tipo sidebar en PC */
        top: 90px;
        height: calc(100vh - 90px);
    }
}