:root {
  --crema: #fbf4e7;
  --crema-2: #f2eadc;
  --achiote: #a8341f;
  --achiote-dark: #7a2416;
  --tostado: #c9922f;
  --carbon: #221a14;
  --carbon-2: #e9ddc9;
  --text-muted: #6a5c48; /* 7a6c57*/
  --f-display: "Playfair Display", serif;
  --f-title: "Fraunces", serif;
  --f-body: "Manrope", sans-serif;
  --f-nostros: "Cormorant Garamond", serif;
}
html {
  scroll-behavior: smooth;
}
#inicio,
#productos,
#nosotros,
#contacto {
  scroll-margin-top: var(--nav-height, 80px);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--f-body);
  background: var(--crema);
  color: var(--carbon);
  line-height: 1.6;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4 {
  font-family: var(--f-title);
  font-weight: 700;
}
.hero h1 {
  font-family: var(--f-display);
}
a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
img {
  max-width: 100%;
  display: block;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* NAVBAR */
nav {
  font-family: var(--f-title);
  background: var(--crema);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px; /* altura fija del navbar, ya no depende del contenido */
  padding: 0; /* quita el padding vertical que tenías antes */
}
.logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
  margin: -13px 0; /* "compensa" el exceso para que no empuje la barra */
}

.logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 23px;
  letter-spacing: 0.5px;
  color: var(--tostado);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--crema);
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: #000;
  font-weight: 500;
}
.nav-links a:hover {
  color: #555;
}
.btn-wa-nav {
  background: var(--achiote);
  color: var(--crema);
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13.5px;
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--carbon);
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) {
  background: var(--carbon);
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  background: var(--carbon);
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  background: var(--carbon);
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--carbon-2);

  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.nav-mobile.open {
  max-height: 320px;
  padding: 16px 24px 24px;
}
.nav-mobile a {
  color: #555;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 15px;
}
.nav-mobile .btn-whatsapp {
  color: var(--tostado);
  font-weight: 900;
  border-bottom: none;
}

/* HERO */
.hero {
  position: relative;
  height: 92vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-color: #221a14; /* respaldo por si la imagen no carga */
  background:
    linear-gradient(
      180deg,
      rgba(20, 15, 10, 0.85) 0%,
      rgba(20, 15, 10, 0.65) 100%
    ),
    url("hero.webp") center 20% / cover no-repeat;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 0 24px;
  margin: 0 auto;
  width: 100%;
}
.eyebrow {
  color: var(--tostado);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 700;
}
.hero h1 {
  font-size: 58px;
  line-height: 1.1;
  margin-bottom: 22px;
  color: var(--crema);
}
.hero h1 em {
  font-style: italic;
  color: var(--tostado);
}
.hero p {
  color: #e6dcc9;
  font-size: 17px;
  max-width: 440px;
  margin-bottom: 34px;
  font-weight: 400;
}
.hero-delivery {
  color: var(--tostado);
  font-size: 14px;
  font-weight: 600;
  margin-top: -20px;
  margin-bottom: 30px;
}
.delivery-icon {
  display: inline-flex;
  vertical-align: middle;
  margin-right: 4px;
}
.delivery-icon svg {
  display: block;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--achiote);
  color: var(--crema);
  padding: 15px 28px;
  border-radius: 6px;
  font-weight: 600;
}
.btn-ghost {
  border: 1px solid var(--crema);
  color: var(--crema);
  padding: 15px 28px;
  border-radius: 6px;
  font-weight: 600;
}

.section-title {
  font-size: 36px;
  margin-bottom: 12px;
  font-weight: 100;
}
.section-sub {
  color: var(--text-muted);
  max-width: 800px;
  margin-bottom: 44px;
}
.section {
  padding: 30px 0 90px 0;
  font-weight: 100;
  background: var(--crema-2);
}

