body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: rgba(29, 53, 87, 0.9);
    color: #fff;
    overflow-x: hidden;
}

.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}


.progress-loader {
    width: 150px;
    background: rgba(236, 236, 238, 0.253);
    height: 10px;
    border-radius: 7px;
    overflow: hidden;
}

.progress {
    width: 1px;
    height: 10px;
    border-radius: 7px;
    background: rgb(255, 255, 255);
    transition: 0.5s;
    animation: loading_44 5s cubic-bezier(0.4, 1.01, 1, 1) infinite;
}

@keyframes loading_44 {
    0% {
        width: 0%;
    }
    50% {
        width: 100%;
    }
    100% {
        width: 0%;
    }
}

#main-content {
    display: block;
}

#proyectos {
    background: #ffffff;
    color: #333;
    padding: 4rem 2rem; 
    margin-bottom: 2rem; 
}

#formacion {
    background: #ffffff;
    color: #333;
    padding: 4rem 2rem;
    margin-bottom: 2rem;
}

#formacion .formacion {
    display: flex;
    flex-direction: column;
    gap: 2rem; 
    justify-content: center;
}

#formacion .curso {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    color: #333;
}

#formacion .curso:hover {
    transform: scale(1.05); 
}

#formacion .curso .curso-imagen {
    width: 80px; 
    height: 80px;
    border-radius: 50%;
    object-fit: cover; 
    margin-right: 1.5rem;
}

#formacion .curso .curso-info {
    flex: 1; 
}

#formacion .curso h3 {
    margin-bottom: 1rem;
    color: #1d3557;
    font-size: 1.5rem;
}

#formacion .curso p {
    font-size: 1rem;
    color: #666;
}

#contacto {
    background: #fff;
    color: #333;
    padding: 4rem 2rem; 
}

nav {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(29, 53, 87, 0.9);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.menu {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    margin: 0;
}

.menu li {
    margin: 0 1.5rem;
}

.menu a {
    text-decoration: none;
    color: #f4f4f4;
    font-weight: bold;
    font-size: 1.2rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s, transform 0.3s;
}

.menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: #f4f4f4;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s;
}

.menu a:hover {
    color: #a8dadc;
    transform: scale(1.1);
}

.menu a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

header {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/freepik__upload__68270.jpeg') center/cover no-repeat;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(-50px);
    padding-bottom: 4rem; 
}

#lenguajes {
    background: transparent;
    color: #333;
    padding: 3rem 0; 
    width: 100%; 
    text-align: center;
}

#lenguajes h2 {
    font-size: 2.5rem; 
    color: #ffffff;
    margin-bottom: 3rem; 
    font-weight: bold; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); 
}

.logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem; 
    flex-wrap: wrap;
    margin-top: 3rem; 
}

.logos .logo {
    width: 100px; 
    height: 100px;
    background-color: #a8dadc; 
    border-radius: 50%; 
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); 
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s; 
    cursor: pointer; 
}

.logos .logo:hover {
    background-color: #1d3557; 
    transform: scale(1.2); 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); 
}


.logos .logo img {
    width: 70%; 
    height: 70%;
    object-fit: contain; 
    transition: transform 0.3s ease; 
}

.logos .logo:hover img {
    transform: scale(1.1); 
}

header h1 {
    font-size: 4rem;
    margin: 0;
    animation: fadeIn 1s ease-in-out;
}

header p {
    font-size: 1.5rem;
    margin-top: 1rem;
}

.proyectos {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2rem;
}

.proyectos .proyecto {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    color: #333;
    width: 300px;
    transition: transform 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.proyectos .proyecto img {
    width: 100%;
    border-bottom: 4px solid #a8dadc;
}

.proyectos .proyecto h3 {
    margin: 1rem 0 0.5rem;
}

.proyectos .proyecto p {
    padding: 0 1rem;
}

.proyectos .proyecto a {
    display: inline-block;
    margin: 1rem;
    padding: 0.5rem 1rem;
    background: #a8dadc;
    color: #1d3557;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.proyectos .proyecto a:hover {
    background: #f4f4f4;
}

.proyectos .proyecto:hover {
    transform: scale(1.05);
}

footer {
    text-align: center;
    padding: 1rem;
    background: #1d3557;
    color: #a8dadc;
}

#contacto {
    background: #fff;
    color: #333;
    padding: 4rem 2rem;
    text-align: center;
}

#contacto h2 {
    font-size: 2rem;
    color: #1d3557;
    margin-bottom: 2rem;
}

#contacto p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
}

.contacto {
    display: flex;
    justify-content: center;
    gap: 2rem; 
    align-items: center;
    flex-wrap: wrap; 
}

.contacto .icono {
    display: inline-block;
    width: 80px; 
    height: 80px;
    background-color: #a8dadc; 
    border-radius: 50%; 
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
}

.contacto .icono:hover {
    background-color: #1d3557; 
    transform: scale(1.1); 
}

.contacto .icono i {
    color: white; 
    font-size: 1.5rem; 
}

section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); 
    padding-bottom: 2rem; 
}

footer {
    text-align: center;
    padding: 1rem;
    background:rgba(29, 53, 87, 0.9);
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.3); 
}

#proyectos, #formacion, #contacto, #lenguajes {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

section:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transition: border-color 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.5rem 0;
    }

    .menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .menu li {
        margin: 0 0.3rem;
    }

    .menu a {
        font-size: 0.8rem;
        padding: 0.2rem 0.5rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    header p {
        font-size: 0.9rem;
    }

    .logos .logo {
        width: 50px;
        height: 50px;
    }

    .logos .logo img {
        width: 50%;
        height: 50%;
    }
}

@media (max-width: 568px) {
    .menu a {
        font-size: 0.9rem;
    }

    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    .logos .logo {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .menu {
        flex-direction: column;
        align-items: center;
    }

    .menu a {
        font-size: 1rem;
    }

    .logos {
        gap: 1.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .menu a {
        font-size: 1.1rem;
    }

    header h1 {
        font-size: 3rem;
    }

    header p {
        font-size: 1.4rem;
    }
}

@media (min-width: 1024px) and (max-width: 1280px) {
    .menu a {
        font-size: 1.2rem;
    }

    header h1 {
        font-size: 3.5rem;
    }

    header p {
        font-size: 1.6rem;
    }
}

@media (min-width: 1280px) {
    .menu a {
        font-size: 1.5rem;
    }

    header h1 {
        font-size: 4rem;
    }

    header p {
        font-size: 1.8rem;
    }

    .logos .logo {
        width: 120px;
        height: 120px;
    }

    .logos .logo img {
        width: 80%;
        height: 80%;
    }
}

header {
    padding: 2rem 1rem;
}

#proyectos, #formacion, #contacto, #lenguajes {
    padding: 2rem 1rem;
}

.proyectos .proyecto {
    width: 90%;
    max-width: 300px;
}

#filtro {
    padding: 10px 14px;
    font-size: 16px;
    border-radius: 12px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='70,105 20,35 120,35' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    cursor: pointer;
  }
  
  #filtro:hover {
    border-color: #999;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
  }
  
  #filtro:focus {
    border-color: #0077ff;
    box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.2);
  }
  
  /* En tu CSS */
.proyecto {
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

.proyecto.oculto {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    height: 0;
    overflow: hidden;
}
