/* ==========================================================================
   Maderas La Isla — Production Stylesheet
   Brand: Premium, minimal, warm. Mobile-first.
   ========================================================================== */

/* ── Design tokens ──────────────────────────────────────────────────────── */
:root {
  --color-tierra: #1C1108;
  --color-tierra-deep: #0D0A06;
  --color-madera: #7A4A2A;
  --color-madera-light: #9E6A44;
  --color-ambar: #C49A2A;
  --color-ambar-hover: #A8821E;
  --color-ambar-light: #D4B04A;
  --color-crema: #F2EBE0;
  --color-crema-light: #FAF7F2;
  --color-crema-dark: #E8DCC8;
  --color-selva: #1B4332;
  --color-azul: #16344F;
  --color-azul-deep: #0B1F2F;
  --color-azul-soft: #2C4F6E;
  --color-white: #FFFFFF;
  --color-border: rgba(196, 154, 42, 0.25);
  --color-border-soft: rgba(28, 17, 8, 0.08);
  --color-overlay: rgba(13, 10, 6, 0.55);
  --color-overlay-strong: rgba(13, 10, 6, 0.78);

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --container: min(1280px, 92vw);
  --container-narrow: min(900px, 92vw);

  --shadow-sm: 0 1px 3px rgba(28, 17, 8, 0.10);
  --shadow-md: 0 8px 24px rgba(28, 17, 8, 0.14);
  --shadow-lg: 0 18px 48px rgba(28, 17, 8, 0.22);

  --radius: 6px;
  --radius-lg: 10px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 200ms var(--ease);
  --t-base: 380ms var(--ease);
  --t-slow: 700ms var(--ease);

  --nav-height: 76px;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-tierra);
  background: var(--color-crema-light);
  overflow-x: hidden;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

ul, ol { list-style: none; }

::selection { background: var(--color-ambar); color: var(--color-tierra); }

/* ── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-tierra);
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.15; }
h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.25; }
h4 { font-size: 1.25rem; line-height: 1.3; }

p { line-height: 1.7; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-ambar);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}

.lead {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.65;
  color: rgba(28, 17, 8, 0.78);
  max-width: 60ch;
}

.on-dark {
  color: var(--color-crema);
}
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--color-crema); }
.on-dark .lead { color: rgba(242, 235, 224, 0.82); }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container { width: var(--container); margin-inline: auto; }
.container-narrow { width: var(--container-narrow); margin-inline: auto; }

.section {
  padding: clamp(4rem, 9vw, 8rem) 0;
}
.section-tight {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.bg-tierra { background: var(--color-tierra); color: var(--color-crema); }
.bg-tierra-deep { background: var(--color-tierra-deep); color: var(--color-crema); }
.bg-crema { background: var(--color-crema); }
.bg-crema-light { background: var(--color-crema-light); }
.bg-selva { background: var(--color-selva); color: var(--color-crema); }
.bg-azul {
  background: var(--color-azul);
  color: var(--color-crema);
  background-image:
    radial-gradient(circle at 0% 0%, rgba(196,154,42,0.10), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(44,79,110,0.55), transparent 50%);
}
.bg-azul-deep {
  background: var(--color-azul-deep);
  color: var(--color-crema);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t-base);
  white-space: nowrap;
  min-height: 48px;
}
.btn:focus-visible {
  outline: 2px solid var(--color-ambar);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--color-ambar);
  color: var(--color-tierra);
}
.btn--primary:hover {
  background: var(--color-ambar-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  border: 1px solid var(--color-ambar);
  color: var(--color-ambar);
  background: transparent;
}
.btn--ghost:hover {
  background: var(--color-ambar);
  color: var(--color-tierra);
}

.btn--ghost-dark {
  border: 1px solid var(--color-tierra);
  color: var(--color-tierra);
  background: transparent;
}
.btn--ghost-dark:hover {
  background: var(--color-tierra);
  color: var(--color-crema);
}

.btn--whatsapp {
  background: #25D366;
  color: #FFFFFF;
}
.btn--whatsapp:hover {
  background: #1DB954;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--t-base), backdrop-filter var(--t-base), border-color var(--t-base);
  border-bottom: 1px solid transparent;
}
.navbar.is-scrolled,
.navbar.is-light {
  background: rgba(28, 17, 8, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: rgba(196, 154, 42, 0.12);
}
.navbar__inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.navbar__brand img {
  height: 38px;
  width: auto;
}
.navbar__brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-crema);
  letter-spacing: 0.05em;
  line-height: 1;
}
.navbar__brand-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-ambar);
  margin-top: 4px;
}
.navbar__menu {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}
.navbar__link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-crema);
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--t-fast);
}
.navbar__link::after {
  content: '';
  position: absolute;
  inset: auto 0 -2px 0;
  height: 1px;
  background: var(--color-ambar);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}
.navbar__link:hover { color: var(--color-ambar); }
.navbar__link:hover::after,
.navbar__link.is-active::after { transform: scaleX(1); }
.navbar__link.is-active { color: var(--color-ambar); }

.navbar__cta { display: inline-flex; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1.5px;
  background: var(--color-crema);
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .navbar__menu {
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    background: var(--color-tierra-deep);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform var(--t-base);
    padding: 2rem;
  }
  .navbar__menu.is-open { transform: translateX(0); }
  .navbar__link { font-size: 1rem; }
  .nav-toggle { display: block; }
  .navbar__cta { display: none; }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--color-crema);
  overflow: hidden;
  isolation: isolate;
  padding-top: var(--nav-height);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(13,10,6,0.25) 0%, rgba(13,10,6,0.6) 60%, rgba(13,10,6,0.85) 100%),
    linear-gradient(90deg, rgba(13,10,6,0.55) 0%, rgba(13,10,6,0.15) 60%, rgba(13,10,6,0) 100%);
}
.hero__inner {
  width: var(--container);
  margin-inline: auto;
  padding: 8rem 0 6rem;
  max-width: 760px;
}
.hero h1 {
  color: var(--color-crema);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 1.1rem 0 1.5rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--color-ambar);
  font-weight: 400;
}
.hero p {
  color: rgba(242, 235, 224, 0.86);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  max-width: 56ch;
  margin-bottom: 2.2rem;
}
.hero__scroll {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(242, 235, 224, 0.6);
}
.hero__scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, rgba(196,154,42,0.6), rgba(196,154,42,0));
  animation: scroll-pulse 2.6s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50%      { opacity: 1; transform: scaleY(1); }
}

/* page hero (sub-pages) */
.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + 5rem) 0 4.5rem;
  background: var(--color-tierra);
  color: var(--color-crema);
  overflow: hidden;
  isolation: isolate;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(0.9);
}
.page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,10,6,0.4) 0%, rgba(28,17,8,0.95) 100%);
}
.page-hero h1 {
  color: var(--color-crema);
  margin-top: 1rem;
}
.page-hero p {
  color: rgba(242, 235, 224, 0.78);
  margin-top: 1.2rem;
  max-width: 60ch;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
}

/* ── Category cards (Home) ──────────────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.category-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  isolation: isolate;
  transition: transform var(--t-base);
}
.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform var(--t-slow);
}
.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(13,10,6,0.05) 0%, rgba(13,10,6,0.55) 55%, rgba(13,10,6,0.92) 100%);
  transition: opacity var(--t-base);
}
.category-card:hover img { transform: scale(1.06); }
.category-card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem 1.6rem 1.7rem;
  color: var(--color-crema);
}
.category-card h3 {
  color: var(--color-crema);
  margin-bottom: 0.5rem;
}
.category-card p {
  color: rgba(242, 235, 224, 0.82);
  font-size: 0.92rem;
  line-height: 1.55;
}
.category-card__arrow {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-ambar);
  transition: gap var(--t-fast);
}
.category-card:hover .category-card__arrow {
  gap: 0.9rem;
}

/* ── Check list (used on Productos page) ────────────────────────────────── */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check-list li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.7rem;
  color: rgba(28, 17, 8, 0.78);
  font-size: 0.96rem;
  line-height: 1.55;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--color-ambar);
  box-shadow: 0 0 0 4px rgba(196, 154, 42, 0.16);
}
.on-dark .check-list li {
  color: rgba(242, 235, 224, 0.84);
}

