/* =============================================================
   shared.css — ALG Solucions Online
   UN SOL FITXER PER ACTUALITZAR EL CSS DE TOTES LES PÀGINES
   Versió: 2.0 — Juny 2026
   ============================================================= */

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: #f8fafd; color: #0f1923; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ── NAV ────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e8eef6;
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.nav-logo { flex-shrink: 0; }
.nav-logo a { display: flex; align-items: center; }
.nav-logo img { height: 42px; width: auto; object-fit: contain; }

/* Nav links desktop */
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; flex: 1; justify-content: center; }
.nav-links li { position: relative; }
.nav-links a, .nav-links > li > span {
  font-size: 13px; font-weight: 500; color: #334155;
  padding: 6px 10px; border-radius: 7px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap; cursor: pointer; display: flex; align-items: center; gap: 4px;
}
.nav-links a:hover, .nav-links > li > span:hover { color: #185FA5; background: #f0f5fd; }
.nav-links a.active { color: #185FA5; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-arrow { font-size: 10px; color: #94a3b8; transition: transform 0.2s; }
.nav-dropdown:hover .nav-arrow { transform: rotate(180deg); }
.nav-submenu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: #fff; border: 1px solid #e5eaf2; border-radius: 12px;
  padding: 6px; min-width: 210px;
  box-shadow: 0 8px 32px rgba(24,95,165,0.10);
  z-index: 200;
}
.nav-dropdown:hover .nav-submenu { display: block; }
.nav-submenu a {
  display: block; padding: 9px 14px; font-size: 13px; color: #334155;
  border-radius: 8px; transition: background 0.15s, color 0.15s;
}
.nav-submenu a:hover { color: #185FA5; background: #f0f5fd; }

/* Nav right */
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang-switcher { display: flex; align-items: center; gap: 2px; }
.lang-btn {
  background: none; border: none; font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; color: #94a3b8; padding: 4px 7px;
  border-radius: 6px; transition: all 0.15s;
}
.lang-btn:hover, .lang-btn.active { color: #185FA5; background: #f0f5fd; }
.nav-cta {
  background: #185FA5; color: #fff !important;
  padding: 8px 16px; border-radius: 9px;
  font-size: 13px; font-weight: 600;
  transition: background 0.15s;
  white-space: nowrap;
}
.nav-cta:hover { background: #0d4a87; }

/* Hamburger — mobile */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px;
  cursor: pointer; border-radius: 8px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: #334155; border-radius: 2px;
  transition: all 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO (Home) ────────────────────────────────────────────── */
.hero-logo-section { max-width: 1200px; margin: 0 auto; padding: 60px 24px 40px; text-align: center; }
.hero-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #185FA5; margin-bottom: 16px; }
.hero-logo-text h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 700; line-height: 1.1; margin-bottom: 16px; }
.hero-logo-text h1 em { font-style: normal; color: #185FA5; }
.hero-logo-text p { font-size: 17px; color: #64748b; max-width: 640px; margin: 0 auto 28px; line-height: 1.7; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary { background: #185FA5; color: #fff; padding: 13px 28px; border-radius: 10px; font-size: 14px; font-weight: 600; transition: background 0.15s; display: inline-block; }
.btn-primary:hover { background: #0d4a87; }
.btn-secondary { background: transparent; color: #185FA5; border: 1.5px solid #185FA5; padding: 12px 28px; border-radius: 10px; font-size: 14px; font-weight: 600; transition: all 0.15s; display: inline-block; }
.btn-secondary:hover { background: #f0f5fd; }
.hero-service-tags { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.st { background: #fff; border: 1px solid #e5eaf2; border-radius: 14px; padding: 16px 20px; text-align: center; min-width: 160px; flex: 1; max-width: 220px; box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.st-icon { font-size: 26px; margin-bottom: 8px; }
.st-name { font-size: 12px; font-weight: 700; color: #0f1923; }
.st-desc { font-size: 11px; color: #64748b; margin-top: 4px; }

/* Stats bar */
.stats-bar { background: #fff; border-top: 1px solid #e8eef6; border-bottom: 1px solid #e8eef6; padding: 20px 24px; }
.stats-inner { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.stat-item { text-align: center; padding: 8px; }
.stat-val { font-size: clamp(20px, 3vw, 28px); font-weight: 800; color: #185FA5; }
.stat-label { font-size: 11px; color: #64748b; margin-top: 2px; }
.stat-change { font-size: 10px; color: #22c55e; font-weight: 600; }

/* ── SECCIONS (portfolio home) ──────────────────────────────── */
.section-wrap { max-width: 1200px; margin: 0 auto; padding: 72px 24px; }
.section-divider { border: none; border-top: 1px solid #e8eef6; margin: 0; }
.sec-num { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #185FA5; margin-bottom: 12px; }
.sec-title { font-size: clamp(26px, 4vw, 40px); font-weight: 700; line-height: 1.15; margin-bottom: 16px; }
.sec-title em { font-style: normal; color: #185FA5; }
.sec-desc { font-size: 15px; color: #64748b; line-height: 1.75; max-width: 600px; margin-bottom: 40px; }
.section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.section-grid.reverse { direction: rtl; }
.section-grid.reverse > * { direction: ltr; }

/* Features */
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feat { background: #fff; border: 1px solid #e5eaf2; border-radius: 14px; padding: 20px; }
.feat-icon { width: 40px; height: 40px; border-radius: 10px; background: #f0f5fd; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 12px; }
.feat-label { font-size: 13px; font-weight: 700; color: #0f1923; margin-bottom: 4px; }
.feat-desc { font-size: 12px; color: #64748b; line-height: 1.5; }

/* Visual cards */
.vc-card { background: #fff; border: 1px solid #e5eaf2; border-radius: 16px; padding: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); }
.vc-header { font-size: 12px; font-weight: 700; color: #64748b; margin-bottom: 14px; }
.vc-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.vc-row:last-child { border-bottom: none; }
.vc-ico { font-size: 16px; margin-right: 10px; }
.vc-txt { font-size: 12px; color: #334155; flex: 1; }
.vc-val { font-size: 13px; font-weight: 700; color: #185FA5; }
.mini-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 12px; }
.mini-stat { background: #f8fafd; border-radius: 10px; padding: 12px; text-align: center; }
.mini-stat-val { font-size: 16px; font-weight: 800; color: #185FA5; }
.mini-stat-label { font-size: 10px; color: #64748b; margin-top: 2px; }

/* Services grid (06-11) */
.services-section .section-wrap { padding-top: 60px; padding-bottom: 60px; }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.srv-card { background: #fff; border: 1px solid #e5eaf2; border-radius: 16px; padding: 24px; transition: transform 0.2s, box-shadow 0.2s; }
.srv-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(24,95,165,0.08); }
.srv-icon { font-size: 28px; margin-bottom: 12px; }
.srv-name { font-size: 15px; font-weight: 700; color: #0f1923; margin-bottom: 8px; }
.srv-desc { font-size: 13px; color: #64748b; line-height: 1.6; margin-bottom: 14px; }
.srv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.srv-tag { font-size: 10px; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: #f0f5fd; color: #185FA5; }

/* Methodology */
.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.step { text-align: center; padding: 20px 16px; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: #185FA5; color: #fff; font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.step-name { font-size: 14px; font-weight: 700; color: #0f1923; margin-bottom: 6px; }
.step-desc { font-size: 12px; color: #64748b; line-height: 1.5; }

/* Infra */
.infra-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.infra-card { background: #fff; border: 1px solid #e5eaf2; border-radius: 14px; padding: 24px; }
.infra-icon { font-size: 28px; margin-bottom: 12px; }
.infra-name { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.infra-desc { font-size: 13px; color: #64748b; line-height: 1.6; }

/* Formation */
.modul-list { display: flex; flex-direction: column; gap: 12px; }
.modul-card { background: #fff; border: 1px solid #e5eaf2; border-radius: 12px; padding: 16px 20px; display: flex; gap: 16px; align-items: flex-start; }
.modul-num { width: 32px; height: 32px; border-radius: 50%; background: #185FA5; color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.modul-name { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.modul-desc { font-size: 12px; color: #64748b; line-height: 1.5; }
.form-stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 24px; }
.form-stat { background: #fff; border: 1px solid #e5eaf2; border-radius: 12px; padding: 16px; text-align: center; }
.form-stat-val { font-size: 22px; font-weight: 800; color: #185FA5; }
.form-stat-label { font-size: 11px; color: #64748b; margin-top: 4px; }
.audience-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.audience-tag { background: #f0f5fd; border-radius: 20px; padding: 7px 14px; font-size: 12px; font-weight: 600; color: #185FA5; }

/* Contact */
.contact-section-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-left-title { font-size: clamp(22px,3.5vw,34px); font-weight: 700; line-height: 1.2; margin-bottom: 14px; }
.contact-left-title em { font-style: normal; color: #185FA5; }
.contact-desc { font-size: 14px; color: #64748b; line-height: 1.7; margin-bottom: 20px; }
.contact-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.contact-tag { background: #f0f5fd; border-radius: 20px; padding: 6px 14px; font-size: 12px; font-weight: 600; color: #185FA5; }
.contact-card { background: #fff; border: 1px solid #e5eaf2; border-radius: 16px; padding: 24px; margin-bottom: 16px; }
.contact-card-title { font-size: 12px; font-weight: 700; color: #185FA5; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.contact-items { display: flex; flex-direction: column; gap: 14px; }
.c-item { display: flex; align-items: flex-start; gap: 12px; }
.c-ico { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.c-txt { font-size: 13px; font-weight: 600; color: #0f1923; }
.c-sub { font-size: 11px; color: #64748b; margin-top: 2px; }
.cf-section-title { font-size: 12px; font-weight: 700; color: #185FA5; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.contact-form-wrap { display: flex; flex-direction: column; gap: 10px; }
.cf-input { width: 100%; padding: 11px 14px; border: 1.5px solid #e5eaf2; border-radius: 10px; font-size: 14px; color: #0f1923; outline: none; font-family: inherit; transition: border-color 0.2s; }
.cf-input:focus { border-color: #185FA5; }
.cf-input::placeholder { color: #94a3b8; }
textarea.cf-input { resize: vertical; min-height: 90px; }
.cf-btn { padding: 12px; background: #185FA5; color: #fff; border: none; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background 0.15s; }
.cf-btn:hover { background: #0d4a87; }
.cf-btn:disabled { background: #94a3b8; cursor: not-allowed; }
.cf-success { display: none; padding: 12px; background: #f0fdf4; border: 1px solid #86efac; border-radius: 10px; color: #166534; font-size: 13px; font-weight: 500; text-align: center; }

/* Footer */
footer { background: #0f1923; color: #94a3b8; text-align: center; padding: 32px 24px; }
.footer-logo { display: flex; justify-content: center; margin-bottom: 12px; }
.footer-logo img { height: 36px; opacity: 0.75; }
.footer-tagline { font-size: 12px; color: #64748b; margin-bottom: 8px; letter-spacing: 0.08em; }
.footer-right { font-size: 11px; color: #475569; }

/* ── CHAT WIDGET ─────────────────────────────────────────────── */
.alg-bubble {
  position: fixed; bottom: 24px; right: 24px;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg,#0d4a87,#185FA5);
  box-shadow: 0 6px 24px rgba(24,95,165,0.45);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 9998; border: none; outline: none;
}
.alg-bubble:hover { transform: scale(1.08); box-shadow: 0 8px 32px rgba(24,95,165,0.55); }
.alg-bubble img { width: 34px; height: 34px; object-fit: contain; border-radius: 50%; }
.alg-bubble .alg-x { display: none; color: white; font-size: 20px; font-weight: 300; }
.alg-bubble.open img { display: none; }
.alg-bubble.open .alg-x { display: block; }
.alg-notif {
  position: fixed; bottom: 70px; right: 22px;
  background: #ef4444; color: #fff; font-size: 11px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; pointer-events: none;
}
.alg-tooltip {
  position: fixed; bottom: 34px; right: 94px;
  background: #fff; color: #0f1923; font-size: 13px; font-weight: 500;
  padding: 10px 14px; border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  white-space: nowrap; z-index: 9997; pointer-events: none;
  border: 1px solid #e5eaf2; font-family: 'Segoe UI',system-ui,sans-serif;
}
.alg-tooltip::after {
  content: ''; position: absolute; right: -7px; top: 50%;
  transform: translateY(-50%);
  border: 7px solid transparent; border-right: none; border-left-color: #fff;
}
.alg-panel {
  position: fixed; bottom: 98px; right: 24px;
  width: 370px; height: 580px;
  background: #fff; border-radius: 20px;
  box-shadow: 0 12px 56px rgba(24,95,165,0.18);
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid #e0eaf5; z-index: 9997;
  transform: scale(0.85) translateY(20px); transform-origin: bottom right;
  opacity: 0; pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s ease;
}
.alg-panel.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }
.alg-chat-header {
  background: linear-gradient(135deg,#0d4a87 0%,#185FA5 60%,#2176c7 100%);
  padding: 14px 16px; display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.alg-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: 1.5px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.alg-hinfo { flex: 1; min-width: 0; }
.alg-hname { font-size: 13px; font-weight: 700; color: #fff; }
.alg-hstatus { font-size: 11px; color: rgba(255,255,255,0.75); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.alg-dot { width: 6px; height: 6px; background: #4ade80; border-radius: 50%; animation: algPulse 2s infinite; }
@keyframes algPulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.alg-hbtn {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s; text-decoration: none; flex-shrink: 0;
}
.alg-hbtn:hover { background: rgba(255,255,255,0.25); }
.alg-hbtn svg { width: 14px; height: 14px; }
.alg-messages {
  flex: 1; overflow-y: auto; padding: 16px 12px;
  display: flex; flex-direction: column; gap: 10px; background: #f8fafd;
}
.alg-messages::-webkit-scrollbar { width: 3px; }
.alg-messages::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.alg-msg { display: flex; gap: 6px; align-items: flex-end; max-width: 88%; }
.alg-msg.bot { align-self: flex-start; }
.alg-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.alg-mavatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg,#185FA5,#2176c7);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0; color: #fff; font-weight: 700;
}
.alg-mbubble { padding: 9px 12px; border-radius: 15px; font-size: 13px; line-height: 1.5; }
.alg-msg.bot .alg-mbubble { background: #fff; color: #0f1923; border: 1px solid #e5eaf2; border-bottom-left-radius: 4px; }
.alg-msg.user .alg-mbubble { background: linear-gradient(135deg,#185FA5,#2176c7); color: #fff; border-bottom-right-radius: 4px; }
.alg-mtime { font-size: 10px; color: #94a3b8; margin-top: 3px; padding: 0 3px; }
.alg-msg.user .alg-mtime { text-align: right; }
.alg-typing { display: flex; gap: 4px; padding: 6px 4px; align-items: center; }
.alg-tdot { width: 6px; height: 6px; border-radius: 50%; background: #185FA5; opacity: 0.4; animation: algTyping 1.2s infinite; }
.alg-tdot:nth-child(2){animation-delay:0.2s} .alg-tdot:nth-child(3){animation-delay:0.4s}
@keyframes algTyping { 0%,60%,100%{opacity:0.4;transform:translateY(0)} 30%{opacity:1;transform:translateY(-3px)} }
.alg-lead-form { background: #fff; border: 1px solid #e0eaf5; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.alg-lead-title { font-size: 12px; font-weight: 700; color: #185FA5; margin-bottom: 2px; }
.alg-linput {
  width: 100%; padding: 8px 11px; border: 1px solid #e5eaf2;
  border-radius: 8px; font-size: 13px; color: #0f1923; outline: none;
  transition: border-color 0.2s; font-family: inherit;
}
.alg-linput:focus { border-color: #185FA5; }
.alg-linput::placeholder { color: #94a3b8; }
.alg-lbtn { padding: 9px; background: #185FA5; color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.alg-lbtn:hover { background: #0d4a87; }
.alg-lbtn:disabled { background: #94a3b8; cursor: not-allowed; }
.alg-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 12px 8px; flex-shrink: 0; background: #f8fafd; }
.alg-qbtn {
  padding: 6px 12px; background: #fff; border: 1px solid #d0dff5;
  border-radius: 20px; font-size: 12px; color: #185FA5; font-weight: 500;
  cursor: pointer; transition: all 0.15s; font-family: inherit;
}
.alg-qbtn:hover { background: #f0f5fd; border-color: #185FA5; }
.alg-input-area {
  padding: 10px 12px 12px; background: #fff;
  border-top: 1px solid #eef2f8; display: flex; gap: 8px; align-items: flex-end; flex-shrink: 0;
}
.alg-input {
  flex: 1; padding: 9px 12px; border: 1.5px solid #e5eaf2;
  border-radius: 20px; font-size: 13px; outline: none; resize: none;
  max-height: 80px; line-height: 1.4; font-family: inherit; color: #0f1923;
  transition: border-color 0.2s;
}
.alg-input:focus { border-color: #185FA5; }
.alg-input::placeholder { color: #94a3b8; }
.alg-sbtn {
  width: 36px; height: 36px; background: #185FA5; border: none;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s; flex-shrink: 0;
}
.alg-sbtn:hover { background: #0d4a87; }
.alg-sbtn:disabled { background: #94a3b8; cursor: not-allowed; }
.alg-sbtn svg { width: 15px; height: 15px; }
.alg-wa-float {
  position: fixed; bottom: 24px; left: 24px;
  width: 50px; height: 50px; background: #25D366;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  text-decoration: none; transition: transform 0.2s; z-index: 9996;
}
.alg-wa-float:hover { transform: scale(1.1); }
.alg-wa-float svg { width: 26px; height: 26px; }
.alg-toast {
  position: fixed; bottom: 104px; right: 100px;
  background: #fff; border: 1px solid #e5eaf2; border-radius: 12px;
  padding: 12px 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  font-size: 13px; color: #0f1923; display: flex; align-items: center; gap: 10px;
  transform: translateY(10px); opacity: 0; transition: all 0.3s ease;
  z-index: 10000; max-width: 280px; pointer-events: none;
  font-family: 'Segoe UI',system-ui,sans-serif;
}
.alg-toast.show { opacity: 1; transform: translateY(0); }
.alg-powered { text-align: center; font-size: 10px; color: #94a3b8; padding: 4px 0 8px; background: #fff; flex-shrink: 0; }
.alg-powered a { color: #185FA5; text-decoration: none; }

/* ── LANDINGS — COMPONENTS COMPARTITS ───────────────────────── */
.landing-wrap { max-width: 1150px; margin: 0 auto; padding: 80px 24px; }
.landing-hero { max-width: 1150px; margin: 0 auto; padding: 80px 24px 60px; }
.l-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #185FA5; margin-bottom: 14px; }
.l-h1 { font-size: clamp(30px, 4.5vw, 54px); font-weight: 800; line-height: 1.08; margin-bottom: 22px; max-width: 900px; }
.l-h1 em { font-style: normal; color: #185FA5; }
.l-sub { font-size: clamp(16px, 2vw, 19px); line-height: 1.8; color: #64748b; max-width: 820px; margin-bottom: 32px; }
.l-cta-btn { display: inline-block; background: #185FA5; color: #fff; padding: 15px 32px; border-radius: 12px; font-size: 15px; font-weight: 700; transition: background 0.15s; }
.l-cta-btn:hover { background: #0d4a87; }
.l-center-title { text-align: center; font-size: clamp(26px,3.5vw,42px); font-weight: 800; margin-bottom: 14px; }
.l-center-sub { text-align: center; color: #64748b; max-width: 820px; margin: 0 auto 44px; line-height: 1.8; font-size: 16px; }
.l-card { background: #fff; border: 1px solid #e5eaf2; border-radius: 18px; padding: 26px; box-shadow: 0 6px 20px rgba(0,0,0,0.04); }
.l-card h3 { font-size: 20px; font-weight: 700; margin: 10px 0 10px; }
.l-card p { color: #64748b; line-height: 1.7; font-size: 14px; }
.l-icon { font-size: 38px; }
.l-check h3 { color: #16a34a; font-size: 17px; margin-bottom: 8px; }
.l-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.l-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.l-grid-5 { display: grid; grid-template-columns: repeat(5,1fr); gap: 18px; }
.l-highlight { background: #fff; border: 1px solid #e5eaf2; border-radius: 20px; padding: 48px; box-shadow: 0 6px 20px rgba(0,0,0,0.04); }
.l-highlight h2 { text-align: center; font-size: clamp(24px,3vw,40px); font-weight: 800; margin-bottom: 18px; }
.l-highlight p { text-align: center; color: #64748b; line-height: 1.9; font-size: 17px; max-width: 860px; margin: auto; }
.l-quote { margin-top: 28px; text-align: center; font-size: clamp(16px,2vw,20px); font-weight: 700; color: #185FA5; }
.l-cta-box { background: linear-gradient(135deg,#185FA5,#0d4a87); padding: 64px 48px; border-radius: 24px; text-align: center; color: #fff; }
.l-cta-box h2 { font-size: clamp(24px,3.5vw,44px); font-weight: 800; margin-bottom: 16px; }
.l-cta-box p { font-size: clamp(15px,1.8vw,18px); line-height: 1.8; max-width: 820px; margin: 0 auto 28px; opacity: 0.92; }
.l-cta-box .l-cta-btn { background: #fff; color: #185FA5; }
.l-cta-box .l-cta-btn:hover { background: #f0f5fd; }

/* Sobre: grid 5 */
.sobre-steps { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
.sobre-step { background: #fff; border: 1px solid #e5eaf2; border-radius: 14px; padding: 20px; text-align: center; }
.sobre-step .s-icon { font-size: 32px; margin-bottom: 10px; }
.sobre-step h3 { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.sobre-step p { font-size: 12px; color: #64748b; line-height: 1.5; }

/* Productes IA */
.productes-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 40px; }
.productes-hero-card { background: #fff; border: 1px solid #e5eaf2; border-radius: 18px; padding: 28px; box-shadow: 0 6px 20px rgba(0,0,0,0.04); }
.productes-card-title { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; margin-bottom: 22px; }
.productes-demo { background: #f8fafd; border: 1px solid #e5eaf2; border-radius: 14px; padding: 16px; margin-bottom: 22px; }
.productes-bubble { background: #fff; padding: 10px 14px; border-radius: 12px; margin-bottom: 8px; font-size: 13px; border: 1px solid #e5eaf2; }
.productes-bubble.user { background: #185FA5; color: #fff; text-align: right; }
.productes-lead-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: #fff; border-radius: 10px; margin-bottom: 8px; border: 1px solid #e5eaf2; font-size: 13px; }
.productes-badge { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-hot { background: #dcfce7; color: #15803d; }
.badge-warm { background: #fef3c7; color: #b45309; }
.badge-new { background: #dbeafe; color: #1d4ed8; }
.productes-features { list-style: none; display: grid; gap: 8px; margin-bottom: 22px; }
.productes-features li { font-size: 13px; color: #475569; }
.productes-status { display: inline-block; padding: 7px 14px; border-radius: 25px; font-size: 12px; font-weight: 700; }
.status-live { background: #dcfce7; color: #15803d; }
.status-custom { background: #dbeafe; color: #1d4ed8; }
.productes-secondary-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.productes-sec-card { background: #fff; border: 1px solid #e5eaf2; border-radius: 16px; padding: 22px; transition: 0.2s; }
.productes-sec-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(24,95,165,0.08); }
.productes-sec-icon { font-size: 32px; margin-bottom: 12px; }
.productes-sec-name { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.productes-sec-card ul { list-style: none; display: grid; gap: 7px; font-size: 12px; color: #64748b; margin-bottom: 18px; }

/* ── RESPONSIVE — MOBILE FIRST ───────────────────────────────── */

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .steps-grid { grid-template-columns: repeat(2,1fr); }
  .form-stat-grid { grid-template-columns: repeat(2,1fr); }
  .productes-secondary-grid { grid-template-columns: repeat(2,1fr); }
  .sobre-steps { grid-template-columns: repeat(3,1fr); }
}

/* Mobile ≤ 768px */
@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid #e5eaf2; flex-direction: column; padding: 16px; gap: 4px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links > li > span { padding: 10px 12px; width: 100%; }
  .nav-submenu { position: static; border: none; box-shadow: none; padding: 0 0 0 16px; display: none; }
  .nav-submenu.open { display: block; }
  .nav-hamburger { display: flex; }
  .nav-dropdown:hover .nav-submenu { display: none; }

  /* Hero */
  .hero-logo-section { padding: 40px 20px 28px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns a { width: 100%; max-width: 320px; text-align: center; }
  .hero-service-tags { gap: 10px; }
  .st { min-width: 140px; padding: 12px 14px; }

  /* Stats */
  .stats-inner { grid-template-columns: repeat(2,1fr); }

  /* Sections */
  .section-wrap { padding: 48px 20px; }
  .section-grid { grid-template-columns: 1fr; gap: 28px; }
  .section-grid.reverse { direction: ltr; }
  .feat-grid { grid-template-columns: 1fr; }

  /* Grids */
  .services-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .infra-grid { grid-template-columns: 1fr; }
  .form-stat-grid { grid-template-columns: repeat(2,1fr); }
  .audience-grid { gap: 8px; }
  .sobre-steps { grid-template-columns: repeat(2,1fr); }

  /* Contact */
  .contact-section-inner { grid-template-columns: 1fr; gap: 24px; }

  /* Landings */
  .landing-hero { padding: 48px 20px 36px; }
  .landing-wrap { padding: 48px 20px; }
  .l-grid-4 { grid-template-columns: 1fr 1fr; }
  .l-grid-3 { grid-template-columns: 1fr; }
  .l-grid-5 { grid-template-columns: 1fr 1fr; }
  .l-highlight { padding: 28px 20px; }
  .l-cta-box { padding: 40px 24px; }
  .productes-hero-grid { grid-template-columns: 1fr; }
  .productes-secondary-grid { grid-template-columns: 1fr 1fr; }

  /* Chat widget */
  .alg-panel { width: calc(100vw - 16px); right: 8px; bottom: 88px; height: calc(100svh - 110px); border-radius: 16px; }
  .alg-bubble { right: 16px; bottom: 16px; }
  .alg-wa-float { left: 16px; bottom: 16px; }
  .alg-notif { right: 14px; bottom: 62px; }
  .alg-tooltip { display: none; }
}

/* Mobile petit ≤ 480px */
@media (max-width: 480px) {
  .stats-inner { grid-template-columns: repeat(2,1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .l-grid-4 { grid-template-columns: 1fr; }
  .l-grid-5 { grid-template-columns: 1fr; }
  .productes-secondary-grid { grid-template-columns: 1fr; }
  .sobre-steps { grid-template-columns: 1fr 1fr; }
  .mini-grid { grid-template-columns: repeat(2,1fr); }
  .l-cta-box { padding: 32px 18px; }
  nav { padding: 0 16px; }
}

/* ── ACCESSIBILITAT — FOCUS VISIBLE ─────────────────────────── */
:focus-visible {
  outline: 2px solid #185FA5;
  outline-offset: 3px;
  border-radius: 4px;
}
.cf-btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.l-cta-btn:focus-visible,
.nav-cta:focus-visible {
  outline: 2px solid #185FA5;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(24,95,165,0.15);
}
.lang-btn:focus-visible {
  outline: 2px solid #185FA5;
  outline-offset: 2px;
}
.alg-sbtn:focus-visible,
.alg-lbtn:focus-visible,
.alg-qbtn:focus-visible,
.alg-bubble:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.nav-links a:focus-visible {
  outline: 2px solid #185FA5;
  outline-offset: 2px;
  border-radius: 6px;
}
