/* ============================================================
   HERMANAS FELICES · hoja de estilo principal
   Los colores, tamaños y espacios salen de la captura de la web
   original, guardados como tokens para poder ajustarlos en un sitio.
   ============================================================ */

/* --- Tipografías ------------------------------------------------
   Serif de alto contraste para los títulos, Work Sans para el texto.
   La familia de títulos se llama "--display" para no depender del
   nombre de un archivo: si mañana llega la licencia de Kulachat Serif
   basta con cambiar el src de estos @font-face. */
/* Kulachat Serif (Jipatype, uso personal) — la serif de marca que pidió el
   cliente. Sólo existe el peso Regular, así que se declara un rango para que
   el navegador no invente negritas sintéticas. */
@font-face {
  font-family: "Display Serif";
  src: url("../assets/fonts/kulachat-serif-regular.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../assets/fonts/worksans-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Work Sans";
  src: url("../assets/fonts/worksans-var-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Tokens ---------------------------------------------------- */
:root {
  /* colores de marca */
  --forest: #041309;
  --chip-forest: #172117;
  --pine: #202e20;
  --intro-bg: #172118;
  --cream: #ecd1c6;
  --cream-soft: #edd1c7;
  --brown: #31180d;
  --clay: #5e1615;
  --blue: #bddaef;
  --blue-soft: #b4d4eb;
  --grey: #efefef;
  --ink: #011408;

  /* tipografía */
  --serif: "Display Serif", "Kulachat Serif", Georgia, serif;
  --sans: "Work Sans", Arial, sans-serif;

  /* medidas maestras (se escalan con el ancho de la página) */
  --gutter: 4.948vw;      /* 71.25px en 1440 */
  --card-gap: 1.089vw;    /* 15.675px en 1440 */
  --h1: 4.354vw;          /* 62.7px en 1440 */
}

/* --- Base ------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: #fff;
  color: var(--brown);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Contenedor ------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* --- Botones --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 12px;
  border: 1px solid #fff;
  background: var(--pine);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn:hover {
  background: var(--chip-forest);
}
.btn--outline {
  padding: 11.4px 34.2px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--pine);
  font-size: 12px;
  font-weight: 500;
  line-height: 19.2px;
  text-align: center;
}
.btn--outline:hover {
  background: var(--ink);
  color: var(--cream);
}

/* ============================================================
   BARRA SUPERIOR
   ============================================================ */
.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 1000;
}
.nav__row {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 40px 32px 0;
}
.nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 56px;
  height: 24px;
  padding: 0;
}
.nav__burger span {
  display: block;
  width: 56px;
  height: 1px;
  background: #fff;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease, background 0.25s ease;
  transform-origin: center;
}
.nav.is-open .nav__burger span {
  background: var(--brown);
}
.nav.is-open .nav__burger span:nth-child(1) {
  transform: translateY(11.5px) rotate(45deg);
}
.nav.is-open .nav__burger span:nth-child(2) {
  opacity: 0;
}
.nav.is-open .nav__burger span:nth-child(3) {
  transform: translateY(-11.5px) rotate(-45deg);
}
.nav__cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 24px;
  color: #fff;
}
.nav__cart svg {
  width: 24px;
  height: 24px;
}
.nav__count {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 17px;
  margin-left: -8px;
  padding: 0 4px;
  border-radius: 90px;
  background: #fff;
  color: var(--brown);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.06px;
  z-index: 1;
}
.nav__brand {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 88px;
  height: 88px;
  transition: opacity 0.3s ease;
}
.nav__brand.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Sello de marca (dibujo propio) */
.seal {
  width: 100%;
  height: 100%;
}

/* ============================================================
   MENÚ LATERAL
   ============================================================ */
