html, body {
    /* 1. CLAVE: Forzamos al HTML y BODY a ocupar el 100% de la altura de la ventana */
    height: 100%;
    
    /* 2. CLAVE: Deshabilitamos el scroll en la página */
    overflow: hidden; 
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

.hero-section {
  position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    min-height: auto;
    box-sizing: border-box;
    overflow: hidden; 
    height: calc(100vh - 220px);

    background-image: url(../img/landing_uservientrega.jpg); 
    background-repeat: no-repeat;
    
    /* === PROPIEDADES CLAVE PARA LA ESTABILIDAD === */
    background-size: cover; /* 1. Asegura que la imagen siempre cubra todo el contenedor */
    background-position: center; /* 2. Centra la imagen para que no se corte por los bordes */
    background-attachment: fixed; /* 3. CLAVE: Mantiene la imagen fija respecto a la ventana, no al contenedor */
}

.logo-container {
    position: absolute; 
    top: 0;
    left: 0;
    width: 25%; 
    height: 100%;
    
    background-color: white; 
    
    border-top-right-radius: 120px; 
    
    z-index: 10; 
    padding: 20px 50px; 
    box-sizing: border-box;
    display: flex;
    justify-content: center; 
    align-items: center; 
    flex-direction: column;
}

.main-logo {
    max-width: 80%;
    height: auto;
}

.content-container {
    width: 75%; 
    margin-left: 25%; 
    
    position: relative; 
    z-index: 5; 
    
    background-color: transparent; /* CLAVE: Transparente para ver el fondo del hero-section */
    /* QUITAR PROPIEDADES DE BACKGROUND AQUI */
    
    display: flex;
    justify-content: flex-end; 
    align-items: center; 
    padding-right: 0; 
}


.logo-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 25%; 
    height: 100%;
    
    background-color: white; 
    
    border-top-right-radius: 120px; 
    
    z-index: 10; 

    padding: 20px 50px; 
    
    box-sizing: border-box;
    display: flex;
    justify-content: center; 
    align-items: center; 
    flex-direction: column;
}

.main-logo {
    max-width: 80%;
    height: auto;
}


.content-container {
    width: 70%; 
    margin-left: 30%; 
    
    position: relative; 
    z-index: 5; 
}


.buttons-sidebar {
    position: absolute; 
    bottom: 0; 
    right: 0; 
    
    width: 280px; 
    
    border-radius: 10px;
    overflow: hidden; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 30;
}

.small-s-logo-btn {
    display: none; 
}

.btn {
    display: block;
  
    padding: 35px; 
    text-align: center;

    font-size: 1.3em; 
    font-weight: bold;
    color: white; 
    transition: background-color 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.campus-btn {
    background-color: #e91e63;
   
    padding-top: 20px; 
    border-radius: 10px 10px 0 0; 
}

.campus-btn {
    background-color: #e91e63;
    padding-top: 30px; 
    border-radius: 10px 10px 0 0; 
}

.comunidades-btn {
    background-color: #388e3c;
}

.games-btn {
    background-color: #1b5e20;
    border-radius: 0 0 10px 10px; 
}

.btn:hover {
    filter: brightness(1.1); 
}


.instructions-section {
    display: flex !important; 
    flex-direction: row !important; 
    justify-content: center;
    gap: 30px; 
    align-items: center;
    padding: 0; 
    background-color: #e6e6e6; 
    border-top: 1px solid #ddd;
    height: 220px; 
    min-height: 220px; 
}

.instruction-item {
    flex-grow: 0; 
    flex-shrink: 0; 
    flex-basis: auto;
    text-align: left; 
    padding: 0;
    display: flex; 
    flex-direction: row; 
    align-items: center; 
}

.icon-circle {
    width: 120px; 
    height: 120px;
    min-width: 120px; 
    border-radius: 50%; 
    background-color: #008000; 
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
}

.instruction-icon {
    width: 60px; 
    height: 60px;
    filter: brightness(0) invert(1); 
}

.instruction-item p {
    font-size: 0.95em;
    line-height: 1.4;
    color: #333; 
    max-width: 170px; 
    margin: 0; 
}



@media (max-width: 768px) {
    
    .hero-section {
        flex-direction: column;
        min-height: auto;
    }

    .logo-container {
        position: relative;
        width: 100%;
        height: auto;
        padding: 30px 20px;
        order: -1;
        border-top-right-radius: 0;
    }

    .content-container {
        width: 100%; 
        margin-left: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 50px 0; 
    }

    .buttons-sidebar {
        position: relative; 
        bottom: auto;
        right: auto;
        width: 90%;
        margin: 20px 0;
        order: 1;
    }
    
    .login-area {
        display: none; 
    }

    .instructions-section {
        flex-direction: column !important; 
        align-items: center;
    }

    .instruction-item {
        margin-bottom: 30px;
        flex-direction: column; 
        text-align: center;
    }
    
    .icon-circle {
        margin-right: 0;
        margin-bottom: 15px;
    }

}