/* ═══════════ Mano y Masa — natural · artesanal · hecho con amor ═══════════ */
:root {
  --marfil: #f4efe6;
  --marfil-osc: #ede6d8;
  --arena: #d9cbb8;
  --tinta: #2f2b28;
  --tinta-suave: #7c7265;
  --oliva: #6b7752;
  --oliva-osc: #576243;
  --oliva-claro: #e7e9dc;
  --dorado: #b89a5b;
  --dorado-claro: #f0e8d4;
  --kraft: #8a6b4a;
  --rosa: #d9b3b0;
  --rosa-claro: #f1e4e2;
  --carbon: #2f2b28;
  --blanco: #fffefa;
  --sombra:
    0 2px 8px rgba(47, 43, 40, 0.05), 0 18px 44px rgba(47, 43, 40, 0.07);
  --sombra-suave: 0 1px 3px rgba(47, 43, 40, 0.06);
  --radio: 12px;
  --fuente-titulo: "Cormorant Garamond", "Fraunces", serif;
  --fuente-cuerpo: "Inter", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fuente-cuerpo);
  color: var(--tinta);
  background: var(--marfil);
  line-height: 1.7;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

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

ul {
  list-style: none;
}

.container {
  width: min(1180px, 90%);
  margin: 0 auto;
}

.section {
  padding: 110px 0;
}

.section-title {
  font-family: var(--fuente-titulo);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin-bottom: 0.6rem;
}

.section-sub {
  color: var(--tinta-suave);
  margin-bottom: 3rem;
  max-width: 58ch;
  font-size: 1.02rem;
}

.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--dorado);
  margin-bottom: 1rem;
}

/* ─────── Botones ─────── */
.btn {
  display: inline-block;
  padding: 0.9rem 2.1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--oliva);
  color: var(--blanco);
}

.btn-primary:hover {
  background: var(--oliva-osc);
  box-shadow: 0 10px 26px rgba(107, 119, 82, 0.3);
}

.btn-ghost {
  border-color: var(--dorado);
  color: var(--kraft);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--dorado);
  border-color: var(--dorado);
  color: var(--blanco);
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* ─────── Banner superior ─────── */
.top-banner {
  background: #b45a69;
  opacity: 80%;
  color: #ffff;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 2.2rem;
  padding: 0.45rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ─────── Header ─────── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(50px);
  border-bottom: 1px solid rgba(184, 154, 91, 0.3);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.5rem 0;
  width: min(1320px, 92%);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: auto;
}

.logo-mark {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.logo-mark img {
  display: block;
  height: 42px;
  width: auto;
  transform: scale(1.6);
  transform-origin: center;
}

.logo-text {
  font-family: var(--fuente-titulo);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.logo-text em {
  color: var(--dorado);
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 2.8rem;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding-bottom: 3px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--dorado);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.cart-btn {
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
  color: var(--tinta);
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}

.cart-btn:hover {
  color: var(--kraft);
}

.cart-icon {
  display: block;
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-icon.icon-inline {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.2em;
  margin: 0 0.05em;
  color: var(--kraft);
}

.cart-count {
  position: absolute;
  top: -3px;
  right: -5px;
  background: var(--oliva);
  color: var(--blanco);
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 15px;
  height: 15px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 3px;
  line-height: 1;
  font-family: var(--fuente-cuerpo);
  transition: transform 0.2s ease;
}

.cart-count.is-empty {
  transform: scale(0);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--tinta);
}

.nav-cta {
  background: var(--marfil-osc);
  border: 1px solid var(--dorado);
  color: var(--kraft);
  padding: 0.55rem 1.3rem;
  border-radius: 8px;
  font-family: var(--fuente-cuerpo);
  font-weight: 600;
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.22s;
}

.nav-cta:hover {
  background: var(--dorado);
  color: var(--blanco);
}

/* ─────── Modal pedidos grandes ─────── */
.modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 4vh 4%;
  background: rgba(47, 43, 40, 0.5);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-wrap.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--blanco);
  border-radius: var(--radio);
  width: min(660px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 2.4rem 2.6rem;
  box-shadow: 0 30px 80px rgba(47, 43, 40, 0.35);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0.28, 1);
}

