/* =============================================================
   Assessoria Carrasco — styles.css
   1. Tokens · 2. Reset · 3. Utilities · 4. Type · 5. Components
   6. Sections · 7. Effects · 8. Responsive · 9. Reduced motion
   ============================================================= */

/* 1. Tokens ------------------------------------------------- */
@property --mesh-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --navy-950: #070E1E;
  --navy-900: #0B1428;
  --navy-800: #111E3A;
  --navy-700: #1B2A4A;   /* brand */
  --navy-600: #253A66;
  --blue:     #3D63C9;

  --gold:     #A8853F;   /* brand */
  --gold-2:   #C9A24E;
  --yellow:   #F2C14E;
  --yellow-2: #FFD877;

  --paper:    #F8F6F1;
  --paper-2:  #EFEBE2;
  --white:    #FFFFFF;
  --ink:      #0F1A30;
  --ink-soft: #2F3B55;
  --mute:     #5B6475;   /* brand */
  --cream:    #F3EEE2;
  --cream-2:  rgba(243,238,226,.74);
  --cream-3:  rgba(243,238,226,.5);
  --line:     rgba(15,26,48,.12);
  --line-l:   rgba(243,238,226,.14);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1280px;
  --nav-h: 74px;
  --radius: 16px;
}

/* 2. Reset -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 80px; }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; }
::selection { background: var(--yellow); color: var(--navy-900); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
svg use { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* 3. Utilities ---------------------------------------------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--yellow); color: var(--navy-900); z-index: 9999; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* 4. Typography --------------------------------------------- */
em { font-style: italic; font-family: var(--serif); font-weight: 400; }
.kicker, .eyebrow { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; display: inline-flex; align-items: center; gap: .7rem; }
.eyebrow { color: var(--gold); margin-bottom: 1.3rem; }
.eyebrow span { display: inline-grid; place-items: center; min-width: 2.2rem; height: 1.6rem; padding: 0 .5rem; border: 1px solid currentColor; border-radius: 99px; font-size: .7rem; }
.eyebrow-light { color: var(--yellow); }
.sec-title { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.04; letter-spacing: -0.025em; max-width: 18ch; color: var(--navy-700); }
.sec-title em { color: var(--gold); }
.navy .sec-title { color: var(--cream); }
.navy .sec-title em { color: var(--yellow); }
.sec-lead { font-size: clamp(1rem, 1.25vw, 1.12rem); color: var(--mute); max-width: 52ch; margin-top: 1.3rem; }
.navy .sec-lead { color: var(--cream-2); }

/* 5. Components --------------------------------------------- */
.btn {
  --bg: transparent; --fg: currentColor;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  padding: .8rem 1.3rem; border-radius: 10px; font-weight: 500; font-size: .95rem;
  background: var(--bg); color: var(--fg); isolation: isolate; overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), color .4s var(--ease-out);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--fill, var(--navy-900)); transform: translateY(101%); transition: transform .55s var(--ease-out); }
.btn:hover::before { transform: translateY(0); }
.btn .arr { font-style: normal; transition: transform .5s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }
.btn .ico { width: 20px; height: 20px; flex: none; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1rem; }
.btn-gold { --bg: var(--gold); --fg: var(--white); --fill: var(--yellow); box-shadow: 0 12px 28px -14px rgba(168,133,63,.8); }
.btn-gold:hover { color: var(--navy-900); }
.btn-ghost { --fg: var(--cream); --fill: var(--cream); border: 1px solid rgba(243,238,226,.35); }
.btn-ghost:hover { color: var(--navy-900); }
.btn-navy { --bg: var(--navy-700); --fg: var(--cream); --fill: var(--gold); }
.btn-light { --bg: var(--white); --fg: var(--navy-700); --fill: var(--yellow); }

.link-arrow { display: inline-flex; gap: .55rem; align-items: center; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: .2rem; }
.link-arrow i { font-style: normal; transition: transform .4s var(--ease-out); }
.link-arrow:hover i { transform: translateX(5px); }
.link-light { color: var(--yellow); margin-top: 1.2rem; }

/* Image placeholders — drop a WebP with the data-src name and it appears */
.ph {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background-color: var(--navy-700);
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 14px),
    radial-gradient(120% 80% at 20% 0%, rgba(61,99,201,.35), transparent 60%),
    radial-gradient(90% 70% at 100% 100%, rgba(168,133,63,.3), transparent 60%);
  background-size: cover; background-position: center;
}
.ph-label {
  position: absolute; left: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cream-2); padding: .4rem .7rem; border: 1px dashed rgba(243,238,226,.3); border-radius: 8px; background: rgba(7,14,30,.45);
}
.ph-label::before { content: "▣"; color: var(--yellow); }
.ph.has-img .ph-label { display: none; }

.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 6. Sections ----------------------------------------------- */

/* Splash */
.splash { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 1rem; background: var(--paper); color: var(--navy-700); transition: clip-path 1s var(--ease-out), visibility 0s 1s; clip-path: inset(0 0 0 0); animation: splashSafety .01s 3.6s forwards; }
.splash.is-out { clip-path: inset(0 0 100% 0); visibility: hidden; }
@keyframes splashSafety { to { clip-path: inset(0 0 100% 0); visibility: hidden; pointer-events: none; } }
.splash-mark { position: relative; font-family: var(--serif); font-weight: 700; display: flex; align-items: baseline; line-height: 1; padding-bottom: .6rem; }
.splash-mark span { display: inline-block; opacity: 0; transform: translateY(40%); animation: rise .9s var(--ease-out) forwards; }
.sm-C { font-size: 6.5rem; }
.sm-c1 { font-size: 4rem; color: var(--gold); animation-delay: .12s !important; }
.sm-c2 { font-size: 2.9rem; color: var(--gold); animation-delay: .22s !important; }
.splash-rule { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; animation: grow 1s .35s var(--ease-out) forwards; }
.splash-cap { font-family: var(--mono); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); opacity: 0; animation: fade .8s .5s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes grow { to { transform: scaleX(1); } }
@keyframes fade { to { opacity: 1; } }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; background: linear-gradient(90deg, var(--gold), var(--yellow)); transform-origin: left; transform: scaleX(0); }

