/* ===== Paleta del manual de marca ===== */
:root {
  --terracota: #8b3a20;      /* principal (logo) */
  --terracota-dark: #6e2b16;
  --terracota-soft: #f3e2d8;
  --oliva: #3f4a2d;          /* secundario */
  --bosque: #263b32;         /* secundario */
  --salvia: #a2ad96;         /* complementario */
  --vino: #4d0c1e;           /* complementario */
  --rojo-vino: #7b2137;      /* complementario */
  --cafe-tostado: #5a3a2e;   /* neutro */
  --caramelo: #c8ae8f;       /* neutro */
  --crema: #faf6ef;
  --crema-2: #f1e8da;
  --cafe: #3a2a20;
  --cafe-soft: #6b5546;
  --verde: var(--oliva);
  --blanco: #ffffff;

  /* Títulos: el manual usa Lingua Franca (no está en Google Fonts); Fraunces es la más parecida */
  --font-title: 'Fraunces', Georgia, serif;
  --font-body: 'Montserrat', system-ui, -apple-system, sans-serif;

  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(58, 42, 32, 0.35);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--cafe);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-title);
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--cafe);
}
h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracota);
  margin-bottom: 0.9rem;
}

/* ===== Botones ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  background: var(--terracota);
  color: var(--blanco);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--terracota);
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { background: var(--terracota-dark); border-color: var(--terracota-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--terracota); }
.btn--ghost:hover { background: var(--terracota); color: var(--blanco); }
.btn--small { padding: 0.55rem 1.2rem; font-size: 0.9rem; }
.btn--light { background: var(--crema); color: var(--terracota-dark); border-color: var(--crema); }
.btn--light:hover { background: var(--blanco); color: var(--terracota-dark); border-color: var(--blanco); }

/* ===== Encabezado ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.header.is-scrolled { border-color: var(--crema-2); box-shadow: 0 6px 20px -14px rgba(58, 42, 32, 0.4); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; line-height: 1; }
.brand__icon { width: 46px; height: 46px; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-family: var(--font-title); font-weight: 700; font-size: 1.75rem; color: var(--terracota); letter-spacing: -0.01em; }
.brand__tag { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--terracota); margin-top: 0.3rem; }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; color: var(--cafe-soft); position: relative; }
.nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 100%; height: 2px;
  background: var(--terracota); transform: scaleX(0); transform-origin: left; transition: transform 0.25s;
}
.nav a:not(.btn):hover { color: var(--terracota); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--terracota); margin: 6px 0; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Inicio ===== */
.hero {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  background:
    radial-gradient(circle at 85% 20%, var(--terracota-soft) 0, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(162, 173, 150, 0.35) 0, transparent 42%),
    var(--crema);
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.lead { font-size: 1.15rem; color: var(--cafe-soft); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 2rem 0 2.4rem; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; color: var(--cafe-soft); font-size: 0.95rem; }
.hero__facts strong { color: var(--rojo-vino); font-family: var(--font-title); font-size: 1.1rem; margin-right: 0.25rem; }
.hero__badge { justify-self: center; width: min(460px, 100%); }
.hero__badge img { filter: drop-shadow(0 22px 28px rgba(126, 58, 32, 0.22)); animation: float 7s ease-in-out infinite; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ===== Valores ===== */
.values { margin-top: -3rem; position: relative; z-index: 2; }
.values__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  background: var(--blanco); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow);
}
.value { text-align: center; padding: 0.5rem 1rem; }
.value svg { width: 46px; height: 46px; fill: none; stroke: var(--terracota); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 0.6rem; }
.value h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.value p { font-size: 0.95rem; color: var(--cafe-soft); margin: 0; }
.value:nth-child(2) svg { stroke: var(--oliva); }
.value:nth-child(3) svg { stroke: var(--rojo-vino); }

/* ===== Secciones ===== */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section__sub { color: var(--cafe-soft); }

/* Nosotros */
.about { padding-bottom: clamp(7rem, 15vw, 11rem); }
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__photo { position: relative; }
.about__photo::before {
  content: ''; position: absolute; inset: 24px -24px -24px 24px;
  border: 2px solid var(--salvia); border-radius: var(--radius); z-index: -1;
}
.about__photo img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.about__text p { color: var(--cafe-soft); }
.about__text strong { color: var(--cafe); }
.signature { font-family: var(--font-title); font-style: italic; font-size: 1.2rem; color: var(--terracota) !important; margin-top: 1.5rem; }

