*{margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
    }
    
    :root {
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --accent: #54C3EA;
    --accent-glow: rgba(84, 195, 234, 0.4);
    --text: #ffffff;
    }
    
    body {
    background-color: var(--dark-bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    }
    
    /* Barra  superior Para botones */
    .cabecera {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1100;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    position: relative;
    padding-left: 2.5rem;
    }
    
    .cabecera-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin-left: -20px;
    }
    
    .cabecera-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    }
    
    .cabecera-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
    }
    
    .cabecera-links a:hover::after {
    width: 100%;
    }
    
    /* Seccion principal */
    .presentacion {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 12% 5%;
    background: radial-gradient(circle at 75% 30%, var(--accent-glow) 0%, transparent 30%);
    }
    
    .contenido-presentacion {
    flex: 1;
    padding-right: 5rem;
    }
    
    .imagen-presentacion {
    flex: 1;
    text-align: center;
    position: relative;
    }
    
    /* Primera Foto*/
    .foto-perfil {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 0 50px var(--accent-glow);
    animation: float 3s ease-in-out infinite;
    filter: grayscale(0.2) contrast(1.1);
    }
    
    @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    }
    
    .presentacion h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--accent) 30%, #ffffff 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    }
    
    .presentacion p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 790px;
    }
    

    .contacto {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--accent), #0c33b4);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    }
    
    .titulo-SobreMI {
        font-size: 2rem; /* Tamaño del título */
        margin-top: -40px; /* Ajusta el margen superior si es necesario */
        color: white; /* Texto blanco */
        
        text-align: center; /* Centra el texto horizontalmente */
        padding: 10px 0; /* Espaciado interno superior e inferior */
    }
    
    /*(Ubicacion e Color) del Sobre MI */
    .SobreMI {
        
        padding: 20px; /* Espaciado interno */
        color: white; /* Texto blanco */
        display: flex; /* Activa Flexbox */
        justify-content: center; /* Centra el contenido horizontalmente */
    }
    .sobreMI-contenedor {
        display: flex; /* Activa Flexbox para alinear la imagen y el texto */
        align-items: center; /* Alinea verticalmente al centro */
        gap: 20px; /* Espaciado entre la imagen y el texto */
        max-width: 1200px; /* Limita el ancho máximo del contenedor */
        margin: 0 auto; /* Centra el contenedor horizontalmente */
    }
    
    .sobreMI-texto {
        font-size: 1rem; /* Tamaño de fuente */
        line-height: 1.6; /* Espaciado entre líneas */
        color: white; /* Color del texto */
        max-width: 800px; /* Limita el ancho del texto */
    }
    
    .cara-sobremi {
    width: 350px;
    height: 350px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 0 50px var(--accent-glow);
    animation: float 3s ease-in-out infinite;
    filter: grayscale(0.2) contrast(1.1);/
    }


    .instituciones {
        text-align: center;
        padding: 50px 20px;
        color: #fff;
    }
    
    .instituciones-titulo {
        position: relative;
        margin-bottom: 20px;
    }
    
    .instituciones-titulo h2 {
        font-size: 3rem;
        color: #fff;
        margin: 0;
        padding-bottom: 10px;
        border-top: none; /* Sin línea arriba del título */
        background: none; /* Sin fondo */
        display: inline-block;
    }
    
    .lista-instituciones {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Ajusta el número de columnas automáticamente */
        gap: 20px; /* Espaciado entre las cajas */
        justify-items: center; /* Centra los elementos horizontalmente */
    }
    
    .instituciones-caja {
        border-radius: 10px;
        padding: 10px;
        width: 150px;
        height: 200px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
       
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        background: var(--dark-bg); /* Fondo oscuro */
    }
    
    
    .instituciones-caja:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 10px rgba(0, 188, 212, 0.5);
    }
    
    /* cambia el tamaño de las imagenes de las instituciones */
    .instituciones-caja img {
        width: 120px;
        height: 120px;
        object-fit: contain;
        margin-bottom: 10px;
        
    }
    
    .instituciones-caja p {
        font-size: 14px;
        color: #ccc;
        margin: 0;
    }


    /* Mis Tecnolgias */
   
   .tecnologias {
    text-align: center;
    padding: 50px 20px;
    
    color: #fff;
}

