@font-face{
    font-family: 'Inter';
    src: url('../fonts/Inter/Inter-VariableFont_opsz\,wght.ttf') format('trueType');
}

@font-face {
    font-family: 'Antonio';
    src: url('../fonts/Antonio/static/Antonio-Bold.ttf') format('truetype');
}

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

body {
    font-family: 'Inter';
    background-color: #FDFCFB;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1000;
    padding: 1rem;
    width: 90%;
}

h1 a {
    text-decoration: none;
    font-size: 1.5rem;
    color: #141414;
}

.ul-header{
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.ul-header li a {
    font-weight: 500;
}

a {
    text-decoration: none;
    color: #141414;
}

/* Botón de email */
.button {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    border-radius: 0.4rem;
    background-color: #141414;
    color: #FDFCFB;
}

.button span {
    display: block;
}

.button:hover {
    background-color:#1c253b;
}

#subprojects {
    display: none;
}

#subprojects.active {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    position: absolute;
    gap: 30px;
    top: 80px;
    left:0;
    width: 100%;
    padding: 1.5rem 3rem;
    list-style: none;
    background-color: #fdfcfbf9;
    border-top: 1px solid #dddddd;
    box-shadow: 0 3px 4px #dddddd;
}

.menu {
    display: none;
    border: 1px solid #dddddd;
    padding: 9.5px 14px;
    border-radius: 6px;
    font-size: 1.2rem;
}

.menu-desplegable li a {
    font-weight: 200;
    color: #828282;
    z-index: 20;
}

.menu-desplegable li a:hover {
    font-weight: 200;
    color:#000000;
}

.menu:hover {
    background-color: #f8f8f8;
}

/* Main */

main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero {
    display: flex;
    position: relative;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    width: 100vw;
}

.hero img {
    width: 89%;
    height: auto;
    aspect-ratio: 16/ 9;
    padding-top: 1.5rem;
    padding: 1rem;
    object-fit: cover;
    filter: brightness(0.9);
}

.hero-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    gap: 0.5rem;
    padding: 3.5rem;
    color: #ffffff;
}

.hero-text h2 {
    font-size: 4.5rem;
}

.hero-text span {
    font-size: 2rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    font-size: 3rem;
}

.description {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    width: 89%;
    gap: 3rem;
    padding:1rem;
    margin: 0 auto;
    align-items: stretch; 
}

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    height: 100%;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img {
    width: 100%;
    height: 250px;        
    object-fit: cover;    
}

.text-block {
    flex: 1;              
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
}

.text-block h3 {
    font-size: 1.5rem;
}

.text-content{
    display: flex;
    flex-direction: column;
    gap:0.4rem;
}

.softwares {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100vw;
    padding: 1rem 0;
    gap: 1rem;
}

.softwares h3 {
    font-size: 1.8rem;
}

.softwares-flex {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: 89%;
    padding: 1rem;
    gap: 3rem;
}

.software {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    padding: 2rem;
    width: 20%;
    text-align: center;
}

.software h4 {
    font-size: 1.5rem;
}

.software h5 {
    font-size: 1rem;
    color:#a7a7a7;
}

.software img {
    width: 8rem;
    height: auto;
}

.languages {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100vw;
    padding: 1rem 0;
    gap: 2rem;
}

.languages h3 {
    font-size: 1.8rem;
}

.languages-grid {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: 89%;
    padding: 1rem;
    gap: 3rem;
}

.language {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    width: 25%;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    padding: 2rem;
}

.language h4 {
    font-size: 1.5rem;
}

.fa-instagram {
    background: radial-gradient(circle at 30% 107%, 
      #fdf497 0%, 
      #fdf497 5%, 
      #fd5949 45%, 
      #d6249f 60%, 
      #285AEB 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fa-linkedin {
    color: #0A66C2;
}

/* Footer*/
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background-color: #141414;
    padding: 1.5rem 0;
    width: 100%;
    max-width: 1600px;

}

footer nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

footer span {
    color: #FDFCFB;
}

footer nav ul {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: clamp(2rem, 6vw, 150px);
    width: 100%;
}

footer nav ul li a {
    position: relative;
    color: #FDFCFB;
    text-decoration: none;
    border-bottom: 5px solid transparent;
    padding-bottom: 16px;
    z-index: 10;
}

footer nav ul li a:hover {
    border-bottom: 5px solid #dddddd;
}

footer nav hr {
    width: 83.5vw;
    color: #dddddd;
    z-index: 0;
}

footer nav div {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 1.1rem;
}

.instagram {
  background: radial-gradient(circle at 30% 107%, 
      #fdf497 0%, 
      #fdf497 5%, 
      #fd5949 45%, 
      #d6249f 60%, 
      #285AEB 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.linkedin {
    color: #0A66C2;
}

@media (max-width: 992px) {

    .menu {
        display: block;
        cursor: pointer;
    }

    .nav-header {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #FDFCFB;
        border-top: 1px solid #e3e3e3;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 25px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-header.active {
        display: flex;
        animation: fadeIn 0.3s ease-in-out;
    }

    .ul-header {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }

    .ul-header li {
        width: 100%;
    }

    .ul-header li a {
        display: block;
        width: 100%;
        padding: 10px 0;
    }

    #subprojects.active {
        position: static;
        display: flex;
        flex-direction: column;
        gap: 15px;
        box-shadow: none;
        padding: 10px 0 0 15px;
        border-top: none;
    }

    .right-group {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    #subprojects.active {
        padding: 20px 40px;
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-text {
        padding: 2.5rem;
    }

    .hero-text h2 {
        font-size: 3rem;
    }

    .hero-text span {
        font-size: 1.5rem;
    }

    .social-icons {
        font-size: 2rem;
    }

    main hr {
        width: 86%;
    }

    .softwares-flex {
        flex-direction: column;
        align-items: center;
        padding: 1rem 1.1rem;
    }

    .software {
        width: 100%;
    }

    .languages-grid {
        flex-direction: column;
        align-items: center;
        padding: 1rem 1.3rem;
    }

    .language {
        width: 100%;
    }
  
}

@media (max-width: 600px) {
    .hero img {
        padding: 1rem 1.3rem;
    }

    .hero-text {
        padding: 2rem;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .hero-text span {
        font-size: 1rem;
    }

    .social-icons {
        gap: 0.8rem;
        font-size: 1.5rem;
    }

    main hr {
        width: 81%;
        margin: 1rem;
    }

    .description {
        grid-template-columns: 1fr;
        width: 89%;
        padding: 1rem 1.3rem;
    }

    .software {
        width: 100%;
        padding: 1.7rem;
    }

    .softwares-flex {
        padding: 0 1.3rem;
    }

    footer nav ul {
        flex-direction: column;
        align-items: center;
        list-style: none;
    }

    footer nav ul li a:hover {
        border-bottom: none;
    }

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

@media (max-width: 480px) {

    .hero img {
        padding: 1rem 0.8rem;
    }

    .right-group {
        gap: 10px;
    }

    .button {
        background:#141414;
        border: 1px solid #dddddd;
        color:#FDFCFB;
        font-size: 1.5rem;
        padding: 0.6rem;
    }

    .button span {
        display: none;
    }

    .button:hover {
        background:#1c253b;
    }

    .description {
        width: 92.5%;
    }

    main hr {
        width: 83.3%;
        margin: 0.3rem;
    }

    footer nav ul {
        gap: 1.5rem;
    }
}