/* Proceso */
.process { background: var(--bosque); position: relative; }
.process .section__head h2 { color: var(--crema); }
.process .eyebrow { color: var(--salvia); }
/* Montañas de Mistrató: suben desde el borde superior de la sección */
.mountains { position: absolute; bottom: calc(100% - 1px); left: 0; width: 100%; height: clamp(60px, 10vw, 140px); }
.mountains .m3 { fill: var(--salvia); }
.mountains .m2 { fill: var(--oliva); }
.mountains .m1 { fill: var(--bosque); }

.steps { list-style: none; padding: 0; margin: 0 0 3.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step { background: var(--blanco); border-radius: var(--radius); padding: 2rem 1.5rem; position: relative; transition: transform 0.25s, box-shadow 0.25s; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step__num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--terracota); color: var(--blanco); font-family: var(--font-title); font-weight: 700; font-size: 1.2rem; margin-bottom: 1rem;
}
.step p { font-size: 0.95rem; color: var(--cafe-soft); margin: 0; }
.step:nth-child(2) .step__num { background: var(--oliva); }
.step:nth-child(3) .step__num { background: var(--rojo-vino); }
.step:nth-child(4) .step__num { background: var(--cafe-tostado); }
.process__photo img { width: 100%; height: clamp(220px, 32vw, 380px); object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Tienda */
.shop__bar { display: flex; justify-content: flex-end; margin-bottom: 1rem; color: var(--cafe-soft); font-size: 0.9rem; }
.shop__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem 1.5rem; }
.shop__grid .card { flex: 0 1 260px; }
.card { display: flex; flex-direction: column; text-align: center; }
.card__img {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  background: var(--blanco); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 10px 30px -22px rgba(58, 42, 32, 0.45);
}
.card__img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 0.6s; }
.card:hover .card__img img { transform: scale(1.05); }
.card__tag { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--rojo-vino); color: var(--blanco); font-size: 0.72rem; font-weight: 700; padding: 0.3rem 0.75rem; border-radius: 999px; letter-spacing: 0.04em; }
.card__body { padding: 1.1rem 0.4rem 0; display: flex; flex-direction: column; align-items: center; flex: 1; }
.card__line { margin: 0 0 0.15rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--terracota); }
.card__name { margin: 0 0 0.35rem; font-size: 1.35rem; }
.card__notes { margin: 0 0 0.3rem; color: var(--verde); font-weight: 700; font-size: 0.88rem; line-height: 1.45; }
.card__sizes { margin: 0 0 0.6rem; color: var(--cafe-soft); font-size: 0.85rem; }
.card__price { margin: auto 0 0.9rem; font-family: var(--font-title); font-weight: 600; font-size: 1.25rem; color: var(--cafe); }
.card__btn { cursor: pointer; font-family: inherit; }

