:root {
  --wood-900: #3d2a20;
  --wood-700: #7a4d30;
  --cream: #f5efe5;
  --wood: #a66b3f;
  --text: #1f2923;
  --muted: #667069;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  padding-top: calc(env(safe-area-inset-top, 0px) + 32px);
  color: var(--text);
  background: var(--cream);
  background-image:
    radial-gradient(ellipse at 12% 8%, rgba(213, 168, 120, 0.18), transparent 34%),
    radial-gradient(ellipse at 88% 42%, rgba(166, 107, 63, 0.09), transparent 38%),
    repeating-linear-gradient(0deg, rgba(122, 77, 48, 0.018) 0, rgba(122, 77, 48, 0.018) 1px, transparent 1px, transparent 11px),
    linear-gradient(135deg, #faf7f0 0%, #eee4d5 100%);
  background-attachment: fixed;
  font-family: "Inter Tight", "Segoe UI", sans-serif;
  font-weight: 400;
}

img {
  max-width: 100%;
}

#mestra {
  width: 100%;
  padding: 56px 0 0 !important;
  margin: 0;
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--white);
  box-shadow: 0 4px 18px rgba(61, 42, 32, 0.08);
}

.header-banner {
  width: 100%;
  aspect-ratio: 900 / 120;
  overflow: hidden;
  background: #eae5d7;
}

.header-banner a,
.header-banner img {
  display: block;
  width: 100%;
  height: 100%;
}

.header-banner img {
  object-fit: contain;
  object-position: center;
}

.main-nav {
  min-height: 68px;
  max-width: 1180px;
  margin: auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.main-nav a {
  color: var(--wood-900);
  text-decoration: none;
  font-weight: 700;
}

.nav-home,
.nav-phone,
.nav-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.nav-home {
  width: 42px;
  height: 42px;
  justify-content: center;
  border-radius: 50%;
  background: var(--cream);
}

.nav-phone {
  font-size: 0.9rem;
}

.nav-whatsapp {
  color: #247342 !important;
  font-size: 0.9rem;
}

.nav-search {
  width: min(400px, 36%);
  margin-left: auto;
  display: flex;
  border: 1px solid #d9ddd9;
  border-radius: 999px;
  overflow: hidden;
  background: #fafbfa;
}

.nav-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 10px 16px;
  background: transparent;
  outline: none;
  color: var(--text);
}

.nav-search button {
  width: 44px;
  border: 0;
  color: var(--white);
  background: var(--wood-700);
  cursor: pointer;
}

.hero-section {
  position: relative;
  min-height: 560px;
  margin: 24px;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #3d2a20 url("/public/img/frente.png") center 58% / contain no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(61, 42, 32, 0.88) 0%, rgba(61, 42, 32, 0.66) 46%, rgba(61, 42, 32, 0.12) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: auto;
  color: var(--white);
}

.hero-kicker,
.section-heading span,
.benefit-card span,
.instagram-banner span {
  display: block;
  margin-bottom: 8px;
  color: #d5a878;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 560px;
  margin: 20px 0 28px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.6;
}

.hero-search {
  max-width: 620px;
  display: flex;
  padding: 6px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(12, 30, 19, 0.24);
}

.hero-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 14px 16px;
  color: var(--text);
  background: transparent;
  outline: none;
}

.hero-search button {
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  background: var(--wood-700);
  font-weight: 800;
  cursor: pointer;
}

.page-section {
  max-width: 1180px;
  margin: auto;
  padding: 84px 24px;
}

.section-heading {
  margin-bottom: 36px;
  text-align: center;
}

.section-heading span {
  color: var(--wood);
}

