:root {
    --blue-fooxy: #2B80FF;
    --blue-glow: rgba(43, 128, 255, 0.15);
    --black-technical: #1E1E24;
    --white-clinical: #F8F9FA;
    --white-pure: #FFFFFF;
    --gray-light: #E9ECEF;
    --gray-text: #6C757D;
    
    --font-headings: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-smooth: 16px;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset global i estils base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h, 90px);
}

body {
    font-family: var(--font-body);
    background-color: var(--white-clinical);
    color: var(--black-technical);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-headings);
    color: var(--black-technical);
}

a {
    text-decoration: none;
    transition: all 0.3s var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-smooth);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(248, 249, 250, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 16px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.logo-image {
    display: block;
    width: auto;
    height: 44px;
    max-width: 220px;
    border-radius: 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

nav a {
    color: var(--black-technical);
    font-weight: 500;
    font-size: 14px;
}

nav a:hover {
    color: var(--blue-fooxy);
}

.btn-nav-contact {
    padding: 10px 20px !important;
    font-size: 13px !important;
}

/* Selector d'idioma (desplegable) */
.lang-switcher {
    position: relative;
    flex-shrink: 0;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white-pure);
    border: 1px solid var(--gray-light);
    border-radius: 20px;
    padding: 7px 12px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--black-technical);
    cursor: pointer;
    transition: all 0.25s var(--transition-smooth);
}

.lang-toggle:hover {
    border-color: var(--blue-fooxy);
    color: var(--blue-fooxy);
}

.lang-globe {
    font-size: 15px;
    line-height: 1;
}

.lang-caret {
    font-size: 10px;
    transition: transform 0.25s var(--transition-smooth);
}

.lang-switcher.open .lang-caret {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    list-style: none;
    background: var(--white-pure);
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 6px;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s var(--transition-smooth), transform 0.2s var(--transition-smooth), visibility 0.2s;
    z-index: 1100;
}

.lang-switcher.open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu li { list-style: none; }

.lang-menu button {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 9px 12px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--black-technical);
    cursor: pointer;
    transition: background 0.2s var(--transition-smooth), color 0.2s var(--transition-smooth);
}

.lang-menu button:hover {
    background: var(--white-clinical);
    color: var(--blue-fooxy);
}

.lang-menu button.active {
    color: var(--blue-fooxy);
    font-weight: 700;
}

/* Botons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-smooth);
    transition: all 0.3s var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--blue-fooxy);
    color: var(--white-pure);
    box-shadow: 0 4px 14px var(--blue-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 128, 255, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--black-technical);
    border: 2px solid var(--black-technical);
}

.btn-secondary:hover {
    background-color: var(--black-technical);
    color: var(--white-pure);
    transform: translateY(-2px);
}

/* HERO SECTION */
.hero {
    padding-top: calc(var(--header-h, 90px) + 36px);
    padding-bottom: 100px;
    background: radial-gradient(circle at 80% 20%, var(--blue-glow) 0%, transparent 50%), var(--white-clinical);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1, .hero-content h2, .hero-ctas, .hero-visual {
    opacity: 0;
    transform: translateY(18px);
    animation: hero-reveal 0.9s var(--transition-smooth) forwards;
}

.hero-content h1 {
    animation-delay: 0.15s;
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-content h2 {
    animation-delay: 0.65s;
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--gray-text);
    font-weight: 400;
    margin-bottom: 40px;
    max-width: 540px;
    line-height: 1.6;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; animation-delay: 1.15s; }

.hero-visual {
    animation-delay: 1.65s;
    position: relative;
    height: 540px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@keyframes hero-reveal {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-model-viewer {
    width: 100%; 
    height: 100%; 
    min-height: 540px;
    background: transparent; 
    --poster-color: transparent; 
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.6s var(--transition-smooth);
}

.hero-model-viewer.is-visible {
    opacity: 1;
}

.hero-fallback-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s var(--transition-smooth);
}

.hero-fallback-image.is-visible {
    opacity: 1;
    pointer-events: auto;
}
.hero-model-viewer::part(default-progress-bar), .hero-model-viewer::part(default-progress-mask) { display: none; }

/* Correcció per treure l'arrodoniment individual de les rajoles del mapa */
.leaflet-container img.leaflet-tile {
    border-radius: 0 !important;
}

/* MARQUEE REFORMATAT ESTIL SEAMLESS DE DOBLE PISTA SENSE SALTS */
.marquee-section {
    padding: 24px 0;
    background-color: var(--white-pure);
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
    overflow: hidden;
}
.marquee-title {
    text-align: center; 
    font-size: 11px; 
    text-transform: uppercase;
    letter-spacing: 2px; 
    color: var(--gray-text); 
    margin-bottom: 16px; 
    font-weight: 600;
}
.marquee-wrapper { 
    display: flex; 
    width: 100%; 
    overflow: hidden;
}
.marquee-content { 
    display: flex; 
    width: max-content;
}
.marquee-track { 
    display: flex; 
    gap: 80px; 
    padding-right: 80px; /* Distància clau per fer simetria exacta amb el gap */
    animation: marquee 35s linear infinite; 
    white-space: nowrap;
    align-items: center;
}
.marquee-track span { 
    font-family: var(--font-headings); 
    font-size: 18px; 
    color: #C0C4CC; 
    font-weight: 700; 
    display: inline-flex; 
    align-items: center; 
    transition: color 0.25s ease;
}
.marquee-track span:hover {
    color: var(--blue-fooxy);
}
.marquee-track span strong { 
    color: #909399; 
    margin-left: 6px; 
}
@keyframes marquee { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-100%); } 
}

