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

body {
    font-family: Arial, sans-serif;
    text-align: center;
    padding-top: 80px;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
    background: url("https://previews.123rf.com/images/balabolka/balabolka1609/balabolka160900338/62711875-cartoon-cute-hand-drawn-photo-seamless-pattern-line-art-detailed-with-lots-of-objects-background.jpg") center center;
    background-size: cover;
}

.overlay {
    background-color: rgba(0, 0, 0, 0.75);
    position: relative;
    z-index: 1;
    width: 60%;
    margin: auto;
    padding: 10%;
    border-radius: 10px;
}

h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #cccccc;
}

p {
    font-size: 18px;
    color: #666;
}

/* Logo */
.logo-container {
    margin: 0 auto 30px auto; /* centrado horizontal + margen inferior */
    background: #cccccc;
    width: max-content;
    height: auto;
    border-radius: 30px;
}

.logo-container img {
    width: 150px;
    height: auto;
    pointer-events: none;
    user-drag: none;
}

a.logo-link {
    display: inline-block;
}

.lista-enlaces-index {
    display: inline-flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.lista-enlaces-index a {
    font-size: 1.5rem;
    margin: 20px;
    text-decoration: none;
    color: #ea940f;
    transition: .3s all;
}

.lista-enlaces-index a:hover {
    border-bottom: 1px solid;
    color: #fff;
}

.lista-enlaces-index a:visited {
    color: #ea940f;
}

#btn-iniciar-sesion,
#btn-cerrar-sesion {
    background-color: #ea940f;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    display: block;
    margin: 10px auto;
    text-align: center;
}

#btn-iniciar-sesion:hover,
#btn-cerrar-sesion:hover {
    background-color: transparent;
    color: #ea940f;
    border: 1px solid #ea940f;
}

.icono-perfil {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.icono-perfil:hover {
    transform: scale(1.15);
}

.icono-perfil img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* TELEFONOS | RESPONSIVE */
@media (max-width: 600px) {
    body {
        padding-top: 40px;
        background-size: cover;
        background-position: center;
    }

    .overlay {
        width: 90%;
        padding: 8% 5%;
    }

    .logo-container img {
        width: 60%;
        padding: 10px;
        border-radius: 20px;
    }

    h1 {
        font-size: 32px;
    }

    p {
        font-size: 16px;
    }

    .lista-enlaces-index {
        flex-direction: column;
        align-items: center;
    }

    .lista-enlaces-index a {
        font-size: 1.2rem;
        margin: 10px 0;
    }

    #btn-iniciar-sesion,
    #btn-cerrar-sesion {
        width: 80%;
        font-size: 14px;
        padding: 8px 16px;
    }

    .icono-perfil {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }

    .icono-perfil img {
        width: 20px;
        height: 20px;
    }

    .logo-container {
        width: 100%;
        border-radius: 15px;
        padding: 15px;
    }

    .logo-container img {
        width: 100px;
    }
}