.wholesale {
  margin-top: 4rem; padding: 2rem 2.4rem; border-radius: var(--radius);
  background: linear-gradient(120deg, var(--vino), var(--rojo-vino)); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.wholesale h3 { margin-bottom: 0.3rem; color: var(--crema); }
.wholesale p { margin: 0; color: #e9c9cd; }
.wholesale .btn { flex: none; }

/* Detalle de producto */
.pdialog {
  width: min(960px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0;
  border-radius: var(--radius); background: var(--crema); color: var(--cafe); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5);
}
.pdialog::backdrop { background: rgba(42, 28, 20, 0.6); backdrop-filter: blur(3px); }
.pdialog__close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--blanco); color: var(--cafe); font-size: 1.6rem; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.3);
}
.pdialog__grid { display: grid; grid-template-columns: 1fr 1.1fr; }
.pdialog__img { background: var(--crema-2); position: sticky; top: 0; align-self: start; }
.pdialog__img img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pdialog__info { padding: 2.2rem 2.2rem 2rem; }
.pdialog__info h2 { margin-bottom: 0.3rem; }
.pdialog__price { font-family: var(--font-title); font-size: 1.6rem; font-weight: 600; color: var(--terracota); margin-bottom: 1.2rem; }
/* Ficha técnica: etiqueta a la izquierda, valor en cápsula a la derecha */
.ficha { margin: 0 0 1.2rem; display: grid; gap: 0.55rem; }
.ficha__row { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 1rem; }
.ficha dt { font-weight: 600; color: var(--cafe); font-size: 0.95rem; }
.ficha dd { margin: 0; padding: 0.45rem 1rem; border-radius: 12px; background: var(--crema-2); color: var(--cafe); font-weight: 600; font-size: 0.92rem; line-height: 1.35; }
.pdialog__lead { margin: -0.6rem 0 1.3rem; color: var(--cafe-soft); font-style: italic; }
/* Secciones de la ficha del café (debajo de los botones de compra) */
.pd-sec { margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px solid #e3d3c1; font-size: 0.93rem; }
.pd-sec[hidden] { display: none; }
.pd-sec__title { font-family: var(--font-title); font-size: 1.15rem; color: var(--cafe); margin: 0 0 0.75rem; }
.pd-sec p { margin: 0 0 0.6rem; color: var(--cafe-soft); }
.pd-proceso strong { color: var(--cafe); }
.origen { margin: 0; display: grid; gap: 0.45rem; }
.origen div { display: grid; grid-template-columns: 11rem 1fr; gap: 0.8rem; }
.origen dt { font-weight: 700; color: var(--cafe); }
.origen dd { margin: 0; color: var(--cafe-soft); }
.origen a { color: var(--terracota); font-weight: 600; }
.sca { display: inline-flex; align-items: baseline; gap: 0.6rem; margin-bottom: 0.9rem; padding: 0.45rem 1.1rem; border-radius: 999px; background: var(--vino); color: var(--crema); }
.sca[hidden] { display: none; }
.sca span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--caramelo); }
.sca strong { font-family: var(--font-title); font-size: 1.45rem; line-height: 1.1; }
.attrs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.attrs li { display: grid; grid-template-columns: 11rem 1fr 2.6rem; align-items: center; gap: 0.8rem; }
.attrs__name { color: var(--cafe); font-weight: 600; }
.attrs__bar { height: 8px; border-radius: 999px; background: var(--crema-2); overflow: hidden; }
.attrs__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--caramelo), var(--terracota)); }
.attrs__val { text-align: right; font-weight: 700; color: var(--cafe); font-variant-numeric: tabular-nums; }
.pd-sec .ficha { margin: 0; }
.card__sca { position: absolute; right: 12px; bottom: 12px; z-index: 1; background: rgba(77, 12, 30, 0.9); color: var(--crema); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; padding: 0.3rem 0.75rem; border-radius: 999px; }
.card__sca b { font-size: 0.85rem; letter-spacing: 0; }
.option { margin-bottom: 1.1rem; }
.option__label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cafe-soft); margin-bottom: 0.5rem; }
.option__choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font: inherit; font-weight: 600; font-size: 0.92rem; padding: 0.5rem 1.1rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid #d9c6b4; background: var(--blanco); color: var(--cafe); transition: all 0.2s;
}
.chip:hover { border-color: var(--terracota); }
.chip.is-active { background: var(--terracota); border-color: var(--terracota); color: var(--blanco); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid #d9c6b4; border-radius: 999px; background: var(--blanco); }
.qty button { width: 40px; height: 38px; border: 0; background: none; font-size: 1.2rem; color: var(--terracota); cursor: pointer; }
.qty span { min-width: 2ch; text-align: center; font-weight: 700; }
.pdialog__order { display: block; text-align: center; margin-top: 1.4rem; }
.pdialog__note { margin: 0.7rem 0 0; font-size: 0.82rem; color: var(--cafe-soft); text-align: center; }
.pdialog__add { width: 100%; font: inherit; font-weight: 700; cursor: pointer; }
.pdialog__add[hidden] { display: none; }

/* ===== Carrito (solo con la tienda activa: body.cart-on) ===== */
.cart-btn { display: none; position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--terracota-soft); cursor: pointer; flex: none; }
.cart-on .cart-btn { display: grid; place-items: center; }
.cart-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--terracota); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-btn__count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--rojo-vino); color: var(--blanco); font-size: 0.72rem; font-weight: 700; display: grid; place-items: center; }
.cart-btn__count[hidden] { display: none; }
.cart-btn.bump { animation: bump 0.4s ease; }
@keyframes bump { 50% { transform: scale(1.18); } }
/* Con carrito, WhatsApp pasa a ser la opción secundaria */
.cart-on .pdialog__wa { background: transparent; color: var(--terracota); margin-top: 0.7rem; }
.cart-on .pdialog__wa:hover { background: var(--terracota); color: var(--blanco); }
.cart-on .pdialog__note--wa { display: none; }

