/* =============================================
   MADEINHUMAN — Styles (v2 · Dark blue + copper)
   ============================================= */

:root {
  --bg: #0A0E1A;
  --bg-deep: #060A14;
  --bg-elev: #0F1426;
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --copper: #C4956A;
  --copper-bright: #D9A878;
  --copper-deep: #8E6A48;
  --blue-elec: #4A8DFF;
  --text: #F5F5F5;
  --text-dim: #8899AA;
  --text-faint: #5C6B7D;
  --font-serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
  --container: 1200px;
  --pad-x: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--text); font-family: var(--font-sans); }
body { font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.serif { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.01em; }
.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--copper);
}

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px 0;
  transition: background 280ms ease, border-color 280ms ease, padding 280ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
  padding: 14px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { font-family: var(--font-serif); font-size: 26px; font-weight: 500; letter-spacing: -0.015em; }
.nav-logo span { color: var(--copper); font-style: italic; }
.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; }
.nav-links a { font-size: 14.5px; color: var(--text-dim); transition: color 180ms; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  transition: all 200ms;
  display: inline-block;
}
.nav-cta:hover { border-color: var(--copper); color: var(--copper); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 280ms ease;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 1.5rem 2rem 2rem;
  border-top: 1px solid var(--border);
  gap: 1rem;
}
.nav-mobile a {
  font-size: 1rem;
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 400;
  transition: color 180ms;
}
.nav-mobile a:hover { color: var(--copper); }
.nav-mobile.open { display: flex; }

@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 100px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.aurora {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora::before, .aurora::after {
  content: "";
  position: absolute;
  width: 70vw; height: 70vw;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora::before {
  background: radial-gradient(circle, rgba(74, 141, 255, 0.32), transparent 65%);
  top: -20vw; left: -10vw;
}
.aurora::after {
  background: radial-gradient(circle, rgba(196, 149, 106, 0.28), transparent 65%);
  bottom: -25vw; right: -10vw;
  animation-delay: -10s;
  animation-duration: 28s;
}
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5vw, 3vw) scale(1.1); }
  100% { transform: translate(-3vw, 4vw) scale(0.95); }
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
  z-index: 1;
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 22px 0 28px;
  max-width: 14ch;
}
.hero-title em {
  font-style: italic;
  color: var(--copper);
  font-weight: 400;
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-dim);
  max-width: 58ch;
  line-height: 1.55;
  margin-bottom: 44px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 220ms cubic-bezier(.2,.7,.3,1);
  white-space: nowrap;
}
.btn-primary {
  background: var(--copper);
  color: #1a1208;
  border: 1px solid var(--copper);
  box-shadow: 0 12px 32px -12px rgba(196, 149, 106, 0.55);
}
.btn-primary:hover { background: var(--copper-bright); transform: translateY(-1px); box-shadow: 0 18px 40px -14px rgba(196, 149, 106, 0.7); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--copper); color: var(--copper); }
.btn-ghost:disabled { opacity: 0.6; cursor: not-allowed; }
.btn .arrow { transition: transform 220ms; }
.btn:hover .arrow { transform: translateX(3px); }

.scroll-ind {
  position: absolute;
  bottom: 38px;
  left: var(--pad-x);
  z-index: 3;
  display: flex; align-items: center; gap: 14px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.scroll-ind .line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--copper), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.3); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

.hero-meta {
  position: absolute;
  bottom: 38px; right: var(--pad-x);
  z-index: 3;
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.hero-meta span b { color: var(--text-dim); font-weight: 500; }
@media (max-width: 700px) { .hero-meta { display: none; } }

/* ===== Section base ===== */
section.block { padding: 120px 0; position: relative; }
@media (max-width: 700px) { section.block { padding: 80px 0; } }
.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 64ch; margin-bottom: 64px; }
.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.section-title em { color: var(--copper); font-style: italic; font-weight: 400; }
.section-lead { color: var(--text-dim); font-size: 18px; line-height: 1.55; max-width: 56ch; }