/* SUITE DE PRODUCTES */
.products { padding: 120px 0; }
.section-header { text-align: center; margin-bottom: 80px; }
.section-header h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 16px; }
.section-header p { color: var(--gray-text); max-width: 600px; margin: 0 auto; }

.product-block { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 120px; }
.product-block:nth-child(even) { direction: rtl; }
.product-block:nth-child(even) .product-info { direction: ltr; }
.product-media {
    background: var(--white-pure); border-radius: var(--radius-smooth); padding: 40px;
    height: 480px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.02); border: 1px solid var(--gray-light); position: relative;
}
.product-media-image { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; border-radius: var(--radius-smooth); }
.tag-innovation { position: absolute; top: 24px; left: 24px; background: var(--black-technical); color: var(--white-pure); padding: 8px 16px; font-size: 12px; font-weight: 600; border-radius: 30px; letter-spacing: 0.5px; z-index: 5; }
.tag-innovation.blue-tag { background: var(--blue-fooxy); }
.tag-innovation.tag-ce { left: auto; right: 24px; background: #1a7a4a; }
.product-info h3 { font-size: 28px; margin-bottom: 24px; }
.product-features { list-style: none; margin-bottom: 32px; }
.product-features li { position: relative; padding-left: 28px; margin-bottom: 16px; font-size: 15px; color: #333842; }
.product-features li::before { content: "✓"; position: absolute; left: 0; color: var(--blue-fooxy); font-weight: bold; }

/* ==========================================================================
   PILOTS MAP — full-bleed light band inside the (light) hospitals section
   ========================================================================== */
.pilots-map-wrap {
    position: relative;
    width: 100vw;
    margin: 40px calc(50% - 50vw) 0;
    height: 560px;
    overflow: hidden;
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
}
/* cooperative-zoom hint */
.map-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    z-index: 600;
    padding: 9px 16px;
    border-radius: 30px;
    background: rgba(30, 30, 36, 0.82);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.map-hint.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
#map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
/* centred overlay aligned to the page grid; clicks pass through to the map */
.pilots-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 100%;
    padding: 0 24px;
    z-index: 500;
    pointer-events: none;
    display: flex;
    align-items: flex-start;
}
.sites-panel {
    pointer-events: auto;
    width: 340px;
    max-width: 100%;
    margin-top: 28px;
    max-height: calc(100% - 56px);
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}
.sites-panel h3 {
    color: var(--black-technical);
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}
.sites-panel p {
    color: var(--gray-text);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 18px;
}
.sites-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    padding-right: 4px;
}
.sites-list::-webkit-scrollbar { width: 5px; }
.sites-list::-webkit-scrollbar-track { background: transparent; }
.sites-list::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.15); border-radius: 10px; }

.site-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--gray-light);
    background: var(--white-pure);
    color: var(--black-technical);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.site-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background-color: var(--blue-fooxy);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}
.site-item:hover {
    background: #f4f8ff;
    border-color: rgba(43, 128, 255, 0.3);
    transform: translateX(2px);
}
.site-item.is-active {
    background: rgba(43, 128, 255, 0.08);
    border-color: rgba(43, 128, 255, 0.4);
}
.site-item.is-active::before { transform: scaleY(1); }
.site-item strong {
    display: block;
    font-size: 14px;
    color: var(--black-technical);
    font-weight: 600;
    margin-bottom: 3px;
}
.site-item span {
    display: block;
    font-size: 12px;
    color: var(--gray-text);
    line-height: 1.4;
    transition: color 0.2s ease;
}
.site-item.is-active span { color: #2b6fd6; }

/* Leaflet — light theme */
.leaflet-container { background: #dde5ec !important; }
.leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--black-technical) !important;
    border-radius: 14px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-left: 4px solid var(--blue-fooxy) !important;
    font-size: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18) !important;
    padding: 6px !important;
}
.leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.97) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}
.leaflet-tooltip.fooxy-tooltip {
    background: rgba(255, 255, 255, 0.98) !important;
    color: var(--black-technical) !important;
    border: 1px solid rgba(43, 128, 255, 0.35) !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

/* Cercle de clúster (diversos centres en una zona) */
.fooxy-cluster-wrapper { background: transparent; border: none; }
.fooxy-cluster {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--blue-fooxy);
    color: #fff;
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 16px;
    border: 3px solid #fff;
    box-shadow: 0 4px 16px rgba(43, 128, 255, 0.5);
    transition: transform 0.2s ease;
}
.fooxy-cluster:hover { transform: scale(1.08); }

