:root {
  --coal: #171614;
  --charcoal: #24211d;
  --smoke: #59534a;
  --bone: #f4efe5;
  --sand: #d8c8ae;
  --paper: #fffaf0;
  --copper: #9b6b43;
  --copper-soft: #c49a78;
  --olive: #343d32;
  --navy: #1d3340;
  --line: rgba(36, 33, 29, 0.14);
  --dark-line: rgba(244, 239, 229, 0.14);
  --shadow: 0 22px 70px rgba(23, 22, 20, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--coal);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-width: 320px;
}

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

button,
input,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(244, 239, 229, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
}

.brand span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  color: var(--smoke);
  font-size: 14px;
}

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

.cart-button {
  border: 1px solid var(--coal);
  background: transparent;
  color: var(--coal);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.cart-button span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  background: var(--coal);
  color: var(--bone);
  border-radius: 50%;
  font-size: 12px;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.94;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1;
}

h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
}

p {
  line-height: 1.62;
}

.eyebrow,
.overline {
  margin: 0 0 14px;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
}

.lead {
  color: var(--smoke);
  font-size: clamp(18px, 2vw, 22px);
  max-width: 650px;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 6vw, 86px);
  padding: clamp(36px, 7vw, 92px) clamp(18px, 5vw, 84px);
}

.hero-photo,
.placeholder-photo,
.product-image,
.product-detail-image,
.category-card {
  background:
    linear-gradient(135deg, rgba(23, 22, 20, 0.18), rgba(23, 22, 20, 0.44)),
    radial-gradient(circle at 28% 24%, rgba(196, 154, 120, 0.34), transparent 32%),
    linear-gradient(135deg, #2b2722, #11100e);
}

.hero-photo {
  min-height: min(72vh, 640px);
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: var(--sand);
}

.placeholder-photo span,
.product-image span,
.product-detail-image span,
.category-card span {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 239, 229, 0.74);
}

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

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
}

.primary-button {
  background: var(--coal);
  color: var(--bone);
  border: 1px solid var(--coal);
}

.secondary-button {
  background: transparent;
  color: var(--coal);
  border: 1px solid rgba(23, 22, 20, 0.3);
}

.text-button {
  background: transparent;
  color: var(--coal);
  border: 1px solid rgba(23, 22, 20, 0.25);
  min-height: 40px;
}

.full {
  width: 100%;
}

.section-narrow {
  padding: clamp(58px, 9vw, 110px) clamp(18px, 8vw, 160px);
  max-width: 1120px;
  margin: 0 auto;
}

.philosophy h2,
.experience-section h2 {
  max-width: 880px;
}

.philosophy p,
.experience-section p,
.story-section p,
.policies p {
  color: var(--smoke);
  font-size: 18px;
  max-width: 780px;
}

.category-section,
.products-section,
.trust-section,
.reserve-section,
.contact-grid,
.form-section {
  padding: clamp(50px, 8vw, 96px) clamp(18px, 5vw, 84px);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 26px;
}

.section-heading.compact {
  display: block;
  max-width: 760px;
}

.category-grid,
.product-grid,
.trust-grid,
.contact-grid {
  display: grid;
  gap: 18px;
}

.category-grid {
  grid-template-columns: repeat(4, 1fr);
}