.tecnologias-titulo {
    position: relative;
    margin-bottom: 30px;
    
}

.tecnologias-titulo h2 {
    font-size: 3rem;
    color: #fff;
    margin: 0;
    padding-bottom: 10px;
    border-top: none; /* Elimina la línea arriba del título */
    background: none; /* Asegura de que no haya un fondo */
    display: inline-block;
}

.lista-tecnologias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Ajusta el número de columnas automáticamente */
    gap: 20px;
    justify-items: center; /* Centra los elementos horizontalmente */
}

/* cajita donde se ven las tecnologias */
.tecnologias-caja {
   
    border-radius: 10px;
    padding: 10px;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
}
/* cambia el color de fondo al pasar el mouse */
.tecnologias-caja:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 10px rgba(0, 188, 212, 0.5);
}

.tecnologias-caja img {
    width: 120px;
    height:120px;
    object-fit: contain;
}

.proyectos {
    text-align: center;
    padding: 50px 20px;
    color: #fff;
}

.proyectos-titulo h2 {
    font-size: 3rem;
    margin-bottom: 30px;
}

.lista-proyectos {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
}

.proyecto-item {
    display: flex;
    flex-direction: row;
    gap: 20px;
    background: var(--darker-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    width: 100%;
}

.proyecto-imagen {
    width: 300px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.proyecto-detalles {
    flex: 1;
    text-align: left;
}

.proyecto-detalles h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--accent);
}

.proyecto-detalles p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #ccc;
}

.proyecto-tecnologias {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.proyecto-tecnologias span {
    background: var(--accent-glow);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
}
 
/* Aplica el efecto hover a los elementos del proyecto */
.proyecto-item:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 10px rgba(0, 188, 212, 0.5);
}


    /* Footer */
    footer {
    background: var(--darker-bg);
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .redes-sociales {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    }
    
    .redes-sociales a {
    color: var(--text);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    }
    
    .redes-sociales-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
    }
    

    /* clave para que se vea bien en telefonos */
    
    @media (max-width: 768px) {

        .presentacion {
            flex-direction: column;
            text-align: center;
            padding-top: 8rem;
        }
        .SobreMI {
            flex-direction: column; /* Cambia la dirección a columna */
            text-align: center; /* Centra el texto */
        }
    
        .sobreMI-texto {
            margin-bottom: 20px; /* Añade espacio entre el texto y la imagen */
        }
    
        .cara-sobremi {
            margin: 0 auto; /* Centra la imagen horizontalmente */
            width: 250px; /* Ajusta el ancho para pantallas pequeñas */
            height: auto; /* Mantiene la proporción de la imagen */
        }
        .lista-proyectos {
            flex-direction: column; /* Asegura que los proyectos se apilen verticalmente */
            gap: 20px; /* Reduce el espacio entre los proyectos */
            padding: 0 10px; /* Añade un poco de espacio lateral */
        }
    
        .proyecto-item {
            flex-direction: column; /* Cambia la dirección a columna */
            align-items: center; /* Centra los elementos */
            text-align: center; /* Centra el texto */
            padding: 15px; /* Reduce el padding */
        }
    
        .proyecto-imagen {
            width: 100%; /* La imagen ocupa todo el ancho disponible */
            max-width: 300px; /* Limita el ancho máximo */
            height: auto; /* Mantiene la proporción */
            margin-bottom: 15px; /* Añade espacio debajo de la imagen */
        }
    
        .proyecto-detalles {
            text-align: center; /* Centra el texto */
        }
    
        .proyecto-detalles h3 {
            font-size: 1.2rem; /* Reduce el tamaño del título */
        }
    
        .proyecto-detalles p {
            font-size: 0.9rem; /* Reduce el tamaño del texto */
        }
    
        .proyecto-tecnologias {
            justify-content: center; /* Centra las tecnologías */
            gap: 5px; /* Reduce el espacio entre las etiquetas */
        }
    
        .proyecto-tecnologias span {
            font-size: 0.8rem; /* Reduce el tamaño de las etiquetas */
            padding: 3px 8px; /* Ajusta el padding de las etiquetas */
        }

    


    .contenido-presentacion {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    

    .logo {
        font-size: 1.5rem;
        padding-left: 2rem;
    }
    }