.cart { margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(420px, 100%); padding: 0; border: 0; background: var(--crema); color: var(--cafe); box-shadow: -20px 0 60px -20px rgba(0, 0, 0, 0.4); }
.cart::backdrop, .checkout::backdrop { background: rgba(42, 28, 20, 0.55); backdrop-filter: blur(3px); }
.cart[open] { animation: slide-in 0.3s ease; }
@keyframes slide-in { from { transform: translateX(100%); } }
.cart__panel { display: flex; flex-direction: column; height: 100%; }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--crema-2); }
.cart__head h2 { margin: 0; font-size: 1.4rem; }
.cart__close { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--blanco); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--cafe); }
.cart__empty { padding: 2rem 1.4rem; color: var(--cafe-soft); }
.cart__empty[hidden] { display: none; }
.cart__empty a { color: var(--terracota); font-weight: 700; }
.cart__items { list-style: none; margin: 0; padding: 0.4rem 1.4rem; flex: 1; overflow-y: auto; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 0.9rem; padding: 1rem 0; border-bottom: 1px solid var(--crema-2); }
.cart-item img { width: 64px; height: 84px; object-fit: cover; border-radius: 10px; }
.cart-item__name { margin: 0; font-family: var(--font-title); font-weight: 600; font-size: 1.08rem; line-height: 1.2; }
.cart-item__meta { margin: 0.15rem 0 0.5rem; font-size: 0.85rem; color: var(--cafe-soft); }
.cart-item__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cart-item__price { margin: 0; font-weight: 700; }
.cart-item__remove { border: 0; background: none; padding: 0; color: var(--cafe-soft); font: inherit; font-size: 0.8rem; text-decoration: underline; cursor: pointer; }
.qty--small button { width: 32px; height: 30px; font-size: 1rem; }
.cart__foot { padding: 1.2rem 1.4rem 1.4rem; border-top: 1px solid var(--crema-2); background: var(--blanco); }
.cart__foot[hidden] { display: none; }
.cart__subtotal { display: flex; justify-content: space-between; margin: 0; font-size: 1.1rem; }
.cart__hint { margin: 0.2rem 0 1rem; font-size: 0.82rem; color: var(--cafe-soft); }
.cart__go { width: 100%; font: inherit; font-weight: 700; cursor: pointer; }
.cart__keep { display: block; width: 100%; margin-top: 0.6rem; padding: 0.6rem; border: 0; background: none; color: var(--terracota); font: inherit; font-weight: 600; cursor: pointer; }