.category-card {
  min-height: 360px;
  border-radius: 10px;
  color: var(--bone);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.category-card.sea {
  background:
    linear-gradient(135deg, rgba(29, 51, 64, 0.26), rgba(23, 22, 20, 0.44)),
    radial-gradient(circle at 70% 30%, rgba(80, 128, 150, 0.28), transparent 34%),
    linear-gradient(135deg, #243640, #11100e);
}

.category-card.reserve {
  background:
    linear-gradient(135deg, rgba(52, 61, 50, 0.32), rgba(23, 22, 20, 0.44)),
    linear-gradient(135deg, #343d32, #11100e);
}

.category-card h3 {
  margin-top: 10px;
}

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

.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.product-image {
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
}

.product-image.marisco {
  background:
    linear-gradient(135deg, rgba(29, 51, 64, 0.28), rgba(23, 22, 20, 0.42)),
    radial-gradient(circle at 68% 26%, rgba(118, 156, 170, 0.3), transparent 34%),
    linear-gradient(135deg, #203743, #11100e);
}

.product-image.caja {
  background:
    linear-gradient(135deg, rgba(52, 61, 50, 0.32), rgba(23, 22, 20, 0.42)),
    linear-gradient(135deg, #343d32, #11100e);
}

.product-card-copy {
  padding: 20px;
}

.product-origin {
  color: var(--copper);
  font-size: 13px;
  margin: 0 0 10px;
}

.product-card-copy p {
  color: var(--smoke);
}

.product-card-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.reserve-section {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(260px, 0.6fr);
  gap: 32px;
  background: var(--charcoal);
  color: var(--bone);
}

.reserve-section p {
  color: rgba(244, 239, 229, 0.76);
}

.reserve-notes {
  display: grid;
  gap: 14px;
}

.reserve-notes p {
  border-top: 1px solid var(--dark-line);
  padding-top: 18px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.trust-grid {
  grid-template-columns: repeat(4, 1fr);
}

.trust-grid article,
.contact-grid article {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  background: rgba(255, 250, 240, 0.58);
}

.trust-grid p,
.contact-grid p {
  color: var(--smoke);
}

.page-hero {
  padding: clamp(70px, 12vw, 150px) clamp(18px, 8vw, 160px) clamp(42px, 7vw, 80px);
  background: var(--charcoal);
  color: var(--bone);
}

.page-hero .lead {
  color: rgba(244, 239, 229, 0.72);
}

.sea-hero {
  background: var(--navy);
}

.page-products {
  padding-top: 32px;
}

.search-box {
  display: grid;
  gap: 8px;
  max-width: 440px;
  margin-bottom: 24px;
  color: var(--smoke);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  min-height: 46px;
  border-radius: 8px;
  padding: 12px;
  color: var(--coal);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.product-detail {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.88fr);
  gap: clamp(28px, 5vw, 76px);
  padding: clamp(44px, 7vw, 94px) clamp(18px, 6vw, 96px);
  align-items: center;
}

.product-detail-image {
  min-height: min(70vh, 620px);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  align-items: flex-end;
}

.detail-price {
  font-size: 28px;
  margin: 24px 0;
  font-weight: 800;
}

.detail-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.detail-list div {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.detail-list dt {
  font-weight: 800;
}

.detail-list dd {
  margin: 4px 0 0;
  color: var(--smoke);
}

.contact-grid {
  grid-template-columns: repeat(4, 1fr);
}

.form-section {
  padding-top: 0;
}

.form-section form {
  display: grid;
  gap: 12px;
  max-width: 720px;
}

.site-footer {
  background: var(--coal);
  color: var(--bone);
  padding: 34px clamp(18px, 5vw, 84px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.site-footer img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
}

.site-footer div,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  color: rgba(244, 239, 229, 0.64);
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(23, 22, 20, 0.46);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.cart-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  margin-left: auto;
  width: min(100%, 440px);
  height: 100%;
  overflow: auto;
  background: var(--bone);
  padding: 24px;
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.cart-drawer.open .cart-panel {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.cart-header button {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--smoke);
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.cart-item h3 {
  font-size: 18px;
}

.cart-item p,
.empty-cart,
.package-choice,
.cart-summary p {
  color: var(--smoke);
}

.qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
}

.package-choice,
.cart-summary {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.package-choice label,
.cart-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cart-summary .total {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 20px;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  background: var(--olive);
  color: var(--bone);
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(120%);
  z-index: 60;
  background: var(--coal);
  color: var(--bone);
  padding: 12px 16px;
  border-radius: 999px;
  transition: transform 180ms ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1080px) {
  .category-grid,
  .trust-grid,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .product-detail,
  .reserve-section {
    grid-template-columns: 1fr;
  }

  .hero-photo,
  .product-detail-image {
    min-height: 420px;
  }

  .section-heading {
    display: block;
  }
}

@media (max-width: 620px) {
  .brand span {
    font-size: 15px;
  }

  .cart-button {
    padding: 9px 11px;
  }

  h1 {
    font-size: 46px;
  }

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

  .category-card {
    min-height: 300px;
  }

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