:root {
  --ink: #0a1622;
  --ink-2: #10212f;
  --ink-3: #172d3f;
  --sand: #f4ede1;
  --sand-2: #e9dfcd;
  --cream: #fbf8f2;
  --wine: #8c1d3a;
  --wine-2: #a8284a;
  --gold: #c9a45c;
  --sea: #1f6f78;
  --sea-2: #2f9aa6;
  --muted: #8a9aa8;
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(255, 255, 255, 0.06);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: 'Fraunces', Georgia, serif;
  --sans: 'Inter Tight', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 14px 0 auto; z-index: 50;
  display: flex; justify-content: center; pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  width: min(1240px, 100% - 24px);
  display: flex; align-items: center; gap: 16px;
  padding: 10px 10px 10px 20px;
  border-radius: 999px;
  background: rgba(10, 22, 34, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--line);
  transition: background 0.4s var(--ease);
}
.nav.scrolled .nav-inner { background: rgba(10, 22, 34, 0.85); }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 21px; letter-spacing: -0.02em; }
.logo-mark { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--wine); font-size: 13px; letter-spacing: -0.5px; text-transform: lowercase; }
.logo small { display: block; font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-top: -3px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: #c7d2db; transition: background 0.3s; }
.nav-links a:hover { background: var(--glass); color: #fff; }
/* Selector d'idioma: botons d'amplada fixa i una píndola que llisca fins a l'idioma actiu (--i el posa app.js). */
.lang { --w: 34px; position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: var(--w); background: var(--glass); border-radius: 999px; padding: 3px; }
.lang button { position: relative; z-index: 1; font-size: 12px; font-weight: 600; padding: 6px 0; text-align: center; border-radius: 999px; color: var(--muted); transition: color 0.35s var(--ease), transform 0.1s ease-out; }
.lang button:hover { color: #fff; }
.lang button.on { color: var(--ink); }
.lang button:active { transform: scale(0.9); }
.lang-pill { position: absolute; top: 3px; bottom: 3px; left: 3px; width: var(--w); border-radius: 999px; background: var(--cream); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); transform: translateX(calc(var(--i, 0) * var(--w))); transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1); }
.cart-btn .lbl, .nav-links a { display: inline-block; text-align: center; white-space: nowrap; }
.btn:active, .chip:active, .slot:active, .opt:active, .cart-btn:active { transform: scale(0.97); transition-duration: 0.1s; }
.lang-swap [data-i18n], .lang-swap [data-i18n-html], .lang-swap #marquee, .lang-swap #faqList { animation: langIn 0.45s cubic-bezier(0.32, 0.72, 0, 1); }
@keyframes langIn { from { opacity: 0; filter: blur(5px); } }
.cart-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--cream); color: var(--ink);
  padding: 10px 16px 10px 14px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: transform 0.3s var(--ease);
}
.cart-btn:hover { transform: scale(1.04); }
.cart-count { background: var(--wine); color: #fff; min-width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; font-size: 12px; padding: 0 6px; }
.cart-btn.bump { animation: bump 0.5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.14); } }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 90px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 50% at 80% 20%, rgba(201, 164, 92, 0.25), transparent 60%),
  radial-gradient(50% 60% at 10% 90%, rgba(31, 111, 120, 0.45), transparent 60%),
  radial-gradient(40% 40% at 60% 70%, rgba(140, 29, 58, 0.35), transparent 70%),
  linear-gradient(180deg, #0c1b2a 0%, #0a1622 100%); }
.sun { position: absolute; width: 380px; height: 380px; right: 8%; top: 14%; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #f6d79a, #e39a5a 55%, rgba(227, 154, 90, 0) 72%); filter: blur(2px); opacity: 0.55; z-index: -1; animation: float 12s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-18px); } }
.waves { position: absolute; left: 0; right: 0; bottom: 0; height: 220px; z-index: -1; }
.waves path { animation: wave 14s linear infinite; }
.waves path:nth-child(2) { animation-duration: 20s; animation-direction: reverse; }
.waves path:nth-child(3) { animation-duration: 28s; }
@keyframes wave { to { transform: translateX(-50%); } }

.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); padding: 7px 14px; border: 1px solid rgba(201, 164, 92, 0.35); border-radius: 999px; background: rgba(201, 164, 92, 0.08); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 7vw, 96px); line-height: 0.98; letter-spacing: -0.035em; margin: 22px 0 22px; }
h1 em { font-style: italic; color: var(--gold); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: #b9c6d1; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 26px; border-radius: 999px; font-weight: 600; transition: transform 0.35s var(--ease), background 0.3s, box-shadow 0.3s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--wine); color: #fff; box-shadow: 0 12px 40px -12px rgba(168, 40, 74, 0.8); }
.btn-primary:hover { background: var(--wine-2); }
.btn-ghost { background: var(--glass); border: 1px solid var(--line); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn:disabled { opacity: 0.4; pointer-events: none; }
.stats { display: flex; gap: 34px; margin-top: 46px; flex-wrap: wrap; }
.stat b { display: block; font-family: var(--display); font-size: 34px; font-weight: 400; }
.stat > span { font-size: 13px; color: var(--muted); }

.hero-card { position: relative; padding: 26px; border-radius: 30px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); }
.hero-card h3 { font-family: var(--display); font-weight: 400; font-size: 24px; margin-bottom: 4px; }
.hero-card p.s { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.dest-list { display: grid; gap: 10px; }
.dest { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); transition: all 0.35s var(--ease); width: 100%; }
.dest:hover { border-color: rgba(201, 164, 92, 0.5); }
.dest.on { border-color: var(--gold); background: rgba(201, 164, 92, 0.12); }
.dest-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--ink-3); flex: none; }
.dest b { display: block; font-weight: 600; }
.dest small { color: var(--muted); font-size: 13px; }
.dest .eta { margin-left: auto; font-size: 12px; color: var(--sea-2); background: rgba(47, 154, 166, 0.12); padding: 5px 10px; border-radius: 99px; white-space: nowrap; }
.hero-card .btn { width: 100%; margin-top: 16px; }