/* ── Two-column section (image + content) ──────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split--reverse > .split__media { order: 2; }
.split__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-tierra);
}
.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.split__media:hover img { transform: scale(1.04); }
.split__content > .eyebrow { margin-bottom: 1.2rem; }
.split__content > h2 + p,
.split__content > h2 + .lead { margin-top: 1.4rem; }
.split__content .btn-row { margin-top: 2rem; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > .split__media { order: 0; }
}

/* ── Value props ────────────────────────────────────────────────────────── */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.value {
  border-top: 1px solid var(--color-border);
  padding-top: 1.4rem;
}
.bg-tierra .value,
.bg-azul .value,
.bg-azul-deep .value { border-top-color: rgba(196, 154, 42, 0.25); }
.bg-azul .value p,
.bg-azul-deep .value p { color: rgba(242, 235, 224, 0.78); }
.bg-azul .value h3,
.bg-azul-deep .value h3 { color: var(--color-crema); }
.value__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1;
  color: var(--color-ambar);
  margin-bottom: 0.75rem;
  display: block;
}
.value h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.value p {
  font-size: 0.95rem;
  color: rgba(28, 17, 8, 0.7);
  line-height: 1.65;
}
.bg-tierra .value p,
.on-dark .value p { color: rgba(242, 235, 224, 0.74); }
.bg-tierra .value h3,
.on-dark .value h3 { color: var(--color-crema); }

/* ── Product detail page ────────────────────────────────────────────────── */
.product-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.6rem;
  margin: 2.5rem 0;
  padding: 2rem;
  background: var(--color-crema);
  border-radius: var(--radius);
  border: 1px solid var(--color-border-soft);
}
.product-meta__item .label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-madera);
  margin-bottom: 0.5rem;
  display: block;
}
.product-meta__item .value-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--color-tierra);
  line-height: 1.3;
}

.species-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.species {
  padding: 1.4rem 1.5rem;
  background: var(--color-crema);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.species:hover {
  border-color: var(--color-ambar);
  transform: translateY(-2px);
}
.species__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-ambar);
  flex-shrink: 0;
}
.species__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-tierra);
}

/* gallery grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  margin-top: 3rem;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1;
  background: var(--color-tierra);
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow);
}
.gallery__item:hover img { transform: scale(1.05); }

.gallery__item:nth-child(1) { grid-column: span 6; aspect-ratio: 6/5; }
.gallery__item:nth-child(2) { grid-column: span 6; aspect-ratio: 6/5; }
.gallery__item:nth-child(3) { grid-column: span 4; }
.gallery__item:nth-child(4) { grid-column: span 4; }
.gallery__item:nth-child(5) { grid-column: span 4; }
.gallery__item:nth-child(n+6) { grid-column: span 3; }

@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery__item, .gallery__item:nth-child(n) { grid-column: span 1; aspect-ratio: 1; }
}

/* ── List items (special orders) ────────────────────────────────────────── */
.special-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.special-item {
  border: 1px solid var(--color-border);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  background: rgba(242, 235, 224, 0.04);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.bg-crema .special-item,
.bg-crema-light .special-item {
  background: var(--color-white);
  border-color: var(--color-border-soft);
}
.special-item:hover {
  border-color: var(--color-ambar);
  background: rgba(196, 154, 42, 0.04);
}
.special-item__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

/* ── Form ──────────────────────────────────────────────────────────────── */
.form {
  display: grid;
  gap: 1.4rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; }
.field label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-madera);
  margin-bottom: 0.5rem;
}
.field input,
.field textarea,
.field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(28, 17, 8, 0.2);
  padding: 0.7rem 0;
  font-size: 1rem;
  color: var(--color-tierra);
  transition: border-color var(--t-fast);
  border-radius: 0;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--color-ambar);
}
.field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}

