* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/*-----FONTS-----*/
@font-face {
    font-family: 'Inter-regular';
    src: url('../fonts/Inter-Regular.woff2') format('woff2'),
        url('../fonts/Inter-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Inter-Light';
    src: url('../fonts/Inter-Light.woff2') format('woff2'),
        url('../fonts/Inter-Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Inter-SemiBold';
    src: url('../fonts/Inter-SemiBold.woff2') format('woff2'),
        url('../fonts/Inter-SemiBold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Inter-Bold';
    src: url('../fonts/Inter-Bold.woff2') format('woff2'),
        url('../fonts/Inter-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Inter-ExtraLight';
    src: url('../fonts/Inter-ExtraLight.woff2') format('woff2'),
        url('../fonts/Inter-ExtraLight.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat-Regular';
    src: url('../fonts/Montserrat-Regular.woff2') format('woff2'),
        url('../fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}


@font-face {
    font-family: 'Montserrat-Bold';
    src: url('../fonts/Montserrat-Bold.woff2') format('woff2'),
        url('../fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

body {
    font-family: 'Inter', sans-serif;
}

:root {
    --negro: black;
    --blanco: white;
    --azul: #2B49FF;
    --gris: #797777;
    --espaciado-base: 16px;

    /* Fuentes */
    --font-bold: 'Inter-Bold', sans-serif;
    --font-semi: 'Inter-SemiBold', sans-serif;
    --font-regular: 'Inter-regular', sans-serif;
    --font-light: 'Inter-Light', sans-serif;

    /* Tamaños de fuente */
    --font-size-title: 60px;
    --font-size-subtitle: 35px;
    --font-size-parrafo: 20px;
}

/*SELECCIÓN DE TEXTO*/
/* Cambiar color de selección de texto */
::selection {
    background: var(--azul);
    /* Color de fondo */
    color: white;
    /* Color del texto */
}

/* Para compatibilidad con Firefox */
::-moz-selection {
    background: var(--azul);
    color: white;
}


/**************************
       ARCHIVO
***************************/
.archiwork-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 130px 50px;
    font-family: sans-serif;
}

/* FILTROS */
.archiwork-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.archiwork-dropdown {
    position: relative;
}

.archiwork-dropdown-toggle {
    font-family: var(--font-semi);
    font-weight: normal;
    font-size: 20px;
    padding: 10px 40px;
    border: 1px solid #000;
    background: #fff;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.archiwork-dropdown-toggle::after {
    content: "+";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    transition: 0.3s ease;
}

.archiwork-dropdown.open .archiwork-dropdown-toggle::after {
    content: "-";
}

.archiwork-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #000;
    display: none;
    min-width: 100%;
    z-index: 10;
}

.archiwork-dropdown-menu div {
    font-family: var(--font-regular);
    font-size: 18px;
    padding: 10px 15px;
    cursor: pointer;
    transition: 0.2s;
}

.archiwork-dropdown-menu div:hover {
    background: var(--azul);
    color: white;
    font-weight: bold;
}

/* GRID DE PROYECTOS */
.archiwork-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 1024px) {
    .archiwork-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .archiwork-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .archiwork-filters {
        flex-direction: column;
        gap: 15px;
    }

    .archiwork-dropdown {
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .archiwork-dropdown-toggle {
        width: 100%;
    }

    .archiwork-dropdown-menu {
        width: 100%;
    }

    .archiwork-container {
    padding: 120px 30px 40px 30px;
}
}

@media (max-width: 480px) {
    .archiwork-grid {
        grid-template-columns: 1fr;
    }
}

/* ITEM DE PROYECTO */
.archiwork-item {
    font-family: var(--font-regular);
    font-size: 18px;
    position: relative;
    display: inline-block;
    padding: 2px 10px;
    text-decoration: none;
    color: var(--negro);
    transition: 0.3s ease;
    opacity: 0;
    animation: archiworkFadeUp 0.6s ease forwards;
}

.archiwork-item:hover {
    color: var(--azul);
    transform: translateX(10px);
}

.archiwork-text {
    position: relative;
    z-index: 1;
    display: inline-block;
    transition: transform 0.3s ease;
}

.archiwork-item:hover .archiwork-text {
    transform: translateX(10px);
}

/* MINIATURA */
.archiwork-preview {
    position: absolute;
    bottom: 100%;
    /* Aparece encima del texto */
    left: 0;
    margin-bottom: 8px;
    width: 120px;
    height: 80px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #ccc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    opacity: 0;
    transform: scale(0.9) translateY(5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
}

.archiwork-item:hover .archiwork-preview {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.archiwork-filters::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: #000;
    margin-top: 20px;
}

@keyframes archiworkFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .archiwork-preview {
        left: 50%;
        transform: translateX(-50%) scale(0.9) translateY(5px);
    }

    .archiwork-item:hover .archiwork-preview {
        transform: translateX(-50%) scale(1) translateY(0);
    }
}