/* =======================
   Reset general
======================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Outfit', sans-serif;
} 

/* =======================
   Fondo completo
======================= */
.inicio {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: url('imagenes/portadas/fondoinicio.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* =======================
   Header
======================= */
header {
    display: flex;
    justify-content: space-between; /* izquierda ↔ derecha */
    align-items: center;
    padding: 20px 50px;
    background-color: transparent;
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 40px;
    color: #0f0fbd;
    font-weight: 250;
    font-family: 'Outfit', sans-serif;
}

/* =======================
   Menú
======================= */
nav {
    display: flex;
    font-size: 30px;
}

nav a {
    margin-left: 30px;
    text-decoration: none;
    color: black;
    font-weight: 350;
    font-family: 'Raleway', sans-serif;
    transition: transform 0.2s ease, color 0.2s ease;
}

nav a:hover {
    transform: scale(1.1);
}

/* =======================
   Redes sociales
======================= */
.redes {
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: transparent;
    position: relative;
    z-index: 1;
    margin-top: auto;
    font-size: 35px;
    font-weight: 350;
    font-family: 'Raleway', sans-serif;
}

.redes a {
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-weight: 350;
    font-family: 'Raleway', sans-serif;
    transition: transform 0.2s ease, color 0.2s ease;
}

nav a:hover,
.redes a:hover {
    color: #0f0fbd;
    transform: scale(1.1);
}

/* =======================
   Hamburguesa
======================= */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: black;
}

/* =======================
   MÓVIL
======================= */
@media (max-width: 768px) {

    /* Header */
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }

    header h1 {
        font-size: 28px; /* más pequeño */
    }

    /* Mostrar hamburguesa */
    .hamburger {
        display: flex;
        order: 2; /* derecha */
    }

    /* Menú oculto por defecto */
    nav {
        display: none;
        position: fixed;     /* fijo en pantalla */
        top: 50px;              /* desde arriba */
        right: 0;            /* alinea a la derecha */
        width: 100%;         /* ocupa todo el ancho */
        height: 100vh;       /* ocupa toda la altura */
        background: rgba(255, 255, 255, 0.50); /* fondo blanco con transparencia */
        padding: 50px 20px;  /* espacio interno */
        border-radius: 0;    /* sin bordes redondeados */
        flex-direction: column;
        gap: 20px;
        z-index: 10;
    }

    /* Menú activo */
    nav.active {
        display: flex;
    }

    nav a {
        font-size: 25px;
        margin-left: 0;
        color: black;
    }

    /* Redes sociales en columna */
    .redes {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px 20px;
        font-size: 22px;
    }

    .redes a {
        margin: 0;
    }
}