.form-note {
  font-size: 0.85rem;
  color: rgba(28, 17, 8, 0.6);
}

/* ── Contact info block ─────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info {
  display: grid;
  gap: 1.6rem;
}
.contact-info__item {
  border-top: 1px solid var(--color-border-soft);
  padding-top: 1.2rem;
}
.contact-info__label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-madera);
  margin-bottom: 0.4rem;
  display: block;
}
.contact-info__value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-tierra);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.contact-info__value:hover { color: var(--color-ambar); }

/* ── Floating WhatsApp button ───────────────────────────────────────────── */
.fab-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4), 0 4px 12px rgba(28, 17, 8, 0.18);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.fab-whatsapp:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.5), 0 6px 16px rgba(28, 17, 8, 0.22);
}
.fab-whatsapp svg { width: 28px; height: 28px; }
.fab-whatsapp::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.5;
  animation: pulse-ring 2.4s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(0.95); opacity: 0.6; }
  80%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  background: var(--color-tierra-deep);
  color: rgba(242, 235, 224, 0.78);
  padding: clamp(3.5rem, 6vw, 5rem) 0 2rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 820px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__inner { grid-template-columns: 1fr; } }

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}
.footer__brand img { height: 38px; }
.footer__brand strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-crema);
}
.footer__about {
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 38ch;
}
.footer__heading {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ambar);
  margin-bottom: 1.2rem;
}
.footer__list { display: grid; gap: 0.7rem; }
.footer__list a {
  font-size: 0.92rem;
  color: rgba(242, 235, 224, 0.78);
  transition: color var(--t-fast);
}
.footer__list a:hover { color: var(--color-ambar); }

.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(196, 154, 42, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(242, 235, 224, 0.55);
}

/* ── Reveal animation (intersection observer) ───────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ── Helpers ────────────────────────────────────────────────────────────── */
.center { text-align: center; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3rem; }
.mx-auto { margin-inline: auto; }