/* ===== STATEMENT ===== */
.statement { background: var(--bg-deep); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.statement-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: start; }
@media (max-width: 900px) { .statement-grid { grid-template-columns: 1fr; gap: 56px; } }
.statement-left .section-title { margin-bottom: 24px; }
.statement-left p { color: var(--text-dim); font-size: 18px; max-width: 50ch; }
.statement-left p + p { margin-top: 18px; }
.statement-left p strong { color: var(--text); }
.metrics { display: flex; flex-direction: column; gap: 32px; }
.metric { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding-left: 22px; border-left: 2px solid var(--copper); }
.metric-key { font-family: var(--font-serif); font-size: 44px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; color: var(--text); min-width: 110px; }
.metric-body .metric-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--copper); margin-bottom: 6px; }
.metric-body p { color: var(--text-dim); font-size: 15px; line-height: 1.5; }

/* ===== SERVICES (two pillars) ===== */
.services-head-row { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 64px; flex-wrap: wrap; }
.services-head-row .section-head { margin-bottom: 0; }
.pillar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 900px) { .pillar-grid { grid-template-columns: 1fr; } }
.pillar {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  transition: border-color 240ms, transform 240ms;
  overflow: hidden;
}
.pillar:hover { border-color: var(--border-strong); }
.pillar::before {
  content: ""; position: absolute; inset: 0; border-radius: 24px;
  background: radial-gradient(circle at 80% 0%, rgba(196,149,106,0.08), transparent 50%);
  pointer-events: none;
}
.pillar-blue::before { background: radial-gradient(circle at 80% 0%, rgba(74,141,255,0.10), transparent 55%); }
.pillar-inner { position: relative; }
.pillar-head { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.pillar-num { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); letter-spacing: 0.16em; }
.badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
}
.badge-vigent { background: rgba(196, 149, 106, 0.14); color: var(--copper-bright); border: 1px solid rgba(196, 149, 106, 0.35); }
.badge-prep { background: rgba(74, 141, 255, 0.12); color: #8FB6FF; border: 1px solid rgba(74, 141, 255, 0.32); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.pillar-eyebrow { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-faint); margin-bottom: 8px; }
.pillar h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.pillar h3 em { color: var(--copper); font-style: italic; }
.pillar-blue h3 em { color: #8FB6FF; }
.pillar-lede { color: var(--text-dim); font-size: 16px; line-height: 1.6; margin-bottom: 32px; }
.svc-list { list-style: none; display: flex; flex-direction: column; gap: 2px; margin-bottom: 32px; }
.svc-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--text);
  align-items: center;
}
.svc-list li:last-child { border-bottom: 1px solid var(--border); }
.svc-list li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--copper);
  justify-self: start;
  margin-left: 6px;
}
.pillar-blue .svc-list li::before { background: var(--blue-elec); }
.pillar-foot { font-size: 14px; color: var(--text-dim); line-height: 1.6; padding: 18px 20px; border-radius: 14px; background: rgba(0,0,0,0.25); border: 1px solid var(--border); }
.pillar-foot strong { color: var(--text); font-weight: 500; }

.crossover {
  margin-top: 28px;
  padding: 32px 40px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}
@media (max-width: 760px) { .crossover { grid-template-columns: 1fr; gap: 18px; padding: 28px; } }
.crossover-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--copper); }
.crossover-title { font-family: var(--font-serif); font-size: 22px; font-weight: 500; margin-bottom: 6px; letter-spacing: -0.01em; }
.crossover-body { color: var(--text-dim); font-size: 14.5px; line-height: 1.55; max-width: 64ch; }
.crossover-body strong { color: var(--text); }
.crossover-arrow { color: var(--copper); font-size: 22px; }

