/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', system-ui, sans-serif; color: #1a1a1a; background: #fff; }
img { max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ===== VARIABLES ===== */
:root {
  --primary:      #00758d;
  --primary-light:#00b2e3;
  --primary-pale: #e6f7fc;
  --primary-dark: #005a6e;
  --white:        #ffffff;
  --gray:         #f0f5f7;
  --text-muted:   #5a7078;
  --radius:       12px;
  --shadow:       0 4px 20px rgba(0,117,141,.10);
}

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: #1a1a1a;
  margin-bottom: .5rem; position: relative;
}
.section-title--accent::before {
  content: ''; display: block; width: 44px; height: 3px;
  background: var(--primary-light); margin-bottom: 1rem; border-radius: 2px;
}
.section-sub { color: var(--text-muted); margin-bottom: 2.5rem; max-width: 680px; line-height: 1.7; }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(1)  { transition-delay: .05s; }
.reveal-stagger.visible > *:nth-child(2)  { transition-delay: .12s; }
.reveal-stagger.visible > *:nth-child(3)  { transition-delay: .19s; }
.reveal-stagger.visible > *:nth-child(4)  { transition-delay: .26s; }
.reveal-stagger.visible > *:nth-child(5)  { transition-delay: .33s; }
.reveal-stagger.visible > *:nth-child(6)  { transition-delay: .40s; }
.reveal-stagger.visible > *:nth-child(7)  { transition-delay: .47s; }
.reveal-stagger.visible > *:nth-child(8)  { transition-delay: .54s; }
.reveal-stagger.visible > *:nth-child(9)  { transition-delay: .61s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > *, .stat { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .75rem 1.75rem; border-radius: 50px;
  font-weight: 600; font-size: .95rem; cursor: pointer; border: none;
  transition: all .2s; text-align: center;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--sm { padding: .45rem 1.1rem; font-size: .85rem; }
.btn--large { width: 100%; padding: 1rem; font-size: 1.05rem; border-radius: var(--radius); }
.btn--whatsapp {
  background: #25D366; color: #fff; border-radius: var(--radius);
  padding: .9rem 1.5rem; font-size: .95rem; margin-top: 2rem; width: 100%;
}
.btn--whatsapp:hover { background: #1da851; transform: translateY(-2px); }

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid #e0eef2;
  box-shadow: 0 2px 12px rgba(0,117,141,.08);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo { display: flex; align-items: center; }
.logo__img { height: 44px; width: auto; display: block; }
.logo__text { font-size: 1.5rem; font-weight: 900; color: var(--primary); letter-spacing: .08em; }
.logo__text--light { color: #fff; }
.footer__logo { height: 56px; width: auto; display: block; margin-bottom: .85rem; }
.nav { display: flex; gap: 2rem; }
.nav a { font-weight: 500; color: #444; transition: color .2s; font-size: .95rem; }
.nav a:hover { color: var(--primary); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .25rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: #333; border-radius: 2px; transition: all .3s; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 94vh;
  display: flex; align-items: center;
  background: #001e26;
  overflow: hidden;
}
.hero__video-wrap {
  position: absolute; inset: 0; z-index: 0;
  animation: heroZoom 22s ease-in-out infinite alternate;
  will-change: transform;
  backface-visibility: hidden;
}
.hero__video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(0,12,18,.82) 0%, rgba(0,30,42,.76) 30%, rgba(0,55,72,.52) 60%, rgba(0,75,95,.25) 100%),
    linear-gradient(180deg, rgba(0,10,16,.4) 0%, transparent 40%, rgba(0,10,16,.55) 100%);
}
.hero__vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(0,8,14,.5) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 50%, transparent 40%, rgba(0,10,16,.6) 100%);
}

/* Side label (vertical "Est. 1986") */
.hero__side {
  position: absolute; left: 1.75rem; top: 50%; transform: translateY(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 1rem;
  animation: heroFadeIn 1.3s ease-out .4s both;
}
.hero__side-line {
  width: 1.5px; height: 72px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.55), transparent);
}
.hero__side-text {
  writing-mode: vertical-lr; transform: rotate(180deg);
  font-size: .68rem; font-weight: 600; letter-spacing: .28em;
  text-transform: uppercase; color: rgba(255,255,255,.5); white-space: nowrap;
}