.section-head {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head .eyebrow { justify-content: center; }
.section-head h2 { margin-top: 1rem; }
.section-head p { margin-top: 1.2rem; margin-inline: auto; }

.divider {
  width: 36px;
  height: 1px;
  background: var(--color-ambar);
  margin: 1.5rem 0;
}
.center .divider, .section-head .divider { margin-inline: auto; }

/* ──────────────────────────────────────────────────────────────────────────
   MOBILE OPTIMIZATIONS
   Comprehensive responsive overrides for phones and tablets.
   Append-only — preserves all desktop styles above.
   ─────────────────────────────────────────────────────────────────────── */

/* iOS / Safari quality of life */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
* { -webkit-tap-highlight-color: transparent; }

/* iOS auto-zoom fix: form inputs ≥16px prevents zoom on focus */
@media (max-width: 768px) {
  .field input,
  .field textarea,
  .field select { font-size: 16px; }
}

/* ── Tablet & below (max-width: 768px) ──────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --container: min(1280px, 94vw);
    --container-narrow: min(900px, 94vw);
    --nav-height: 64px;
  }

  /* Typography */
  h1 { font-size: clamp(2rem, 8vw, 3rem); }
  h2 { font-size: clamp(1.6rem, 5.4vw, 2.25rem); }
  h3 { font-size: clamp(1.25rem, 4vw, 1.5rem); }
  .lead { font-size: 1rem; }

  /* Section padding */
  .section { padding: 3.5rem 0; }
  .section-tight { padding: 2.5rem 0; }
  .section-head { margin-bottom: 2rem; }

  /* Navbar — smaller brand */
  .navbar__brand img { height: 32px; width: 32px; }
  .navbar__brand-text { font-size: 1rem; }
  .navbar__brand-text small { font-size: 0.55rem; letter-spacing: 0.22em; }

  /* Hero */
  .hero { min-height: auto; padding-top: var(--nav-height); }
  .hero__inner { padding: 5rem 0 4rem; max-width: 100%; }
  .hero h1 { margin: 0.8rem 0 1.2rem; }
  .hero p { font-size: 1rem; margin-bottom: 1.6rem; }
  .hero__scroll { display: none; }

  /* Page hero (sub-pages) */
  .page-hero { padding: calc(var(--nav-height) + 2.5rem) 0 2.8rem; }
  .page-hero h1 { margin-top: 0.6rem; }
  .page-hero p { font-size: 0.98rem; margin-top: 1rem; }

  /* Buttons & btn-row */
  .btn { padding: 0.85rem 1.3rem; font-size: 0.78rem; min-height: 46px; }
  .btn-row { gap: 0.7rem; }
  .btn-row .btn { flex: 1 1 auto; }

  /* Splits — better breathing room when stacked */
  .split { gap: 1.8rem !important; }
  .split__media { aspect-ratio: 4/3; }

  /* Category cards — slightly less aspect ratio for taller phones */
  .category-grid { gap: 1rem; margin-top: 2rem; }
  .category-card { aspect-ratio: 5/6; }
  .category-card__body { padding: 1.2rem 1.2rem 1.3rem; }
  .category-card h3 { font-size: 1.3rem; }
  .category-card p { font-size: 0.88rem; }

  /* Values section */
  .values { gap: 1.5rem; margin-top: 2rem; }
  .value { padding-top: 1.1rem; }
  .value__num { font-size: 2rem; margin-bottom: 0.5rem; }

  /* Product meta — single column with tighter padding */
  .product-meta {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 1.4rem;
    margin: 2rem 0;
  }
  .product-meta__item .value-text { font-size: 1.1rem; }

  /* Species list */
  .species-list { grid-template-columns: 1fr; gap: 0.7rem; margin-top: 1.5rem; }
  .species { padding: 1rem 1.2rem; }
  .species__name { font-size: 1.05rem; }

  /* Gallery — already 2-col at 720px; reinforce here */
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 2rem; }
  .gallery__item, .gallery__item:nth-child(n) { grid-column: span 1; aspect-ratio: 1; }

  /* Contact info */
  .contact-info__value { font-size: 1.2rem; }

  /* Footer */
  .footer { padding: 3rem 0 1.5rem; }
  .footer__inner { gap: 2rem; }
  .footer__brand img { height: 32px; }
  .footer__brand strong { font-size: 1.05rem; }
  .footer__bottom {
    margin-top: 2rem;
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  /* WhatsApp FAB — smaller and out of nav-toggle's reach */
  .fab-whatsapp { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .fab-whatsapp svg { width: 24px; height: 24px; }

  /* Reveal animations more subtle on mobile (less travel) */
  [data-reveal] { transform: translateY(16px); }

  /* Terms doc */
  .terms-doc h2 { margin-top: 2rem; font-size: 1.3rem; }
  .terms-toc { padding: 1.2rem 1.4rem; margin: 2rem 0 2.4rem; }
}

/* ── Narrow phones (max-width: 480px) ───────────────────────────────────── */
@media (max-width: 480px) {
  :root { --container: 92vw; --container-narrow: 92vw; }

  /* Tighter typography for very narrow screens */
  h1 { font-size: clamp(1.85rem, 8.5vw, 2.4rem); letter-spacing: -0.02em; }
  h2 { font-size: clamp(1.45rem, 6vw, 1.85rem); }

  /* Hero compact */
  .hero__inner { padding: 4rem 0 3.2rem; }
  .hero p { font-size: 0.95rem; }
  .page-hero { padding: calc(var(--nav-height) + 2rem) 0 2.2rem; }

  /* Section padding tighter still */
  .section { padding: 2.8rem 0; }
  .section-tight { padding: 2rem 0; }

  /* Buttons full-width feel when only one in row */
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  /* Exception: when WhatsApp is paired with primary, keep stacked but full-width still ok */

  /* Category cards taller on small phones (better visual hierarchy) */
  .category-card { aspect-ratio: 4/5; }
  .category-card__body { padding: 1rem 1.1rem 1.2rem; }

  /* Gallery 1-column on very small (better tap target & visibility) */
  .gallery { grid-template-columns: 1fr; gap: 6px; }
  .gallery__item { aspect-ratio: 4/3; }

  /* Contact tiny */
  .contact-info__value { font-size: 1.1rem; }
  .contact-info__item { padding-top: 1rem; }

  /* Form */
  .form { gap: 1.1rem; }

  /* WhatsApp FAB even smaller */
  .fab-whatsapp { width: 48px; height: 48px; right: 14px; bottom: 14px; }
  .fab-whatsapp svg { width: 22px; height: 22px; }

  /* Footer single-col tighter */
  .footer__about { font-size: 0.88rem; }
  .footer__list a { font-size: 0.88rem; }

  /* Eyebrow on narrow screens */
  .eyebrow { font-size: 0.7rem; letter-spacing: 0.16em; }
  .eyebrow::before { width: 22px; }

  /* Terms doc body padding */
  .terms-doc p { font-size: 0.95rem; }
}

/* ── Landscape phone (short height) ─────────────────────────────────────── */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; }
  .hero__inner { padding: 4.5rem 0 2.5rem; }
  .hero__scroll { display: none; }
}