/* Nav — light, like the reference */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h); color: var(--navy-700); background: rgba(248,246,241,.96); border-bottom: 1px solid var(--line); transition: transform .6s var(--ease-out), box-shadow .5s, height .4s var(--ease-out); }
@supports (backdrop-filter: blur(10px)) { .nav { background: rgba(248,246,241,.82); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); } }
.nav.is-solid { box-shadow: 0 10px 30px -20px rgba(15,26,48,.4); }
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner { height: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 1.6rem; }
.brand { flex: none; }
.brand-svg { height: 38px; width: auto; }
.b-C, .b-t { fill: var(--navy-700); }
.b-c { fill: var(--gold); }
.b-rule { stroke: var(--gold); }
.b-s { fill: var(--mute); }

.nav-links { display: none; gap: 1.6rem; margin-left: auto; align-items: center; font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.nav-links > a, .dd-btn { position: relative; padding: .5rem 0; display: inline-flex; align-items: center; gap: .35rem; transition: color .3s; }
.nav-links > a::after, .dd-btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav-links > a:hover::after, .dd:hover .dd-btn::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.is-active { color: var(--gold); }
.dd-btn i { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .4s var(--ease-out); }
.dd:hover .dd-btn i, .dd:focus-within .dd-btn i { transform: rotate(225deg) translateY(-1px); }
.dd { position: relative; }
.dd-menu {
  position: absolute; top: calc(100% + 12px); left: -1rem; min-width: 270px; padding: .5rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 50px -24px rgba(15,26,48,.4);
  display: grid; font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: .92rem;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .3s var(--ease-out), transform .4s var(--ease-out), visibility 0s .3s;
}
.dd-menu::before { content: ""; position: absolute; inset: -14px 0 auto 0; height: 14px; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease-out), transform .4s var(--ease-out); }
.dd-menu a, .dd-menu span { padding: .6rem .8rem; border-radius: 8px; color: var(--ink-soft); transition: background .25s, color .25s, padding .3s var(--ease-out); }
.dd-menu a:hover { background: var(--paper); color: var(--navy-700); padding-left: 1.1rem; }
.dd-menu-right { left: auto; right: 0; min-width: 180px; }
.dd-menu .is-current { color: var(--navy-700); font-weight: 600; background: var(--paper); }
.dd-menu a[lang] { display: flex; justify-content: space-between; gap: 1rem; }
.dd-menu a[lang] small { color: var(--mute); }
.mobile-langs { display: flex; gap: .45rem; margin-bottom: 1rem; }
.mobile-langs a { font-family: var(--mono); font-size: .8rem; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 99px; }
.mobile-langs a.is-current { background: var(--navy-700); color: var(--cream); border-color: var(--navy-700); }
.legal-langs { display: flex; gap: .25rem; margin-left: auto; margin-right: 1rem; }
.legal-langs a { font-family: var(--mono); font-size: .72rem; padding: .3rem .55rem; border-radius: 6px; color: var(--navy-700); }
.legal-langs a:hover { background: var(--paper-2); }
.legal-langs a.is-current { background: var(--navy-700); color: var(--cream); }
@media (max-width: 539px) { .legal-top a.back { display: none; } .legal-langs { margin-right: 0; } }
.dd-menu .is-soon { color: var(--mute); opacity: .7; display: flex; justify-content: space-between; gap: 1rem; }
.dd-menu small { font-family: var(--mono); font-size: .65rem; text-transform: uppercase; color: var(--gold); }

.nav-phone { display: none; align-items: center; gap: .45rem; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.nav-phone svg { width: 17px; height: 17px; color: var(--gold); }
.dd-lang { display: none; }
.lang-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font-size: .82rem; font-weight: 600; }
.lang-btn svg { width: 16px; height: 16px; color: var(--gold); }
.nav-burger { margin-left: auto; width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 50%; }
.nav-burger span { display: block; width: 18px; height: 1.5px; background: var(--navy-700); transition: transform .4s var(--ease-out); }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 99; background: var(--paper); color: var(--navy-700); padding: calc(var(--nav-h) + 2rem) var(--gutter) 2rem; display: flex; flex-direction: column; justify-content: space-between; }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: grid; gap: .3rem; }
.mobile-menu nav a { font-family: var(--serif); font-size: 2rem; display: flex; align-items: baseline; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(16px); animation: rise .6s var(--ease-out) forwards; }
.mobile-menu nav a:nth-child(2) { animation-delay: .05s; } .mobile-menu nav a:nth-child(3) { animation-delay: .1s; } .mobile-menu nav a:nth-child(4) { animation-delay: .15s; } .mobile-menu nav a:nth-child(5) { animation-delay: .2s; } .mobile-menu nav a:nth-child(6) { animation-delay: .25s; }
.mobile-menu small { font-family: var(--mono); font-size: .75rem; color: var(--gold); }
.mobile-menu-foot { font-family: var(--mono); font-size: .75rem; color: var(--mute); }