.menu {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1002;
  width: 475px;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: 16px;
  background: var(--cream);
  color: var(--brown);
  display: none;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.menu::-webkit-scrollbar {
  display: none;
}
.menu.is-open {
  display: flex;
  animation: menu-in 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes menu-in {
  from {
    transform: translateX(-101%);
  }
  to {
    transform: translateX(0);
  }
}
.menu__top {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 88px;
}
/* Bloque algo más oscuro en la esquina: la X y el carrito, como el original */
.menu__controls {
  position: absolute;
  left: -16px;
  top: -16px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #e0c6bb;
}
.menu__close {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--clay);
}
.menu__close svg {
  width: 18px;
  height: 18px;
}
.menu__cart {
  position: relative;
  display: flex;
  align-items: center;
  width: 24px;
  height: 24px;
  color: var(--clay);
}
.menu__cart svg {
  width: 24px;
  height: 24px;
}
.menu__count {
  position: absolute;
  left: 16px;
  top: -4px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 1000px;
  background: var(--brown);
  color: var(--cream);
  font-size: 8px;
  line-height: 14px;
  text-align: center;
}
.menu__brand {
  width: 88px;
  height: 88px;
}
.menu__links {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px 0;
}
.menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
  line-height: 60px;
  color: var(--clay);
  transition: color 0.2s ease;
}
.menu__link:hover,
.menu__link.is-current {
  color: var(--brown);
}
.menu__arrow {
  width: 94px;
  height: 61px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(-8px);
}
.menu__link:hover .menu__arrow,
.menu__link.is-current .menu__arrow {
  opacity: 1;
  transform: translateX(0);
}
.menu__divider {
  height: 1px;
  background: rgba(49, 24, 13, 0.2);
}
.menu__feature {
  margin-top: 40px;
  padding: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.menu__feature-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.menu__feature-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.menu__feature-name {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--brown);
}
.menu__feature-desc {
  font-size: 12px;
  line-height: 18px;
  color: var(--brown);
}
.menu__feature-media {
  width: 152px;
  height: 152px;
  flex: 0 0 152px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #25311f, #0b1710);
}
.menu__feature-media img {
  height: 120px;
  width: auto;
}
.menu__feature-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 16px;
  box-shadow: inset 0 1px 0 #d7d7d7;
}
.menu__socials {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  padding-top: 40px;
}
.social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 90px;
  background: rgba(231, 231, 231, 0.4);
  color: var(--brown);
}
.social svg {
  width: 24px;
  height: 24px;
}

/* ============================================================
   CARRITO
   ============================================================ */
.cart {
  position: fixed;
  inset: 0;
  z-index: 1006;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.9);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cart.is-open {
  visibility: visible;
  opacity: 1;
}
.cart__panel {
  display: flex;
  flex-direction: column;
  width: 435px;
  max-width: 100%;
  height: 100%;
  padding: 40px 32px 16px;
  background: #fff;
  color: var(--chip-forest);
  overflow: hidden auto;
  transform: translateX(30px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.cart.is-open .cart__panel {
  transform: translateX(0);
}
.cart__head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.cart__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--clay);
}
.cart__close svg {
  width: 18px;
  height: 18px;
}
.cart__title {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
  color: var(--pine);
}
.cart__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding-top: 24px;
}
.cart__empty-title {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 32px;
  font-weight: 400;
  color: var(--chip-forest);
}
.cart__art {
  width: 100%;
  display: grid;
  place-items: center;
}
.cart__art svg {
  width: 62%;
  max-width: 300px;
  height: auto;
}

/* Botón flotante del carrito */
.pinned-cart {
  position: fixed;
  right: 48px;
  bottom: 88px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px 16px;
  border-radius: 1000px;
  background: #f5f5f5;
  color: var(--brown);
  box-shadow: 0 6px 20px rgba(4, 19, 9, 0.18);
}
.pinned-cart svg {
  width: 24px;
  height: 24px;
}
.pinned-cart__count {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  margin-left: -7px;
  padding: 2px 4px;
  border-radius: 24px;
  background: var(--brown);
  color: var(--cream);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
}

/* ============================================================
   PORTADA (hero)
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 483px;
  overflow: hidden;
  background: var(--forest);
  color: var(--cream);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--forest);
  background-image: radial-gradient(120% 90% at 78% 18%, rgba(107, 128, 92, 0.45) 0%, rgba(24, 34, 24, 0) 62%),
    linear-gradient(160deg, rgba(10, 21, 13, 0.55) 0%, rgba(4, 19, 9, 0.8) 100%),
    url("../assets/img/photos/hero.webp");
  background-size: cover, cover, cover;
  background-position: center, center, center 52%;
  background-repeat: no-repeat;
}
/* Velo verde sobre la foto: da contraste al texto crema sin apagar la foto */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 19, 9, 0.82) 0%, rgba(4, 19, 9, 0.5) 55%, rgba(4, 19, 9, 0.22) 100%),
    rgba(24, 34, 24, 0.28);
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 var(--gutter) 72px;
}
.hero__eyebrow {
  font-size: 19.95px;
  line-height: 32px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--cream);
}
.hero__title {
  font-family: var(--serif);
  font-size: var(--h1);
  font-weight: 400;
  line-height: 1.2;
  color: var(--cream);
  /* el original parte el titular en una columna de 446 px a 1440 */
  max-width: 446px;
}
.hero__title span {
  display: block;
}
.hero--center .hero__inner {
  text-align: center;
}
.hero--center .hero__title {
  max-width: none;
}