/* ── Disable hover effects on touch devices (prevents stuck-hover) ──────── */
@media (hover: none) {
  .category-card:hover img { transform: none; }
  .split__media:hover img { transform: none; }
  .gallery__item:hover img { transform: none; }
  .species:hover { transform: none; }
  .btn--primary:hover, .btn--whatsapp:hover { transform: none; }
  .fab-whatsapp:hover { transform: none; }
}

/* ──────────────────────────────────────────────────────────────────────────
   MOBILE PHASE 2 — collage galleries, lighter typography, premium menu overlay
   Mobile-only. Desktop unchanged.
   ─────────────────────────────────────────────────────────────────────── */

/* ── Typography: reduce body & secondary text on mobile (~2px) ──────────── */
@media (max-width: 768px) {
  body { font-size: 0.92rem; line-height: 1.65; }
  p { font-size: 0.92rem; line-height: 1.65; }
  .lead { font-size: 0.95rem; line-height: 1.6; }
  .category-card p { font-size: 0.8rem; line-height: 1.45; }
  .value p { font-size: 0.85rem; }
  .product-meta__item .label { font-size: 0.65rem; }
  .product-meta__item .value-text { font-size: 1rem; }
  .species__name { font-size: 1rem; }
  .species div p { font-size: 0.78rem; }
  .footer__about { font-size: 0.85rem; line-height: 1.6; }
  .footer__list a { font-size: 0.85rem; }
  .footer__bottom { font-size: 0.74rem; }
  .form-note { font-size: 0.78rem; }
  .check-list li { font-size: 0.88rem; }
  .terms-doc p { font-size: 0.92rem; line-height: 1.7; }
  .contact-info__label { font-size: 0.66rem; }
  .navbar__link { font-size: 0.92rem; }
}

@media (max-width: 480px) {
  body { font-size: 0.9rem; }
  p { font-size: 0.88rem; line-height: 1.6; }
  .lead { font-size: 0.92rem; }
  .category-card p { font-size: 0.74rem; }
  .footer__about,
  .footer__list a { font-size: 0.82rem; }
  .check-list li { font-size: 0.85rem; }
  .terms-doc p { font-size: 0.88rem; }
}

