:root {
    --blanco: #F8FAF7;
    --negro: #000000;
    --rosa: #BF06A0;
    --texto: 'Inter', sans-serif;
}

/*Reset*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--texto);
    background-color: var(--negro);
    color: var(--blanco);
    -webkit-font-smoothing: antialiasing;
    -moz-ozx-font-smoothing: grayscale;

}

img,
figure {
    max-width: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

a {
    text-decoration: none;
    color: inherit;
}

li {
    list-style-type: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: inherit;
    font-weight: inherit;
    font-size: inherit;
}

form,
button,
input,
textarea,
select {
    font-family: var(--texto);
    background-color: var(--blanco);
}

/* Header */
.header {
    background-color: var(--negro);
    border-top: 2px solid #FFF;
    border-bottom: 2px solid #FFF;
    width: 100%;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--blanco);
    cursor: pointer;
    padding: 0.5rem 1rem;
    position: absolute;
    right: 1rem;
}

/*Nav list*/
.nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.nav-item {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 15px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-link:hover {
    background-color: var(--blanco);
    color: var(--negro);
}

/*Main*/
.main {
    padding: 2rem 1.5rem;
}

/*Proyectos de programacion*/
.dev-section {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
    animation: 2.5s cubic-bezier(.25, 1, .30, 1) wipe-in-right both;
}

.CONTDEV {
    flex: 1 1 400px;
}

.CONTDEV .h2 {
    font-size: 40px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.CONTDEV .p {
    font-size: 18px;
    margin-bottom: 1.2rem;
    text-align: left;
}

.CONTDEV .h4 {
    color: var(--rosa);
    font-size: 22px;
    font-weight: 700;
    margin-top: 1.2rem;
    margin-bottom: 0.8rem;
}

/* Proyecto a la derecha */
.CONTPRO {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
}

/*Cada Articulo*/
.portfolio-jen {
    display: flex;
    flex-direction: column;
}

.img-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.img {
    width: 100%;
    max-width: 500px;
    height: auto;
    transition: filter 0.3s ease;
}

.img:hover {
    filter: opacity(0.5);
}

.num {
    font-size: 40px;
    font-weight: 600;
    color: var(--rosa);
    white-space: nowrap;
}

/* Pie de imagen */
figcaption {
    margin-top: 0.5rem;
    font-size: 16px;
    text-align: center;
    font-weight: 500;
    color: var(--blanco);
}


/* Footer*/
.footer {
    width: 100%;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid var(--blanco);
    background-color: var(--negro);
}

.footer .span {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--blanco);
}

/* Animación */
@keyframes wipe-in-right {
    from {
        clip-path: inset(0 100% 0 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

[transition-style="in:wipe:right"] {
    animation: 2.5s cubic-bezier(.25, 1, .30, 1) wipe-in-right both;
}

/* Responsive */
@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav.active .nav-list {
        display: flex;
    }

    .dev-section {
        flex-direction: column-reverse;
    }

    .img {
        width: 100%;
        height: auto;
    }
}