/* TARJETAS DE PRODUCTO */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card-white {
  background-color: #fdf8ef;
  border-radius: 22px;
  padding: 14px 14px 24px;
  box-shadow: 0 2px 12px rgba(34, 26, 20, 0.07);
  display: flex;
  flex-direction: column;
}
.card-white-imgwrap {
  border-radius: 16px;
  overflow: hidden;
}
.card-white-imgwrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-white-info {
  padding: 20px 6px 0;
}
.card-white-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.card-white h3 {
  font-size: 19px;
  color: #6d614e;
}
.card-white-price {
  background: var(--crema-2);
  color: var(--achiote-dark);
  font-weight: 700;
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 14px;
  white-space: nowrap;
}
.card-white p {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-bottom: 18px;
}
.container-btn {
  display: flex;
  align-items: center;
  justify-content: start;
}
.card-white .btn-order {
  display: flex;
  text-align: center;
  background: var(--achiote);
  color: var(--crema);
  padding: 5px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
}
.card-white .btn-order:hover {
  background: var(--achiote-dark);
}

/* --------------------------------- */

/* NOSOTROS */
.nosotros {
  background-color: #e9ddc9;
  color: var(--carbon);
}
.nos-top {
  font-family: var(--f-nostros);
  display: flex;
  gap: 50px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.nos-text h2 {
  font-family: var(--f-nostros);
  color: var(--carbon);
  font-size: 33px;
  margin-bottom: 16px;
}

.nos-text {
  font-family: var(--f-nostros);
  flex: 1;
  min-width: 320px;
}
.nos-text .eyebrow {
  color: var(--achiote-dark);
  font-size: 15px;
}

.nos-text p {
  color: var(--text-muted);
  font-size: 20px;
  max-width: 480px;
  font-weight: 400;
}
.nos-img {
  flex: 1;
  min-width: 280px;
}
.nos-img img {
  opacity: 1;
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(34, 26, 20, 0.15);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  background: #fbf4e7;
  padding: 28px 24px;
  border-radius: 10px;
  border-left: 3px solid var(--achiote);
  box-shadow: 0 1px 4px rgba(34, 26, 20, 0.08);
}
.why-card h3 {
  font-family: var(--f-nostros);
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--carbon);
}
.why-card p {
  font-family: var(--f-nostros);
  font-size: 17px;
  color: var(--text-muted);
  font-weight: 400;
}

#nosTitle,
#nosDesc,
#nosImg {
  transition: opacity 0.5s ease;
}
.nos-fade {
  opacity: 0;
}

.nos-dots {
  display: flex;
  margin-bottom: 10px;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
}
.nos-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(34, 26, 20, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition:
    background 0.3s ease,
    width 0.3s ease;
}
.nos-dots button.active {
  background: var(--achiote);
  width: 22px;
  border-radius: 4px;
}
/* CONTACTO */
.contact-section {
  background: var(--crema-2);
}
.contact-head {
  text-align: center;
  margin-bottom: 44px;
}
.contact-head h2 {
  font-size: 33px;
  margin-bottom: 12px;
  font-weight: 100;
}
.contact-head p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-weight: 400;
}
.contact-grid3 {
  text-align: center;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fbf4e7;
  border-left: 3px solid var(--achiote);

  border-radius: 14px;
  padding: 30px 26px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.contact-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 100;
}
.contact-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 400;
}
.contact-card .val {
  display: inline-block;
  font-weight: 700;
  color: var(--achiote);
  font-size: 15px;
  font-family: var(--f-body);
}
.contact-mini-info {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.mini-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}
.mini-item svg {
  color: var(--achiote);
  flex-shrink: 0;
}
.mini-item span {
  font-size: 14px;
  font-weight: 600;
}
@media (max-width: 600px) {
  .contact-mini-info {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
}
footer {
  background: var(--carbon);
  color: #c9bba5;
  padding: 36px 0;
}
.foot-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13.5px;
}
.foot-inner .logo {
  font-size: 19px;
}

/* ANIMACIONES AL HACER SCROLL */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .prod-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .why-grid,
  .contact-grid3 {
    grid-template-columns: 1fr;
  }
  .prod-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    height: 90vh;
    min-height: 460px;
  }

  .hero h1 {
    font-size: 36px;
  }
  .hero p {
    font-size: 15.5px;
  }

  .nav-links,
  .btn-wa-nav {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-mobile {
    display: flex;
  }
  .section {
    padding: 64px 0;
    font-weight: 100;
  }
  .section-title {
    font-size: 28px;
  }
  .nos-text {
    min-height: 320px; /* ajusta este número probando con tu texto más largo */
  }
  .wrap {
    padding: 0 36px;
  }
  .nosotros {
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.cert-strip {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.cert-item {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  width: 110px;
}
.cert-item img {
  width: 100%;
  border-radius: 6px;
}