/* PROJECTES EN DESENVOLUPAMENT */
.projects-in-progress-container { margin-bottom: 0px; }
.projects-sub-title { font-family: var(--font-headings); font-size: 22px; font-weight: 700; margin-bottom: 32px; text-align: center; position: relative; color: var(--black-technical); }
.projects-in-progress-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project-vertical-card { background: var(--white-pure); border: 1px solid var(--gray-light); border-radius: var(--radius-smooth); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.01); }
.project-vertical-card:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(43, 128, 255, 0.06); border-color: rgba(43, 128, 255, 0.2); }
.project-card-media { width: 100%; height: 200px; position: relative; background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); overflow: hidden; }
.project-card-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; position: relative; z-index: 2; }
.media-backup-text { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--blue-fooxy); font-family: var(--font-headings); font-weight: 700; font-size: 15px; letter-spacing: 0.5px; z-index: 1; text-transform: uppercase; }
.project-card-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.project-card-body h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; color: var(--black-technical); }
.project-card-body p { font-size: 14px; color: var(--gray-text); line-height: 1.55; }

/* BENTO GRID (RECONEIXEMENTS ORIGINAL) */
.bento-section { padding: 120px 0; }
#rd.bento-section { padding-bottom: 40px; }
#premis.bento-section { padding-top: 40px; }
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bento-card { background: var(--white-pure); border: 1px solid var(--gray-light); border-radius: var(--radius-smooth); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.3s var(--transition-smooth); }
.bento-card:hover { transform: translateY(-4px); }
.bento-card.dark-card { background: linear-gradient(135deg, #23232a 0%, #16161a 100%); color: var(--white-pure); border: none; }
.bento-card.dark-card h3, .bento-card.dark-card h4 { color: var(--white-pure); }
.bento-card h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--blue-fooxy); margin-bottom: 12px; }
.bento-card h3 { font-size: 22px; margin-bottom: 12px; }
.bento-card p { font-size: 14px; color: var(--gray-text); }
.bento-card.dark-card p { color: #a0a5b1; }

/* SECCIÓ DE CONTACTE */
.contact-section { padding: 120px 0; background: var(--white-clinical); border-top: 1px solid var(--gray-light); }
.contact-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 72px; align-items: start; }
.contact-info-side .section-eyebrow { margin-bottom: 16px; }
.contact-info-side h2 { font-size: 40px; font-weight: 800; letter-spacing: -1px; line-height: 1.12; margin-bottom: 20px; }
.contact-info-side > p { color: var(--gray-text); margin-bottom: 36px; font-size: 17px; line-height: 1.6; max-width: 420px; }
.contact-methods { display: flex; flex-direction: column; }
.contact-method { display: flex; flex-direction: column; padding: 18px 0; border-top: 1px solid var(--gray-light); }
.contact-method:last-child { border-bottom: 1px solid var(--gray-light); }
.contact-method span { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gray-text); font-weight: 700; margin-bottom: 6px; }
.contact-method a { font-size: 18px; color: var(--black-technical); font-weight: 600; width: fit-content; }
.contact-method a:hover { color: var(--blue-fooxy); }
.form-container { background: var(--white-pure); padding: 44px; border-radius: 24px; border: 1px solid var(--gray-light); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06); }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--black-technical); margin-bottom: 8px; }
.form-control { width: 100%; padding: 15px 18px; border-radius: 12px; border: 1px solid transparent; background-color: #F5F5F7; font-family: var(--font-body); font-size: 14px; color: var(--black-technical); transition: background 0.2s ease, box-shadow 0.2s ease; }
.form-control::placeholder { color: #9aa0ab; }
.form-control:focus { outline: none; background-color: var(--white-pure); box-shadow: 0 0 0 3px rgba(43, 128, 255, 0.22); }
.form-container .btn-primary { width: 100%; border-radius: 30px; padding: 16px 32px; font-size: 14px; letter-spacing: -0.1px; margin-top: 6px; }
/* Botó de contacte del header: mateix llenguatge visual que el selector d'idioma */
header .btn-secondary {
    border-radius: 20px !important;
    border: 1px solid var(--gray-light);
    background-color: var(--white-pure);
    color: var(--black-technical);
    font-weight: 600;
    transition: all 0.25s var(--transition-smooth);
}

header .btn-secondary:hover {
    background-color: var(--white-pure);
    border-color: var(--blue-fooxy);
    color: var(--blue-fooxy);
    transform: none;
}

/* FOOTER */
footer { position: relative; background-color: var(--black-technical); color: #8c92a0; padding: 52px 0; border-top: 1px solid rgba(255,255,255,0.05); overflow: hidden; }
.footer-watermark { position: absolute; bottom: -18px; right: 24px; width: 180px; opacity: 0.18; pointer-events: none; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 520px; position: relative; z-index: 1; }
.footer-brand-logo { display: block; width: 180px; height: auto; border-radius: 0; }
.footer-brand .footer-subtext { font-size: 11px; margin-top: 4px; color: #5c616c; }
.footer-container { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a { color: #8c92a0; }
.footer-links a:hover { color: var(--white-pure); }

/* PRODUCT SHOWCASE RICH */
.product-showcase { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: stretch; margin-bottom: 140px; }
.product-showcase.reverse { grid-template-columns: 1.1fr 1fr; }
.product-media { background: transparent; border-radius: var(--radius-smooth); padding: 0; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.03); border: 1px solid var(--gray-light); }
.product-media-image { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; border-radius: 0; }
.product-showcase.reverse .product-media { order: 2; }
.product-showcase.reverse .product-info-rich { order: 1; }
.product-lead { font-size: 16px; color: var(--gray-text); margin-top: 4px; margin-bottom: 36px; line-height: 1.6; }
.product-subtitle { font-family: var(--font-headings); font-size: 20px; font-weight: 700; color: var(--black-technical); line-height: 1.35; letter-spacing: -0.3px; margin-bottom: 20px; opacity: 0.82; }
.product-subtitle .highlight-blue { color: var(--blue-fooxy); opacity: 1; }
.product-metrics { display: flex; gap: 24px; margin-bottom: 40px; padding: 24px; background: rgba(248, 249, 250, 0.8); border: 1px solid var(--gray-light); border-radius: var(--radius-smooth); }
.metric-box { flex: 1; display: flex; flex-direction: column; }
.metric-value { font-family: var(--font-headings); font-size: 24px; font-weight: 800; color: var(--blue-fooxy); line-height: 1.2; margin-bottom: 4px; }
.metric-label { font-size: 11px; text-transform: uppercase; font-weight: 600; color: var(--black-technical); letter-spacing: 0.5px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.feature-item h4 { font-size: 15px; margin-bottom: 8px; color: var(--black-technical); font-weight: 700; }
.feature-item p { font-size: 14px; color: var(--gray-text); line-height: 1.5; }
.mt-24 { margin-top: 24px; }
.product-tagline { display: block; font-family: var(--font-headings); font-size: 12px; font-weight: 700; color: var(--blue-fooxy); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; line-height: 1.4; }
.product-badge-name { display: block; margin-bottom: 24px; padding-left: 14px; border-left: 3px solid var(--blue-fooxy); }
.badge-context { display: block; font-family: var(--font-body); font-size: 11px; font-weight: 600; color: var(--gray-text); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; }
.badge-product { display: flex; align-items: baseline; line-height: 1; margin-bottom: 4px; }
.badge-brand { font-family: var(--font-headings); font-size: clamp(32px, 3.8vw, 50px); font-weight: 800; color: var(--black-technical); letter-spacing: -2px; }
.badge-model { font-family: var(--font-headings); font-size: clamp(32px, 3.8vw, 50px); font-weight: 800; color: var(--blue-fooxy); letter-spacing: -2px; }
.giant-product-statement { font-family: var(--font-headings); font-size: 36px; line-height: 1.25; font-weight: 800; color: var(--black-technical); letter-spacing: -1px; margin-bottom: 24px; }
.giant-product-statement .highlight-blue { color: var(--blue-fooxy); }

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .hero-grid, .product-block, .contact-grid, .bento-grid, .projects-in-progress-grid { grid-template-columns: 1fr; gap: 40px; }
    .product-block:nth-child(even) { direction: ltr; }
    nav { display: none; }
    .logo-image, .footer-brand-logo { max-width: 160px; }
    .footer-container { flex-direction: column; align-items: flex-start; }
    .footer-links { justify-content: flex-start; text-align: left; }
    .giant-product-statement { font-size: 26px; }
    .hero-visual { display: none; }
    .product-showcase, .product-showcase.reverse { grid-template-columns: 1fr; gap: 40px; margin-bottom: 100px; }
    .product-showcase.reverse .product-media { order: 1; }
    .product-showcase.reverse .product-info-rich { order: 2; }
    .product-metrics { flex-direction: column; gap: 16px; padding: 20px; }
    .feature-grid { grid-template-columns: 1fr; }
    .pilots-map-wrap { height: 380px; margin-top: 32px; }
    .pilots-overlay { display: none; } /* sense finestra flotant a mòbil */
    header {
        padding: 15px 0;
    }

    .header-container {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 16px;
    }

    /* Centrado absoluto del logotipo */
    .logo {
        margin: 0 auto !important;
        display: inline-block;
    }

    /* Navegación móvil adaptativa (no desaparece, se vuelve un carrusel limpio sin scrollbar) */
    nav {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    nav::-webkit-scrollbar {
        display: none; /* Oculta la barra de scroll antiestética */
    }

    nav ul {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center;
        gap: 20px;
        padding: 4px 20px;
        width: max-content; /* Permite scroll horizontal fluido si el texto es largo */
        margin: 0 auto;
    }

    nav ul li a {
        font-size: 14px;
        white-space: nowrap; /* Evita que el texto se rompa en dos líneas */
    }

    /* El header se apila; el selector de idioma se fija arriba a la derecha
       y sale del flujo para no ocupar altura extra */
    .header-container {
        position: relative;
    }

    .lang-switcher {
        position: absolute;
        top: 7px; /* centra el selector respecto a la altura del logo (44px) */
        right: 16px;
        z-index: 1100;
    }

    /* El menú se mantiene anclado al borde derecho del selector */
    .lang-menu {
        right: 0;
        transform: translateY(-6px);
    }

    .lang-switcher.open .lang-menu {
        transform: translateY(0);
    }
}

/* ==========================================================================
   NUEVAS OPTIMIZACIONES: ANIMACIONES Y DISEÑO INTEGRADO
   ========================================================================== */


/* Sistema de Animación Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delays escalonados opcionales para elementos en rejilla (como tarjetas Bento) */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ==========================================================================
   OPTIMIZACIONES DE VISIBILIDAD Y ANIMACIONES APORTADAS
   ========================================================================== */

/* Punto 3: Forzar que el Marquee suba y sea visible en el primer impacto visual */
@media (min-width: 993px) {
    .hero {
        min-height: 82vh !important;
        padding-top: calc(var(--header-h, 76px) + 20px) !important;
        padding-bottom: 20px !important;
    }
}

/* Punto 4: Ralentizar la animación del texto del Header/Hero (Efecto Cinemático) */
.hero .scroll-reveal {
    transition: opacity 1.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 1.8s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Punto 5: Delays más pronunciados para el comportamiento bloque a bloque */
.delay-block-1 { transition-delay: 0.15s; }
.delay-block-2 { transition-delay: 0.3s; }
.delay-block-3 { transition-delay: 0.45s; }

/* AUDIENCE BRIDGE — camins integrats sota el marquee */
.audience-bridge {
    border-top: 1px solid var(--gray-light);
    margin-top: 24px;
}

.audience-bar-inner {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    align-items: stretch;
}

.audience-path {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 26px 30px;
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.audience-path:hover {
    background: rgba(43, 128, 255, 0.04);
}

.audience-path-eyebrow {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--blue-fooxy);
    margin-bottom: 5px;
}

.audience-path-name {
    font-family: var(--font-headings);
    font-size: 15px;
    font-weight: 700;
    color: var(--black-technical);
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.audience-path-name::after {
    content: "→";
    font-size: 13px;
    color: var(--blue-fooxy);
    font-weight: 400;
    transition: transform 0.2s ease;
}

.audience-path:hover .audience-path-name::after {
    transform: translateX(4px);
}

.audience-path-desc {
    font-size: 12px;
    color: var(--gray-text);
    line-height: 1.5;
    max-width: 400px;
}

.audience-bar-divider {
    background: var(--gray-light);
    width: 1px;
    margin: 16px 0;
    align-self: stretch;
}

@media (max-width: 992px) {
    .audience-bar-inner {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .audience-bar-divider {
        display: none;
    }

    .audience-path,
    .audience-path:last-child {
        padding: 18px 0;
        border-bottom: 1px solid var(--gray-light);
    }

    .audience-path:last-child {
        border-bottom: none;
    }

    .audience-path-desc {
        max-width: 100%;
    }
}

/* ==========================================================================
   EYEBROW LABEL (compartit per seccions)
   ========================================================================== */
.section-eyebrow {
    display: inline-block;
    font-family: var(--font-headings);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray-text);
    margin-bottom: 16px;
}
.section-eyebrow.blue { color: var(--blue-fooxy); }

/* ==========================================================================
   FOR HOSPITALS SECTION
   ========================================================================== */
.audience-section {
    padding: 120px 0;
    background: var(--white-clinical);
}

.audience-section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 64px;
}
.audience-section-header h2 {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 20px;
}
.audience-section-header p {
    font-size: 17px;
    color: var(--gray-text);
    line-height: 1.6;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--gray-light);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-smooth);
    overflow: hidden;
}
.value-card {
    background: var(--white-pure);
    padding: 40px;
    transition: background 0.25s ease;
}
.value-card:hover { background: #f4f8ff; }
.value-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.value-card h4::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue-fooxy);
    flex-shrink: 0;
}
.value-card p {
    font-size: 14px;
    color: var(--gray-text);
    line-height: 1.6;
}

.audience-section-cta {
    text-align: center;
    margin-top: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.cta-note {
    font-size: 13px;
    color: var(--gray-text);
}

/* ==========================================================================
   FOR PARTNERS & INVESTORS SECTION (dark premium)
   ========================================================================== */
.investors-section {
    padding: 120px 0;
    background: #0D0E12;
    color: var(--white-pure);
}
.investors-header {
    max-width: 820px;
    margin: 0 auto 72px;
    text-align: center;
}
.investors-header h2 {
    color: var(--white-pure);
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 22px;
}
.investors-header p {
    font-size: 17px;
    color: #9aa0ab;
    line-height: 1.65;
}

/* Traction stats */
.investors-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 80px;
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.stat-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.stat-num {
    font-family: var(--font-headings);
    font-size: 44px;
    font-weight: 800;
    color: var(--blue-fooxy);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -1px;
}
.stat-label {
    font-size: 13px;
    color: #9aa0ab;
    max-width: 160px;
}

/* Business model cards */
.investors-model {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}
.model-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 40px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.model-card:hover {
    border-color: rgba(43,128,255,0.4);
    transform: translateY(-4px);
}
.model-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #9aa0ab;
    margin-bottom: 16px;
    padding: 5px 12px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 30px;
}
.model-tag.blue {
    color: var(--blue-fooxy);
    border-color: rgba(43,128,255,0.4);
    background: rgba(43,128,255,0.08);
}
.model-card h3 {
    color: var(--white-pure);
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}
.model-card p {
    font-size: 15px;
    color: #9aa0ab;
    line-height: 1.6;
}

/* R&D pipeline */
.pipeline-block { margin-bottom: 72px; }
.pipeline-title {
    color: var(--white-pure);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}
.pipeline-sub {
    font-size: 15px;
    color: #9aa0ab;
    max-width: 620px;
    margin-bottom: 40px;
    line-height: 1.6;
}
.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.pipeline-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-left: 3px solid var(--blue-fooxy);
    border-radius: 14px;
    padding: 28px;
}
.pipeline-stage {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--blue-fooxy);
    margin-bottom: 14px;
}
.pipeline-card h4 {
    color: var(--white-pure);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}
.pipeline-card p {
    font-size: 13px;
    color: #9aa0ab;
    line-height: 1.55;
}

/* MOVE product showcase inside the (light) hospitals section */
.audience-section .product-showcase {
    margin-bottom: 48px;
}

/* O2 product showcase inside the (dark) investors section */
.investors-section .badge-brand { color: var(--white-pure); }
.investors-section .badge-context { color: #7a8494; }
.investors-section .product-showcase {
    margin: 72px 0;
}
.investors-section .product-subtitle { color: #9aa0ab; }
.investors-section .product-media {
    box-shadow: none;
    border-color: rgba(255,255,255,0.08);
}
.investors-section .product-badge-name {
    color: #9aa0ab;
}
.investors-section .giant-product-statement {
    color: var(--white-pure);
}
.investors-section .product-lead {
    color: #9aa0ab;
}
.investors-section .product-metrics {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.08);
}
.investors-section .metric-label {
    color: #cfd3da;
}
.investors-section .feature-item h4 {
    color: var(--white-pure);
}
.investors-section .feature-item p {
    color: #9aa0ab;
}

/* Investor CTAs */
.investors-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.btn-ghost {
    background: transparent;
    color: var(--white-pure);
    border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .audience-section, .investors-section { padding: 80px 0; }
    .audience-section-header h2,
    .investors-header h2 { font-size: 30px; }
    .value-grid { grid-template-columns: 1fr; }
    .value-card { padding: 32px 24px; }
    .investors-stats { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
    .investors-model { grid-template-columns: 1fr; }
    .pipeline-grid { grid-template-columns: 1fr; }
    .investors-cta { flex-direction: column; align-items: stretch; }
}

/* ==========================================================================
   HERO AUDIENCE CTA PATHS (replace generic buttons)
   ========================================================================== */
.hero-cta-path {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 15px 20px;
    border-radius: 16px;
    border: 1px solid var(--gray-light);
    background: var(--white-pure);
    min-width: 240px;
    transition: transform 0.25s var(--transition-smooth), box-shadow 0.25s var(--transition-smooth), border-color 0.25s var(--transition-smooth);
}
.hero-cta-text { display: flex; flex-direction: column; }
.hero-cta-label {
    font-family: var(--font-headings);
    font-size: 15px;
    font-weight: 700;
    color: var(--black-technical);
    letter-spacing: -0.2px;
}
.hero-cta-sub {
    font-size: 12px;
    color: var(--gray-text);
    margin-top: 3px;
}
.hero-cta-arrow {
    font-size: 18px;
    color: var(--blue-fooxy);
    transition: transform 0.25s var(--transition-smooth);
}
.hero-cta-path:hover {
    border-color: var(--blue-fooxy);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(43, 128, 255, 0.14);
}
.hero-cta-path:hover .hero-cta-arrow { transform: translateX(4px); }

.hero-cta-path-alt {
    background: var(--black-technical);
    border-color: var(--black-technical);
}
.hero-cta-path-alt .hero-cta-label { color: var(--white-pure); }
.hero-cta-path-alt .hero-cta-sub { color: #9aa0ab; }
.hero-cta-path-alt .hero-cta-arrow { color: #6eaaff; }
.hero-cta-path-alt:hover {
    border-color: var(--black-technical);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   PILOTS MAP EMBEDDED INSIDE THE (light) HOSPITALS SECTION
   ========================================================================== */
.pilots-embed {
    margin-top: 64px;
    scroll-margin-top: 90px;
}
.pilots-embed-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 36px;
}
.pilots-embed-header h3 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}
.pilots-embed-header p {
    color: var(--gray-text);
    font-size: 15px;
    line-height: 1.6;
}

/* ==========================================================================
   RECOGNITIONS — YEAR-GROUPED TIMELINE
   ========================================================================== */
.awards-timeline {
    max-width: 760px;
    margin: 0 auto;
}
.award-year {
    position: relative;
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 40px;
    padding-bottom: 48px;
}
.award-year:last-child { padding-bottom: 0; }
/* connecting rail */
.award-year::before {
    content: "";
    position: absolute;
    left: 88px;
    top: 10px;
    bottom: -4px;
    width: 2px;
    background: var(--gray-light);
}
.award-year:last-child::before { display: none; }
/* node */
.award-year::after {
    content: "";
    position: absolute;
    left: 82px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--blue-fooxy);
    border: 3px solid var(--white-clinical);
    box-shadow: 0 0 0 1px var(--gray-light);
}
.award-year-num {
    font-family: var(--font-headings);
    font-size: 26px;
    font-weight: 800;
    color: var(--black-technical);
    letter-spacing: -1px;
    line-height: 1;
    text-align: right;
}
.award-items {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-left: 16px;
}
.award-item-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.award-item-head h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.award-by {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--blue-fooxy);
}
.award-item p {
    font-size: 14px;
    color: var(--gray-text);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .hero-cta-path { flex: 1 1 100%; }
    .award-year { grid-template-columns: 56px 1fr; gap: 28px; }
    .award-year::before { left: 67px; }
    .award-year::after { left: 61px; }
    .award-year-num { font-size: 22px; }
    .award-items { padding-left: 8px; }
}

/* ==========================================================================
   MÒBIL — VISUALS FULL-BLEED + ANIMACIONS ENRIQUIDES
   Objectiu: que la versió mòbil tingui la mateixa vida que l'escriptori,
   amb imatges que ocupen tot l'ample i revelats escalonats per punt.
   ========================================================================== */
@media (max-width: 992px) {

    /* ----- HERO: imatge estàtica a tot l'ample amb flotació suau ----- */
    .hero {
        padding-top: 120px;
        padding-bottom: 56px;
        min-height: auto;
    }
    .hero-grid { gap: 36px; }
    .hero-content h1 { font-size: 34px; letter-spacing: -0.5px; }
    .hero-content h2 { font-size: 16px; margin-bottom: 28px; }

    /* Recuperem el visual del hero (l'escriptori el sobreescrivia amb display:none) */
    .hero-visual {
        display: flex !important;
        width: 100vw;
        margin: 4px calc(50% - 50vw) 0;
        height: auto;
        overflow: visible;
    }
    .hero-fallback-image {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        max-height: 44vh;
        object-fit: contain;
        border-radius: 0;
        animation: hero-float 6s ease-in-out infinite;
    }
    @keyframes hero-float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-12px); }
    }

    /* ----- IMATGES DE PRODUCTE A TOT L'AMPLE (full-bleed) ----- */
    .product-showcase .product-media,
    .product-showcase.reverse .product-media {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        height: 58vh;
        max-height: 440px;
        border-left: none;
        border-right: none;
        border-radius: 0;
        box-shadow: none;
    }
    .product-media-image { border-radius: 0 !important; }

    /* Zoom-in suau de la imatge quan entra a pantalla */
    .product-media.scroll-reveal .product-media-image {
        transform: scale(1.12);
        transition: transform 1.3s cubic-bezier(0.25, 1, 0.5, 1);
    }
    .product-media.scroll-reveal.active .product-media-image {
        transform: scale(1);
    }

    /* La cabecera del producte respira una mica més junt a la imatge full-bleed */
    .product-info-rich { padding: 0 0; }
    .badge-brand, .badge-model { font-size: 36px; letter-spacing: -1.5px; }
    .giant-product-statement { font-size: 27px; line-height: 1.22; }

    /* ----- REVELATS ESCALONATS PER CRIDAR L'ATENCIÓ PUNT A PUNT ----- */
    /* Quan el contenidor scroll-reveal s'activa, els seus fills entren en cascada */
    .product-metrics.scroll-reveal .metric-box,
    .feature-grid.scroll-reveal .feature-item {
        opacity: 0;
        transform: translateY(22px);
        transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1),
                    transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    }
    .product-metrics.scroll-reveal.active .metric-box,
    .feature-grid.scroll-reveal.active .feature-item {
        opacity: 1;
        transform: translateY(0);
    }
    .product-metrics.scroll-reveal.active .metric-box:nth-child(2),
    .feature-grid.scroll-reveal.active .feature-item:nth-child(2) { transition-delay: 0.1s; }
    .product-metrics.scroll-reveal.active .metric-box:nth-child(3),
    .feature-grid.scroll-reveal.active .feature-item:nth-child(3) { transition-delay: 0.2s; }
    .feature-grid.scroll-reveal.active .feature-item:nth-child(4) { transition-delay: 0.3s; }

    /* Stats d'inversor: comptador que entra en cascada i amb més presència */
    .investors-stats { gap: 28px 16px; }
    .stat-num { font-size: 40px; }
    .investors-stats.scroll-reveal .stat-block {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
        transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    }
    .investors-stats.scroll-reveal.active .stat-block { opacity: 1; transform: none; }
    .investors-stats.scroll-reveal.active .stat-block:nth-child(2) { transition-delay: 0.08s; }
    .investors-stats.scroll-reveal.active .stat-block:nth-child(3) { transition-delay: 0.16s; }
    .investors-stats.scroll-reveal.active .stat-block:nth-child(4) { transition-delay: 0.24s; }

    /* (Les targetes del pipeline R+D ja escalonen via .delay-1/2/3 a l'HTML) */

    /* Marquee una mica més gran perquè es noti el moviment a mòbil */
    .marquee-track span { font-size: 16px; }
}

