:root {
  --black: #1c1c19;
  --black-soft: #262622;
  --yellow: #ffc400;
  --yellow-dark: #d9a600;
  --text: #181818;
  --muted: #626262;
  --line: rgba(28, 28, 25, .12);
  --white: #ffffff;
  --bg: #f6f5f1;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 7vw;
  background: rgba(28, 28, 25, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 58px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255,255,255,.86);
  font-weight: 700;
  font-size: 14px;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--yellow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-switch { display: flex; gap: 8px; }

.language-switch button {
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}

.language-switch button.active {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}

.hero {
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 44px;
  align-items: center;
  padding: 54px 7vw 68px;
  background:
    radial-gradient(circle at 82% 12%, rgba(255,196,0,.17), transparent 28%),
    linear-gradient(135deg, var(--black) 0%, #11110f 100%);
  color: #fff;
  overflow: hidden;
}

.hero-content {
  max-width: 760px;
}

.logo-panel {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 30px;
  background: rgba(255,255,255,.035);
  box-shadow: 0 32px 90px rgba(0,0,0,.35);
  padding: clamp(24px, 4vw, 42px);
}

.logo-panel img {
  width: 100%;
  height: auto;
  display: block;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(38px, 5.7vw, 72px);
  line-height: .98;
  margin: 0 0 24px;
  color: #fff;
  letter-spacing: -0.04em;
}

p {
  font-size: 19px;
  line-height: 1.6;
  color: rgba(255,255,255,.76);
  margin: 0 0 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  font-size: 16px;
}

.cta {
  border: 0;
  background: var(--yellow);
  color: var(--black);
}

.cta:hover { background: #ffd23d; }

.secondary-cta {
  border: 1px solid rgba(255,255,255,.26);
  color: #fff;
  background: rgba(255,255,255,.06);
}

.secondary-cta:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.section {
  padding: 70px 7vw;
}

.section-header {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-kicker {
  color: var(--yellow-dark);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
  margin-bottom: 10px;
}

.section h2,
.form-card h1 {
  margin: 0 0 16px;
  color: var(--black);
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.035em;
}

.section p {
  color: var(--muted);
}

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.services article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 16px 42px rgba(28,28,25,.07);
}

.service-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--black);
  color: var(--yellow);
  font-size: 26px;
  margin-bottom: 18px;
}

.services h3 {
  margin: 0 0 10px;
  color: var(--black);
  font-size: 22px;
}

.services p {
  font-size: 16px;
  margin: 0;
  color: var(--muted);
}

.strip {
  margin: 0 7vw 74px;
  border-radius: 28px;
  padding: 34px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  background: var(--black);
  color: #fff;
}

.strip p {
  color: rgba(255,255,255,.75);
  max-width: 680px;
}

.site-footer {
  padding: 34px 7vw;
  color: rgba(255,255,255,.68);
  font-size: 14px;
  background: var(--black);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
}

.site-footer a:hover { color: var(--yellow); }

.form-page {
  min-height: calc(100vh - 92px);
  display: grid;
  place-items: start center;
  padding: 54px 7vw 76px;
  background:
    radial-gradient(circle at 83% 8%, rgba(255,196,0,.15), transparent 28%),
    linear-gradient(135deg, var(--black) 0%, #11110f 100%);
}

.form-card {
  width: min(760px, 100%);
  background: #fff;
  border-radius: 28px;
  padding: clamp(28px, 5vw, 48px);
  box-shadow: 0 28px 80px rgba(0,0,0,.32);
  border: 1px solid rgba(255,255,255,.15);
}

.form-card p {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
  color: var(--black);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(28,28,25,.18);
  border-radius: 14px;
  padding: 14px 15px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(255,196,0,.25);
  border-color: var(--yellow-dark);
}

.contact-form textarea { resize: vertical; }

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.success {
  color: #166534;
  font-weight: 800;
}

.error {
  color: #b91c1c;
  font-weight: 800;
}

.back-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--black);
  font-weight: 800;
  text-decoration: none;
}

.back-link:hover { color: var(--yellow-dark); }

@media (max-width: 1060px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .logo-panel {
    max-width: 760px;
  }
}