.section-heading h2,
.instagram-banner h2,
.benefit-card h2,
.location-section h2 {
  margin: 0;
  color: var(--wood-900);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

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

.category-card,
.product-card {
  overflow: hidden;
  border: 1px solid rgba(122, 77, 48, 0.1);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(61, 42, 32, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-card {
  color: inherit;
  text-decoration: none;
}

.category-card:hover,
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(61, 42, 32, 0.12);
}

.category-image {
  height: 210px;
  overflow: hidden;
  background: #ddd;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.category-card:hover img {
  transform: scale(1.035);
}

.category-content {
  padding: 20px;
}

.category-content h3,
.product-content h3 {
  margin: 0 0 8px;
  color: var(--wood-900);
  font-size: 1.15rem;
}

.category-content p,
.product-content p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.category-content span {
  color: var(--wood);
  font-weight: 800;
}

.category-content span b {
  margin-left: 4px;
}

.instagram-banner {
  min-height: 280px;
  padding: 44px max(24px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  color: var(--white);
  background: var(--wood-900);
}

.instagram-banner h2 {
  color: var(--white);
}

.instagram-banner a {
  display: block;
  width: 180px;
  flex: 0 0 auto;
  transition: transform 180ms ease;
}

.instagram-banner a:hover {
  transform: rotate(2deg) scale(1.03);
}

.product-image {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ecebe6;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-content {
  padding: 22px;
}

.whatsapp-button {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  color: var(--white) !important;
  background: #238b48;
  text-decoration: none;
  font-weight: 800;
}

.whatsapp-button:hover {
  background: #1b7040;
}

.google-review-section {
  padding: 0 24px 84px;
}

.google-review-card {
  max-width: 1132px;
  min-height: 240px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(220px, 32%) minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid rgba(122, 77, 48, 0.16);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(61, 42, 32, 0.08);
  overflow: hidden;
}

.google-review-image {
  height: 100%;
  min-height: 240px;
  overflow: hidden;
}

.google-review-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 300ms ease;
}

.google-review-card:hover .google-review-image img {
  transform: scale(1.04);
}

.google-review-content {
  min-width: 0;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.google-review-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #e6e8e6;
  border-radius: 50%;
  color: #4285f4;
  background: var(--white);
  font-family: Arial, sans-serif;
  font-size: 2rem;
  font-weight: 800;
}

.google-review-copy {
  flex: 1;
}

.google-review-copy > span {
  display: block;
  margin-bottom: 6px;
  color: var(--wood);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.google-review-copy h2 {
  margin: 0;
  color: var(--wood-900);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.google-review-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.google-review-card > a {
  min-height: 48px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--white);
  background: var(--wood-700);
  text-decoration: none;
  font-weight: 800;
  transition: background 180ms ease, transform 180ms ease;
}

.google-review-card > a:hover {
  transform: translateY(-2px);
  background: var(--wood-900);
}

.benefits-section {
  max-width: 1180px;
  margin: 20px auto 84px;
  padding: 0 24px;
  display: grid;
  gap: 24px;
}

.benefit-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(31, 50, 38, 0.08);
}

.benefit-card.reverse {
  direction: rtl;
}

.benefit-card.reverse > * {
  direction: ltr;
}

.benefit-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.benefit-card div {
  padding: 44px;
}

.benefit-card p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.benefit-card span {
  color: var(--wood);
}

.location-section {
  padding: 84px 24px;
  background: #ebe8df;
}

.location-section .section-heading,
.map-wrapper {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.map-wrapper {
  height: 420px;
  overflow: hidden;
  border: 8px solid var(--white);
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(31, 50, 38, 0.1);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.site-footer {
  min-height: 190px;
  padding: 42px max(24px, calc((100% - 1180px) / 2));
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  align-items: center;
  gap: 24px;
  color: #dfe7e1;
  background: #10251a;
}

.site-footer h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 1.25rem;
}

.site-footer p {
  margin: 0;
  line-height: 1.7;
}

.site-footer a {
  justify-self: end;
  color: #d5a878;
  text-decoration: none;
  font-weight: 700;
}

.products-heading {
  min-height: 280px;
  margin: 24px 24px 0;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(61, 42, 32, 0.96), rgba(61, 42, 32, 0.82)),
    #3d2a20 url("/public/img/frenteopaca.jpg") center 60% / contain no-repeat;
}

.products-heading-content {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
  color: var(--white);
}

.products-heading-content > span,
.empty-products > span {
  display: block;
  margin-bottom: 8px;
  color: #d5a878;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.products-heading h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.products-heading p {
  max-width: 650px;
  margin: 14px 0 0;
  line-height: 1.6;
}

.category-filter {
  width: min(600px, 100%);
  margin-top: 24px;
}

.category-filter label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 800;
}

.category-filter > div {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 10px;
  background: var(--white);
}

.category-filter select {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 10px 12px;
  color: var(--text);
  background: var(--white);
  outline: none;
  cursor: pointer;
}

.category-filter button {
  min-width: 112px;
  border: 0;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--white);
  background: var(--wood);
  font-weight: 800;
  cursor: pointer;
}

.products-section {
  max-width: 1180px;
  min-height: 420px;
  margin: auto;
  padding: 84px 24px;
}

.products-grid {
  align-items: stretch;
}

.products-grid .product-card {
  display: flex;
  flex-direction: column;
}

.products-grid .product-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.products-grid .product-content h2 {
  margin: 0 0 8px;
  color: var(--wood-900);
  font-size: 1.15rem;
}

.products-grid .product-content p {
  flex: 1;
}

.products-actions {
  margin-top: 38px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.secondary-button,
.top-button {
  min-height: 46px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wood-700);
  border-radius: 8px;
  color: var(--wood-700);
  background: transparent;
  text-decoration: none;
  font-weight: 800;
}

.top-button {
  border-color: #d9ddd9;
  color: var(--text);
  background: var(--white);
}

.empty-products {
  max-width: 620px;
  margin: 20px auto;
  padding: 48px 24px;
  border: 1px solid rgba(122, 77, 48, 0.1);
  border-radius: 18px;
  text-align: center;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(61, 42, 32, 0.08);
}

.empty-products h2 {
  margin: 0;
  color: var(--wood-900);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.empty-products p {
  margin: 12px 0 24px;
  color: var(--muted);
}

.empty-products .whatsapp-button {
  max-width: 300px;
  margin: auto;
  background: #238b48;
}

@media (max-width: 900px) {
  .header-banner {
    aspect-ratio: 900 / 120;
  }

  .main-nav {
    flex-wrap: wrap;
  }

  .nav-search {
    width: 100%;
    order: 4;
  }

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

  .benefit-card {
    grid-template-columns: 44% 56%;
  }

  .benefit-card div {
    padding: 28px;
  }

  .google-review-card {
    grid-template-columns: minmax(170px, 30%) minmax(0, 1fr) auto;
  }

  .google-review-content {
    padding: 20px;
    gap: 12px;
  }

  .google-review-card > a {
    margin-right: 18px;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer a {
    justify-self: start;
  }
}

@media (max-width: 600px) {
  .header-banner {
    aspect-ratio: 900 / 120;
  }

  .main-nav {
    padding: 8px 12px;
  }

  .nav-phone {
    display: none;
  }

  .nav-whatsapp span:last-child {
    display: none;
  }

  .nav-search {
    flex: 1;
    width: auto;
    margin-left: 0;
  }

  .hero-section {
    min-height: 520px;
    margin: 12px;
    border-radius: 14px;
    align-items: flex-end;
    background-position: center bottom;
    background-size: contain;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(61, 42, 32, 0.92) 0%, rgba(61, 42, 32, 0.52) 70%, rgba(61, 42, 32, 0.12) 100%);
  }

  .hero-content {
    width: calc(100% - 32px);
    padding: 48px 0 32px;
  }

  .hero-content h1 {
    font-size: 2.55rem;
  }

  .hero-content p {
    margin: 16px 0 20px;
  }

  .hero-search button {
    width: 48px;
    justify-content: center;
  }

  .hero-search button span {
    display: none;
  }

  .page-section {
    padding: 58px 16px;
  }

  #mestra {
    padding-top: 40px !important;
  }

  .category-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .category-image {
    height: 230px;
  }

  .instagram-banner {
    min-height: 320px;
    padding: 38px 24px;
    align-items: flex-start;
    flex-direction: column;
  }

  .instagram-banner a {
    width: 150px;
  }

  .product-image {
    height: 300px;
  }

  .benefits-section {
    margin-bottom: 58px;
    padding: 0 16px;
  }

  .google-review-section {
    padding: 0 16px 58px;
  }

  .google-review-card {
    grid-template-columns: 1fr;
  }

  .google-review-image {
    height: 180px;
    min-height: 180px;
  }

  .google-review-content {
    padding: 22px;
    align-items: flex-start;
  }

  .google-review-card > a {
    width: calc(100% - 44px);
    margin: 0 22px 22px;
  }

  .google-review-icon {
    width: 52px;
    height: 52px;
    font-size: 1.7rem;
  }

  .google-review-card > a {
    width: 100%;
  }

  .benefit-card,
  .benefit-card.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .benefit-card img {
    height: 230px;
  }

  .benefit-card div {
    padding: 28px 24px;
  }

  .location-section {
    padding: 58px 16px;
  }

  .map-wrapper {
    height: 330px;
  }

  .products-heading {
    min-height: 320px;
    margin: 12px 12px 0;
    border-radius: 14px;
    background-position: center bottom;
    background-size: contain;
  }

  .products-heading-content {
    width: calc(100% - 32px);
  }

  .products-heading h1 {
    font-size: 2.4rem;
  }

  .category-filter > div {
    flex-direction: column;
  }

  .category-filter select {
    min-height: 46px;
  }

  .category-filter button {
    min-height: 46px;
  }

  .category-filter button span {
    display: inline;
  }

  .products-section {
    padding: 58px 16px;
  }

  .products-actions {
    flex-direction: column;
  }

  .site-footer {
    padding: 38px 24px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer a {
    justify-self: center;
  }
}