.modal-wrap.open .modal {
  transform: none;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.modal-head h3 {
  font-family: var(--fuente-titulo);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.1;
}

.modal-head .eyebrow {
  margin-bottom: 0.4rem;
}

.modal-intro {
  color: var(--tinta-suave);
  font-size: 0.93rem;
  margin-bottom: 1.4rem;
}

.modal-subtitle {
  font-family: var(--fuente-titulo);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 1.6rem 0 0.9rem;
}

.tier-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.tier {
  border: 1px solid rgba(184, 154, 91, 0.35);
  border-radius: 10px;
  padding: 0.8rem 0.6rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--tinta-suave);
  transition: all 0.25s;
}

.tier strong {
  display: block;
  color: var(--tinta);
  font-size: 0.86rem;
  margin-bottom: 0.1rem;
}

.tier.active {
  border-color: var(--dorado);
  background: var(--dorado-claro);
  box-shadow: 0 4px 14px rgba(184, 154, 91, 0.2);
}

.tier.active strong {
  color: var(--kraft);
}

.bulk-items {
  display: grid;
  gap: 0.6rem;
}

.bulk-line {
  display: grid;
  grid-template-columns: 1fr 76px 92px 30px;
  gap: 0.6rem;
  align-items: center;
}

.bulk-line select,
.bulk-line input {
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--tinta);
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(138, 107, 74, 0.25);
  border-radius: 8px;
  background: var(--marfil);
  width: 100%;
}

.bulk-line select:focus,
.bulk-line input:focus {
  outline: none;
  border-color: var(--oliva);
}

.bulk-line-price {
  font-size: 0.85rem;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.bulk-line-price small {
  display: block;
  font-weight: 400;
  color: var(--tinta-suave);
  text-decoration: line-through;
  font-size: 0.72rem;
}

.line-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--tinta-suave);
  font-size: 0.95rem;
  transition: color 0.15s;
}

.line-remove:hover {
  color: var(--kraft);
}

.add-line {
  margin-top: 0.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--oliva);
  font-weight: 600;
  font-size: 0.84rem;
  padding: 0.3rem 0;
}

.add-line:hover {
  text-decoration: underline;
}

.bulk-summary {
  margin-top: 1.2rem;
  background: var(--marfil);
  border: 1px solid rgba(184, 154, 91, 0.3);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  display: grid;
  gap: 0.3rem;
}

.bulk-summary .sum-row {
  display: flex;
  justify-content: space-between;
}

.bulk-summary .sum-desc {
  color: var(--oliva);
  font-weight: 600;
}

.bulk-summary .sum-total {
  font-family: var(--fuente-titulo);
  font-weight: 600;
  font-size: 1.3rem;
  border-top: 1px solid rgba(184, 154, 91, 0.4);
  padding-top: 0.5rem;
  margin-top: 0.3rem;
}

/* Falta para el mínimo mayorista: avisa sin alarmar, en el rosa de la paleta. */
.bulk-summary .sum-aviso {
  background: var(--rosa-claro);
  border-left: 3px solid var(--rosa);
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--kraft);
}