/* Hero — full-bleed photo with navy veil, like the reference */
.hero { position: relative; min-height: 92vh; min-height: 92svh; color: var(--cream); padding-top: calc(var(--nav-h) + 3rem); padding-bottom: 7.5rem; display: flex; flex-direction: column; justify-content: center; isolation: isolate; overflow: hidden; background: var(--navy-900); }
.hero-photo { position: absolute; inset: 0; z-index: -3; border-radius: 0; animation: kenburns 24s ease-in-out infinite alternate; }
.hero-photo .ph-label { left: auto; right: var(--gutter); bottom: auto; top: calc(var(--nav-h) + 1rem); }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(11,20,40,.92) 0%, rgba(11,20,40,.72) 45%, rgba(11,20,40,.35) 100%), linear-gradient(180deg, transparent 60%, rgba(11,20,40,.6)); }
.hero-mesh {
  position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background: conic-gradient(from var(--mesh-a) at 70% 40%, rgba(61,99,201,.35), transparent 25%, rgba(201,162,78,.2) 45%, transparent 65%, rgba(61,99,201,.35));
  filter: blur(70px); opacity: .8; animation: meshSpin 26s linear infinite;
}
.hero-mesh-soft { opacity: .5; }
@keyframes meshSpin { to { --mesh-a: 360deg; } }
.hero-inner { position: relative; z-index: 2; display: grid; gap: 3rem; align-items: center; }
.kicker { color: var(--cream-2); margin-bottom: 1.5rem; }
.kicker .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242,193,78,.6); } 70%, 100% { box-shadow: 0 0 0 12px rgba(242,193,78,0); } }
.hero-title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.5rem, 5.4vw, 5rem); line-height: 1; letter-spacing: -0.03em; max-width: 14ch; }
.hero-title em { color: var(--yellow); font-weight: 400; }
.hero-sub { margin-top: 1.5rem; max-width: 50ch; color: var(--cream-2); font-size: clamp(1.02rem, 1.25vw, 1.15rem); font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

.hero-cards { position: relative; height: 360px; display: none; }
.doc-card { position: absolute; display: flex; gap: .8rem; align-items: center; padding: .85rem 1.1rem .85rem .85rem; border-radius: 14px; color: var(--ink); background: rgba(255,255,255,.95); box-shadow: 0 24px 50px -20px rgba(0,0,0,.55); transition: transform .8s var(--ease-out); font-size: .85rem; line-height: 1.3; width: 270px; }
@supports (backdrop-filter: blur(10px)) { .doc-card { background: rgba(255,255,255,.87); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); } }
.doc-card small { display: block; font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.doc-card b { display: block; font-weight: 600; }
.doc-card em { font-family: var(--sans); font-style: normal; font-size: .78rem; color: #2C7A4B; }
.doc-ico { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--yellow); color: var(--navy-900); font-weight: 700; }
.doc-ico-blue { background: var(--navy-700); color: var(--yellow); }
.doc-a { right: 0; top: 0; animation: floatY 7s ease-in-out infinite; }
.doc-b { left: 0; top: 38%; animation: floatY 8s -2s ease-in-out infinite; }
.doc-c { right: 6%; bottom: 0; animation: floatY 6.5s -4s ease-in-out infinite; }
@keyframes floatY { 50% { translate: 0 -10px; } }

.hero-facts { position: relative; z-index: 2; margin-top: 3.5rem; padding-inline: 0; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) - 2 * var(--gutter)); display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line-l); border: 1px solid var(--line-l); border-radius: 14px; overflow: hidden; }
.fact { display: flex; gap: .8rem; align-items: center; padding: 1rem 1.1rem; background: rgba(11,20,40,.55); }
.fact svg { width: 26px; height: 26px; flex: none; color: var(--yellow); }
.fact span { display: grid; font-size: .8rem; color: var(--cream-3); line-height: 1.35; }
.fact b { font-size: .92rem; font-weight: 500; color: var(--cream); }

/* Three areas — cards overlapping the hero edge */
.areas3 { position: relative; z-index: 3; margin-top: -4.5rem; }
.cards3 { display: grid; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 40px 80px -40px rgba(15,26,48,.45); overflow: hidden; }
.card3 { position: relative; padding: 2.2rem 2rem 2rem; display: grid; align-content: start; gap: .2rem; transition: background .5s var(--ease-out); overflow: hidden; }
.card3 + .card3 { border-top: 1px solid var(--line); }
.card3::before { content: ""; position: absolute; inset: 0; background: radial-gradient(360px circle at var(--hx, 50%) var(--hy, 0%), rgba(201,162,78,.14), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.card3:hover::before { opacity: 1; }
.card3::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--yellow)); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.card3:hover::after { transform: scaleX(1); }
.card3-n { position: absolute; top: 1.4rem; right: 1.6rem; font-family: var(--serif); font-size: 3rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(168,133,63,.45); transition: -webkit-text-stroke-color .4s; }
.card3:hover .card3-n { -webkit-text-stroke-color: var(--gold); }
.card3-ico { width: 34px; height: 34px; color: var(--gold); margin-bottom: 1.4rem; transition: transform .6s var(--ease-out); }
.card3:hover .card3-ico { transform: translateY(-4px) scale(1.08); }
.card3 h2 { font-family: var(--serif); font-size: 1.6rem; color: var(--navy-700); margin-bottom: .5rem; }
.card3 p { color: var(--mute); font-size: .95rem; }
.card3-link { margin-top: 1.3rem; justify-self: start; font-weight: 500; color: var(--navy-700); border-bottom: 1px solid var(--gold); padding-bottom: .15rem; display: inline-flex; gap: .45rem; }
.card3-link i { font-style: normal; transition: transform .4s var(--ease-out); }
.card3:hover .card3-link i { transform: translateX(5px); }