.hero__content {
  position: relative; z-index: 2;
  max-width: 780px;
  width: 100%;
  text-align: left;
  margin-left: max(5rem, 8vw);
  padding: 0 1.5rem 0 0;
  animation: heroFadeIn 1.1s ease-out both;
}
.hero__accent {
  width: clamp(44px, 4.5vw, 64px); height: 3px; background: var(--primary-light);
  margin-bottom: clamp(1.25rem, 2.2vw, 2rem); box-shadow: 0 0 18px rgba(0,178,227,.6);
}
.hero__eyebrow {
  color: var(--primary-light); font-size: clamp(.72rem, .9vw, .82rem); font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase;
  margin-bottom: clamp(1.25rem, 2.2vw, 2rem);
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__badge {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(0,0,0,.35); color: #fff;
  border: 1px solid rgba(0,178,227,.6); border-radius: 50px;
  padding: .4rem .75rem; font-size: clamp(.82rem, .95vw, .92rem); font-weight: 600;
  margin-bottom: clamp(1.25rem, 2.2vw, 2rem); backdrop-filter: blur(10px);
  letter-spacing: .01em;
}
.hero__badge-num {
  background: var(--primary-light); color: #fff; font-weight: 800;
  border-radius: 50px; padding: .2rem .75rem; font-size: .85rem;
  letter-spacing: .02em; box-shadow: 0 0 14px rgba(0,178,227,.5);
}
.hero__title {
  font-size: clamp(1.5rem, 4.5vw, 3.8rem); font-weight: 800; line-height: 1.1;
  margin-bottom: clamp(1.25rem, 2.2vw, 2rem); color: #fff;
  text-shadow: 0 2px 36px rgba(0,0,0,.85), 0 1px 4px rgba(0,0,0,.5);
  letter-spacing: -.02em;
}
.hero__title-accent {
  color: var(--primary-light);
  font-style: italic; font-weight: 700;
}
.hero__divider {
  width: clamp(60px, 6vw, 90px); height: 2px; background: rgba(255,255,255,.35);
  margin: 0 0 clamp(1.25rem, 2.2vw, 2rem);
}
.hero__subtitle {
  font-size: clamp(1rem, 1.2vw, 1.15rem); color: rgba(255,255,255,.95);
  margin-bottom: clamp(1.25rem, 2.2vw, 2rem); line-height: 1.75; max-width: 700px;
  text-shadow: 0 1px 20px rgba(0,0,0,.75), 0 1px 3px rgba(0,0,0,.5);
}
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .btn--primary {
  background: #fff; color: var(--primary-dark);
  font-weight: 800; font-size: 1rem; letter-spacing: .01em;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.hero .btn--primary:hover { background: #f0f8fb; box-shadow: 0 6px 20px rgba(0,0,0,.3); transform: translateY(-2px); }
.btn--ghost {
  background: rgba(255,255,255,.08); color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
  backdrop-filter: blur(8px);
  padding: .75rem 1.75rem; border-radius: 50px;
  font-weight: 600; font-size: .95rem;
}
.btn--ghost:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.6); transform: translateY(-2px); }

/* SCROLL INDICATOR (centre baix) */
.hero__scroll {
  position: absolute; bottom: 2.25rem; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center;
  gap: .6rem; color: rgba(255,255,255,.65);
  font-size: .68rem; font-weight: 600; letter-spacing: .3em;
  text-transform: uppercase; text-decoration: none;
  animation: heroScrollFade 1.5s ease-out 1s both;
}
.hero__scroll:hover { color: #fff; }
.hero__scroll-text { order: 1; }
.hero__scroll-line {
  order: 2; width: 1.5px; height: 52px; background: rgba(255,255,255,.35);
  position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 55%;
  background: linear-gradient(180deg, transparent, var(--primary-light));
  animation: scrollDown 2.2s ease-in-out infinite;
}
@keyframes scrollDown { 0% { top: -100%; } 100% { top: 200%; } }
@keyframes heroScrollFade {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== STATS ===== */
.stats {
  background: var(--primary); padding: 4rem 0;
  border-top: 4px solid var(--primary-dark); position: relative; overflow: hidden;
}
.stats::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0,178,227,.18) 0%, transparent 55%),
    radial-gradient(circle at 85% 50%, rgba(0,178,227,.1) 0%, transparent 55%);
  pointer-events: none;
}
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; text-align: center; position: relative; z-index: 1; }
.stat {
  color: #fff; opacity: 0; transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.stats.visible .stat { opacity: 1; transform: translateY(0); }
.stats.visible .stat:nth-child(1) { transition-delay: .05s; }
.stats.visible .stat:nth-child(2) { transition-delay: .2s; }
.stats.visible .stat:nth-child(3) { transition-delay: .35s; }
.stat + .stat { position: relative; }
.stat + .stat::before {
  content: ''; position: absolute; left: 0; top: 15%; bottom: 15%; width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.2), transparent);
}
.stat__row { display: flex; align-items: baseline; justify-content: center; gap: .05rem; }
.stat__symbol { font-size: 2.2rem; font-weight: 800; color: var(--primary-light); }
.stat__number { font-size: 3rem; font-weight: 800; }
.stat p {
  font-size: .82rem; opacity: .85; margin-top: .65rem;
  text-transform: uppercase; letter-spacing: .15em; font-weight: 500;
}
.stats__stamp {
  position: absolute; right: 1rem; top: 50%;
  transform: translateY(-50%);
  width: 300px; height: 300px; opacity: .1; z-index: 0;
  pointer-events: none; user-select: none;
}
@media (max-width: 900px) { .stats__stamp { display: none; } }