.modal-form {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-top: 0.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .modal {
    padding: 1.8rem 1.4rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .tier-row {
    grid-template-columns: 1fr;
  }

  .bulk-line {
    grid-template-columns: 1fr 64px 80px 24px;
  }

  .nav-cta {
    padding: 0.5rem 0.8rem;
    font-size: 0.68rem;
  }
}

/* ─────── Hero ─────── */
.hero {
  position: relative;
  /* Se desliza debajo de la topbar translúcida para que la foto la cubra;
     --header-h la mide app.js según la altura real de la barra */
  margin-top: calc(-1 * var(--header-h, 0px));
  padding: calc(110px + var(--header-h, 0px)) 0 130px;
  overflow: hidden;
  background: url("Imagenes/Roll2.png") right center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    95deg,
    rgba(244, 239, 230, 0.96) 0%,
    rgba(244, 239, 230, 0.75) 42%,
    rgba(244, 239, 230, 0.05) 78%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--dorado);
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-family: var(--fuente-titulo);
  font-size: clamp(2.8rem, 5.6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: 0.005em;
  margin-bottom: 1.4rem;
}

.rainbow {
  font-style: italic;
  color: var(--oliva);
}

.hero-sub {
  color: var(--tinta-suave);
  font-size: 1.1rem;
  max-width: 50ch;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.8rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--tinta-suave);
  letter-spacing: 0.02em;
}

.hero-badges li {
  display: flex;
  align-items: center;
}

.hero-badges li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 14px;
  background: rgba(184, 154, 91, 0.5);
  margin: 0 1.2rem;
}

.hero-art {
  position: relative;
  height: 400px;
  /* Los círculos decorativos se ocultan porque la foto Roll2.png ya llena esta zona */
  visibility: hidden;
}

.pasta-circle {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 2.4rem;
  box-shadow: var(--sombra);
  border: 1px solid rgba(255, 254, 250, 0.8);
  outline: 1px solid rgba(184, 154, 91, 0.25);
  outline-offset: 6px;
  animation: float 6s ease-in-out infinite;
}