/* Marquee */
.marquee { margin-top: clamp(4rem, 8vw, 6rem); background: var(--navy-700); color: var(--cream); overflow: hidden; padding: 1rem 0; }
.marquee-track { display: flex; width: max-content; gap: 2rem; align-items: center; animation: marquee 44s linear infinite; font-family: var(--serif); font-size: clamp(1.1rem, 1.9vw, 1.5rem); white-space: nowrap; }
.marquee-track i { font-style: normal; font-size: .75em; color: var(--yellow); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Generic section */
.section { position: relative; padding-block: clamp(5rem, 10vw, 8.5rem); isolation: isolate; }
.paper { background: var(--paper); color: var(--ink); }
.paper-2 { background: var(--paper-2); color: var(--ink); }
.navy { background: var(--navy-900); color: var(--cream); overflow: clip; }
.sec-head { margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.sec-head-center { text-align: center; display: grid; justify-items: center; }
.sec-head-center .sec-title, .sec-head-center .sec-lead { margin-inline: auto; }
.sec-head-split { display: grid; gap: 1.5rem; align-items: end; }

/* Empreses — accordion list */
.areas-grid { display: grid; gap: 3rem; }
.areas-head .btn { margin-top: 2rem; }
.area-list { border-top: 1px solid var(--line); }
.area { border-bottom: 1px solid var(--line); }
.area summary { list-style: none; display: grid; grid-template-columns: 3rem 1fr auto; align-items: center; gap: 1rem; padding: 1.5rem 0; cursor: pointer; position: relative; }
.area summary::-webkit-details-marker { display: none; }
.area summary::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.area summary:hover::before, .area[open] summary::before { transform: scaleX(1); }
.area-n { font-family: var(--mono); font-size: .8rem; color: var(--gold); }
.area-t { font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.95rem); font-weight: 600; color: var(--navy-700); letter-spacing: -.02em; transition: transform .6s var(--ease-out), color .4s; }
.area summary:hover .area-t { transform: translateX(10px); color: var(--gold); }
.area-plus { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); position: relative; color: var(--navy-700); transition: background .4s, border-color .4s, transform .6s var(--ease-out); }
.area-plus::before, .area-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; translate: -50% -50%; }
.area-plus::after { rotate: 90deg; transition: rotate .5s var(--ease-out); }
.area[open] .area-plus { background: var(--navy-700); border-color: var(--navy-700); color: var(--yellow); transform: rotate(180deg); }
.area[open] .area-plus::after { rotate: 0deg; }
.area-body { padding: 0 0 1.8rem 4rem; display: grid; gap: 1rem; max-width: 60ch; color: var(--ink-soft); }
.area[open] .area-body { animation: drop .6s var(--ease-out); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.tags li { font-size: .78rem; padding: .32rem .75rem; border-radius: 99px; background: var(--white); border: 1px solid var(--line); }

/* Immigració — stacked cards */
.ext-grid { display: grid; gap: 3rem; position: relative; z-index: 2; }
.ext-steps { margin-top: 2rem; display: grid; gap: .8rem; counter-reset: s; }
.ext-steps li { counter-increment: s; display: flex; gap: 1rem; align-items: center; color: var(--cream-2); }
.ext-steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: .75rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-l); color: var(--yellow); flex: none; }
.ext-steps b { color: var(--cream); font-weight: 500; }
.stack { display: grid; gap: 1.2rem; }
.stack-card { --i: 0; position: sticky; top: calc(var(--nav-h) + 1rem + var(--i) * 14px); background: linear-gradient(160deg, var(--navy-700), var(--navy-800)); border: 1px solid var(--line-l); border-radius: 22px; padding: clamp(1.4rem, 3vw, 2.1rem); color: var(--cream); box-shadow: 0 -20px 50px -25px rgba(0,0,0,.6); transform-origin: top center; display: grid; }
.stack-card-gold { background: linear-gradient(160deg, var(--yellow), var(--gold-2)); color: var(--navy-900); border-color: transparent; }
.sc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; }
.sc-n { font-family: var(--serif); font-size: 2.5rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--yellow); }
.stack-card-gold .sc-n { -webkit-text-stroke-color: var(--navy-900); }
.sc-tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; padding: .35rem .7rem; border: 1px solid currentColor; border-radius: 99px; opacity: .8; }
.stack-card h3 { font-family: var(--serif); font-size: clamp(1.5rem, 2.5vw, 2.1rem); margin-bottom: .7rem; }
.stack-card p { color: var(--cream-2); max-width: 54ch; }
.stack-card-gold p { color: rgba(11,20,40,.78); margin-bottom: 1.5rem; }
.stack-card-gold .btn { justify-self: start; }
.stack-card .link-arrow { justify-self: start; }
.sc-foot { margin-top: 1.4rem; aspect-ratio: 16 / 5; border-radius: 12px; }
.sc-foot .ph-label { bottom: .7rem; left: .7rem; }
.stack-card-gold .sc-foot { margin-top: 0; margin-bottom: 1.4rem; }