/* ============================================================
   LISTADO DE PRODUCTOS
   ============================================================ */
.listing {
  background: var(--forest);
}
.listing__inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 var(--gutter) var(--gutter);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
  align-items: stretch;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  background: #fff;
  position: relative;
}
.card__media {
  position: relative;
  height: 250px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(75% 75% at 50% 38%, rgba(88, 110, 74, 0.55) 0%, rgba(24, 34, 24, 0) 70%),
    linear-gradient(180deg, #1c281c 0%, #101b10 100%);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.card__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card__title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.31;
  color: var(--brown);
  overflow: hidden;
}
.card__desc {
  font-size: 19.95px;
  line-height: 29px;
  max-height: 58px;
  overflow: hidden;
  color: var(--brown);
}
.card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 16px;
  box-shadow: inset 0 1px 0 #d7d7d7;
  margin-top: auto;
}
.price {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: -0.36px;
  color: var(--pine);
}
.price__from {
  display: block;
  font-size: 8px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  color: var(--chip-forest);
}
.price__group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  align-items: flex-start;
}
.btn-discover {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 125px;
  max-width: 125px;
  min-height: 38px;
  padding: 12px;
  background: var(--pine);
  color: var(--cream);
  border: 1px solid #fff;
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
  transition: background 0.25s ease;
}
.card:hover .btn-discover {
  background: var(--chip-forest);
}
.badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
  padding: 12px;
  border-radius: 90px;
  border: 1px solid #fff;
  background: var(--grey);
  color: var(--chip-forest);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.badge__info {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}
.info {
  display: grid;
  place-items: center;
  margin-left: auto;
  padding: 10px;
  color: var(--chip-forest);
}
.info img {
  width: 16px;
  height: 16px;
}

/* Aviso botánico (al pulsar la ⓘ) */
.note {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  width: 325px;
  max-width: 78vw;
  display: none;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(4, 19, 9, 0.18);
  color: #000;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  z-index: 5;
}
.note.is-open {
  display: flex;
}
.note__close {
  flex: 0 0 12px;
  font-size: 12px;
  line-height: 1;
  color: var(--clay);
}

/* ============================================================
   BARRA DE FILTROS (fija abajo)
   ============================================================ */
.filterbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  padding: 24px 56px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.filterbar__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 8px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26.8px;
  padding: 5px 12px;
  border: 0 solid var(--chip-forest);
  border-radius: 1000px;
  background: var(--pine);
  color: #fff;
  font-size: 12px;
  line-height: 16.8px;
  letter-spacing: -0.06px;
  transition: background 0.2s ease, color 0.2s ease;
}
.chip:hover {
  background: var(--chip-forest);
}
.chip--idle {
  padding: 4px 12px;
  border: 1px solid var(--chip-forest);
  background: #fff;
  color: var(--pine);
}
.chip--idle:hover {
  background: var(--grey);
  color: var(--pine);
}
.filterbar__sortwrap {
  position: relative;
  margin-left: auto;
}
.sort-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  border: 1px solid var(--chip-forest);
  border-radius: 1000px;
  color: var(--chip-forest);
  font-size: 12px;
  line-height: 16.8px;
  background: transparent;
}
.sort-toggle svg {
  width: 12px;
  height: 12px;
}
.sortpop {
  position: absolute;
  right: 0;
  bottom: 36.8px;
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  width: 390px;
  max-width: 90vw;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(4, 19, 9, 0.16);
}
.sortpop.is-open {
  display: flex;
}
.filterbar__toggle {
  display: none;
  align-items: center;
  padding: 8px 16px;
  border-radius: 1000px;
  color: var(--chip-forest);
  font-size: 12px;
  font-weight: 600;
  background: transparent;
}

/* ============================================================
   SECCIÓN EDITORIAL (intro + guía)
   ============================================================ */
