:root {
  --bg-paper: #f5f0ea;
  --bg-warm: #efe0c3;
  --dark: #221d1a;
  --gold: #d0a05d;
  --gold-deep: #b88a42;
  --brown: #2c241f;
  --text-soft: rgba(255,255,255,0.8);
  --line: rgba(255,255,255,0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  background: var(--bg-paper);
  color: var(--dark);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}

.topbar {
  position: relative;
  z-index: 21;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 24px;
}

.brand {
  position: absolute;
  top: 3px;
  left: 0;
  display: flex;
  align-items: center;
  width: 104px;
  height: 52px;
  flex: 0 0 104px;
}

.brand img {
  width: 104px;
  height: auto;
}
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.45);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(0, 0, 0, 0.04);
}

.language-switch {
  position: absolute;
  top: 16px;
  left: 116px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang {
  appearance: none;
  border: 2px solid rgba(255,255,255,0.9);
  color: #2a4936;
  border-radius: 6px;
  width: 31px;
  height: 23px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 0.54rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-shadow: 0 1px 1px rgba(255,255,255,0.45);
}

.lang[data-lang="es"] {
  background: linear-gradient(to bottom, #c60b1e 0 25%, #ffc400 25% 75%, #c60b1e 75%);
}

.lang[data-lang="ca"] {
  background: repeating-linear-gradient(to bottom, #f8d12e 0 5px, #c60b1e 5px 8px);
}

.lang[data-lang="en"] {
  background:
    linear-gradient(90deg, transparent 42%, #fff 42% 58%, transparent 58%),
    linear-gradient(0deg, transparent 42%, #fff 42% 58%, transparent 58%),
    linear-gradient(90deg, transparent 46%, #c8102e 46% 54%, transparent 54%),
    linear-gradient(0deg, transparent 46%, #c8102e 46% 54%, transparent 54%),
    #012169;
}

.lang.active {
  box-shadow: 0 0 0 2px rgba(42, 73, 54, 0.95), 0 2px 5px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.menu-toggle {
  position: absolute;
  top: 5px;
  right: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(42, 73, 54, 0.92);
  color: #fff;
  font-size: 1.45rem;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(17,14,12,0.38), rgba(17,14,12,0.55)),
    url("pics/3.png") center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.08);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
}

.hero-copy {
  padding: 34px 0 24px;
  max-width: 760px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3.2rem, 5.5vw, 7.5rem);
  line-height: 0.85;
  font-weight: 700;
  letter-spacing: -0.06em;
  color: #f5f1ee;
  text-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

.hero-copy p {
  margin-top: 22px;
  color: #f5f1ee;
  font-size: clamp(1.5rem, 2vw, 3.2rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.04em;
  max-width: 760px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.14);
}

.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-media img {
  width: min(420px, 72%);
  filter: drop-shadow(0 14px 26px rgba(0,0,0,0.2));
}

.section {
  padding: 52px 0;
}

#productos {
  background: #f3efe9;
  padding-top: 84px;
}

#productos .container {
  max-width: 1180px;
}

#productos h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3vw, 3rem);
  text-align: center;
  color: var(--brown);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  margin-top: 20px;
}

.card {
  background: rgba(255,255,255,0.54);
  border: 1px solid rgba(106, 78, 56, 0.12);
  border-radius: 18px;
  padding: 18px 15px 14px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(59, 42, 31, 0.04);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin: 0 auto 12px;
  border-radius: 12px;
}

.card h3 {
  margin: 10px 0 0;
  color: var(--brown);
  font-size: 1.35rem;
  font-weight: 700;
}

.cta-row {
  margin-top: 26px;
  display: flex;
  justify-content: center;
}

.primary-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: white;
  font-weight: 700;
  min-width: 180px;
  padding: 14px 28px;
  border-radius: 999px;
  box-shadow: 0 10px 18px rgba(156, 109, 53, 0.24);
}

#preus {
  background: rgba(236, 230, 220, 0.7);
  padding-top: 76px;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 34px;
  align-items: center;
}

.image-panel {
  display: flex;
  justify-content: center;
}

.image-panel img {
  max-width: 560px;
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.text-panel {
  padding: 20px 0;
}

.text-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(2.5rem, 4vw, 4rem);
  color: var(--brown);
  line-height: 0.9;
}

.text-panel p {
  margin: 0 0 22px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--brown);
  max-width: 34ch;
}

#contacte {
  background: #f5f3ee;
  border-top: 1px solid rgba(40, 26, 20, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1.1fr;
  gap: 30px;
  align-items: start;
}

.footer-logo {
  max-width: 220px;
}

.footer-grid h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brown);
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li + li {
  margin-top: 8px;
}

.footer-grid a,
.footer-grid p {
  color: var(--brown);
  line-height: 1.6;
  margin: 0;
}

.site-footer {
  background: rgba(232, 220, 204, 0.9);
  border-top: 1px solid rgba(40, 26, 20, 0.08);
  padding: 22px 0 30px;
}

.page-main {
  min-height: 70vh;
}