/* ===== METHOD ===== */
.method { background: var(--bg-deep); border-top: 1px solid var(--border); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 44px 32px 52px; border-right: 1px solid var(--border); position: relative; transition: background 240ms; }
.step:last-child { border-right: none; }
@media (max-width: 900px) {
  .step:nth-child(2n) { border-right: none; }
  .step:nth-child(1), .step:nth-child(2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .step { border-right: none; border-bottom: 1px solid var(--border); }
  .step:last-child { border-bottom: none; }
}
.step:hover { background: rgba(255,255,255,0.02); }
.step-num { font-family: var(--font-serif); font-size: 64px; font-weight: 400; font-style: italic; color: var(--copper); line-height: 1; letter-spacing: -0.02em; margin-bottom: 28px; opacity: 0.9; }
.step-title { font-family: var(--font-serif); font-size: 24px; font-weight: 500; margin-bottom: 12px; letter-spacing: -0.01em; }
.step-body { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; }

/* ===== FAQ ===== */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 48px; } }
.faq-side { position: sticky; top: 100px; }
.faq-side .section-title { font-size: clamp(32px, 4vw, 48px); margin-bottom: 18px; }
.faq-side p { color: var(--text-dim); font-size: 16px; line-height: 1.55; }
.faq-side .tabs { display: inline-flex; gap: 4px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 999px; padding: 4px; margin-top: 32px; flex-wrap: wrap; }
.faq-side .tab {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-dim);
  transition: all 180ms;
  cursor: pointer;
  background: none;
  border: none;
}
.faq-side .tab.active { background: var(--copper); color: #1a1208; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px 0;
  width: 100%;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 200ms;
  background: none;
  border: none;
  cursor: pointer;
}
.faq-q:hover { color: var(--copper); }
.faq-q .num { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); letter-spacing: 0.12em; }
.faq-q .plus {
  position: relative;
  width: 22px; height: 22px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  transition: all 240ms;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  background: currentColor;
  transition: transform 280ms;
}
.faq-q .plus::before { width: 10px; height: 1px; transform: translate(-50%, -50%); }
.faq-q .plus::after { width: 1px; height: 10px; transform: translate(-50%, -50%); }
.faq-item.open .faq-q .plus { border-color: var(--copper); color: var(--copper); transform: rotate(45deg); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 380ms cubic-bezier(.2,.7,.3,1);
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding: 0 0 28px 70px; color: var(--text-dim); font-size: 15.5px; line-height: 1.65; max-width: 64ch; }
@media (max-width: 560px) { .faq-a-inner { padding-left: 0; } }