/* Emprendre — route */
.route { position: relative; display: grid; gap: 1.6rem; padding-left: 3.5rem; max-width: 1040px; margin-inline: auto; }
.route-line { position: absolute; left: 1.2rem; top: 0; bottom: 0; width: 4px; height: 100%; overflow: visible; }
.route-track { stroke: var(--line); stroke-width: 2; vector-effect: non-scaling-stroke; }
.route-fill { stroke: var(--gold); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.no-js .route-fill { stroke-dashoffset: 0; }
.step { position: relative; }
.step-n { position: absolute; left: -3.5rem; top: 1.4rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--gold); font-family: var(--mono); font-size: .75rem; color: var(--gold); transition: background .5s, color .5s; z-index: 1; }
.paper-2 .step-n { background: var(--paper-2); }
.step.is-lit .step-n { background: var(--navy-700); color: var(--yellow); border-color: var(--navy-700); }
.step-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem 1.6rem; transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.step-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(15,26,48,.35); }
.step-card h3 { font-family: var(--serif); font-size: 1.4rem; color: var(--navy-700); margin-bottom: .45rem; }
.step-card p { color: var(--mute); }
.step-card-gold { background: var(--navy-700); border-color: transparent; }
.step-card-gold p { color: var(--cream-2); }
.step-card-gold h3 { color: var(--yellow); }

/* Transport */
.transport-grid { display: grid; gap: 3rem; align-items: center; }
.transport-media { position: relative; }
.ph-van { aspect-ratio: 4 / 5; max-height: 640px; width: 100%; }
.transport-badge { position: absolute; right: -0.5rem; bottom: 2rem; display: flex; gap: .8rem; align-items: center; background: var(--white); border-radius: 14px; padding: .9rem 1.1rem; box-shadow: 0 24px 50px -24px rgba(15,26,48,.5); animation: floatY 7s ease-in-out infinite; }
.transport-badge svg { width: 28px; height: 28px; color: var(--gold); }
.transport-badge span { display: grid; font-size: .8rem; color: var(--mute); line-height: 1.3; }
.transport-badge b { color: var(--navy-700); font-size: .95rem; }
.tr-list { margin: 2.2rem 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tr-list li { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.2rem 1.3rem; background: var(--white); transition: background .4s; }
.tr-list li:hover { background: var(--paper-2); }
.tr-list svg { width: 30px; height: 30px; flex: none; color: var(--gold); margin-top: .1rem; }
.tr-list h3 { font-family: var(--serif); font-size: 1.2rem; color: var(--navy-700); margin-bottom: .2rem; }
.tr-list p { color: var(--mute); font-size: .93rem; }

/* Image band */
.band { position: relative; min-height: 72vh; display: grid; align-items: end; overflow: hidden; color: var(--cream); isolation: isolate; background: var(--navy-900); }
.band-media { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; }
.ph-band { position: absolute; inset: 0; border-radius: 0; }
.ph-band .ph-label { top: 6.5rem; left: auto; right: var(--gutter); bottom: auto; }
.band-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,14,30,.1), rgba(7,14,30,.82) 85%); }
.band-quote { padding-block: 5rem 4.5rem; }
.band-quote p { font-family: var(--serif); font-size: clamp(1.8rem, 4.2vw, 3.6rem); line-height: 1.1; letter-spacing: -.02em; max-width: 22ch; font-weight: 500; }
.band-quote em { color: var(--yellow); }
.band-quote cite { display: block; margin-top: 1.5rem; font-style: normal; font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-3); }

/* Com treballem */
.process .container { position: relative; z-index: 2; }
.proc { position: relative; display: grid; gap: 2.2rem; counter-reset: p; }
.proc::before { content: ""; position: absolute; left: 31px; top: 32px; bottom: 32px; width: 1.5px; background: var(--line-l); }
.proc::after { content: ""; position: absolute; left: 31px; top: 32px; width: 1.5px; height: calc((100% - 64px) * var(--p, 0)); background: linear-gradient(180deg, var(--gold), var(--yellow)); transition: height .2s linear; }
.proc-step { position: relative; display: grid; grid-template-columns: 64px 1fr; column-gap: 1.4rem; align-items: start; }
.proc-ico { grid-row: span 3; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-700); border: 1px solid var(--line-l); box-shadow: 0 0 0 8px var(--navy-900); position: relative; z-index: 1; transition: background .5s var(--ease-out), color .5s; color: var(--cream); }
.proc-step.is-lit .proc-ico { background: var(--yellow); color: var(--navy-900); }
.proc-ico svg { width: 26px; height: 26px; }
.proc-n { font-family: var(--mono); font-size: .72rem; color: var(--yellow); letter-spacing: .1em; margin-top: .4rem; }
.proc-step h3 { font-family: var(--serif); font-size: 1.45rem; margin: .2rem 0 .4rem; }
.proc-step p { color: var(--cream-2); font-size: .97rem; max-width: 32ch; }

/* Qui som */
.about { display: grid; gap: 2rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); align-items: end; }
.about-copy .sec-lead { margin-top: 0; }
.about-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.about-tags li { padding: .45rem .9rem; border-radius: 99px; border: 1px solid var(--gold); color: var(--navy-700); font-size: .88rem; font-weight: 500; }
.about-vn { margin-top: 1.4rem; display: flex; gap: .8rem; align-items: center; padding: 1rem 1.2rem; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 12px; color: var(--ink-soft); }
.about-vn svg { width: 26px; height: 26px; flex: none; color: var(--gold); }
.about-vn b { color: var(--navy-700); }
.team { display: grid; gap: 1.6rem; }
.member { display: grid; gap: 1rem; }
.ph-portrait { aspect-ratio: 4 / 5; transition: transform .8s var(--ease-out), border-radius .8s var(--ease-out); }
.member:hover .ph-portrait { transform: translateY(-6px); border-radius: 40px var(--radius) var(--radius) var(--radius); }
.member figcaption { display: grid; gap: .15rem; }
.member b { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--navy-700); }
.member figcaption span { font-size: .9rem; color: var(--mute); }