/* ── Galleries: collage / masonry feel on mobile ────────────────────────── */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 1.8rem;
  }
  /* Reset earlier mobile span:1 rules */
  .gallery__item,
  .gallery__item:nth-child(n) { grid-column: auto; aspect-ratio: 1; }
  /* Collage rhythm — group of 5 alternating big/small */
  .gallery__item:nth-child(5n+1) { grid-column: span 4; aspect-ratio: 4/3; }
  .gallery__item:nth-child(5n+2) { grid-column: span 2; aspect-ratio: 4/3; }
  .gallery__item:nth-child(5n+3) { grid-column: span 2; aspect-ratio: 1; }
  .gallery__item:nth-child(5n+4) { grid-column: span 2; aspect-ratio: 1; }
  .gallery__item:nth-child(5n)   { grid-column: span 2; aspect-ratio: 1; }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .gallery__item,
  .gallery__item:nth-child(n) { grid-column: auto; aspect-ratio: 1; }
  .gallery__item:nth-child(5n+1) { grid-column: span 4; aspect-ratio: 16/10; }
  .gallery__item:nth-child(5n+2) { grid-column: span 2; aspect-ratio: 1; }
  .gallery__item:nth-child(5n+3) { grid-column: span 2; aspect-ratio: 1; }
  .gallery__item:nth-child(5n+4) { grid-column: span 2; aspect-ratio: 1; }
  .gallery__item:nth-child(5n)   { grid-column: span 4; aspect-ratio: 16/10; }
}

/* ── Category grid: 2-col compact on mobile ─────────────────────────────── */
@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
    margin-top: 1.8rem;
  }
  .category-card { aspect-ratio: 3/4; }
  .category-card__body { padding: 0.85rem 0.9rem 1rem; }
  .category-card h3 { font-size: 1rem; line-height: 1.2; margin-bottom: 0.3rem; }
  .category-card p { font-size: 0.75rem; line-height: 1.4; }
  .category-card__arrow { font-size: 0.6rem; margin-top: 0.55rem; letter-spacing: 0.16em; gap: 0.35rem; }
}

@media (max-width: 480px) {
  .category-grid { gap: 0.55rem; }
  .category-card { aspect-ratio: 4/5; }
  .category-card h3 { font-size: 0.92rem; }
  .category-card p { font-size: 0.7rem; line-height: 1.35; }
  .category-card__body { padding: 0.7rem 0.75rem 0.85rem; }
}

/* ── Species list: compact 2-col on tablet, 1-col on phone ──────────────── */
@media (max-width: 768px) {
  .species-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
  }
  .species { padding: 0.85rem 1rem; gap: 0.7rem; }
  .species__dot { width: 9px; height: 9px; }
}

@media (max-width: 480px) {
  .species-list { grid-template-columns: 1fr; }
  .species { padding: 0.8rem 1rem; }
}

/* ── Mobile menu overlay: full-screen dark premium look ─────────────────── */
@media (max-width: 960px) {
  .navbar__menu {
    /* Cover full screen instead of starting below navbar */
    inset: 0;
    padding: calc(var(--nav-height) + 1.5rem) 2rem 2rem;
    background: rgba(13, 10, 6, 0.985);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    backdrop-filter: saturate(180%) blur(24px);
    gap: 1.6rem;
    align-items: flex-start;
    justify-content: flex-start;
  }
  /* Force navbar fully dark while menu is open */
  .navbar:has(.navbar__menu.is-open) {
    background: var(--color-tierra-deep);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom-color: rgba(196, 154, 42, 0.18);
  }
  /* Brand & toggle stay above the menu surface */
  .navbar__brand,
  .nav-toggle { position: relative; z-index: 1; }
  /* Premium link sizing inside the overlay */
  .navbar__menu .navbar__link {
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: none;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(196, 154, 42, 0.12);
    width: 100%;
  }
  .navbar__menu .navbar__link:last-of-type { border-bottom: none; }
}

/* Fallback for browsers without :has() — same effect via .is-open helper */
@media (max-width: 960px) {
  .navbar__menu.is-open ~ * .navbar { background: var(--color-tierra-deep); }
}