/* ===== ACTUALITAT (News) ===== */
.actualitat { border-top: 1px solid var(--border); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: border-color 240ms;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.news-card:hover { border-color: var(--border-strong); }
.news-meta { display: flex; align-items: center; gap: 12px; }
.news-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 4px 10px;
  border-radius: 999px;
}
.news-tag-rgpd { background: rgba(196, 149, 106, 0.14); color: var(--copper-bright); border: 1px solid rgba(196, 149, 106, 0.30); }
.news-tag-ia { background: rgba(74, 141, 255, 0.12); color: #8FB6FF; border: 1px solid rgba(74, 141, 255, 0.28); }
.news-tag-cat { background: rgba(74, 222, 128, 0.10); color: #7adea0; border: 1px solid rgba(74, 222, 128, 0.25); }
.news-date { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); letter-spacing: 0.08em; }
.news-title { font-family: var(--font-serif); font-size: 20px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.news-body { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; flex-grow: 1; }
.news-source { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); letter-spacing: 0.06em; padding-top: 12px; border-top: 1px solid var(--border); }

/* ===== FORMS ===== */
.forms { background: var(--bg-deep); border-top: 1px solid var(--border); }
.forms-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; }
@media (max-width: 1000px) { .forms-grid { grid-template-columns: 1fr; } }
.form-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
}
.form-card-quote { border-color: rgba(196,149,106,0.25); background: linear-gradient(180deg, rgba(196,149,106,0.05), rgba(255,255,255,0.02)); }
.form-card .form-eyebrow { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--copper); margin-bottom: 14px; }
.form-card h3 { font-family: var(--font-serif); font-size: 32px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.1; margin-bottom: 10px; }
.form-card .form-lede { color: var(--text-dim); font-size: 14.5px; margin-bottom: 28px; line-height: 1.55; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label:not(.check):not(.privacy-check) { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-dim); display: flex; gap: 6px; }
.field label .req { color: var(--copper); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.input, .textarea, .select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text);
  transition: all 200ms;
  font-family: inherit;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--copper);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 4px rgba(196,149,106,0.12);
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1L6 6L11 1' stroke='%238899AA' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.checkboxes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 600px) { .checkboxes { grid-template-columns: 1fr; } }
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
  font-size: 14px;
  cursor: pointer;
  transition: all 180ms;
  user-select: none;
}
.check input { display: none; }
.check .box {
  width: 16px; height: 16px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  position: relative;
  transition: all 180ms;
  flex-shrink: 0;
}
.check.checked { border-color: var(--copper); background: rgba(196,149,106,0.08); }
.check.checked .box { background: var(--copper); border-color: var(--copper); }
.check.checked .box::after {
  content: "";
  position: absolute;
  left: 5px; top: 2px;
  width: 4px; height: 8px;
  border: solid #1a1208;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.privacy-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; margin: 22px 0; font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.privacy-check input { display: none; }
.privacy-check .box {
  width: 16px; height: 16px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  position: relative;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 180ms;
}
.privacy-check.checked .box { background: var(--copper); border-color: var(--copper); }
.privacy-check.checked .box::after {
  content: "";
  position: absolute;
  left: 5px; top: 2px;
  width: 4px; height: 8px;
  border: solid #1a1208;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.privacy-check a { color: var(--copper); border-bottom: 1px solid rgba(196,149,106,0.4); }
.form-submit { width: 100%; justify-content: center; }
.form-success {
  padding: 18px;
  border-radius: 12px;
  background: rgba(196,149,106,0.12);
  border: 1px solid rgba(196,149,106,0.35);
  color: var(--copper-bright);
  font-size: 14px;
  margin-top: 16px;
  display: flex; gap: 10px; align-items: flex-start;
}
.form-error {
  padding: 18px;
  border-radius: 12px;
  background: rgba(255,80,80,0.12);
  border: 1px solid rgba(255,80,80,0.35);
  color: #ff8888;
  font-size: 14px;
  margin-top: 16px;
  display: flex; gap: 10px; align-items: flex-start;
}

/* ===== FOOTER ===== */
footer { background: var(--bg-deep); border-top: 1px solid var(--border); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 40px; } }
.footer-logo { font-family: var(--font-serif); font-size: 32px; letter-spacing: -0.015em; margin-bottom: 18px; }
.footer-logo span { color: var(--copper); font-style: italic; }
.footer-desc { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; max-width: 38ch; margin-bottom: 24px; }
.footer-col-title { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--copper); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--text-dim); font-size: 14.5px; transition: color 180ms; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 28px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-faint); font-family: var(--font-mono); letter-spacing: 0.05em; flex-wrap: wrap; }
.footer-bottom .made { display: flex; align-items: center; gap: 8px; }
.footer-bottom .dot-live { width: 6px; height: 6px; background: #4ade80; border-radius: 50%; box-shadow: 0 0 8px #4ade80; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ===== RADIO BUTTONS ===== */
.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-col { display: flex; flex-direction: column; gap: 8px; }
.radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
  font-size: 14px;
  cursor: pointer;
  transition: all 180ms;
  user-select: none;
}
.radio input { display: none; }
.radio .dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  position: relative;
  transition: all 180ms;
  flex-shrink: 0;
}
.radio.checked { border-color: var(--copper); background: rgba(196,149,106,0.08); }
.radio.checked .dot { background: var(--copper); border-color: var(--copper); }
.radio.checked .dot::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #1a1208;
  transform: translate(-50%, -50%);
}

/* ===== SELECT FIX (dark bg options) ===== */
.select option {
  background-color: #0F1426;
  color: #F5F5F5;
}

/* ===== FORM SECTIONS (adequació) ===== */
.adequacio-form { display: flex; flex-direction: column; gap: 0; }
.form-section {
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 20px;
}
.form-section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 32px;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid var(--border);
}
.form-section-num {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 400;
  font-style: italic;
  color: var(--copper);
  line-height: 1;
  opacity: 0.7;
  min-width: 44px;
}
.form-section-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 4px;
}
.form-section-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.form-section-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
@media (max-width: 700px) {
  .form-section-header { padding: 18px 20px; gap: 14px; }
  .form-section-body { padding: 20px; }
  .form-section-num { font-size: 28px; min-width: 32px; }
}

/* ===== ADEQUACIÓ section ===== */
.adequacio { border-top: 1px solid var(--border); }
.adequacio .section-head { max-width: 72ch; }
.adequacio-lede {
  background: rgba(196,149,106,0.07);
  border: 1px solid rgba(196,149,106,0.20);
  border-radius: 14px;
  padding: 20px 24px;
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 40px;
}
.adequacio-lede strong { color: var(--text); }

/* ===== Safari mobile fixes ===== */
@supports (-webkit-touch-callout: none) {
  html { -webkit-overflow-scrolling: touch; }
  .btn, button, a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .input, .select, .textarea {
    font-size: max(16px, 1em) !important;
  }
}
