/* Estilo general */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #fff;
}

/* Estructura base */
.perfil-contenedor {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    text-align: left;
    margin: 20px auto;
}

.foto-perfil img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
}

.info-perfil h1 {
    font-size: 24px;
    margin: 10px 0;
}

.info-perfil p {
    max-width: 600px;
    font-size: 16px;
    line-height: 1.5;
}

.redes-sociales a {
    margin: 0 10px;
    font-size: 24px;
    color: #333;
    transition: color 0.3s;
}

.redes-sociales a:hover {
    color: #ffaa00;
}

/* Botones de la segunda sección */
.botones {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px auto;
}

.botones button {
    padding: 10px 20px;
    border-radius: 20px;
    background-color: #333;
    color: #fff;
    border: 2px solid #ffaa00;
    cursor: pointer;
    transition: background-color 0.3s;
}

.botones button:hover {
    background-color: #555;
}

/* Sección de proyectos */
.titulo_proyecto {
    text-align: center;
    font-size: 28px;
    margin: 20px 0;
}

.proyectos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.proyectos button {
    padding: 10px 20px;
    border-radius: 20px;
    background-color: #333;
    color: #fff;
    border: 2px solid #ffaa00;
    cursor: pointer;
    transition: background-color 0.3s;
}

.proyectos button:hover {
    background-color: #555;
}

/* --- Responsividad --- */
@media (max-width: 768px) {
    .perfil-contenedor {
        flex-direction: column;
        align-items: center;
    }

    .foto-perfil img {
        width: 150px;
        height: 150px;
    }

    .info-perfil p {
        font-size: 14px;
        margin: 10px;
    }

    .botones {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        max-width: 90%;
        margin: 10px auto;
    }

    .proyectos {
        flex-direction: column;
        gap: 10px;
    }

    .proyectos button, .botones button {
        width: 100%;
    }
}

/* Línea divisoria */
.divisor {
    width: 90%;
    height: 1px;
    background-color: #555;
    margin: 20px auto;
}

/* Sección de Perfil */
.perfil {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
    background-color: #121212;
}

.perfil-contenedor {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 800px;
    background-color: #333;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* Foto de Perfil */
.foto-perfil img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #444;
}

/* Información Personal */
.info-perfil {
    flex: 1;
}

.info-perfil h1 {
    margin: 0;
    font-size: 28px;
    color: #fff;
}

.info-perfil p {
    margin: 10px 0;
    color: #ccc;
}

/* Redes Sociales */
.redes-sociales {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.redes-sociales a i {
    font-size: 30px;
    color: #ccc;
    transition: color 0.3s;
}

.redes-sociales a:hover i {
    color: #fff;
}

/* Sección de Botones */
.botones {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: #121212;
}

.botones button {
    background-color: #1e1e1e;
    color: #fff;
    font-size: 18px;
    padding: 15px 30px;
    margin: 10px;
    border: 2px solid #ffb300;
    border-radius: 30px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.botones button:hover {
    background-color: #2a2a2a;
    color: #ffb300;
    box-shadow: 0 0 10px #ffb300;
}

/* VENTANA BOTON */
.ventana {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.ventana-contenido {
    background-color: #2a2a2a;
    margin: 10% auto;
    padding: 20px;
    width: 60%;
    border-radius: 10px;
    text-align: center;
    position: relative;
}

.cerrar {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

.cerrar:hover {
    color: red;
}

/* Sección de Proyectos */
.titulo_proyecto{
    text-align: center;
}

.proyectos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: #121212;
}

.proyectos button {
    background-color: #1e1e1e;
    color: #fff;
    font-size: 18px;
    padding: 15px 30px;
    margin: 10px;
    border: 2px solid #ffb300;
    border-radius: 30px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.proyectos button:hover {
    background-color: #2a2a2a;
    color: #ffb300;
    box-shadow: 0 0 10px #ffb300;
}

.proyectos button.active {
    background-color: #2a2a2a;
    color: #ffb300;
    box-shadow: 0 0 10px #ffb300;
}

/* Estilo personalizado para la barra de desplazamiento global */
body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: #333; /* Fondo oscuro */
    border-radius: 8px;
}

body::-webkit-scrollbar-thumb {
    background-color: #ffb300; /* Color amarillo */
    border-radius: 8px;
}

body::-webkit-scrollbar-thumb:hover {
    background-color: #e0a000; /* Color amarillo más oscuro al pasar el mouse */
}