/* FAQ */
.faq-grid { display: grid; gap: 3rem; }
.faq-list { display: grid; gap: .7rem; }
.qa { background: var(--white); border: 1px solid var(--line); border-radius: 14px; transition: box-shadow .5s var(--ease-out), border-color .4s; }
.qa[open] { border-color: var(--gold); box-shadow: 0 20px 40px -28px rgba(15,26,48,.45); }
.qa summary { list-style: none; cursor: pointer; padding: 1.2rem 1.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 500; font-size: 1.03rem; color: var(--navy-700); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary span { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--paper-2); position: relative; transition: background .4s, transform .5s var(--ease-out); }
.qa summary span::before, .qa summary span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--ink); translate: -50% -50%; }
.qa summary span::after { rotate: 90deg; transition: rotate .4s var(--ease-out); }
.qa[open] summary span { background: var(--yellow); transform: rotate(180deg); }
.qa[open] summary span::after { rotate: 0deg; }
.qa p { padding: 0 1.4rem 1.4rem; color: var(--ink-soft); max-width: 62ch; }
.qa[open] p { animation: drop .5s var(--ease-out); }

/* CTA box */
.cta-wrap { padding-bottom: clamp(4rem, 8vw, 6rem); }
.cta-box { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 1.6rem; align-items: center; padding: clamp(1.8rem, 4vw, 3rem); border-radius: 20px; background: linear-gradient(120deg, var(--navy-700), var(--navy-600)); color: var(--cream); box-shadow: 0 40px 80px -40px rgba(15,26,48,.6); }
.cta-box .hero-mesh { z-index: -1; }
.cta-box h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); }
.cta-box p { color: var(--cream-2); margin-top: .6rem; max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* Contacte */
.contact-grid { position: relative; z-index: 2; display: grid; gap: 3rem; }
.contact-title { font-family: var(--serif); font-size: clamp(2.1rem, 4.4vw, 3.7rem); line-height: 1.04; letter-spacing: -.025em; max-width: 14ch; }
.contact-title em { color: var(--yellow); }
.contact-list { margin-top: 2.4rem; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--line-l); }
.contact-list svg { width: 40px; height: 40px; padding: 9px; flex: none; color: var(--yellow); border: 1px solid var(--line-l); border-radius: 50%; }
.contact-list div { display: grid; gap: .1rem; min-width: 0; }
.contact-list small { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-3); }
.contact-list a, .contact-list span { font-size: 1.02rem; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--yellow); }
.ph-map { margin-top: 2rem; aspect-ratio: 16 / 9; background-color: var(--navy-800); }