.checkout { width: min(640px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 0; border-radius: var(--radius); background: var(--crema); color: var(--cafe); }
.checkout__form { position: relative; padding: 2rem clamp(1.2rem, 4vw, 2.2rem); }
.checkout__form h2 { margin-bottom: 1.2rem; }
.checkout__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem 1rem; }
.field { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; font-weight: 700; color: var(--cafe); }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { font: inherit; font-weight: 500; font-size: 0.95rem; padding: 0.65rem 0.8rem; border: 1.5px solid #d9c6b4; border-radius: 10px; background: var(--blanco); color: var(--cafe); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--terracota); box-shadow: 0 0 0 3px rgba(139, 58, 32, 0.15); }
.field .is-invalid, .field input:user-invalid, .field select:user-invalid { border-color: #c0392b; }
.checkout__summary { margin: 1.4rem 0 1rem; padding: 1rem 1.2rem; border-radius: 12px; background: var(--blanco); font-size: 0.92rem; }
.checkout__summary ul { list-style: none; margin: 0 0 0.6rem; padding: 0 0 0.6rem; border-bottom: 1px solid var(--crema-2); color: var(--cafe-soft); }
.checkout__summary li, .checkout__summary p { display: flex; justify-content: space-between; gap: 1rem; margin: 0.25rem 0; }
.checkout__total { font-size: 1.15rem; padding-top: 0.4rem; border-top: 1px solid var(--crema-2); }
.check { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.6rem 0; font-size: 0.88rem; color: var(--cafe-soft); }
.check input { margin-top: 0.2rem; width: 18px; height: 18px; accent-color: var(--terracota); flex: none; }
.check a { color: var(--terracota); }
.checkout__error { margin: 0.8rem 0 0; padding: 0.7rem 1rem; border-radius: 10px; background: #fbe4e1; color: #8a1f12; font-size: 0.9rem; }
.checkout__error[hidden] { display: none; }
.checkout__pay { width: 100%; margin-top: 1rem; font: inherit; font-weight: 700; cursor: pointer; }
.checkout__pay:disabled { opacity: 0.7; cursor: wait; transform: none; }
.checkout__secure { margin: 0.6rem 0 0; text-align: center; font-size: 0.8rem; color: var(--cafe-soft); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 0.8rem 1.3rem; border-radius: 999px; background: var(--bosque); color: var(--crema); font-weight: 600; font-size: 0.92rem; box-shadow: var(--shadow); transition: opacity 0.25s, transform 0.25s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.shop__error { text-align: center; color: var(--cafe-soft); width: 100%; }

/* Frase */
.quote {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background:
    linear-gradient(rgba(77, 12, 30, 0.78), rgba(77, 12, 30, 0.78)),
    url('assets/fotos/taza-granos.jpg') center / cover;
  color: var(--crema);
  text-align: center;
}
.quote blockquote { margin: 0 auto; max-width: 820px; font-family: var(--font-title); font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.35; }
.quote cite { display: block; margin-top: 1.4rem; font-family: var(--font-body); font-style: normal; font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--caramelo); }

/* Testimonios */
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial { margin: 0; background: var(--blanco); border-radius: var(--radius); padding: 2rem; position: relative; }
.testimonial::before { content: '“'; position: absolute; top: -0.2rem; right: 1.2rem; font-family: var(--font-title); font-size: 5rem; color: var(--terracota-soft); line-height: 1; }
.testimonial blockquote { margin: 0 0 1.2rem; font-size: 1rem; color: var(--cafe-soft); position: relative; }
.testimonial figcaption { font-size: 0.9rem; color: var(--cafe-soft); }
.testimonial figcaption strong { color: var(--terracota); }

/* Contacto */
.contact { background: var(--crema-2); }
.contact__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.contact__text > p { color: var(--cafe-soft); }
.contact__list { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 1rem; }
.contact__list li { display: flex; align-items: center; gap: 0.9rem; font-weight: 600; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--terracota); }
.contact__list svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--blanco); fill: none; stroke: var(--terracota); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

.contact__card { background: linear-gradient(145deg, var(--rojo-vino), var(--vino)); color: var(--crema); border-radius: var(--radius); padding: clamp(2rem, 4vw, 3rem); box-shadow: var(--shadow); }
.contact__card h3 { color: var(--blanco); font-size: 1.7rem; }
.contact__card p { color: #e9c9cd; margin-bottom: 1.6rem; }
.social { display: flex; gap: 0.8rem; margin-top: 1.8rem; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(250, 246, 239, 0.5); transition: background 0.2s; }
.social a:hover { background: rgba(250, 246, 239, 0.15); }
.social svg { width: 20px; height: 20px; fill: none; stroke: var(--crema); stroke-width: 1.8; stroke-linejoin: round; }

/* Pie */
.footer { background: var(--vino); color: #d9b9bf; padding: 2.2rem 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer .brand__name { color: var(--crema); display: block; }
.footer .brand__tag { color: var(--caramelo); display: block; }
.footer p { margin: 0; font-size: 0.9rem; }
.footer a { color: var(--caramelo); }
.footer a:hover { color: var(--crema); }

/* ===== Animación al aparecer ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__badge img { animation: none; }
}

/* ===== Tablet ===== */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: 1fr 1fr; }
  .testimonials__grid .testimonial:last-child { grid-column: 1 / -1; }
}

/* ===== Celular ===== */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--crema); padding: 0.5rem 20px 1.2rem;
    box-shadow: 0 12px 24px -16px rgba(58, 42, 32, 0.5);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--crema-2); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 1rem; text-align: center; }

  .hero__inner, .about__inner, .contact__inner { grid-template-columns: 1fr; }
  .hero__text { text-align: center; }
  .hero__actions, .hero__facts { justify-content: center; }
  .hero__badge { order: -1; width: min(300px, 80%); }
  .lead { margin-inline: auto; }

  .values__grid { grid-template-columns: 1fr; padding: 1.6rem; gap: 1.6rem; }
  .about__photo::before { inset: 14px -10px -14px 14px; }
  .steps, .testimonials__grid { grid-template-columns: 1fr; }
  .testimonials__grid .testimonial:last-child { grid-column: auto; }
  .footer__inner { flex-direction: column; text-align: center; }
}

/* Tienda en celular */
@media (max-width: 760px) {
  .shop__grid { gap: 1.8rem 1rem; }
  .shop__grid .card { flex-basis: calc(50% - 0.5rem); }
  .card__name { font-size: 1.1rem; }
  .card__notes { font-size: 0.8rem; }
  .wholesale { flex-direction: column; text-align: center; padding: 1.8rem 1.4rem; }
  .pdialog__grid { grid-template-columns: 1fr; }
  .pdialog__img { position: static; }
  .pdialog__img img { max-height: 300px; aspect-ratio: auto; object-fit: contain; }
  .origen div, .attrs li { grid-template-columns: 8rem 1fr; }
  .attrs li { grid-template-columns: 8rem 1fr 2.4rem; }
  .pdialog__info { padding: 1.6rem 1.3rem 1.6rem; }
  .cart-btn { order: 2; margin-left: auto; }
  .menu-toggle { order: 3; }
  .checkout__grid { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .shop__grid .card { flex-basis: 100%; max-width: 300px; }
}