@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;
    padding: 4.45rem;
}

svg {
    width:250px;
    height: auto;
}

main div {
    display: flex;
    flex-direction: column;
}

.span1 {
    font-size: 5rem;
    font-weight: bold;
}

.span2 {
    font-size: 4rem;
    font-weight: 600;
}
/* 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);
    }
  
}

@media (max-width: 600px) {

    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) {

    .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;
    }

    footer nav ul {
        gap: 1.5rem;
    }

}