/* ==========================================================================
   HCAPTCHA + FORM STATUS
   ========================================================================== */
.h-captcha-wrap {
    margin: 18px 0 4px;
    display: flex;
    justify-content: center;
}

.form-status {
    display: none;
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}
.form-status.is-success {
    display: block;
    background: rgba(26, 122, 74, 0.08);
    color: #1a7a4a;
    border: 1px solid rgba(26, 122, 74, 0.25);
}
.form-status.is-error {
    display: block;
    background: rgba(192, 57, 43, 0.08);
    color: #c0392b;
    border: 1px solid rgba(192, 57, 43, 0.25);
}

/* Respecta la preferència d'usuaris que redueixen el moviment */
@media (max-width: 992px) and (prefers-reduced-motion: reduce) {
    .hero-fallback-image { animation: none; }
    .product-media.scroll-reveal .product-media-image { transform: none; }
}

/* ==========================================================================
   FORMULARI DE CONTACTE — VERSIÓ MÒBIL
   Problema: el form-container té padding:44px dins d'un container amb 24px,
   deixant molt poc espai als camps. Solució: full-bleed com les imatges de producte.
   ========================================================================== */
@media (max-width: 992px) {
    .contact-section { padding: 64px 0 72px; }

    .contact-info-side h2 {
        font-size: 28px;
        letter-spacing: -0.5px;
    }
    .contact-info-side > p { font-size: 15px; }

    .form-container {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: 1px solid var(--gray-light);
        padding: 32px 24px 40px;
        box-shadow: none;
    }

    /* font-size 16px evita el zoom automàtic en focus a iOS */
    .form-control {
        font-size: 16px;
        padding: 14px 16px;
    }

    .form-group { margin-bottom: 20px; }

    .form-container .btn-primary {
        padding: 18px 24px;
        font-size: 15px;
    }
}