@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }

  .main-nav { display: none; }

  .strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding: 14px 22px;
    min-height: auto;
    align-items: flex-start;
  }

  .brand img { height: 48px; }

  .header-actions {
    flex-direction: column;
    align-items: flex-end;
  }

  .hero,
  .form-page {
    padding: 34px 22px 48px;
  }

  .section {
    padding: 48px 22px;
  }

  .strip {
    margin: 0 22px 48px;
    padding: 26px;
  }

  .site-footer {
    padding: 28px 22px;
  }

  h1 {
    font-size: clamp(36px, 12vw, 54px);
  }
}
/* Afegits legals, footer i cookies COMAS */

.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.main-nav a,
.footer-links a {
  color: inherit;
  text-decoration: none;
  font-weight: 800;
}

.main-nav a:hover,
.footer-links a:hover {
  color: var(--yellow, #ffc400);
}

.footer-inner {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-page {
  padding: 38px 7vw 70px;
}

.legal-card {
  max-width: 980px;
  margin: 0 auto;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,196,0,.20);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 54px);
  box-shadow: 0 28px 80px rgba(0,0,0,.16);
}

.legal-card h1 {
  margin-bottom: 28px;
}

.legal-content h2 {
  margin: 28px 0 10px;
  color: var(--black, #1c1c19);
  font-size: 22px;
}

.legal-content p,
.legal-content li {
  font-size: 17px;
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 22px;
}

html[lang="ca"] .legal-es,
html[lang="es"] .legal-ca {
  display: none;
}

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  max-width: 980px;
  margin: 0 auto;
  background: #1c1c19;
  color: #fff;
  border: 1px solid rgba(255,196,0,.45);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 0 22px 70px rgba(0,0,0,.32);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-text p {
  margin: 6px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 15px;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-link {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.cookie-accept {
  border: 0;
  border-radius: 999px;
  background: var(--yellow, #ffc400);
  color: #1c1c19;
  padding: 11px 18px;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 760px) {
  .site-header {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .cookie-actions {
    width: 100%;
    justify-content: space-between;
  }

  .cookie-accept {
    flex: 1;
  }
}

/* ===== Legal + cookies COMAS ===== */

.top-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  margin-right: 18px;
}

.top-nav a,
.site-footer a {
  color: inherit;
  text-decoration: none;
  font-weight: 800;
}

.top-nav a:hover,
.site-footer a:hover {
  color: var(--yellow);
}

.legal-wrap {
  padding: 36px 7vw 64px;
}

.legal-card {
  max-width: 980px;
  margin: 0 auto;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255, 196, 0, .22);
  border-radius: 26px;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 28px 80px rgba(0,0,0,.10);
}

.legal-card h1 {
  margin-bottom: 28px;
}

.legal-card h2 {
  margin: 30px 0 10px;
  font-size: clamp(21px, 2.5vw, 28px);
}

.table-scroll {
  overflow-x: auto;
  margin: 18px 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 15px;
}

.legal-table th,
.legal-table td {
  border: 1px solid rgba(0,0,0,.12);
  padding: 14px;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: #1c1c19;
  color: #fff;
}

.cookie-banner {
  position: fixed;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 20px;
  background: #1c1c19;
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0,0,0,.28);
}

.cookie-banner p {
  margin: 5px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 14px;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-actions a {
  color: #fff;
  font-weight: 800;
}

.cta.small {
  margin-top: 0;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--yellow);
  color: #1c1c19;
}

@media (max-width: 760px) {
  .site-header {
    flex-wrap: wrap;
  }

  .top-nav {
    order: 3;
    width: 100%;
    margin: 4px 0 0;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions {
    width: 100%;
    justify-content: space-between;
  }

  .cookie-actions .cta {
    width: auto;
  }
}

/* Acceptació política de privacitat */

.privacy-check {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 6px;
}

.privacy-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #FFC107;
}

.privacy-check span {
    display: inline;
}

.privacy-check a {
    color: #000;
    font-weight: 700;
    text-decoration: underline;
}

.privacy-note {
    margin-top: -6px;
    font-size: 0.95rem;
    color: #666;
}

