/* ==========================================================================
   =M= PORTFOLI - FITXER CSS GENERAL (css/estil.css)
   ========================================================================== */

/* 1. RESET BÀSIC I BASES GLOBALS */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}
CSS

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #111111;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 2. CAPÇALERA GENERAL */
header { 
    text-align: center; 
    padding: 30px 20px 10px 20px; 
    color: #555555;
}

header h1 { 
    font-size: 20px; 
    font-weight: normal; 
    letter-spacing: 2px; 
    color: #888888;
}

header h2 { 
    font-size: 16px; 
    font-weight: normal; 
    margin-top: 5px; 
    color: #555555; 
}

header h3 { 
    font-size: 14px; 
    font-weight: normal; 
    margin-top: 5px; 
    color: #666666; 
}

/* LÍNIA DIVISÒRIA NETES */
.divider {
    width: 95%;
    max-width: 900px;
    height: 1px;
    background: #dddddd;
    margin: 20px auto;
}

/* 3. BOTONS MINIMALISTES I NAVEGACIÓ DUAL */
.btn-estil, 
.controls button, 
.nav-back a {
    background: transparent;
    border: 1px solid #cccccc;
    color: #555555;
    padding: 6px 16px;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
}

.btn-estil:hover, 
.controls button:hover, 
.nav-back a:hover {
    border-color: #000000;
    color: #000000;
}

/* CONTENIDOR DE BOTONS DE SORTIDA (DUALS O UNIPERSONALS) */
.nav-back {
    text-align: center;
    margin: 40px 0 30px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

/* CONTROLS PER ORDENAR (PINTURA / CATEGORIES) */
.controls { 
    text-align: center; 
    margin: 25px 0; 
}

.controls button {
    margin: 0 5px;
}

/* 4. FOOTER GENERAL */
footer {
    text-align: center;
    padding: 40px 20px;
    font-size: 12px;
    color: #777777;
    border-top: 1px solid #f0f0f0;
    margin-top: auto; /* Empenya el footer al final de la pantalla */
}

footer p:last-child {
    margin-top: 6px;
    color: #888888;
    letter-spacing: 0.5px;
}