/* Casella de consentiment del formulari de contacte */
.form-consent { margin-top: 4px; }
.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--gray-text);
}
.consent-check input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--blue-fooxy);
    cursor: pointer;
}
.consent-check .consent-text a {
    color: var(--blue-fooxy);
    font-weight: 600;
}
.consent-check .consent-text a:hover { text-decoration: underline; }

/* ============================================================
   BANNER DE COOKIES (compartit per totes les pàgines)
   ============================================================ */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4000;
    display: flex;
    justify-content: center;
    padding: 16px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s var(--transition-smooth), transform 0.35s var(--transition-smooth);
}

.cookie-consent.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner,
.cookie-panel {
    width: 100%;
    max-width: 880px;
    background: var(--white-pure);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-smooth);
    box-shadow: 0 18px 50px rgba(30, 30, 36, 0.22);
    padding: 24px;
}

/* L'atribut [hidden] ha de guanyar el display:flex del banner perquè, en obrir
   el panell de configuració, el banner desaparegui (el panell el substitueix). */
.cookie-banner[hidden],
.cookie-panel[hidden] {
    display: none;
}

.cookie-banner {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.cookie-banner-text { flex: 1 1 360px; }

.cookie-banner-title {
    font-family: var(--font-headings);
    font-size: 17px;
    font-weight: 700;
    color: var(--black-technical);
    margin: 0 0 6px;
}

.cookie-banner-body {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--gray-text);
    margin: 0;
}