/* ===== CATEGORIES ===== */
.categories {
  padding: 7rem 0; background: #fff;
  border-top: 1px solid #8fc8dc;
  position: relative;
}
.categories__header {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: end; margin-bottom: 4.5rem;
}
.categories__header .eyebrow { color: var(--primary); margin-bottom: 1rem; }
.categories__header .section-title {
  font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1;
  font-weight: 800; color: #0a1a1f; letter-spacing: -.02em;
  margin: 0;
}
.categories__intro {
  color: var(--text-muted); font-size: 1rem; line-height: 1.8;
  max-width: 480px; justify-self: end;
}
.categories__intro strong { color: var(--primary); font-weight: 700; }

.cat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.cat-card {
  position: relative;
  padding: 2.5rem 2.25rem 2.25rem;
  border: 1px solid #dde5ea;
  border-radius: 16px;
  background: #fff;
  display: flex; flex-direction: column; gap: .75rem;
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s, border-color .3s;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(10,40,55,.04), 0 4px 16px rgba(10,40,55,.04);
}
.cat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.cat-card:hover {
  transform: translateY(-5px);
  border-color: #c2d2da;
  box-shadow: 0 4px 10px rgba(10,40,55,.06), 0 20px 45px rgba(10,40,55,.12);
}
.cat-card:hover::before { transform: scaleX(1); }

.cat-card__meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: .75rem;
}
.cat-card__num {
  font-size: .7rem; font-weight: 700; color: #7a9ba7;
  letter-spacing: .22em; font-variant-numeric: tabular-nums;
}
.cat-card__icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: #eef5f8; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; line-height: 1;
  transition: background .3s, transform .35s ease;
}
.cat-card:hover .cat-card__icon {
  background: var(--primary-pale);
  transform: scale(1.05);
}