.page-heading {
  padding: 150px 0 72px;
  background:
    linear-gradient(135deg, rgba(44,36,31,0.92), rgba(92,67,42,0.84)),
    url("pics/bg-03-free-img.png") center/cover no-repeat;
  color: #fff;
}

.page-heading h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.95;
}

.page-heading p:not(.eyebrow) {
  max-width: 700px;
  margin: 22px 0 0;
  font-size: 1.2rem;
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.catalog-section,
.contact-section,
.story-section,
.gallery-section,
.reviews-section {
  padding: 68px 0;
}

.catalog-section.alt,
.story-section.alt,
.reviews-section {
  background: #eee5d8;
}

.catalog-section h2,
.gallery-section h2,
.reviews-section h2,
.contact-panel h2 {
  margin: 0 0 24px;
  color: var(--brown);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.section-intro {
  max-width: 760px;
  margin: -8px 0 28px;
  line-height: 1.7;
}

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

.product-card,
.review-card,
.contact-panel {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(106, 78, 56, 0.14);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 8px 18px rgba(59, 42, 31, 0.05);
}

.product-card {
  color: var(--brown);
}

.product-card img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  margin-bottom: 16px;
  border-radius: 8px;
}

.product-card h2,
.product-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.product-card p,
.review-card p,
.contact-panel p,
.text-panel p {
  line-height: 1.65;
}

.product-card p {
  margin: 0;
}

.catalog-pagination {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  color: var(--brown);
}

.catalog-pagination a {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
}

.offer-ranges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.offer-ranges details {
  border: 1px solid rgba(106, 78, 56, 0.16);
  border-radius: 8px;
  background: rgba(255,255,255,0.62);
  color: var(--brown);
}

.offer-ranges summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
}

.offer-ranges ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0 16px 16px 34px;
  line-height: 1.4;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 30px;
}

.contact-panel h2:not(:first-child) {
  margin-top: 36px;
}

.contact-address {
  font-size: 1.25rem;
}

.contact-panel a:not(.primary-btn) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--brown);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(106, 78, 56, 0.24);
  border-radius: 6px;
  padding: 11px;
  background: #fffdf9;
  color: var(--dark);
  font: inherit;
}

.social-strip {
  padding: 0 0 68px;
  background: #f5f3ee;
}

.social-grid,
.gallery-grid,
.review-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.social-grid img,
.gallery-grid img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 10px;
}

.story-section .split {
  align-items: center;
}

.story-section .text-panel h2 {
  line-height: 1.05;
}

.gallery-section {
  background: #f5f0ea;
}

.review-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.review-card img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  float: right;
}

.review-card strong {
  color: var(--brown);
}

.rating {
  margin: -8px 0 28px;
  color: var(--gold-deep);
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-bottom {
  text-align: center;
  color: var(--brown);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .hero-inner,
  .split,
  .footer-grid,
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: 100vh;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 8px;
    padding: 12px 0;
  }

  .brand {
    position: absolute;
    top: 3px;
    left: 0;
    width: 92px;
    height: 46px;
    flex-basis: 92px;
  }

  .brand img {
    width: 92px;
  }

  .menu-toggle {
    top: 5px;
    right: 0;
    width: 48px;
    height: 48px;
    font-size: 1.45rem;
  }

  .language-switch {
    position: absolute;
    top: 16px;
    left: 104px;
    margin-left: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .lang {
    width: 31px;
    height: 23px;
    font-size: 0.54rem;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 58px;
    right: 0;
    z-index: 22;
    width: min(260px, calc(100vw - 32px));
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    gap: 4px;
  }

  .site-header.open .main-nav {
    display: flex;
    background: rgba(20, 30, 24, 0.82);
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  }

  .main-nav a {
    text-align: center;
  }

  .hero-inner,
  .split,
  .footer-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 54vh;
  }

  .hero-copy {
    padding-top: 38px;
    max-width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(2.6rem, 13vw, 4.2rem);
    line-height: 0.92;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .hero-copy p {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .text-panel p {
    max-width: 100%;
  }

  .contact-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .offer-ranges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100%, calc(100% - 18px));
  }

  .section {
    padding: 32px 0;
  }

  .topbar {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: center;
  }

  .brand {
    position: absolute;
    top: 3px;
    left: 0;
    grid-column: 1;
  }

  .menu-toggle {
    grid-column: 1;
    justify-self: end;
  }

  .language-switch {
    top: 16px;
    left: 104px;
    width: auto;
    justify-content: flex-start;
  }

  .hero {
    min-height: 54vh;
  }

  .hero-inner {
    gap: 20px;
  }

  .hero-copy {
    padding-top: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 15vw, 3.3rem);
  }

  .hero-copy p {
    font-size: 1.08rem;
    line-height: 1.3;
  }

  .hero-media img {
    width: min(210px, 60vw);
  }

  .text-panel h2 {
    font-size: clamp(2rem, 11vw, 2.8rem);
  }

  .page-heading {
    padding: 108px 0 44px;
  }

  .catalog-section,
  .contact-section,
  .story-section,
  .gallery-section,
  .reviews-section {
    padding: 42px 0;
  }

  .catalog-grid,
  .social-grid,
  .gallery-grid,
  .offer-ranges {
    grid-template-columns: 1fr;
  }

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