.intro {
  position: relative;
  padding: 88px 56px;
  background: var(--intro-bg);
  color: var(--cream-soft);
  overflow: hidden;
}
.intro__glow {
  position: absolute;
  left: -160px;
  top: 40%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(189, 218, 239, 0.16), rgba(189, 218, 239, 0));
  pointer-events: none;
}
.intro__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.intro__title {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
  font-weight: 400;
  max-width: 850px;
}
.intro__copy {
  font-size: 18px;
  line-height: 27px;
  max-width: 850px;
}
.intro__copy p + p {
  margin-top: 8px;
}
.guides {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 21px;
}
.guide {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.guide__art {
  width: 153px;
  height: 153px;
  object-fit: cover;
}
.guide__title {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 36px;
  font-weight: 300;
  color: var(--cream-soft);
}
.guide__copy {
  font-size: 16px;
  line-height: 20px;
}
.guide__copy a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   SECCIÓN CALIDAD (fondo azul + collage)
   ============================================================ */
.quality {
  position: relative;
  display: grid;
  grid-template-columns: 316px minmax(0, 1fr);
  height: 964px;
  background: var(--blue);
  overflow: hidden;
}
.quality__text {
  width: 316px;
  margin: 70px 0 0 53px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  align-self: start;
  color: #011408;
}
.quality__title {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 400;
  line-height: 1.1;
}
.quality__copy {
  font-size: 20px;
  line-height: 27px;
}
.quality__grid {
  position: relative;
  display: block;
  min-height: 964px;
}
.quality__fig {
  position: absolute;
  overflow: hidden;
  background: linear-gradient(150deg, #6f8a63, #24321f);
}
.quality__fig::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(24, 34, 24, 0.12);
  pointer-events: none;
}
.quality__fig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.quality__fig--1 {
  left: 6.5%;
  top: 367px;
  width: 28.6%;
  height: 247px;
  background: url("../assets/img/photos/calidad-1.webp") center / cover no-repeat;
}
.quality__fig--2 {
  left: 36.4%;
  top: 72px;
  width: 18.7%;
  height: 295px;
  background: url("../assets/img/photos/calidad-2.webp") center / cover no-repeat;
}
.quality__fig--3 {
  left: 56.5%;
  top: 72px;
  width: 38.4%;
  height: 807px;
  background: url("../assets/img/photos/calidad-3.webp") center / cover no-repeat;
}
.quality__fig--4 {
  left: 1.5%;
  top: 536px;
  width: 29.6%;
  height: 328px;
  border-radius: 50%;
  background: url("../assets/img/photos/calidad-4.webp") center / cover no-repeat;
}

/* ============================================================
   PIE DE PÁGINA
   ============================================================ */
.site-footer {
  position: relative;
  overflow: hidden;
  background-color: var(--blue);
  background-image: url("../assets/img/photos/footer.webp");
  background-position: center 40%;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--cream-soft);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(4, 19, 9, 0.55) 0%, rgba(4, 19, 9, 0.78) 45%, rgba(4, 19, 9, 0.94) 100%),
    radial-gradient(60% 50% at 70% 10%, rgba(140, 160, 120, 0.18), rgba(4, 19, 9, 0) 70%);
}
.site-footer__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.site-footer__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 33px;
  padding: 147px 56px 40px;
}
.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: 464px;
  padding-top: 40px;
}
.site-footer__link {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 51px;
  font-weight: 400;
  color: var(--cream-soft);
  transition: opacity 0.25s ease;
  width: fit-content;
}
.site-footer__link:hover {
  opacity: 0.7;
}
.site-footer__link.is-current {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.site-footer__copy {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 300;
  line-height: 32px;
}
.site-footer__socials {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.site-footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.site-footer__logo {
  width: 183px;
  height: 183px;
}
.site-footer__secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-end;
  font-size: 16px;
  font-weight: 700;
  line-height: 32px;
}

/* ============================================================
   PÁGINA: NUESTRA HISTORIA
   ============================================================ */
.story {
  background: var(--forest);
  color: var(--cream);
}
.story__block {
  display: grid;
  grid-template-columns: 641px 1fr;
  gap: var(--card-gap);
  padding: 88px var(--gutter);
  max-width: 1920px;
  margin: 0 auto;
  align-items: start;
}
.story__media {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: linear-gradient(160deg, #33452f, #0d1a10);
}
.story__media--inset {
  height: 220px;
  margin-top: 16px;
}
.story__media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.story__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 640px;
}
.story__title {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1.1;
  font-weight: 400;
}
.story__copy {
  font-size: 18px;
  line-height: 27px;
  color: var(--cream-soft);
}
.story__copy p + p {
  margin-top: 16px;
}

/* ============================================================
   PÁGINA: NOCHES DE VELAS
   ============================================================ */
.nights {
  background: var(--intro-bg);
  color: var(--cream-soft);
}
.nights__hero {
  padding: 196px 56px 96px;
  text-align: center;
}
.nights__hero-title {
  font-family: var(--serif);
  font-size: clamp(48px, 12.5vw, 120px);
  line-height: 1;
  font-weight: 400;
  color: var(--cream);
}
.nights__jump {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
}
.nights__jump a {
  padding: 8px 16px;
  border: 1px solid rgba(236, 209, 198, 0.55);
  border-radius: 1000px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nights__section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 56px;
  align-items: start;
  max-width: 1920px;
  margin: 0 auto;
}
.nights__section h2 {
  font-family: var(--serif);
  font-size: 71px;
  line-height: 1.05;
  font-weight: 400;
}
.nights__section p {
  font-size: 16px;
  line-height: 26px;
  max-width: 701px;
}
.nights__wide {
  height: 520px;
  margin: 0 56px 56px;
  overflow: hidden;
  background: linear-gradient(150deg, #3c5236, #0a1410);
}
.nights__pink {
  background: var(--cream);
  color: var(--brown);
  padding: 104px 56px;
}
.nights__pink h2 {
  font-family: var(--serif);
  font-size: 71px;
  line-height: 1.05;
  font-weight: 400;
  max-width: 900px;
}
.nights__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.nights__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.55);
}
.nights__card h3 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
}
.nights__invite {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 88px 56px 204px;
  background: var(--blue);
  color: var(--chip-forest);
  align-items: center;
}
.nights__invite h2 {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1.1;
  font-weight: 400;
}
.nights__invite p {
  font-size: 18px;
  line-height: 27px;
  margin-top: 24px;
  max-width: 620px;
}
.nights__collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.nights__collage span {
  display: block;
  aspect-ratio: 1;
  background: linear-gradient(150deg, #6f8a63, #24321f);
}

/* ============================================================
   PÁGINA: CATÁLOGO
   ============================================================ */
.catalogue {
  display: grid;
  grid-template-columns: 475px 1fr;
  min-height: 100vh;
}
.catalogue__aside {
  background: var(--cream);
  color: var(--brown);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.catalogue__aside h2 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
}
.catalogue__cats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
}
.catalogue__cats a {
  padding: 8px 0;
  border-bottom: 1px solid rgba(49, 24, 13, 0.18);
}
.catalogue__main {
  background: #fff;
  color: var(--brown);
}
.catalogue__hero {
  padding: 140px 56px 56px;
}
.catalogue__hero h1 {
  font-family: var(--serif);
  font-size: 88px;
  line-height: 1;
  font-weight: 400;
  color: var(--brown);
}
.catalogue__section {
  padding: 56px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.catalogue__section h2 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
}
.catalogue__rows {
  display: grid;
  gap: 8px;
}
.catalogue__row {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  padding: 24px;
  background: #fff;
  border-bottom: 1px solid rgba(49, 24, 13, 0.12);
  align-items: center;
}
.catalogue__row h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}
.catalogue__row p {
  font-size: 12px;
  line-height: 18px;
  margin-top: 8px;
}
.catalogue__row .media {
  height: 180px;
  overflow: hidden;
  background: linear-gradient(160deg, #1c281c, #101b10);
  display: grid;
  place-items: center;
}
.catalogue__row .media img {
  height: 74%;
}
.catalogue__dark {
  background: var(--forest);
  color: var(--cream-soft);
  padding: 88px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.catalogue__dark h2 {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1.05;
  font-weight: 400;
}
.catalogue__dark p {
  font-size: 16px;
  line-height: 26px;
}

/* ============================================================
   PÁGINA: PAGO
   ============================================================ */
.checkout {
  background: #fff;
  padding: 140px 0 72px;
  color: var(--chip-forest);
}
.checkout__wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  width: min(1152px, 100% - 48px);
  margin: 0 auto;
  align-items: start;
}
.checkout__col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.panel {
  background: #fff;
  border: 1px solid #eaebea;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: #f7f7f7;
  border-bottom: 1px solid #eaebea;
}
.panel__head h2,
.panel__head h3 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
}
.panel__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.field label {
  font-size: 12px;
  color: var(--chip-forest);
}
.field input,
.field select {
  height: 40px;
  padding: 0 10px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 14px;
  color: #000;
  background: #fff;
}
.field input::placeholder {
  color: #9a9a9a;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}
.summary__row--total {
  font-weight: 700;
  padding-top: 12px;
  border-top: 1px solid #eaebea;
}
.checkout__note {
  font-size: 12px;
  color: #6b6b6b;
  line-height: 18px;
}

/* ============================================================
   MEDIA QUERIES
   ============================================================ */

/* --- portátiles y tabletas horizontales --- */
@media (max-width: 1279px) {
  .catalogue {
    grid-template-columns: 320px 1fr;
  }
  .catalogue__hero h1 {
    font-size: 64px;
  }
}

/* --- tabletas --- */
@media (max-width: 991px) {
  :root {
    --gutter: 16px;
    --h1: 40px;
  }
  .nav__row {
    padding: 32px 24px 0;
  }
  .nav__brand {
    top: 16px;
    right: 16px;
    width: 72px;
    height: 72px;
  }
  .hero {
    min-height: 351px;
  }
  .hero__inner {
    padding: 0 16px 40px;
  }
  .hero__eyebrow {
    font-size: 12px;
    line-height: 32px;
  }
  .hero__title {
    font-size: 56px;
    line-height: 1.05;
    max-width: 34ch;
  }
  .hero--center .hero__title {
    font-size: 48px;
    line-height: 1.1;
  }
  /* El listado sube 72 px sobre el hero: así el original deja ver el verde
     oscuro por los laterales mientras las tarjetas ya están empezando. */
  .listing {
    position: relative;
    z-index: 2;
    margin-top: -72px;
  }
  .listing__inner {
    padding: 0 16px 40px;
  }
  /* En tableta y móvil las fichas son horizontales y a ancho completo,
     como en el original: texto a la izquierda e imagen a la derecha. */
  .grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 184px;
    column-gap: 16px;
    gap: 12px;
    padding: 16px;
    min-height: 0;
  }
  .card__media {
    grid-column: 2;
    grid-row: 1 / span 2;
    height: 100%;
    min-height: 220px;
    margin: 0;
  }
  .card__media img {
    height: 100%;
  }
  .card__text {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .card__title {
    font-size: 24px;
    line-height: 1.3;
  }
  .card__desc {
    font-size: 18px;
    line-height: 27px;
    max-height: none;
  }
  .card__row {
    grid-column: 1;
    padding-top: 12px;
  }
  .btn-discover {
    width: 155px;
    max-width: 155px;
  }
  .filterbar {
    padding: 16px 24px;
  }
  .filterbar__inner {
    flex-wrap: wrap;
    padding-left: 8px;
  }
  .intro {
    padding: 88px 24px;
  }
  .intro__title {
    font-size: 56px;
    line-height: 1;
  }
  /* En tableta y móvil cada guía va apilada: imagen arriba y texto
     debajo, una por fila, como en el original. */
  .guides {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .guide {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .guide__art {
    width: 153px;
    height: 153px;
  }
  .guide__title {
    font-size: 24px;
    line-height: 1.3;
  }
  .guide__copy {
    font-size: 18px;
    line-height: 27px;
  }
  .quality {
    height: auto;
    padding: 40px 0 0;
    background: var(--blue-soft);
  }
  .quality__fig--3 {
    height: 700px;
  }
  .quality__fig--2 {
    height: 340px;
  }
  .quality__fig--1 {
    height: 352px;
  }
  .quality__fig--4 {
    height: 360px;
  }
  .quality__text {
    position: static;
    width: auto;
    margin: 0;
    padding: 0 16px;
    gap: 24px;
  }
  .quality__title {
    font-size: 56px;
    line-height: 1.1;
  }
  .quality__copy {
    font-size: 18px;
    line-height: 27px;
  }
  .quality__fig {
    position: static;
    width: auto;
    height: auto;
    aspect-ratio: 1;
    border-radius: 0;
  }
  .quality {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .quality__grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
    margin: 0;
    padding-top: 24px;
  }
  .quality__fig--3 {
    grid-column: auto;
    grid-row: auto;
  }
  .site-footer {
    background-color: var(--blue-soft);
  }
  .site-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 88px 24px;
  }
  .site-footer__left,
  .site-footer__right {
    display: contents;
  }
  .site-footer__logo {
    order: -4;
    width: 160px;
    height: 160px;
  }
  .site-footer__nav {
    order: -3;
    gap: 9px;
    padding-top: 0;
  }
  .site-footer__link {
    font-size: 40px;
    line-height: 51px;
  }
  .site-footer__secondary {
    order: -2;
    justify-content: flex-start;
    gap: 16px 32px;
    font-size: 16px;
    line-height: 32px;
  }
  .site-footer__copy {
    order: -1;
    margin-top: 0;
  }
  .site-footer__socials {
    order: 0;
    margin-top: 0;
  }
  .cart__panel {
    width: 100%;
    padding: 32px 24px 16px;
  }
  .menu {
    width: 100%;
  }
  .menu__link {
    font-size: 32px;
    line-height: 48px;
  }
  .menu__arrow {
    width: 56px;
    height: 37px;
  }
  .pinned-cart {
    right: 16px;
    bottom: 96px;
  }
  .story__block {
    grid-template-columns: 1fr;
    padding: 56px 16px;
  }
  .story__media {
    height: 320px;
  }
  .story__title {
    font-size: 40px;
  }
  .nights__hero {
    padding: 140px 16px 56px;
  }
  .nights__hero-title {
    font-size: 64px;
  }
  .nights__section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 16px;
  }
  .nights__section h2 {
    font-size: 40px;
  }
  .nights__wide {
    height: 320px;
    margin: 0 16px 32px;
  }
  .nights__pink {
    padding: 64px 16px;
  }
  .nights__pink h2 {
    font-size: 40px;
  }
  .nights__cards {
    grid-template-columns: 1fr;
  }
  .nights__invite {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 16px 64px;
  }
  .nights__invite h2 {
    font-size: 40px;
  }
  .catalogue {
    grid-template-columns: 1fr;
  }
  .catalogue__aside {
    padding: 32px 24px;
  }
  .catalogue__hero {
    padding: 96px 24px 32px;
  }
  .catalogue__hero h1 {
    font-size: 48px;
  }
  .catalogue__section {
    padding: 32px 24px;
  }
  .catalogue__row {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .catalogue__dark {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 56px 24px;
  }
  .catalogue__dark h2 {
    font-size: 40px;
  }
  .checkout__wrap {
    grid-template-columns: 1fr;
  }
  .checkout {
    padding: 96px 0 48px;
  }
  .panel__head h2,
  .panel__head h3 {
    font-size: 24px;
  }
}

/* --- tabletas verticales: imagen de ficha más alta --- */
@media (min-width: 768px) and (max-width: 991px) {
  .card__media {
    min-height: 240px;
  }
}

/* --- teléfonos --- */
@media (max-width: 767px) {
  .chips,
  .filterbar__sortwrap {
    display: none;
  }
  .filterbar__toggle {
    display: flex;
  }
  .filterbar.is-open .chips,
  .filterbar.is-open .filterbar__sortwrap {
    display: flex;
  }
  .filterbar.is-open .filterbar__inner {
    flex-wrap: wrap;
  }
  .filterbar__sortwrap {
    margin-left: 0;
  }
  .filterbar.is-open {
    padding-bottom: 24px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .checkout__wrap {
    width: calc(100% - 32px);
  }
  .panel__body {
    padding: 16px;
  }
  .nights__hero-title {
    font-size: 48px;
  }
  .site-footer__secondary {
    font-size: 14px;
  }
  .pinned-cart__count {
    font-size: 11px;
  }
}

@media (max-width: 479px) {
  .hero__title {
    font-size: 48px;
    line-height: 1.05;
  }
  .card {
    grid-template-columns: minmax(0, 1fr) 140px;
    padding: 12px;
  }
  .card__media {
    min-height: 180px;
  }
  .intro__title {
    font-size: 40px;
    line-height: 42px;
  }
  .guide__title {
    font-size: 24px;
    line-height: 1.3;
  }
  .menu__feature-media {
    width: 120px;
    height: 120px;
    flex-basis: 120px;
  }
}

/* --- sin animaciones si el sistema lo pide --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
