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

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    color: #2c3e50;

    /* --- CONFIGURACIÓ DEL FONS FIX --- */
    /* 1. La imatge que vols de fons: imatges/fons-pantalla.jpg */
    /* He afegit un degradat blau (linear-gradient) a sobre de la foto perquè el text es llegeixi millor */
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), 
                url('../imatges/fons-pantalla.jpg');

    background-attachment: fixed; /* AIXÒ FA QUE NO ES MOU */
    background-size: cover;      /* Ocupa tota la pantalla */
    background-position: center; /* Centra la foto */
    background-repeat: no-repeat;
}

/* Assegurem que les targetes i seccions tinguin fons blanc o opac per contrastar */
.card, .features-section, .gallery-section, .news-banner {
    background: rgb(255, 255, 255) !important; /* Fem que les seccions siguin opaques */
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1); /* Una ombra més forta per separar del fons */
}






/* --- CAPÇALERA AMB FOTO DE FONS (ESTIL PREMIUM) --- */
#header {
    position: relative; /* Necessari per a la foto de fons */
    background: #1a5276; /* Color de seguretat blau fosc */
    color: #fff;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 4px solid #ec2e00; /* Línia vermella OG */
    overflow: hidden; /* Talla la foto perquè no surti del header */
    flex-wrap: wrap;
    gap: 15px;
}







/* LA FOTO DE FONS TRANSPARENT */
#header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* CANVIA AIXÒ PER LA TEVA FOTO: imatges/fons-header.jpg */
    background-image: url('../imatges/fons-header.jpg'); 
    background-size: cover;
    background-position: center;
    opacity: 1; /* Aquí controles la transparència (0.1 a 0.9) */
    z-index: 1,5; /* Es queda darrere del text */
}

/* ASSEGUREM QUE EL CONTINGUT ESTIGUI PER SOBRE DE LA FOTO */
.logo-area, .header-socials, .model-badge {
    position: relative;
    z-index: 10;
}

/* Un petit degradat extra per millorar la lectura */
#header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(26,82,118,0.8) 0%, rgba(26,82,118,0.2) 100%);
    z-index: 1;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    
    /* AFEGEIX AQUESTA LÍNIA: */
    margin-left: 60px; /* Això empeny el logo cap a la dreta */
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .name {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
    line-height: 1.2;
}

.logo-text .small {
    font-size: 10px;
    color: #f39c12;
    font-weight: normal;
}

.model-badge {
    background: rgba(255,255,255,0.12);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-family: monospace;
}

/* CONTENIDOR PRINCIPAL */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 25px;
}

/* HERO AMB IMATGE */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1a5276, #0e3a5c);
    border-radius: 12px;
    margin-bottom: 35px;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid #2e86c1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 50px 30px;
    max-width: 800px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #fff;
}

.hero h1 span {
    color: #f39c12;
    border-bottom: 3px solid #f39c12;
}

.hero p {
    font-size: 16px;
    max-width: 650px;
    margin: 0 auto;
    color: #e0f0ff;
    line-height: 1.6;
}

/* TARGETES */
.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    display: inline-block;
    background: #1a5276;
    color: white;
    padding: 8px 25px;
    border-radius: 30px;
    font-size: 20px;
    letter-spacing: 1px;
    border: 1px solid #2e86c1;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    margin-bottom: 45px;
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #bdc3c7;
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.card-header {
    background: #f8f9f9;
    padding: 18px 22px;
    border-bottom: 3px solid #ec2e00;
}

.card-header h2 {
    font-size: 22px;
    color: #1a5276;
    font-weight: bold;
}

.card-img {
    width: 100%;
    height: 210px;
    background: #e8f0f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.card-content {
    padding: 20px 22px;
}

.card-content p {
    color: #2c3e50;
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.5;
}

.vars-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.var-tag {
    background: #ecf0f1;
    border: 1px solid #bdc3c7;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #2c3e50;
    font-family: monospace;
}

.feature-list {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #e0e7e9;
    font-size: 11px;
    color: #5d6d7e;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.card-footer {
    padding: 16px 22px 22px;
    border-top: 1px solid #e0e7e9;
    background: #fef9e7;
}

.btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: #ec2e00;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #c0392b;
    transform: scale(1.02);
}

.btn-secondary {
    background: #2471a3;
    color: white;
    border: none;
}

.btn-secondary:hover {
    background: #1a5276;
    transform: scale(1.02);
}

/* GALERIA */
.gallery-section {
    background: #ecf0f1;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 35px;
    border: 1px solid #bdc3c7;
}

.gallery-section h3 {
    text-align: center;
    color: #1a5276;
    font-size: 20px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ec2e00;
    display: inline-block;
    width: auto;
    margin-left: auto;
    margin-right: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #bdc3c7;
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.gallery-item p {
    padding: 8px;
    font-size: 11px;
    font-weight: bold;
    color: #2c3e50;
    background: #f8f9f9;
}

/* CARACTERÍSTIQUES */
.features-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 35px;
    border: 1px solid #bdc3c7;
}