.c1 {
  width: 140px;
  height: 140px;
  background: linear-gradient(145deg, #f1e4e2, #e3ccc9);
  top: 2%;
  left: 16%;
}

.c2 {
  width: 110px;
  height: 110px;
  background: linear-gradient(145deg, #e7e9dc, #d3d8c2);
  top: 30%;
  right: 4%;
  animation-delay: 1s;
}

.c3 {
  width: 122px;
  height: 122px;
  background: linear-gradient(145deg, #f0e8d4, #e3d4b4);
  bottom: 8%;
  left: 4%;
  animation-delay: 2s;
}

.c4 {
  width: 98px;
  height: 98px;
  background: linear-gradient(145deg, #e9dfd1, #d9cbb8);
  bottom: 0;
  right: 24%;
  animation-delay: 3s;
}

.c5 {
  width: 88px;
  height: 88px;
  background: linear-gradient(145deg, #fffefa, #ede6d8);
  top: 44%;
  left: 44%;
  animation-delay: 4s;
}

@keyframes float {
  50% {
    transform: translateY(-16px);
  }
}

/* ─────── Catálogo ─────── */
.products {
  background:
    linear-gradient(rgba(244, 239, 230, 0.88), rgba(244, 239, 230, 0.88)),
    url("Imagenes/Fettuccini.png") center / cover no-repeat;
}

/* ─────── Círculos de categorías (landing) ─────── */
.cat-circles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2.5rem 1.5rem;
  justify-items: center;
  text-align: center;
}

.cat-circle {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  cursor: pointer;
}

.cat-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  background: var(--marfil-osc);
  box-shadow: var(--sombra);
  border: 1px solid rgba(255, 254, 250, 0.8);
  outline: 1px solid rgba(184, 154, 91, 0.25);
  outline-offset: 6px;
  transition:
    transform 0.3s ease,
    outline-color 0.3s ease,
    box-shadow 0.3s ease;
}

.cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cat-circle:hover .cat-img {
  transform: translateY(-8px);
  outline-color: var(--dorado);
  box-shadow: 0 14px 34px rgba(47, 43, 40, 0.16);
}

.cat-name {
  font-family: var(--fuente-titulo);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
}

.cat-more {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kraft);
  border-bottom: 1px solid rgba(184, 154, 91, 0.5);
  padding-bottom: 2px;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.cat-circle:hover .cat-more {
  color: var(--oliva-osc);
  border-color: var(--oliva);
}

@media (max-width: 640px) {
  .cat-circles {
    grid-template-columns: repeat(2, 1fr);
  }

  .cat-img {
    width: 128px;
    height: 128px;
  }
}

/* ─────── Filtros ─────── */
.filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.chip {
  border: 1px solid rgba(138, 107, 74, 0.3);
  background: transparent;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  color: var(--tinta);
  cursor: pointer;
  transition: all 0.2s;
}

.chip:hover {
  border-color: var(--kraft);
  background: var(--blanco);
}

.chip.active {
  background: var(--oliva);
  color: var(--blanco);
  border-color: var(--oliva);
}

.chip-gf.active {
  background: var(--kraft);
  border-color: var(--kraft);
}

/* ─────── Grid de productos ─────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(262px, 1fr));
  gap: 1.8rem;
}

.card {
  background: var(--blanco);
  border-radius: var(--radio);
  overflow: hidden;
  border: 1px solid rgba(184, 154, 91, 0.25);
  box-shadow: var(--sombra-suave);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra);
}

.card-img {
  height: 158px;
  display: grid;
  place-items: center;
  font-size: 3.2rem;
  position: relative;
}

.card-img::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 254, 250, 0.6);
  border-radius: 8px;
  pointer-events: none;
}

.card-body {
  padding: 1.3rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-tags {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}

.tag-gf {
  background: var(--oliva-claro);
  color: var(--oliva-osc);
}

.tag-color {
  background: var(--marfil-osc);
  color: var(--kraft);
}

.card h3 {
  font-family: var(--fuente-titulo);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.card p {
  font-size: 0.87rem;
  color: var(--tinta-suave);
  flex: 1;
  line-height: 1.6;
}

.card-foot {
  margin-top: 1.2rem;
}

.price {
  font-family: var(--fuente-titulo);
  font-weight: 600;
  font-size: 1.3rem;
  display: block;
  margin-bottom: 0.8rem;
  color: var(--kraft);
}

.price small {
  font-family: var(--fuente-cuerpo);
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--tinta-suave);
}

.add-btn {
  width: 100%;
  background: transparent;
  color: var(--oliva-osc);
  border: 1px solid var(--oliva);
  cursor: pointer;
  padding: 0.68rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.22s;
}

.add-btn:hover {
  background: var(--oliva);
  border-color: var(--oliva);
  color: var(--blanco);
}

/* ─────── Nosotros ─────── */
.about {
  background:
    linear-gradient(
      100deg,
      rgba(255, 254, 250, 0.94) 0%,
      rgba(255, 254, 250, 0.82) 55%,
      rgba(255, 254, 250, 0.5) 100%
    ),
    url("Imagenes/Roll1.png") center / cover no-repeat;
  border-top: 1px solid rgba(184, 154, 91, 0.3);
  border-bottom: 1px solid rgba(184, 154, 91, 0.3);
}

.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4.5rem;
  align-items: start;
}

.about-text p {
  margin-bottom: 1.1rem;
  color: var(--tinta-suave);
  text-align: justify;
}

.color-list {
  margin: 1.6rem 0;
  display: grid;
  gap: 0.7rem;
}

.color-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
}

.dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  outline: 1px solid rgba(184, 154, 91, 0.4);
  outline-offset: 3px;
}

.dot-blue {
  background: #46a2da;
}

.dot-green {
  background: #03bb85;
}

.dot-orange {
  background: #ff7c39;
}

.dot-yellow {
  background: #ffd200;
}

.dot-black {
  background: #000000;
}

.dot-red {
  background: #8b0000;
}

.dot-pink {
  background: #e5a0c6;
}

.dot-purple {
  background: #872364;
}

.about-card {
  background: var(--marfil);
  border: 1px solid rgba(184, 154, 91, 0.35);
  border-radius: var(--radio);
  padding: 2.4rem;
}

