* {
    margin: 0;
    padding: 0;
     margin-top: 5px; /* separación desde arriba */
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}


/* Contenedor del logo */
.logo {
    display: flex;
    align-items: center;      /* Centra verticalmente */
    justify-content: center;  /* Centra horizontalmente */
    height: 60px;             /* Altura del área del logo */
    width: 120px;             /* Ancho máximo del logo */
}

/* Imagen del logo */
.logo img {
    max-height: 100%;         /* Se adapta al contenedor */
    max-width: 100%;          /* Evita que se estire demasiado */
    display: block;
    margin: 0 auto;           /* Centrado horizontal exacto */
}

/* HEADER */
.header {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* CONTENEDOR CENTRADO */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center; /* Centrado general */
    gap: 40px;
    height: 80px;
    position: relative;
}

/* LOGO */
.logo {
    font-size: 20px;
    font-weight: bold;
    color: #1e3a8a;
}

/* NAV */
.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* LINKS DEL NAV */
.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 12px; /* espacio para el fondo */
    border-radius: 5px; /* bordes redondeados opcional */
    transition: background 0.3s, color 0.3s;
}

/* Hover: fondo azul y letra blanca */
.nav a:hover {
    background-color: #1e3a8a; /* azul de resaltado */
    color: #ffffff;
}





/* BOTÓN AULA */
.btn {
    background: #1e3a8a;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 20px;
}

/* HAMBURGUESA */
.hamburger {
    display: none;
    position: absolute;
    right: 20px;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #1e3a8a;
    margin: 4px 0;
}

/* RESPONSIVE */

@media (max-width: 768px) {

    /* Contenedor: logo centrado */
    .container {
        justify-content: center; /* Todo centrado horizontalmente */
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%); /* Logo centrado */
    }

    /* Menú hamburguesa visible */
    .hamburger {
        display: flex;
        position: absolute;
        right: 20px;
    }

    /* Menú oculto inicialmente */
    .nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 20px;
        background: #ffffff;
        padding: 20px 0;
        display: none;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        text-align: center;
    }

    .nav.active {
        display: flex;
    }
}