.features-section h3 {
    text-align: center;
    color: #1a5276;
    font-size: 20px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ec2e00;
    display: inline-block;
    width: auto;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.feature-item {
    background: #f8f9f9;
    padding: 20px 15px;
    border-radius: 10px;
    border: 1px solid #d0d7dd;
    text-align: center;
    transition: all 0.2s;
}

.feature-item:hover {
    border-color: #ec2e00;
    background: #fff;
}

.feature-img {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px auto;
    border-radius: 10px;
    overflow: hidden;
}

.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-item h4 {
    color: #1a5276;
    font-size: 15px;
    margin-bottom: 10px;
    font-weight: bold;
}

.feature-item p {
    font-size: 12px;
    color: #5d6d7e;
    line-height: 1.5;
}

/* DADES */
.data-section {
    background: #1a5276;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-bottom: 35px;
    color: white;
}

.data-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #f39c12;
}

.data-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 15px;
    background: rgba(255,255,255,0.08);
    border-radius: 50px;
    margin-bottom: 20px;
}

.data-logos span {
    font-size: 12px;
    font-weight: bold;
    font-family: monospace;
    color: #e0f0ff;
}

.data-note {
    font-size: 11px;
    color: #aed6f1;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

/* FOOTER */
footer {
    background: #0a2a44;
    color: #aed6f1;
    text-align: center;
    padding: 25px;
    font-size: 11px;
    border-top: 3px solid #ec2e00;
}

footer a {
    color: #f39c12;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 750px) {
    #header {
        flex-direction: column;
        text-align: center;
    }
    .logo-area {
        justify-content: center;
    }
    .hero h1 {
        font-size: 28px;
    }
    .hero p {
        font-size: 14px;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .data-logos {
        flex-direction: column;
        gap: 12px;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .card-header h2 {
        font-size: 18px;
    }
}



/* --- ESTILS BLOC CAPTURES --- */
.storm-gallery-og {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.storm-card-og {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #bdc3c7;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.storm-card-og:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.storm-img-box {
    position: relative;
    height: 220px;
    background: #2c3e50;
    overflow: hidden;
}

.storm-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.storm-card-og:hover .storm-img-box img {
    transform: scale(1.1);
}

.badge-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #1a5276;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    font-family: monospace;
}

.storm-footer-og {
    padding: 15px;
    border-top: 3px solid #f39c12; /* Accent taronja típic OG */
}

.storm-footer-og h4 {
    color: #1a5276;
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: bold;
}

.storm-footer-og p {
    color: #7f8c8d;
    font-size: 12px;
    margin: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .storm-gallery-og {
        grid-template-columns: 1fr;
    }
}




/* --- XARXES SOCIALS AL HEADER --- */
.header-socials {
    display: flex;
    gap: 8px;
    margin-left: 20px; /* Espai respecte al text del logo */
    padding-left: 20px;
    border-left: 1px solid rgba(255,255,255,0.2); /* Una petita línia divisòria */
}

.social-btn-header {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.social-btn-header:hover {
    background: #f39c12; /* Taronja OG */
    border-color: #f39c12;
    transform: scale(1.1);
    color: #1a5276; /* Blau fosc del text */
}

/* Ajust per a mòbils */
@media (max-width: 600px) {
    .header-socials {
        margin-left: 10px;
        padding-left: 10px;
        border: none;
    }
    .social-btn-header {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
}

/* --- HEADER SOCIALS (CORREGIT) --- */
.header-socials {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 20px;
    position: relative; 
    z-index: 9999; /* Perquè res les tapi */
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer !important; /* Força que surti la mà */
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: white;
    pointer-events: none; /* Evita que la icona interfereixi amb el clic de l'enllaç */
}

/* Hovers xarxes */
.x-link:hover { background: #000; transform: translateY(-3px); }
.ig-link:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); transform: translateY(-3px); }
.mail-link:hover { background: #ea4335; transform: translateY(-3px); }

/* --- GALERIA DE FOTOS (OG STYLE) --- */
.storm-gallery-og {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.storm-card-og {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #bdc3c7;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.storm-card-og:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.storm-img-box {
    position: relative;
    height: 230px;
}

.storm-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #1a5276;
    color: white;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: bold;
    font-family: monospace;
    border-radius: 4px;
}

.storm-footer-og {
    padding: 20px;
    border-top: 4px solid #f39c12; /* Accent taronja */
}

.storm-footer-og h4 {
    color: #1a5276;
    font-size: 18px;
    margin: 0 0 5px 0;
}

.storm-footer-og p {
    color: #7f8c8d;
    font-size: 13px;
    margin: 0;
}




/* ============================================================
   FIXES I NOVES SECCIONS (SOCIALS I GALERIA OG)
   ============================================================ */

/* 1. ASSEGURAR QUE ELS ENLLAÇOS DEL HEADER SIGUIN CLICABLES */
#header {
    position: relative;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-socials {
    display: flex;
    gap: 12px;
    margin-right: 15px;
    position: relative;
    z-index: 999; /* Això fa que estiguin per sobre de tot */
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer !important;
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: white;
}

/* Efectes de colors al passar el ratolí */
.x-link:hover { background: #000; transform: translateY(-3px); }
.ig-link:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); transform: translateY(-3px); }
.mail-link:hover { background: #ea4335; transform: translateY(-3px); }

/* 2. ESTIL DE LA GALERIA "MILLORS CAPTURES" */
.storm-gallery-og {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1300px;
    margin: 0 auto 60px auto;
    padding: 0 25px; /* Perquè no toqui les parets en mòbils */
}

.storm-card-og {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #bdc3c7;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

.storm-card-og:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.storm-img-box {
    position: relative;
    height: 220px;
    background: #2c3e50;
}

.storm-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #1a5276;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: monospace;
}

.storm-footer-og {
    padding: 15px;
    border-top: 4px solid #f39c12; /* Línia taronja OG */
}

.storm-footer-og h4 {
    color: #1a5276;
    font-size: 17px;
    margin: 0 0 5px 0;
}

.storm-footer-og p {
    color: #7f8c8d;
    font-size: 13px;
    margin: 0;
}

/* Ajust responsive per a mòbils */
@media (max-width: 750px) {
    #header {
        flex-direction: column;
        padding-bottom: 15px;
    }
    .header-socials {
        margin: 10px 0;
    }
    .storm-gallery-og {
        grid-template-columns: 1fr;
    }
}


/* --- SECCIÓ NOVETATS (BANNER HORITZONTAL) --- */
.news-banner {
    display: flex;
    align-items: center;
    background: #fff;
    border-left: 5px solid #f39c12; /* Accent taronja OG */
    border-right: 1px solid #bdc3c7;
    border-top: 1px solid #bdc3c7;
    border-bottom: 1px solid #bdc3c7;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 35px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    gap: 20px;
}

/* Etiqueta ÚLTIMA HORA */
.news-header {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.news-label {
    font-weight: 800;
    font-size: 13px;
    color: #1a5276;
    letter-spacing: 1px;
}

/* Punt polsant "En directe" */
.pulse-icon {
    width: 10px;
    height: 10px;
    background-color: #ec2e00; /* Vermell alerta */
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(236, 46, 0, 0.7);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(236, 46, 0, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(236, 46, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(236, 46, 0, 0); }
}

/* Cos del text */
.news-body {
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #2c3e50;
}

.news-body strong {
    color: #ec2e00;
}

/* Data / Hora */
.news-date {
    font-size: 11px;
    font-weight: bold;
    color: #7f8c8d;
    background: #f8f9f9;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    border: 1px solid #e0e7e9;
}

/* Responsive mòbil */
@media (max-width: 750px) {
    .news-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .news-header {
        border-bottom: 1px solid #eee;
        width: 100%;
        padding-bottom: 5px;
    }
}



/* --- ESTILS STATUS MODEL --- */
.model-status-text {
    font-size: 11px;
    margin-top: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Quan està actualitzant (Taronja/Vermellós) */
.status-updating {
    color: #d35400;
}

/* Quan ja està llest (Verd) */
.status-ready {
    color: #27ae60;
}

/* Un puntet petit de color */
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}



/* ============================================================
   ESTILS BARRA LATERAL (SIDEBAR) - ESTIL TEMPESTES.CAT
   ============================================================ */

/* Botó d'hamburguesa (les 3 ratlles) */
.menu-toggle {
    position: fixed;
    top: 20px; /* Pujat una mica per sobre del header si cal, o ajusta a 85px */
    left: 20px;
    z-index: 1100;
    cursor: pointer;
    background: #1a5276; /* Blau capçalera */
    padding: 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: #ec2e00; /* Canvia a vermell al passar el ratolí */
    transform: scale(1.05);
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

/* Contenidor del Sidebar */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1200;
    top: 0;
    left: 0;
    background: #0a2a44; /* Blau fosc del footer */
    overflow-x: hidden;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 25px rgba(0,0,0,0.6);
    border-right: 4px solid #ec2e00; /* Línia vermella vertical */
}

/* Capçalera interna del menú */
.sidebar-header {
    padding: 25px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a5276;
    border-bottom: 2px solid #f39c12; /* Accent taronja */
}

.sidebar-header h3 {
    color: white;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: #f39c12;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: white;
}

/* Navegació del Sidebar */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 15px 0;
}

.sidebar-nav a {
    padding: 18px 25px;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    color: #aed6f1; /* Blau clar del footer */
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-nav a:hover {
    color: white;
    background: rgba(243, 156, 18, 0.15); /* Fons taronja molt suau */
    padding-left: 35px; /* Efecte de desplaçament */
}

/* Enllaç destacat (Webcams) */
.highlight-link {
    color: #f39c12 !important; /* Taronja directament */
    background: rgba(0,0,0,0.2);
    margin-top: 10px;
    border-left: 4px solid #f39c12;
}

.highlight-link:hover {
    background: #f39c12 !important;
    color: #0a2a44 !important;
}

/* Quan el sidebar està actiu */
.sidebar.active {
    width: 300px;
}

/* Overlay (capa fosca darrere el menú quan s'obre) */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1150;
    backdrop-filter: blur(3px);
}

.sidebar-overlay.active {
    display: block;
}