.about-card h3 {
  font-family: var(--fuente-titulo);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.about-card li {
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed rgba(184, 154, 91, 0.45);
  font-size: 0.93rem;
}

.about-card li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ─────── Garantía ─────── */
.garantia {
  background: var(--marfil);
  border-top: 1px solid rgba(184, 154, 91, 0.3);
  border-bottom: 1px solid rgba(184, 154, 91, 0.3);
}

.garantia-desc {
  max-width: 62ch;
  text-align: justify;
}

.garantia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}

.garantia-card {
  background: var(--blanco);
  border: 1px solid rgba(184, 154, 91, 0.35);
  border-radius: var(--radio);
  padding: 2rem 1.8rem;
  box-shadow: var(--sombra-suave);
}

.garantia-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  margin: 0 auto 1rem;
}

.garantia-icon svg {
  width: 24px;
  height: 24px;
}

/* Tonos pastel derivados de la paleta (análogos, baja saturación). */
.garantia-icon--verde {
  background: #e4ead7;
  color: #7c8c5a;
}

.garantia-icon--rosa {
  background: #f2e2e0;
  color: #c1908c;
}

.garantia-icon--dorado {
  background: #f2e9d1;
  color: #bd9c53;
}

.garantia-icon--clay {
  background: #ecdcc9;
  color: #a67f59;
}

.garantia-card h3 {
  font-family: var(--fuente-titulo);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--tinta);
  text-align: center;
}

.garantia-card ul,
.garantia-card ol {
  padding-left: 1.15rem;
  color: var(--tinta-suave);
}

.garantia-card li {
  margin-bottom: 0.6rem;
  font-size: 0.93rem;
  line-height: 1.5;
  text-align: justify;
}

.garantia-card li:last-child {
  margin-bottom: 0;
}

/* ─────── Carrito / pedido ─────── */
.quote {
  background:
    linear-gradient(rgba(244, 239, 230, 0.68), rgba(244, 239, 230, 0.68)),
    url("Imagenes/mermelada.png") center / cover no-repeat;
}

.quote-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.quote-basket {
  background: var(--blanco);
  border: 1px solid rgba(184, 154, 91, 0.3);
  border-radius: var(--radio);
  padding: 1.8rem;
  box-shadow: var(--sombra-suave);
  min-height: 130px;
}

.empty-msg {
  color: var(--tinta-suave);
  text-align: center;
  padding: 1.8rem 0;
  font-size: 0.95rem;
}

.basket-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed rgba(184, 154, 91, 0.45);
}

.basket-item:last-of-type {
  border-bottom: none;
}

.basket-emoji {
  font-size: 1.5rem;
}

.basket-name {
  flex: 1;
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.4;
}

.basket-name small {
  color: var(--tinta-suave);
  font-weight: 400;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.qty-btn {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 1px solid rgba(107, 119, 82, 0.5);
  background: transparent;
  color: var(--oliva-osc);
  cursor: pointer;
  font-weight: 600;
  line-height: 1;
  transition: all 0.15s;
}

.qty-btn:hover {
  background: var(--oliva);
  color: var(--blanco);
  border-color: var(--oliva);
}

.basket-total {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(184, 154, 91, 0.45);
  display: flex;
  justify-content: space-between;
  font-family: var(--fuente-titulo);
  font-weight: 600;
  font-size: 1.3rem;
}

/* Desglose antes del total: subtotal y envío, en menor jerarquía. */
.basket-sub {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  color: var(--tinta-suave);
}

.basket-sub:first-of-type {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(184, 154, 91, 0.45);
}

.basket-sub + .basket-sub {
  margin-top: 0.35rem;
}

/* Con desglose, la línea del total ya no necesita su propio separador. */
.basket-sub + .basket-total {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: none;
}

.basket-nota {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
  color: var(--tinta-suave);
}

.quote-form {
  background: var(--blanco);
  border: 1px solid rgba(184, 154, 91, 0.3);
  border-radius: var(--radio);
  padding: 2.6rem;
  box-shadow: var(--sombra);
  display: grid;
  gap: 1.2rem;
}

.quote-form h3 {
  font-family: var(--fuente-titulo);
  font-size: 1.7rem;
  font-weight: 600;
}

.quote-form label {
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tinta-suave);
  display: grid;
  gap: 0.45rem;
}