.form { position: relative; background: var(--paper); color: var(--ink); border-radius: 22px; padding: clamp(1.4rem, 3vw, 2.4rem); display: grid; gap: 1.1rem; box-shadow: 0 50px 90px -40px rgba(0,0,0,.7); align-self: start; overflow: hidden; }
.form-row { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field > span, .chips legend { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.field input, .field textarea { font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: .85rem 1rem; transition: border-color .3s, box-shadow .3s; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(168,133,63,.16); }
.field.is-invalid input { border-color: #C2412D; box-shadow: 0 0 0 4px rgba(194,65,45,.12); }
.chips { border: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips legend { margin-bottom: .5rem; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: .55rem 1rem; border-radius: 99px; border: 1px solid var(--line); background: var(--white); font-size: .9rem; transition: background .3s, color .3s, border-color .3s; }
.chips input:checked + span { background: var(--navy-700); color: var(--cream); border-color: var(--navy-700); }
.chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--mute); }
.consent input { margin-top: .25rem; accent-color: var(--navy-700); width: 18px; height: 18px; flex: none; }
.consent a { text-decoration: underline; }
.consent.is-invalid { color: #C2412D; }
.form.is-sending .btn-submit { pointer-events: none; opacity: .7; }
.form-ok { position: absolute; inset: 0; background: var(--paper); display: grid; place-content: center; justify-items: center; gap: 1.2rem; text-align: center; padding: 2rem; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease-out), visibility 0s .6s; }
.form.is-sent .form-ok { opacity: 1; visibility: visible; transition: opacity .6s var(--ease-out); }
.form-ok svg { width: 84px; height: 84px; }
.form-ok circle { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; }
.form-ok path { fill: none; stroke: var(--navy-700); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.form.is-sent .form-ok circle { animation: draw .8s .1s var(--ease-out) forwards; }
.form.is-sent .form-ok path { animation: draw .5s .7s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-ok p { max-width: 30ch; color: var(--ink-soft); }
.form-ok b { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--navy-700); margin-bottom: .3rem; }

/* Footer */
.footer { background: var(--navy-700); color: var(--cream-2); padding: 4.5rem 0 2rem; overflow: hidden; }
.footer-top { display: grid; gap: 3rem; }
.footer-brand { display: flex; gap: 1.2rem; align-items: flex-start; color: var(--cream); }
.footer-brand small { color: var(--cream-3); font-size: .78rem; }
.footer-mono { font-family: var(--serif); font-weight: 700; display: flex; align-items: baseline; line-height: 1; }
.footer-mono span:nth-child(1) { font-size: 3.2rem; color: var(--cream); }
.footer-mono span:nth-child(2) { font-size: 2rem; color: var(--gold-2); }
.footer-mono span:nth-child(3) { font-size: 1.4rem; color: var(--gold-2); }
.footer-contact { margin-top: 1.4rem; display: grid; gap: .7rem; font-size: .9rem; color: var(--cream-2); }
.footer-contact li { display: flex; gap: .7rem; align-items: center; overflow-wrap: anywhere; }
.footer-contact svg { width: 18px; height: 18px; flex: none; color: var(--gold-2); }
.footer-contact a:hover { color: var(--yellow); }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.footer-cols h4 { font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 1rem; }
.footer-cols a:not(.btn) { display: block; padding: .25rem 0; transition: color .3s, transform .4s var(--ease-out); }
.footer-cols a:not(.btn):hover { color: var(--cream); transform: translateX(4px); }
.footer-wa { font-size: .9rem; }
.footer-word { font-family: var(--serif); font-weight: 700; font-size: clamp(4rem, 18vw, 17rem); line-height: .85; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgba(243,238,226,.18); margin: 4rem 0 2rem; white-space: nowrap; user-select: none; background: linear-gradient(90deg, var(--gold), var(--yellow)) no-repeat; background-size: var(--fill, 0%) 100%; -webkit-background-clip: text; background-clip: text; }
.footer-bottom { margin-top: 3.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid var(--line-l); font-size: .82rem; color: var(--cream-3); }
.footer-bottom a:hover { color: var(--yellow); }

/* Floating WhatsApp "Parlem?" */
.fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.3rem; border-radius: 99px; background: var(--navy-700); color: var(--cream); font-weight: 600; font-size: .95rem; box-shadow: 0 16px 34px -12px rgba(11,20,40,.6); transform: translateY(160%); transition: transform .6s var(--ease-out), background .3s; }
.fab svg { width: 22px; height: 22px; color: var(--yellow); }
.fab:hover { background: var(--gold); }
.fab:hover svg { color: var(--white); }
.fab.is-on { transform: none; }

/* Qui som — values with icons that draw and light up */
.vals-kicker { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.vals { display: grid; gap: 1rem; }
.val { --d: 0s; position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem 1.6rem 1.7rem; transition: opacity 1s var(--ease-out) var(--d), transform 1s var(--ease-out) var(--d), box-shadow .5s var(--ease-out), border-color .5s; overflow: hidden; }
.val::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at 52px 52px, rgba(242,193,78,.16), transparent 70%); opacity: 0; transition: opacity 1.2s var(--ease-out) calc(var(--d) + .9s); pointer-events: none; }
.val.is-visible::before { opacity: 1; }
.val:hover { box-shadow: 0 24px 44px -26px rgba(15,26,48,.4); border-color: rgba(168,133,63,.45); }
.vals .val { transition: opacity 1s var(--ease-out) var(--d), transform 1s var(--ease-out) var(--d), box-shadow .5s var(--ease-out), border-color .5s; }
.val:nth-child(2) { --d: .12s; } .val:nth-child(3) { --d: .24s; } .val:nth-child(4) { --d: .36s; } .val:nth-child(5) { --d: .48s; } .val:nth-child(6) { --d: .6s; }
.val-ico { position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1.3rem; background: var(--paper-2); color: var(--navy-600); border: 1px solid var(--line); transition: transform .6s var(--ease-out); }
.val-ico svg { width: 28px; height: 28px; position: relative; z-index: 1; }
.val-ico use { stroke-dasharray: 100; stroke-dashoffset: 100; }
.val-ico::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid var(--yellow); opacity: 0; }
.val.is-visible .val-ico use { animation: icoDraw 1.3s var(--ease-out) calc(var(--d) + .25s) forwards; }
.val.is-visible .val-ico { animation: icoLight .9s var(--ease-out) calc(var(--d) + 1s) forwards; }
.val.is-visible .val-ico::after { animation: icoRing 1.4s var(--ease-out) calc(var(--d) + 1.05s) forwards; }
.val:hover .val-ico { transform: translateY(-3px) rotate(-6deg) scale(1.05); }
.val h3 { font-family: var(--serif); font-size: 1.3rem; color: var(--navy-700); margin-bottom: .4rem; }
.val p { color: var(--mute); font-size: .95rem; }
@keyframes icoDraw { to { stroke-dashoffset: 0; } }
@keyframes icoLight {
  0%   { background: var(--paper-2); color: var(--navy-600); box-shadow: 0 0 0 0 rgba(242,193,78,0); }
  45%  { background: var(--yellow); color: var(--navy-900); box-shadow: 0 0 36px 6px rgba(242,193,78,.6); }
  100% { background: linear-gradient(145deg, var(--yellow), var(--gold-2)); color: var(--navy-900); border-color: transparent; box-shadow: 0 10px 26px -10px rgba(201,162,78,.75); }
}
@keyframes icoRing { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
.no-js .val-ico use { stroke-dashoffset: 0; }
.no-js .val-ico { background: linear-gradient(145deg, var(--yellow), var(--gold-2)); color: var(--navy-900); }
@media (min-width: 540px) { .vals { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .vals { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; } }

/* Legal pages (privacitat, cookies, crèdits) */
.legal-top { position: sticky; top: 0; z-index: 10; background: rgba(248,246,241,.94); border-bottom: 1px solid var(--line); }
.legal-top .container { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.legal-top .brand-svg { height: 34px; }
.legal-top a.back { font-size: .9rem; font-weight: 500; color: var(--navy-700); border-bottom: 1px solid var(--gold); }
.legal { padding-block: 4rem 5rem; max-width: 820px; }
.legal h1 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); color: var(--navy-700); margin: .6rem 0 .6rem; }
.legal .updated { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.legal h2 { font-family: var(--serif); font-size: 1.45rem; color: var(--navy-700); margin: 2.6rem 0 .8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.legal h3 { font-size: 1.02rem; color: var(--navy-700); margin: 1.4rem 0 .4rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p + p { margin-top: .8rem; }
.legal ul.dots { margin: .6rem 0 .6rem 1.2rem; list-style: disc; display: grid; gap: .35rem; }
.legal a { color: var(--navy-700); text-decoration: underline; text-underline-offset: 2px; }
.legal .toc { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.legal .toc a { text-decoration: none; font-size: .82rem; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 99px; background: var(--white); }
.legal .toc a:hover { border-color: var(--gold); }
.legal .card { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 12px; padding: 1.2rem 1.4rem; margin-top: 1.4rem; }
.legal .card dl { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.2rem; font-size: .95rem; }
.legal .card dt { font-weight: 600; color: var(--navy-700); }
.legal .card dd { color: var(--ink-soft); overflow-wrap: anywhere; }
.legal .pending { background: #FFF3CC; color: #6B4E00; padding: 0 .3rem; border-radius: 4px; font-weight: 600; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .9rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.legal th, .legal td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--paper-2); color: var(--navy-700); font-weight: 600; }
.legal .table-wrap { overflow-x: auto; }
.legal-foot { border-top: 1px solid var(--line); padding-block: 1.6rem 2.4rem; font-size: .85rem; color: var(--mute); }
.legal-foot .container { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.legal-foot a:hover { color: var(--navy-700); }
.form-info { font-size: .76rem; line-height: 1.5; color: var(--mute); }
.form-info a { text-decoration: underline; }
@media (max-width: 539px) { .legal .card dl { grid-template-columns: 1fr; gap: .1rem; } .legal .card dd { margin-bottom: .5rem; } }

/* 7. Effects ------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .14em; margin: 0 -.04em -.14em; }
.split-word { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--w, 0) * 45ms); }
[data-split].is-visible .split-word { transform: none; }
.cards3 .card3.reveal:nth-child(2), .proc .reveal:nth-child(2), .team .reveal:nth-child(2) { transition-delay: .1s; }
.cards3 .card3.reveal:nth-child(3), .proc .reveal:nth-child(3), .team .reveal:nth-child(3) { transition-delay: .2s; }
.proc .reveal:nth-child(4) { transition-delay: .3s; }

/* 8. Responsive ---------------------------------------------- */
@media (min-width: 540px) {
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
  .cards3 { grid-template-columns: repeat(2, 1fr); }
  .card3 + .card3 { border-top: 0; border-left: 1px solid var(--line); }
  .sec-head-split { grid-template-columns: 1.2fr 1fr; }
  .about { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
  .team { grid-template-columns: repeat(3, 1fr); }
  .team .member:nth-child(2) { margin-top: 3rem; }
  .cta-box { grid-template-columns: 1fr auto; }

  .route { padding-left: 0; grid-template-columns: 1fr 1fr; column-gap: 6rem; row-gap: 0; }
  .route-line { left: 50%; transform: translateX(-50%); }
  .step:nth-child(even) { grid-column: 1; }
  .step:nth-child(odd) { grid-column: 2; margin-top: 5rem; }
  .step:nth-child(even) .step-n { left: auto; right: calc(-3rem - 1.3rem); }
  .step:nth-child(odd) .step-n { left: calc(-3rem - 1.3rem); }
  .step:nth-child(even) .step-card { text-align: right; }
  .step { margin-bottom: -2rem; }
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.2fr .8fr; }
  .hero-cards { display: block; }
  .hero-facts { grid-template-columns: repeat(4, 1fr); }
  .areas-grid { grid-template-columns: .9fr 1.1fr; gap: 5rem; align-items: start; }
  .areas-head { position: sticky; top: calc(var(--nav-h) + 2rem); }
  .ext-grid { grid-template-columns: .85fr 1.15fr; gap: 5rem; align-items: start; }
  .ext-head { position: sticky; top: calc(var(--nav-h) + 2rem); }
  .transport-grid { grid-template-columns: .9fr 1.1fr; gap: 5rem; }
  .proc { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .proc::before { left: 32px; right: 32px; top: 31px; bottom: auto; width: auto; height: 1.5px; }
  .proc::after { left: 32px; top: 31px; height: 1.5px; width: calc((100% - 64px) * var(--p, 0)); transition: width .2s linear; }
  .proc-step { grid-template-columns: 1fr; }
  .proc-ico { grid-row: auto; margin-bottom: 1.4rem; }
  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 5rem; align-items: start; }
  .faq-grid > header { position: sticky; top: calc(var(--nav-h) + 2rem); }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .footer-top { grid-template-columns: 1fr 1.3fr; align-items: start; }
}
@media (min-width: 1280px) {
  .nav-links { display: flex; }
  .nav-phone { display: inline-flex; }
  .dd-lang { display: block; }
  .nav-burger { display: none; }
  .brand-svg { height: 40px; }
  .fab { right: 1.5rem; bottom: 1.5rem; }
}

/* 9. Reduced motion: only intrusive effects ------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo { animation: none; }
  .marquee-track { animation-duration: 90s; }
  .doc-a, .doc-b, .doc-c, .transport-badge { animation: none; }
  .band-media { transform: none !important; }
}