.cat-card h3 {
  font-size: 1.35rem; font-weight: 700; color: #0a1a1f;
  line-height: 1.15; margin-top: .25rem; letter-spacing: -.015em;
}
.cat-card p {
  font-size: .9rem; color: var(--text-muted);
  line-height: 1.7; flex: 1; margin-bottom: .75rem;
}
.cat-card__link {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--primary); font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em;
  transition: gap .25s, color .25s;
  align-self: flex-start;
  padding-top: .25rem;
}
.cat-card__link svg { width: 13px; height: 13px; transition: transform .25s; }
.cat-card__link:hover { color: var(--primary-dark); gap: .85rem; }
.cat-card:hover .cat-card__link svg { transform: translateX(4px); }

/* ===== QUI SOM ===== */
.qui-som {
  padding: 7rem 0;
  background: linear-gradient(160deg, #0d5568 0%, #052830 50%, #020f14 100%);
  position: relative; overflow: hidden;
}
.qui-som::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,178,227,.08) 0%, transparent 70%);
  pointer-events: none;
}
.qui-som > .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700;
  color: var(--primary-light); text-transform: uppercase; letter-spacing: .18em;
  margin-bottom: .75rem;
}
.qui-som__header { text-align: center; max-width: 760px; margin: 0 auto 4.5rem; }
.qui-som__header .section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.2; margin-bottom: 1.25rem;
  color: #fff;
}
.qui-som__lead { color: rgba(255,255,255,.72); font-size: 1.05rem; line-height: 1.75; }

/* Body: 2 columnes equilibrades */
.qui-som__body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 5rem;
  align-items: start;
}

.qui-som__col { display: flex; flex-direction: column; gap: 2.5rem; }

.qui-som__story p {
  color: rgba(255,255,255,.78); line-height: 1.9; margin-bottom: 1.1rem; font-size: .98rem;
}
.qui-som__story p:last-child { margin-bottom: 0; }
.qui-som__story strong { color: var(--primary-light); font-weight: 700; }
.qui-som__claim {
  font-weight: 700; color: var(--primary-light); font-size: 1.1rem; font-style: italic;
  padding: 1.25rem 0 0; border-top: 1px solid rgba(0,178,227,.25);
  margin-top: .5rem; line-height: 1.5;
}

.qui-som__subsection {
  display: flex; flex-direction: column; gap: .75rem;
  padding-top: 1.75rem; border-top: 1px solid rgba(0,178,227,.18);
}
.qui-som__subsection p {
  color: rgba(255,255,255,.72); line-height: 1.85; font-size: .96rem; margin-bottom: .5rem;
}
.qui-som__subsection p:last-child { margin-bottom: 0; }
.qui-som__subsection strong { color: var(--primary-light); font-weight: 700; }
.qui-som__subsection-title {
  font-size: .78rem; font-weight: 700; color: var(--primary-light);
  text-transform: uppercase; letter-spacing: .18em;
}

.qui-som__values-list {
  list-style: none; display: flex; flex-direction: column; gap: .55rem;
}
.qui-som__values-list li {
  display: flex; align-items: center; gap: .75rem;
  color: rgba(255,255,255,.78); font-size: .95rem; line-height: 1.5;
}
.qui-som__values-list li::before {
  content: ''; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary-light); box-shadow: 0 0 8px rgba(0,178,227,.5);
}

/* Checkmarks */
.qui-som__checks {
  list-style: none; display: flex; flex-direction: column; gap: .85rem;
  padding-top: 1.75rem; border-top: 1px solid rgba(0,178,227,.18);
}
.qui-som__checks li {
  display: flex; align-items: flex-start; gap: .75rem;
  color: rgba(255,255,255,.82); font-size: .95rem; line-height: 1.55;
}
.qui-som__checks li svg {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: .15rem;
  color: var(--primary-light);
}
.qui-som__checks li strong { color: #fff; font-weight: 700; }

/* ===== SOLUCIONS ===== */
.solucions {
  padding: 7rem 0;
  background: linear-gradient(180deg, #f4f8fa 0%, #e9f2f5 100%);
  position: relative; overflow: hidden;
}
.solucions::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,178,227,.08) 0%, transparent 70%);
  pointer-events: none;
}
.solucions > .container { position: relative; z-index: 1; }
.solucions__header {
  max-width: 720px; margin: 0 auto 4rem; text-align: center;
}
.solucions__header .eyebrow { color: var(--primary); }
.solucions__header .section-title {
  font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.15;
  font-weight: 800; color: #0a1a1f; letter-spacing: -.02em;
  margin: 0 0 1.25rem;
}
.solucions__header .section-sub {
  margin: 0 auto; max-width: 600px; font-size: 1rem;
}