.quote-form input,
.quote-form textarea,
.quote-form select {
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 400;
  color: var(--tinta);
  padding: 0.8rem 1rem;
  border: 1px solid rgba(138, 107, 74, 0.25);
  border-radius: 8px;
  background: var(--marfil);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  letter-spacing: 0;
  text-transform: none;
}

.quote-form input:focus,
.quote-form textarea:focus,
.quote-form select:focus {
  outline: none;
  border-color: var(--oliva);
  box-shadow: 0 0 0 3px rgba(107, 119, 82, 0.12);
}

.form-note {
  font-size: 0.8rem;
  color: var(--tinta-suave);
  text-align: center;
}

.form-section-title {
  font-family: var(--fuente-titulo);
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 0.6rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(184, 154, 91, 0.45);
}

.form-section-title small,
.modal-subtitle small {
  font-family: var(--fuente-cuerpo);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--dorado);
  letter-spacing: 0.04em;
}

/* ─────── Footer ─────── */
.footer {
  background: var(--carbon);
  color: #b5aa9c;
  padding: 80px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}

.footer h4 {
  color: var(--dorado);
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.footer p {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.footer-logo {
  color: var(--marfil);
  font-size: 1.7rem;
  margin-bottom: 0.6rem;
}

.footer-bottom {
  border-top: 1px solid rgba(244, 239, 230, 0.12);
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1180px, 90%);
  margin: 0 auto;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.b2b-link {
  color: #8a7e6e;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.b2b-link:hover {
  color: var(--dorado);
}

/* ─────── Drawer ─────── */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 92vw);
  background: var(--blanco);
  z-index: 100;
  transform: translateX(105%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0.28, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(47, 43, 40, 0.18);
}

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

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.8rem;
  border-bottom: 1px solid rgba(184, 154, 91, 0.35);
}

.drawer-head h3 {
  font-family: var(--fuente-titulo);
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.drawer-icon {
  width: 22px;
  height: 22px;
  color: var(--kraft);
}

.drawer-close {
  background: none;
  border: 1px solid rgba(138, 107, 74, 0.35);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.drawer-close:hover {
  background: var(--oliva);
  color: var(--blanco);
  border-color: var(--oliva);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem 1.8rem;
}

.drawer-foot {
  padding: 1.5rem 1.8rem;
  border-top: 1px solid rgba(184, 154, 91, 0.35);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(47, 43, 40, 0.45);
  backdrop-filter: blur(2px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* ─────── Toast ─────── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 90px);
  background: var(--oliva);
  color: var(--blanco);
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  z-index: 120;
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0.28, 1);
  pointer-events: none;
  box-shadow: 0 14px 40px rgba(47, 43, 40, 0.3);
}

.toast.show {
  transform: translate(-50%, 0);
}

/* ─────── B2B page ─────── */
.b2b-hero {
  background: var(--carbon);
  color: var(--marfil);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.b2b-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px 300px at 50% 0%,
    rgba(184, 154, 91, 0.16),
    transparent 70%
  );
}

.b2b-eyebrow {
  position: relative;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--dorado);
  margin-bottom: 1.1rem;
}

.b2b-hero h1 {
  position: relative;
  font-family: var(--fuente-titulo);
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

.b2b-hero p {
  position: relative;
  color: #b5aa9c;
  max-width: 62ch;
  margin: 0 auto;
  font-size: 1.02rem;
}

.b2b-hero-cta {
  position: relative;
  display: inline-block;
  margin-top: 2rem;
  padding: 0.85rem 2.1rem;
  border: 1px solid var(--dorado);
  border-radius: 8px;
  color: var(--marfil);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.b2b-hero-cta:hover {
  background: var(--dorado);
  color: var(--carbon);
  box-shadow: 0 10px 26px rgba(184, 154, 91, 0.25);
}

.b2b-stats {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  margin-top: 3rem;
}

.b2b-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.b2b-stats strong {
  font-family: var(--fuente-titulo);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--marfil);
  line-height: 1;
}

.b2b-stats span {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a8f80;
}

.b2b-intro {
  text-align: center;
  max-width: 46ch;
  margin: 0 auto;
}

.b2b-intro .section-title {
  margin-bottom: 0;
}

.b2b-perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 1.6rem;
  margin: 2.5rem 0 5rem;
}