.cookie-banner-link { color: var(--blue-fooxy); font-weight: 600; }
.cookie-banner-link:hover { text-decoration: underline; }

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.cookie-btn {
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 24px;
    padding: 11px 20px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.25s var(--transition-smooth);
    white-space: nowrap;
}

.cookie-btn-primary {
    background: var(--blue-fooxy);
    color: var(--white-pure);
}
.cookie-btn-primary:hover {
    background: #1f6ae0;
    transform: translateY(-1px);
}

.cookie-btn-ghost {
    background: transparent;
    color: var(--black-technical);
    border-color: var(--gray-light);
}
.cookie-btn-ghost:hover {
    border-color: var(--blue-fooxy);
    color: var(--blue-fooxy);
}

/* Panell de configuració */
.cookie-panel-title {
    font-family: var(--font-headings);
    font-size: 18px;
    font-weight: 700;
    color: var(--black-technical);
    margin: 0 0 8px;
}

.cookie-panel-intro {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--gray-text);
    margin: 0 0 18px;
}

.cookie-category {
    border-top: 1px solid var(--gray-light);
    padding: 14px 0;
}

.cookie-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-category-title {
    font-weight: 600;
    font-size: 14.5px;
    color: var(--black-technical);
}

.cookie-category-locked {
    font-size: 12px;
    font-weight: 600;
    color: var(--blue-fooxy);
    background: var(--blue-glow);
    padding: 4px 10px;
    border-radius: 20px;
}

.cookie-category-desc {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--gray-text);
    margin: 6px 0 0;
}

/* Interruptor */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-slider {
    position: absolute;
    inset: 0;
    background: var(--gray-light);
    border-radius: 24px;
    transition: background 0.25s var(--transition-smooth);
    cursor: pointer;
}
.cookie-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background: var(--white-pure);
    border-radius: 50%;
    transition: transform 0.25s var(--transition-smooth);
}
.cookie-switch input:checked + .cookie-slider { background: var(--blue-fooxy); }
.cookie-switch input:checked + .cookie-slider::before { transform: translateX(20px); }
.cookie-switch input:focus-visible + .cookie-slider { outline: 2px solid var(--blue-fooxy); outline-offset: 2px; }

@media (max-width: 700px) {
    .cookie-banner-actions { justify-content: stretch; }
    .cookie-btn { flex: 1 1 auto; text-align: center; }
}