.sol-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.sol-card {
  position: relative;
  background: #fff; border-radius: 18px;
  padding: 2.5rem 2.25rem 2rem;
  border: 2px solid var(--primary-light);
  transition: transform .3s, box-shadow .3s, border-color .3s;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 1.35rem;
}
.sol-card::before {
  content: attr(data-num);
  position: absolute; top: -1rem; right: 1.5rem;
  font-size: 7rem; font-weight: 900;
  color: rgba(0,178,227,.22);
  line-height: 1; letter-spacing: -.04em; pointer-events: none;
  transition: color .35s, transform .35s;
}
.sol-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 24px 60px rgba(0,117,141,.2);
}
.sol-card:hover::before {
  color: rgba(0,178,227,.38);
  transform: scale(1.05) translateY(-4px);
}

.sol-card__head {
  display: flex; align-items: center; gap: 1.1rem;
  position: relative; z-index: 1;
}
.sol-card__icon {
  width: 58px; height: 58px; border-radius: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.65rem; flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0,117,141,.3);
}
.sol-card h3 {
  font-size: 1.25rem; font-weight: 700; color: #0a1a1f;
  line-height: 1.25; letter-spacing: -.01em;
}
.sol-card__desc {
  font-size: .95rem; color: var(--text-muted);
  line-height: 1.75; position: relative; z-index: 1;
}
.sol-card__list {
  list-style: none; display: flex; flex-direction: column; gap: .7rem;
  padding-top: 1rem; border-top: 1px solid #8fc8dc;
  position: relative; z-index: 1;
}
.sol-card__list li {
  display: flex; align-items: flex-start; gap: .65rem;
  font-size: .88rem; color: #2a3d45; line-height: 1.5; font-weight: 500;
}
.sol-card__list li svg {
  width: 16px; height: 16px; flex-shrink: 0;
  color: var(--primary-light); margin-top: .15rem;
}