/* ---------- MARQUEE ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--ink-2); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marq 40s linear infinite; }
.marquee span { font-family: var(--display); font-size: 22px; font-style: italic; color: #6f8292; white-space: nowrap; }
.marquee span::after { content: '✦'; font-style: normal; color: var(--gold); margin-left: 48px; font-size: 14px; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- HOW ---------- */
section { padding: 110px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -0.03em; line-height: 1.02; }
h2 em { font-style: italic; color: var(--gold); }
.sec-head p { color: var(--muted); max-width: 420px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { padding: 28px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform 0.5s var(--ease); }
.step:hover { transform: translateY(-6px); }
.step .n { font-family: var(--display); font-size: 64px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(201, 164, 92, 0.6); }
.step h4 { font-size: 19px; margin: 18px 0 8px; font-weight: 600; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- SHOP ---------- */
.shop { background: var(--sand); color: var(--ink); border-radius: 44px 44px 0 0; }
.shop .sec-head p { color: #5d6b77; }
.shop h2 em { color: var(--wine); }
.toolbar { position: sticky; top: 86px; z-index: 20; display: flex; gap: 12px; align-items: center; padding: 10px; margin-bottom: 26px; border-radius: 999px; background: rgba(244, 237, 225, 0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(10, 22, 34, 0.08); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.chips::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; padding: 9px 15px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #3a4955; transition: all 0.3s var(--ease); }
.chip:hover { background: rgba(10, 22, 34, 0.06); }
.chip.on { background: var(--ink); color: var(--cream); }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 9px 14px; min-width: 220px; }
.search input { border: 0; outline: 0; background: none; width: 100%; color: var(--ink); }

.subfilter { border: 0; outline: 0; background: #fff; border-radius: 999px; padding: 9px 36px 9px 14px; font-size: 14px; color: var(--ink); max-width: 240px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230a1622' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.shop-count { font-size: 13px; color: #7a8692; margin: -12px 4px 16px; }
.more-wrap { display: flex; justify-content: center; margin-top: 30px; }
.more { background: var(--ink); color: var(--cream); }
.card-visual img { height: 190px; width: auto; max-width: 90%; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.6s var(--ease); filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.12)); }
.card:hover .card-visual img { transform: translateY(-6px) scale(1.04); }
.line-vis img { height: 58px; width: auto; max-width: 90%; object-fit: contain; mix-blend-mode: multiply; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.card { position: relative; background: var(--cream); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); animation: rise 0.6s var(--ease) both; }
.card:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -24px rgba(10, 22, 34, 0.35); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.card-visual { height: 210px; border-radius: 16px; display: grid; place-items: center; position: relative; overflow: hidden; }
.card-visual svg { height: 180px; width: auto; transition: transform 0.6s var(--ease); filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.18)); }
.card:hover .card-visual svg { transform: translateY(-6px) rotate(-4deg); }
.badge { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 9px; border-radius: 99px; background: var(--ink); color: var(--cream); }
.badge.local { background: var(--sea); }
.badge.new { background: var(--wine); }
.card-body { padding: 14px 4px 4px; display: flex; flex-direction: column; flex: 1; }
.card-region { font-size: 12px; color: #7a8692; letter-spacing: 0.04em; text-transform: uppercase; }
.card h4 { font-size: 16.5px; font-weight: 600; line-height: 1.25; margin: 4px 0 6px; }
.card .desc { font-size: 13.5px; color: #5d6b77; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; }
.price { font-family: var(--display); font-size: 24px; }
.price small { font-family: var(--sans); font-size: 12px; color: #7a8692; margin-left: 4px; }
.add { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; font-size: 22px; transition: all 0.35s var(--ease); }
.add:hover { background: var(--wine); transform: rotate(90deg); }
.stepper { display: flex; align-items: center; background: var(--ink); color: var(--cream); border-radius: 999px; padding: 3px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; font-size: 18px; }
.stepper button:hover { background: rgba(255, 255, 255, 0.12); }
.stepper span { min-width: 24px; text-align: center; font-weight: 600; }
.case-hint { font-size: 11.5px; color: var(--sea); font-weight: 600; margin-top: 6px; }
.empty { text-align: center; padding: 60px 0; color: #7a8692; grid-column: 1 / -1; }

/* ---------- PORTS ---------- */
.ports { background: var(--sand); color: var(--ink); padding-top: 20px; }
.port-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.port { position: relative; border-radius: 30px; padding: 34px; min-height: 340px; overflow: hidden; color: var(--cream); display: flex; flex-direction: column; justify-content: end; isolation: isolate; }
.port::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, var(--sea), var(--ink)); }
.port.alt::before { background: linear-gradient(160deg, var(--wine), var(--ink)); }
.port svg.map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.35; }
.port h3 { font-family: var(--display); font-weight: 400; font-size: 40px; letter-spacing: -0.02em; }
.port p { color: #c7d2db; max-width: 380px; margin: 8px 0 18px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(6px); }

/* ---------- FAQ / FOOTER ---------- */
.faq { background: var(--sand); color: var(--ink); padding-top: 40px; }
.faq-list { display: grid; gap: 10px; max-width: 860px; }
details { background: var(--cream); border-radius: 18px; padding: 20px 24px; }
summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 22px; transition: transform 0.3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: #5d6b77; margin-top: 10px; }
footer { padding: 70px 0 40px; background: var(--ink); }
.foot { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot p, .foot a { color: var(--muted); font-size: 14px; }
.legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: #5f7180; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- DRAWER ---------- */
.scrim { position: fixed; inset: 0; background: rgba(5, 12, 18, 0.55); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 0.4s; z-index: 80; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 10px; right: 10px; bottom: 10px; width: min(460px, calc(100% - 20px)); background: var(--cream); color: var(--ink); border-radius: 28px; z-index: 90; transform: translateX(110%); transition: transform 0.55s var(--ease); display: flex; flex-direction: column; overflow: hidden; }
.drawer.on { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 14px; }
.drawer-head h3 { font-family: var(--display); font-weight: 400; font-size: 28px; }
.x { width: 40px; height: 40px; border-radius: 50%; background: rgba(10, 22, 34, 0.06); font-size: 18px; }
.progress { display: flex; gap: 6px; padding: 0 24px 16px; }
.progress i { flex: 1; height: 4px; border-radius: 9px; background: rgba(10, 22, 34, 0.1); overflow: hidden; position: relative; }
.progress i.on::after { content: ''; position: absolute; inset: 0; background: var(--wine); animation: fill 0.6s var(--ease) both; }
@keyframes fill { from { transform: translateX(-100%); } }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 24px 20px; }
.drawer-foot { padding: 18px 24px 22px; border-top: 1px solid rgba(10, 22, 34, 0.08); background: #fff; }
.line { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(10, 22, 34, 0.07); }
.line-vis { width: 58px; height: 68px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.line-vis svg { height: 56px; }
.line-info { flex: 1; min-width: 0; }
.line-info b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.line-info small { color: #7a8692; font-size: 12.5px; }
.line .stepper button { width: 28px; height: 28px; font-size: 15px; }
.totals { display: grid; gap: 6px; font-size: 14.5px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 20px; font-weight: 700; padding-top: 8px; margin-top: 4px; border-top: 1px dashed rgba(10, 22, 34, 0.15); }
.totals .save { color: var(--sea); font-weight: 600; }
.meter { margin: 4px 0 14px; font-size: 13px; color: #5d6b77; }
.meter-bar { height: 6px; border-radius: 9px; background: rgba(10, 22, 34, 0.08); margin-top: 6px; overflow: hidden; }
.meter-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--sea), var(--sea-2)); transition: width 0.6s var(--ease); }
.drawer-foot .btn { width: 100%; }
.drawer-foot .foot-actions { display: flex; gap: 8px; align-items: stretch; }
.drawer-foot .foot-actions .btn { width: auto; }
.drawer-foot .foot-actions .btn-primary { flex: 1 1 auto; min-width: 0; padding-inline: 18px; }
.btn-back { flex: 0 0 auto; padding: 14px 18px; background: rgba(10, 22, 34, 0.06); color: var(--ink); font-size: 14.5px; white-space: nowrap; }
.btn-back:hover { background: rgba(10, 22, 34, 0.1); }
.drawer-foot .btn-block { width: 100%; margin-top: 8px; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: #3a4955; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(10, 22, 34, 0.12); background: #fff; color: var(--ink); outline: none; transition: border 0.3s, box-shadow 0.3s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--wine); box-shadow: 0 0 0 4px rgba(140, 29, 58, 0.12); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt-grid { display: grid; gap: 8px; margin-bottom: 16px; }
.opt { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; border: 1.5px solid rgba(10, 22, 34, 0.1); background: #fff; text-align: left; transition: all 0.3s var(--ease); }
.opt.on { border-color: var(--wine); background: rgba(140, 29, 58, 0.05); }
.opt .ic { font-size: 22px; }
.opt b { display: block; font-size: 14.5px; }
.opt small { color: #7a8692; font-size: 12.5px; }
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
.slot { padding: 11px; border-radius: 12px; border: 1.5px solid rgba(10, 22, 34, 0.1); background: #fff; font-size: 13.5px; font-weight: 500; }
.slot.on { border-color: var(--wine); background: var(--wine); color: #fff; }
.when-note { font-size: 14px; font-weight: 600; color: var(--ink); background: #fff; border-radius: 12px; padding: 10px 12px; margin: -4px 0 14px; }
.slot.express { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #3a4955; margin: 6px 0 12px; }
.check input { margin-top: 3px; accent-color: var(--wine); width: 18px; height: 18px; }
.err { color: var(--wine); font-size: 13px; font-weight: 600; margin-top: -6px; margin-bottom: 10px; min-height: 18px; }
.success { text-align: center; padding: 30px 6px; }
.login { text-align: center; padding: 26px 6px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.login-ic { font-size: 46px; }
.login h4 { font-family: var(--display); font-weight: 400; font-size: 28px; }
.login p { color: #5d6b77; font-size: 14.5px; max-width: 320px; margin-bottom: 8px; }
.gbtn { min-height: 44px; }
.btn-apple { background: #000; color: #fff; width: 300px; max-width: 100%; padding: 11px 20px; font-size: 15px; }
.account { font-size: 13.5px; color: #3a4955; margin: 2px 0 12px; }
.linkbtn { color: var(--wine); font-weight: 600; text-decoration: underline; }
.ece { margin-bottom: 10px; min-height: 50px; }
.success .big { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; background: var(--sea); color: #fff; font-size: 42px; animation: pop 0.7s var(--ease); }
@keyframes pop { from { transform: scale(0.3); opacity: 0; } }
.success h4 { font-family: var(--display); font-weight: 400; font-size: 30px; }
.success p { color: #5d6b77; margin: 8px 0 18px; }
.ticket { text-align: left; background: #fff; border-radius: 18px; padding: 18px; font-size: 14px; display: grid; gap: 6px; border: 1px dashed rgba(10, 22, 34, 0.2); }
.ticket div { display: flex; justify-content: space-between; gap: 14px; }
.ticket span { color: #7a8692; }
.subttl { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #7a8692; margin: 8px 0 10px; }

/* ---------- AGE GATE / TOAST ---------- */
.gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(5, 12, 18, 0.75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 16px; }
.gate[hidden] { display: none; }
.gate-card { max-width: 440px; width: 100%; text-align: center; background: var(--ink-2); border: 1px solid var(--line); border-radius: 30px; padding: 40px 30px; animation: pop 0.6s var(--ease); }
.gate-card h3 { font-family: var(--display); font-weight: 400; font-size: 32px; margin: 14px 0 8px; }
.gate-card p { color: var(--muted); margin-bottom: 24px; }
.gate-card .btns { display: flex; gap: 10px; justify-content: center; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, calc(100% + 40px)); background: var(--ink); color: var(--cream); padding: 12px 20px; border-radius: 999px; font-size: 14px; z-index: 120; transition: transform 0.5s var(--ease); border: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6); }
.toast.on { transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .port-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .lang { margin-left: auto; }
}
@media (max-width: 640px) {
  section { padding: 76px 0; }
  .steps { grid-template-columns: 1fr; }
  .toolbar { border-radius: 22px; flex-direction: column; align-items: stretch; top: 76px; }
  .search { min-width: 0; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 10px; }
  .card-visual { height: 150px; }
  .card-visual svg { height: 128px; }
  .card-visual img { height: 130px; }
  .subfilter { max-width: none; }
  .card h4 { font-size: 14.5px; }
  .price { font-size: 20px; }
  .logo small { display: none; }
  .cart-btn .lbl { display: none; }
  .lang { --w: 28px; }
  .lang button { font-size: 11px; }
  .sun { width: 220px; height: 220px; }
  .shop { border-radius: 30px 30px 0 0; }
  .row2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- MAPA 3D D'AMARRADORS ---------- */
html.bm-open, html.bm-open body { overflow: hidden; }
.bm { position: fixed; inset: 0; z-index: 200; background: var(--ink); color: var(--cream); opacity: 0; transform: scale(1.02); transition: opacity 0.45s var(--ease), transform 0.6s var(--ease); overscroll-behavior: contain; }
.bm.on { opacity: 1; transform: none; }
.bm-stage { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); touch-action: none; }
.bm.ready .bm-stage { opacity: 1; }
.bm-stage canvas { display: block; width: 100% !important; height: 100% !important; outline: none; }
.bm-labels { position: absolute; inset: 0; pointer-events: none; }
.bm-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(10, 22, 34, 0.75) 100%), linear-gradient(180deg, rgba(10, 22, 34, 0.85) 0, transparent 22%, transparent 70%, rgba(10, 22, 34, 0.8) 100%); }
.bm-top { position: absolute; top: 0; left: 0; right: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: max(20px, env(safe-area-inset-top)) 24px 0; pointer-events: none; }
.bm-top > * > * { pointer-events: auto; }
.bm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.bm-eyebrow { display: block; font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.bm-title h3 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 4vw, 40px); line-height: 1.05; margin: 6px 0 4px; }
.bm-title small { color: var(--muted); font-size: 13px; }
.bm-x { width: 46px; height: 46px; border-radius: 50%; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 16px; transition: background 0.3s, transform 0.3s var(--ease); flex: 0 0 auto; }
.bm-x:hover { background: rgba(255, 255, 255, 0.14); transform: rotate(90deg); }
.bm-tools { min-width: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bm-search { display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 44px; border-radius: 999px; background: rgba(10, 22, 34, 0.55); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); width: min(300px, 100%); }
.bm-search span { color: var(--gold); font-size: 18px; }
.bm-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--cream); font-size: 15px; }
.bm-search input::placeholder { color: var(--muted); }
.bm-search input.bad { animation: bm-shake 0.4s; color: #ff9aa9; }
@keyframes bm-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.bm-zones { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding: 2px; }
.bm-zones::-webkit-scrollbar { display: none; }
.bm-zones button { flex: 0 0 auto; min-width: 40px; height: 34px; padding: 0 12px; border-radius: 999px; background: rgba(10, 22, 34, 0.55); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 13px; font-weight: 600; transition: all 0.3s var(--ease); }
.bm-zones button:hover, .bm-zones button.on { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.bm-zlabel { pointer-events: auto; padding: 4px 9px; border-radius: 999px; background: rgba(10, 22, 34, 0.78); border: 1px solid rgba(201, 164, 92, 0.6); color: var(--gold); font: 600 12px/1 var(--sans); letter-spacing: 0.04em; transition: opacity 0.4s, transform 0.3s var(--ease); cursor: pointer; }
.bm-zlabel:hover { transform: scale(1.12); background: var(--gold); color: var(--ink); }
.bm-pinlabel { padding: 6px 11px; border-radius: 10px; background: var(--wine); color: #fff; font: 700 13px/1 var(--sans); box-shadow: 0 10px 30px -8px rgba(140, 29, 58, 0.9); white-space: nowrap; }
.bm-gestures { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 12px 18px; border-radius: 999px; background: rgba(10, 22, 34, 0.7); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 13.5px; color: var(--cream); pointer-events: none; opacity: 0; transition: opacity 0.6s var(--ease); white-space: nowrap; }
.bm.ready:not(.touched) .bm-gestures { opacity: 1; transition-delay: 2.4s; }
.bm-sheet { position: absolute; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); transform: translate(-50%, 30px); width: min(520px, calc(100% - 32px)); padding: 18px; border-radius: 26px; background: rgba(251, 248, 242, 0.96); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7); text-align: center; opacity: 0; transition: transform 0.7s var(--ease) 0.5s, opacity 0.7s var(--ease) 0.5s; }
.bm.ready .bm-sheet { transform: translate(-50%, 0); opacity: 1; }
.bm-pick { display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: left; margin-bottom: 10px; animation: bm-in 0.5s var(--ease); }
.bm-pick[hidden] { display: none; }
.bm-pick .bm-eyebrow { color: var(--wine); }
.bm-pick b { display: block; font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 1.1; margin-top: 2px; }
.bm-pick small { color: #6b7884; font-size: 13px; }
.bm-pick .btn { padding: 14px 20px; flex: 0 0 auto; }
@keyframes bm-in { from { opacity: 0; transform: translateY(8px); } }
.bm-hint { font-family: var(--display); font-size: 21px; margin-bottom: 8px; }
.bm-hint[hidden] { display: none; }
.bm-manual { font-size: 13.5px; color: #5b6873; text-decoration: underline; text-underline-offset: 3px; padding: 4px; }
.bm-manual:hover { color: var(--wine); }
.bm-legal { position: absolute; right: 16px; bottom: 6px; font-size: 10.5px; color: rgba(244, 237, 225, 0.45); pointer-events: none; }
.bm-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--muted); font-size: 14px; transition: opacity 0.6s; pointer-events: none; text-align: center; padding: 24px; }
.bm-loading p { color: var(--cream); max-width: 340px; pointer-events: auto; }
.bm.ready .bm-loading { opacity: 0; }
.bm-spin { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(201, 164, 92, 0.25); border-top-color: var(--gold); animation: bm-spin 0.9s linear infinite; }
@keyframes bm-spin { to { transform: rotate(360deg); } }

/* Botó d'entrada al mapa dins del pas de lliurament */
.map-cta { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; margin: 4px 0 16px; padding: 16px; border-radius: 18px; overflow: hidden; text-align: left; color: #fff; background: radial-gradient(120% 140% at 100% 0%, rgba(47, 154, 166, 0.55), transparent 60%), linear-gradient(135deg, var(--ink-3), var(--ink)); box-shadow: 0 18px 40px -18px rgba(10, 22, 34, 0.8); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.map-cta:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -18px rgba(10, 22, 34, 0.9); }
.map-cta::after { content: ''; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 85% 120%, transparent 0 14px, rgba(255, 255, 255, 0.05) 14px 15px); pointer-events: none; }
.map-cta .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(201, 164, 92, 0.18); color: var(--gold); font-size: 22px; flex: 0 0 auto; }
.map-cta b { display: block; font-size: 15px; }
.map-cta small { display: block; color: rgba(244, 237, 225, 0.7); font-size: 12.5px; margin-top: 2px; }
.map-cta .go { margin-left: auto; font-size: 20px; color: var(--gold); transition: transform 0.4s var(--ease); }
.map-cta:hover .go { transform: translateX(4px); }
.map-cta.set { background: radial-gradient(120% 140% at 100% 0%, rgba(201, 164, 92, 0.35), transparent 60%), linear-gradient(135deg, #3a0f1d, var(--wine)); }

@media (max-width: 640px) {
  .bm-top { padding: max(14px, env(safe-area-inset-top)) 16px 0; gap: 10px; }
  .bm-title h3 { font-size: 26px; }
  .bm-tools { flex-wrap: nowrap; flex-direction: column; align-items: stretch; gap: 8px; }
  .bm-search { width: 100%; }
  .bm-pick { flex-direction: column; align-items: stretch; text-align: center; }
  .bm-pick .btn { width: 100%; }
  .bm-gestures { white-space: normal; text-align: center; width: max-content; max-width: calc(100% - 48px); }
  .bm-legal { left: 16px; right: 16px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .bm, .bm-stage, .bm-sheet { transition: none; }
}

/* ---------- Checkout: correu i enviament ---------- */
.field .hint { font-size: 12px; color: #7a8692; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.err a { color: #128c4a; font-weight: 600; white-space: nowrap; }
.success .mailed { margin-top: 10px; font-size: 14px; color: #1f6f78; }
#confirm:disabled { opacity: 0.75; cursor: progress; }
.legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
