:root {
    --primary: #00bcd4; /* Cian Tècnic */
    --primary-dark: #0097a7;
    --dark: #1a1a1a;
    --light: #f5f5f5;
    --white: #ffffff;
    --text: #333333;
    --text-muted: #666666;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--white); color: var(--text); line-height: 1.8; }

/* HEADER FLOTANT */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo { color: var(--white); text-decoration: none; font-size: 1.2rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.logo span { color: var(--primary); }

.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { color: rgba(255, 255, 255, 0.8); text-decoration: none; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.lang-selector { background: transparent; color: var(--red); border: 1px solid var(--primary); padding: 5px 10px; border-radius: 20px; font-size: 0.7rem; cursor: pointer; outline: none; }

/* HERO AMB VÍDEO LOCAL */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--white);
    text-align: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.8));
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 0 20px; }
.hero-content h1 { font-size: 4rem; font-weight: 900; margin-bottom: 20px; text-transform: uppercase; }
.hero-content p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 30px; font-weight: 300; }

/* SECCIONS D'INICI (LONG SCROLL) */
section { padding: 100px 10%; }
.section-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 40px; text-align: center; color: var(--dark); text-transform: uppercase; }
.section-title span { color: var(--primary); }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 50px; }
.info-card { background: var(--light); padding: 40px; border-radius: 20px; border-bottom: 5px solid var(--primary); }
.info-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--dark); }

.sustainability { background: var(--dark); color: var(--white); text-align: center; }
.sustainability h2 { color: var(--primary); }

/* SERVEIS (SISTEMES) */
.systems-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.system-card { border-radius: 15px; overflow: hidden; background: var(--white); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.system-card img { width: 100%; height: 250px; object-fit: cover; transition: 0.5s; }
.system-card:hover img { transform: scale(1.1); }
.system-card-content { padding: 30px; }
.system-card h3 { color: var(--dark); font-size: 1.4rem; margin-bottom: 15px; border-left: 4px solid var(--primary); padding-left: 15px; }
.system-card p { color: var(--text-muted); font-size: 1rem; }

/* RESSENYES (COMPROMÍS) */
.reviews-container { display: flex; flex-direction: column; gap: 30px; max-width: 900px; margin: 0 auto; }
.review-item { padding: 40px; border-left: 2px solid var(--primary); background: var(--light); border-radius: 0 20px 20px 0; }
.review-item p { font-style: italic; font-size: 1.1rem; }

/* FAQ (SUPORT) */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid #eee; }
.faq-item h3 { font-size: 1.3rem; color: var(--dark); margin-bottom: 15px; }

/* CONTACTE */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info h2 { color: var(--primary); margin-bottom: 20px; }
.map-container { border-radius: 20px; overflow: hidden; height: 400px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* FOOTER */
footer { background: var(--dark); color: var(--white); padding: 80px 10% 40px; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.8rem; text-transform: uppercase; transition: 0.3s; }
.footer-links a:hover { color: var(--primary); }
.footer-logo { margin-bottom: 30px; }
.footer-logo img { height: 150px; background: rgba(255, 255, 255, 0); padding: 10px; border-radius: 5px; }

/* RESPONSIVE */
@media (max-width: 768px) {
    header { top: 0; width: 100%; border-radius: 0; padding: 10px 20px; }
    .nav-links { display: none; } /* En producció s'afegiria un menú hamburguesa */
    .hero-content h1 { font-size: 2.5rem; }
    .contact-layout { grid-template-columns: 1fr; }
    section { padding: 60px 5%; }
}