/* ===== CONTACTE ===== */
.contacte { padding: 5rem 0; background: linear-gradient(135deg, #003d4c, #00758d); }
.contacte__inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 5rem; align-items: start;
}
.contacte__title { color: #fff !important; }
.contacte__intro { color: rgba(255,255,255,.78); margin-bottom: 1.75rem; line-height: 1.75; font-size: .97rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; padding: .85rem 1rem; border: none; border-radius: var(--radius);
  font-size: .95rem; outline: none; font-family: inherit;
  background: rgba(255,255,255,.95); color: #1a1a1a;
  transition: box-shadow .2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { box-shadow: 0 0 0 3px rgba(0,178,227,.4); }
.contact-form textarea { resize: vertical; }

/* ── Validació: estats d'error ── */
.field-wrap { display: flex; flex-direction: column; gap: .3rem; }
.contact-form input.input-error,
.contact-form select.input-error,
.contact-form textarea.input-error {
  box-shadow: 0 0 0 2px #e74c3c;
  background: #fff8f8;
}
.contact-form input.input-ok,
.contact-form select.input-ok,
.contact-form textarea.input-ok {
  box-shadow: 0 0 0 2px #27ae60;
}
.field-error-msg {
  font-size: .78rem; color: #ff6b6b; font-weight: 500;
  padding-left: .25rem; display: none;
}
.field-error-msg.visible { display: block; }
.recaptcha-notice {
  font-size: .75rem; color: rgba(255,255,255,.35); line-height: 1.5; margin-top: -.25rem;
}
.recaptcha-notice a { color: rgba(255,255,255,.45); text-decoration: underline; }
.recaptcha-notice a:hover { color: rgba(255,255,255,.7); }
.privacy-check.input-error { color: #ff6b6b; }
.privacy-check {
  display: flex; align-items: flex-start; gap: .75rem;
  color: rgba(255,255,255,.78); font-size: .88rem; cursor: pointer; line-height: 1.5;
}
.privacy-check input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; margin-top: .15rem; accent-color: var(--primary-light); }
.privacy-link { color: var(--primary-light); text-decoration: underline; }

.contacte__info-col { padding-top: .5rem; }
.contacte__info-title { color: #fff; font-size: 1.3rem; font-weight: 700; margin-bottom: 1.75rem; }
.contact-info { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.contact-info li { display: flex; gap: .85rem; color: rgba(255,255,255,.8); font-size: .95rem; align-items: flex-start; line-height: 1.5; }
.contact-info--footer li { color: #999; font-size: .88rem; }

/* ===== FAQ ===== */
.faq { padding: 6rem 0; background: #fff; border-top: 1px solid #e0eef2; }
.faq__inner { max-width: 820px; margin: 0 auto; }
.faq__inner .section-title { margin-bottom: 2rem; }
.faq-list { display: flex; flex-direction: column; gap: .65rem; }
.faq-item {
  background: #fff; border-radius: var(--radius);
  border: 1px solid #d9eef4; overflow: hidden;
}
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 1.5rem; background: none; border: none; cursor: pointer;
  font-size: .97rem; font-weight: 600; text-align: left; color: #1a1a1a; gap: 1rem;
  transition: color .2s;
}
.faq-q:hover { color: var(--primary); }
.faq-icon {
  font-size: 1.4rem; font-weight: 300; flex-shrink: 0;
  color: var(--primary-light); transition: transform .25s; line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; padding: 0 1.5rem;
  transition: max-height .35s ease, padding .3s ease;
}
.faq-item.open .faq-a { max-height: 420px; padding: 0 1.5rem 1.25rem; }
.faq-a p { color: var(--text-muted); line-height: 1.75; font-size: .95rem; }
.faq-item { transition: border-color .2s, box-shadow .2s; }
.faq-item.open { border-color: var(--primary-light); box-shadow: 0 4px 16px rgba(0,117,141,.08); }

/* ===== MAPA ===== */
.mapa { height: 420px; background: #cce9f0; }
.mapa iframe { width: 100%; height: 100%; border: none; display: block; filter: saturate(1.05); }

/* ===== FOOTER ===== */
.footer { background: #0a1a1f; color: #8aacb5; padding: 4rem 0 0; }
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
}
.footer__brand p {
  font-size: .88rem; line-height: 1.75; margin-top: .85rem;
  max-width: 260px; color: #8aacb5;
}
.footer__col h4 {
  color: #fff; font-size: .75rem; margin-bottom: 1.1rem;
  text-transform: uppercase; letter-spacing: .1em;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer__col a { font-size: .88rem; color: #8aacb5; transition: color .2s; }
.footer__col a:hover { color: var(--primary-light); }
.social-links li { display: flex; align-items: center; gap: .5rem; }
.footer__bottom { border-top: 1px solid #1a3040; }
.footer__bottom-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: .5rem; padding: 1.25rem 0; font-size: .83rem;
}
.footer__bottom a { color: #8aacb5; transition: color .2s; }
.footer__bottom a:hover { color: var(--primary-light); }
.footer__bottom a[href*="bitanube"],
.footer__bottom a[title*="Bitanube"] { transition: all .3s; }
.footer__bottom a[href*="bitanube"]:hover,
.footer__bottom a[title*="Bitanube"]:hover {
  background: linear-gradient(90deg, #6b2d8b, #b05cc8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* ===== WHATSAPP FLOTANT ===== */
.whatsapp-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 500;
  background: #25D366; color: #fff;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.55); }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--primary); color: #fff; padding: 1rem 2rem; border-radius: 50px;
  font-weight: 600; z-index: 600; transition: transform .3s, opacity .3s;
  max-width: 90vw; text-align: center; font-size: .95rem;
  box-shadow: 0 4px 20px rgba(0,117,141,.35);
  opacity: 0; pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.toast--error { background: #c0392b; }

/* ===== BACK TO TOP ===== */
.back-top {
  position: fixed; bottom: calc(2rem + 58px + .75rem); right: 2rem; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(5,40,48,.85); backdrop-filter: blur(8px);
  border: none;
  color: #fff;
  cursor: pointer; opacity: 0; pointer-events: none;
  transform: translateY(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  transition: opacity .3s, transform .3s, background .2s, box-shadow .2s;
}
.back-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top:hover { background: var(--primary); box-shadow: 0 6px 28px rgba(0,117,141,.5); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1060px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .categories__header { grid-template-columns: 1fr; gap: 1.5rem; }
  .categories__intro { justify-self: start; max-width: none; }
  .sol-grid { grid-template-columns: 1fr; }
  .hero__content { margin-left: 2rem; padding-right: 2rem; }
  .hero__side { display: none; }
  .hero__scroll { bottom: 1.5rem; }
  .qui-som__body { grid-template-columns: 1fr; gap: 2.5rem; }
  .contacte__inner { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 640px) {
  /* ── Nav ── */
  .nav {
    display: none; flex-direction: column; position: absolute;
    top: 70px; left: 0; right: 0; background: #fff;
    border-top: 1px solid #e0eef2; padding: 1.5rem; gap: 1.25rem;
    box-shadow: 0 8px 20px rgba(0,117,141,.1);
  }
  .nav.open { display: flex; }
  .hamburger { display: flex; }

  /* ── Hero: centrat ── */
  .hero { align-items: center; padding-bottom: 8vh; }
  .hero__content {
    margin-left: 1.25rem; padding-right: 1.25rem;
    text-align: center; display: flex; flex-direction: column; align-items: center;
  }
  .hero__accent { margin-left: auto; margin-right: auto; }
  .hero__divider { margin-left: auto; margin-right: auto; }
  .hero__badge { align-self: center; }
  .hero__title { font-size: clamp(1.4rem, 6.5vw, 2rem); }
  .hero__subtitle { font-size: 1rem; max-width: 100%; text-align: center; }
  .hero__ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__ctas .btn { width: 100%; }

  /* ── Utilitats de secció: centrades ── */
  .section-title { text-align: center; }
  .section-title--accent::before { margin-left: auto; margin-right: auto; }
  .section-sub { text-align: center; max-width: 100%; }
  .eyebrow { text-align: center; }

  /* ── Stats ── */
  .stats__grid { grid-template-columns: repeat(3, 1fr); gap: .75rem; }
  .stat__number { font-size: 1.8rem; }
  .stat__symbol { font-size: 1.4rem; }
  .stat p { font-size: .68rem; letter-spacing: .08em; margin-top: .4rem; }

  /* ── Categories ── */
  .cat-grid { grid-template-columns: 1fr; }
  .categories__header { text-align: center; }
  .categories__header .section-title { text-align: center; }
  .categories__intro { justify-self: center; text-align: center; }

  /* ── Qui som ── */
  .qui-som__body { grid-template-columns: 1fr; text-align: center; }
  .qui-som__body p { text-align: center; }
  .qui-som__subsection-title { justify-content: center; }
  .qui-som__values-list { align-items: center; }
  .qui-som__checks li { justify-content: center; }

  /* ── Solucions ── */
  .sol-card { text-align: center; }
  .sol-card__head { flex-direction: column; align-items: center; }
  .sol-card__list li { justify-content: center; }

  /* ── Contacte ── */
  .contacte__intro { text-align: center; }
  .contacte__info-col { text-align: center; }
  .contacte__info-title { text-align: center; }
  .contact-info { text-align: center; }
  .contact-info li { justify-content: center; }
  .contact-form label { text-align: left; }

  /* ── FAQ ── */
  .faq__inner { text-align: center; }
  .faq__btn { text-align: left; }

  /* ── Formulari ── */
  .form-row { grid-template-columns: 1fr; }

  /* ── Footer ── */
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .footer__brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
  .footer__links { align-items: center; }
  .footer__col ul { align-items: center; }
  .contact-info--footer li { justify-content: center; }
  .social-links li { justify-content: center; }

  /* ── Flotants ── */
  .whatsapp-float { bottom: 1.25rem; right: 1.25rem; }
  .back-top { bottom: calc(1.25rem + 58px + .75rem); right: 1.25rem; }
  .back-top.visible { transform: translateY(0); }
}

/* ===== MODAL PROTECCIÓ DE DADES ===== */
.privacy-modal {
  display: flex; position: fixed; inset: 0; z-index: 2000;
  align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}
.privacy-modal.open {
  opacity: 1; visibility: visible; pointer-events: auto;
}

.privacy-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.65); backdrop-filter: blur(3px);
}
.privacy-modal__box {
  position: relative; z-index: 1;
  background: #fff; border-radius: 14px;
  max-width: 680px; width: 100%; max-height: 88vh;
  overflow-y: auto; padding: 2.5rem 2.5rem 2rem;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}
.privacy-modal__close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: #f0f4f6; border: none; border-radius: 50%;
  width: 36px; height: 36px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.privacy-modal__close:hover { background: #dde8ec; }
.privacy-modal__close svg { width: 16px; height: 16px; stroke: #052830; }

.privacy-modal__box h2 {
  font-size: 1.3rem; font-weight: 800; color: #052830; margin: 0 0 .25rem;
}
.privacy-modal__ref { font-size: .75rem; color: #8aacb5; margin-bottom: 1.75rem; }

.privacy-modal__section-label {
  font-size: .72rem; font-weight: 700; color: #00758d;
  text-transform: uppercase; letter-spacing: .14em; margin: 0 0 .7rem;
}
.privacy-modal__box p {
  font-size: .875rem; color: #444; line-height: 1.75; margin-bottom: .75rem;
}
.privacy-modal__box a { color: #00758d; }

.privacy-modal__table {
  width: 100%; border-collapse: collapse; font-size: .84rem; margin-bottom: 1rem;
}
.privacy-modal__table td {
  padding: .55rem .85rem; border-bottom: 1px solid #eef2f4; color: #333; vertical-align: top;
}
.privacy-modal__table tr:nth-child(even) td { background: #f7fbfc; }
.privacy-modal__table td:first-child {
  font-weight: 600; color: #052830; width: 110px; white-space: nowrap;
}

.privacy-modal__sep { border: none; border-top: 2px solid #eef2f4; margin: 1.75rem 0 1.5rem; }

/* Tabs */
.privacy-tabs {
  display: flex; gap: .4rem; margin-bottom: 1.25rem;
}
.privacy-tab {
  background: #f0f4f6; border: 1.5px solid #dde8ec; border-radius: 6px;
  padding: .4rem 1.1rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  color: #052830; cursor: pointer; transition: background .18s, color .18s, border-color .18s;
}
.privacy-tab:hover  { background: #e0ecf0; border-color: #b0ccd5; }
.privacy-tab.active { background: #052830; color: #fff; border-color: #052830; }

.privacy-tab-panel { display: none; }
.privacy-tab-panel.active { display: block; }

.privacy-modal__footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid #eef2f4; gap: 1rem;
}
.privacy-modal__footer a { font-size: .875rem; color: #00758d; font-weight: 600; text-decoration: none; }
.privacy-modal__footer a:hover { text-decoration: underline; }
.privacy-modal__footer .btn { padding: .6rem 1.5rem; font-size: .875rem; }

@media (max-width: 640px) {
  .privacy-modal__box { padding: 1.75rem 1.25rem 1.5rem; }
  .privacy-modal__footer { flex-direction: column; align-items: flex-start; }
  .privacy-modal__table td:first-child { width: 90px; }
}