.perk {
  position: relative;
  background: var(--blanco);
  border: 1px solid rgba(184, 154, 91, 0.3);
  border-radius: var(--radio);
  padding: 2rem;
  box-shadow: var(--sombra-suave);
  overflow: hidden;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
}

.perk::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--dorado);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.perk:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra);
  border-color: rgba(184, 154, 91, 0.55);
}

.perk:hover::before {
  transform: scaleX(1);
}

.perk-num {
  display: block;
  font-family: var(--fuente-titulo);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--dorado);
  margin-bottom: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(184, 154, 91, 0.3);
}

.perk h3 {
  font-family: var(--fuente-titulo);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.perk p {
  font-size: 0.87rem;
  color: var(--tinta-suave);
}

.b2b-form-wrap {
  max-width: 700px;
  margin: 0 auto;
}

.b2b-form-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.b2b-form-head .section-sub {
  margin: 0 auto;
}

.b2b-form-wrap .btn-primary {
  background: var(--carbon);
}

.b2b-form-wrap .btn-primary:hover {
  background: #000;
  box-shadow: 0 10px 26px rgba(47, 43, 40, 0.3);
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--tinta-suave);
  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--kraft);
}

/* ─────── Responsive ─────── */
@media (max-width: 880px) {
  .section {
    padding: 70px 0;
  }

  .hero {
    padding: calc(70px + var(--header-h, 0px)) 0 80px;
  }

  .hero-inner,
  .about-inner,
  .quote-inner {
    grid-template-columns: 1fr;
  }

  .hero-art {
    display: none;
  }

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

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--marfil);
    flex-direction: column;
    gap: 1.1rem;
    padding: 1.4rem 5%;
    border-bottom: 1px solid rgba(184, 154, 91, 0.35);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    gap: 0.8rem;
  }

  .logo-mark img {
    height: 34px;
  }

  .logo-text {
    font-size: 1.2rem;
  }
}

/* ─────── Personaliza tu pedido ─────── */
.perso-nota {
  color: var(--tinta-suave);
  max-width: 62ch;
  margin: -2rem 0 3rem;
  font-size: 0.95rem;
}

/* Foto dentro de la tarjeta tipo catálogo: se ancla a la caja de 158px
   para que nunca se salga ni tape el título y la descripción. */
.card-img {
  overflow: hidden;
}

.card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.perso-cierre {
  margin-top: 2.4rem;
  color: var(--tinta-suave);
  font-size: 0.95rem;
  max-width: 60ch;
}

.basket-opts {
  color: var(--kraft);
  font-weight: 500;
}

/* Modal de personalización */
.perso-modal-img {
  border-radius: 10px;
  overflow: hidden;
  height: 200px;
  margin-bottom: 1.2rem;
}

.perso-modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.perso-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.perso-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.chip-extra {
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--dorado);
}

.perso-chip.active .chip-extra {
  color: var(--blanco);
}

/* Leyenda "Elige de 1 a 3 · 2 de 3" junto al título del grupo múltiple. */
.perso-ayuda {
  margin-left: 0.6rem;
  font-family: var(--fuente-texto);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--tinta-suave);
}

/* Chip no elegido cuando ya se llegó al máximo: se atenúa, pero sigue
   pulsable (al tocarlo avisa por qué no se puede). */
.perso-chip.chip-tope {
  opacity: 0.45;
}

.perso-add {
  margin-top: 1.6rem;
}

@media (max-width: 880px) {
  .perso-nota {
    margin-top: -1.4rem;
  }
}
