/* ===== ROYLA Coffee — design tokens ===== */
:root {
  --black: #0a0a0a;
  --black-soft: #141210;
  --charcoal: #1d1a16;
  --cream: #f6f1e7;
  --cream-dim: #cfc6b3;
  --gold: #d9ad3f;
  --gold-light: #f3d888;
  --gold-deep: #9c7420;
  --gold-gradient: linear-gradient(135deg, #f3d888 0%, #d9ad3f 45%, #9c7420 100%);

  --font-serif: 'Cormorant Garamond', serif;
  --font-display: 'Fraunces', serif;
  --font-sans: 'Montserrat', sans-serif;

  --container: 1180px;
  --radius: 6px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

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

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Real farm/product photography reads a touch flat straight from a phone —
   a small contrast/saturation lift makes them pop without looking edited. */
.about-media img,
.collage-cell img,
.dish-card-media:not(.dish-card-media-label) img,
#featureImg,
.film-thumb {
  filter: contrast(1.18) saturate(1.3) brightness(1.02) sepia(0.06);
}

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.2px; }

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 6rem 2rem;
}
.section-inner-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 6rem 1.4rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 1.3rem;
  padding: 0.55rem 1.4rem;
  border: 1px solid rgba(217, 173, 63, 0.45);
  border-radius: 999px;
  background: rgba(217, 173, 63, 0.06);
}
.eyebrow.center { display: block; width: fit-content; margin-left: auto; margin-right: auto; text-align: center; }

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--cream);
  margin-bottom: 1.2rem;
  font-weight: 900;
}
.section-title.center { text-align: center; }

.section-subtitle {
  color: var(--cream-dim);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 3.5rem;
}
.section-subtitle.center { margin-left: auto; margin-right: auto; text-align: center; }

/* subtle film grain overlay for texture */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn-gold {
  background: var(--gold-gradient);
  color: var(--black);
  box-shadow: 0 8px 24px rgba(217, 173, 63, 0.25);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(217, 173, 63, 0.4); }
.btn-outline {
  border: 1px solid var(--gold);
  color: var(--gold-light);
}
.btn-outline:hover { background: rgba(217, 173, 63, 0.1); transform: translateY(-3px); }
.btn-lg { padding: 1.1rem 2.6rem; font-size: 0.9rem; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.4rem 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  padding: 0.85rem 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(217, 173, 63, 0.15);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.2vw, 1.4rem);
}
.brand { display: flex; align-items: center; gap: 0.7rem; margin-right: 1.4rem; flex-shrink: 0; }
.brand-logo { height: 42px; width: auto; }
.brand-name-stack { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 3px;
  color: var(--gold-light);
  white-space: nowrap;
}
.brand-sub {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-top: 2px;
  white-space: nowrap;
}
.main-nav { display: flex; gap: clamp(0.45rem, 1.1vw, 1.05rem); margin-right: auto; flex-shrink: 1; min-width: 0; }
.main-nav a {
  font-size: clamp(0.6rem, 0.76vw, 0.72rem);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--cream-dim);
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.main-nav a:hover { color: var(--gold-light); }
.main-nav a:hover::after { width: 100%; }

.header-cta { flex-shrink: 0; padding: 0.75rem 1.5rem; font-size: 0.78rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
}

/* ===== Account (login / register) ===== */
.account-actions { display: flex; align-items: center; gap: 0.9rem; flex-shrink: 0; }
.login-link {
  background: none;
  border: none;
  color: var(--cream-dim);
  font-size: clamp(0.68rem, 0.85vw, 0.78rem);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.login-link:hover { color: var(--gold-light); }
.account-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid rgba(217, 173, 63, 0.4);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  color: var(--gold-light);
  cursor: pointer;
  font-size: clamp(0.7rem, 0.85vw, 0.8rem);
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.account-trigger:hover { background: rgba(217, 173, 63, 0.1); border-color: var(--gold); }
.account-trigger-label { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cart-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  flex-shrink: 0;
  background: none;
  border: 1px solid rgba(217, 173, 63, 0.4);
  border-radius: 50%;
  color: var(--gold-light);
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cart-trigger:hover { background: rgba(217, 173, 63, 0.1); border-color: var(--gold); }
.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gold-gradient);
  color: var(--black);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.cart-count[hidden] { display: none; }

.account-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.account-modal-overlay.open { opacity: 1; pointer-events: auto; }

.account-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--charcoal);
  border: 1px solid rgba(217, 173, 63, 0.25);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s var(--ease);
}
.account-modal-overlay.open .account-modal { transform: translateY(0) scale(1); }

.account-modal-close {
  position: absolute;
  top: 0.9rem; right: 1.1rem;
  background: none;
  border: none;
  color: var(--cream-dim);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.account-modal-close:hover { color: var(--gold-light); }

.account-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.8rem; }
.account-tab {
  flex: 1;
  background: none;
  border: 1px solid rgba(217, 173, 63, 0.3);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  color: var(--cream-dim);
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.account-tab.active { background: var(--gold-gradient); color: var(--black); font-weight: 600; border-color: transparent; }

.account-form { display: none; flex-direction: column; gap: 1.1rem; }
.account-form.active { display: flex; }
.account-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
}
.account-form input {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--cream);
  background: var(--black-soft);
  border: 1px solid rgba(217, 173, 63, 0.3);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}
.account-form input:focus { outline: none; border-color: var(--gold); }
.account-submit { border: none; cursor: pointer; font-family: var(--font-sans); margin-top: 0.4rem; }
.account-msg { font-size: 0.85rem; color: var(--gold-light); min-height: 1.1rem; margin: 0; }
.account-msg.error { color: #e0715a; }

.account-logged-in { display: none; flex-direction: column; gap: 1.2rem; text-align: center; }
.account-logged-in.active { display: flex; }
.account-welcome { color: var(--cream-dim); font-size: 1rem; }
.account-welcome strong { color: var(--gold-light); }

.account-admin-link {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(217, 173, 63, 0.12);
  font-size: 0.72rem;
  color: var(--cream-dim);
  opacity: 0.65;
  transition: color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.account-admin-link:hover { color: var(--gold-light); opacity: 1; }

@media (max-width: 980px) {
  .account-trigger-label { display: none; }
  .account-trigger { padding: 0.55rem; }
  .login-link { display: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg-layer {
  position: absolute;
  inset: -6% -6%;
  z-index: 0;
}
.hero-bg-layer img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.55) contrast(1.28) brightness(1.03) sepia(0.04);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0.85) 60%, rgba(10,10,10,0.97) 100%),
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.45) 40%, rgba(10,10,10,0.95) 100%);
}

.hero-tilt-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  padding: 7rem 2rem 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  perspective: 1400px;
}

.hero-bottom-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  transform-style: preserve-3d;
}

.hero-text-block {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  max-width: 560px;
}

.hero-content { transform-style: preserve-3d; }

.hero-title {
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  line-height: 0.9;
  font-weight: 900;
  color: var(--cream);
  text-shadow: 0 0 50px rgba(217, 173, 63, 0.3);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-title-sub {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-top: 1rem;
  font-weight: 500;
}
.hero-tagline {
  margin-bottom: 1.4rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-light);
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== Hero product (bag) ===== */
.hero-product {
  position: relative;
  flex-shrink: 0;
  width: clamp(230px, 27vw, 400px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: productFloat 6s ease-in-out infinite;
}
.hero-product-glow {
  position: absolute;
  inset: 10% -20% 0 -20%;
  background: radial-gradient(ellipse at 50% 60%, rgba(217, 173, 63, 0.4) 0%, rgba(217, 173, 63, 0) 70%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}
.hero-product-tilt {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-product-tilt img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 35px 45px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 40px rgba(217, 173, 63, 0.15));
}

.magnifier-hint {
  display: none;
  position: absolute;
  left: 50%;
  bottom: -1.8rem;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.68rem;
  letter-spacing: 0.5px;
  color: var(--cream-dim);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.hero-product-tilt:hover .magnifier-hint { opacity: 0.8; }

.magnifier-glass {
  display: none;
  position: absolute;
  top: 0; left: 0;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 3px solid rgba(217, 173, 63, 0.7);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 0 3px rgba(255, 255, 255, 0.1);
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0;
  z-index: 5;
  transition: opacity 0.2s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .magnifier-hint { display: block; }
  .magnifier-glass { display: block; }
  .hero-product-tilt { cursor: zoom-in; }
}
@keyframes productFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.floating-beans { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bean {
  position: absolute;
  width: 10px; height: 16px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--gold-gradient);
  opacity: 0.35;
  animation: floatBean linear infinite;
}
.bean::after {
  content: '';
  position: absolute;
  top: 10%; left: 50%;
  width: 1px; height: 80%;
  background: rgba(10,10,10,0.4);
  transform: translateX(-50%);
}
@keyframes floatBean {
  0%   { transform: translateY(10vh) translateX(0) rotate(0deg); }
  100% { transform: translateY(-110vh) translateX(40px) rotate(360deg); }
}

.scroll-cue {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 26px; height: 42px;
  border: 1px solid var(--gold);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  background: var(--gold-light);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollCue 1.6s ease infinite;
}
@keyframes scrollCue {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 22px; }
  100% { opacity: 0; top: 8px; }
}

/* ===== About (Sobre Nosotros) ===== */
.about { background: var(--black); }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4.5rem;
  align-items: start;
}
.about-media {
  position: sticky;
  top: 7rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 55px rgba(0,0,0,0.45);
  transform-style: preserve-3d;
  will-change: transform;
}
.about-media img { height: 460px; object-fit: cover; }
.about-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 1.4rem; color: var(--cream); }
.about-copy p { color: var(--cream-dim); margin-bottom: 1.1rem; font-size: 1rem; }
.about-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-light) !important;
  border-left: 2px solid var(--gold);
  padding-left: 1.2rem;
  margin: 1.8rem 0 !important;
}
.about-list { margin: 1.4rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.about-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--cream-dim);
  font-size: 0.95rem;
}
.about-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.45rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-gradient);
}

.founder-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 1.8rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(217, 173, 63, 0.3);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(217, 173, 63, 0.08), rgba(217, 173, 63, 0) 60%);
}
.founder-initials {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--black);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
}
.founder-info { display: flex; flex-direction: column; gap: 0.15rem; }
.founder-label {
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-light);
}
.founder-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--cream);
}
.founder-role { font-size: 0.82rem; color: var(--cream-dim); }

/* ===== Origin ===== */
.origin { background: var(--black-soft); position: relative; overflow: hidden; }
.origin-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.origin-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(1.05) brightness(0.38) blur(1.5px);
}
.origin-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.9) 60%, rgba(10,10,10,0.97) 100%),
    linear-gradient(180deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.75) 30%, rgba(10,10,10,0.8) 70%, rgba(10,10,10,0.97) 100%);
}
.origin .floating-beans { z-index: 1; }
.origin .section-inner { position: relative; z-index: 2; }
.origin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
.origin-collage {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 1.2rem;
  height: 560px;
}
.collage-cell {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.collage-cell img { width: 100%; height: 100%; object-fit: cover; }
.collage-cell::after {
  content: '';
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(217,173,63,0.35);
  pointer-events: none;
}
.collage-cell-a { grid-column: 1; grid-row: 1; }
.collage-cell-b { grid-column: 1; grid-row: 2; }
.collage-cell-c { grid-column: 2; grid-row: 1 / span 2; }
.origin-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 1.4rem; color: var(--cream); }
.origin-copy p { color: var(--cream-dim); margin-bottom: 1.1rem; font-size: 1.02rem; }
.origin-copy strong { color: var(--gold-light); font-weight: 600; }
.origin-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold-light) !important;
  border-left: 2px solid var(--gold);
  padding-left: 1.2rem;
  margin: 1.8rem 0 !important;
}
.origin-stats { display: flex; gap: 2.4rem; margin-top: 2rem; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-serif); font-size: 2.1rem; color: var(--gold); font-weight: 700; }
.stat-label { font-size: 0.72rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--cream-dim); margin-top: 0.2rem; }

/* ===== Coffee details / card row ===== */
.coffee-details { position: relative; background: var(--black); overflow: hidden; }
.coffee-details-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.coffee-details-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(1.05) brightness(0.42) blur(1.5px);
}
.coffee-details-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 25%, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.88) 60%, rgba(10,10,10,0.97) 100%),
    linear-gradient(180deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.55) 25%, rgba(10,10,10,0.7) 70%, rgba(10,10,10,0.97) 100%);
}
.coffee-details .floating-beans { z-index: 1; }
.coffee-details .section-inner { position: relative; z-index: 2; }

.card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: 760px;
  margin: 0 auto 3rem;
}
.dish-card { transform-style: preserve-3d; will-change: transform; }
.dish-card-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 220px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
  margin-bottom: 0.9rem;
}
.dish-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.dish-card-media-label { background: var(--charcoal); display: flex; align-items: center; justify-content: center; padding: 0.6rem; }
.dish-card-media-label img { width: auto; height: 100%; object-fit: contain; }
.dish-card:hover .dish-card-media img { transform: scale(1.06); }
.dish-card-caption {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  color: var(--cream-dim);
  font-weight: 500;
}
.dish-card-buy { cursor: pointer; }
.dish-card-buy .dish-card-media { position: relative; transition: box-shadow 0.3s var(--ease); }
.dish-card-buy:hover .dish-card-media,
.dish-card-buy:focus-visible .dish-card-media {
  box-shadow: 0 20px 40px rgba(0,0,0,0.45), 0 0 0 2px rgba(217, 173, 63, 0.6);
}
.dish-card-price {
  display: block;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-top: 0.2rem;
}

/* ===== Product order modal ===== */
.product-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.product-modal-overlay.open { opacity: 1; pointer-events: auto; }

.product-modal {
  position: relative;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--charcoal);
  border: 1px solid rgba(217, 173, 63, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s var(--ease);
}
.product-modal-overlay.open .product-modal { transform: translateY(0) scale(1); }

.product-modal-close {
  position: absolute;
  top: 0.9rem; right: 1.1rem;
  z-index: 2;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,10,10,0.5);
  border: none;
  border-radius: 50%;
  color: var(--cream);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.product-modal-close:hover { color: var(--gold-light); }

.product-modal-media {
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.product-modal-media img { max-height: 360px; width: auto; object-fit: contain; }

.product-modal-info {
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.product-modal-title { font-family: var(--font-display); font-size: 1.5rem; color: var(--cream); margin: 0.2rem 0 0; }
.product-modal-desc { font-size: 0.92rem; color: var(--cream-dim); line-height: 1.6; }

.product-modal-price { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.2rem; }
.product-modal-price-num { font-family: var(--font-serif); font-size: 1.8rem; color: var(--gold-light); font-weight: 600; }
.product-modal-price-unit { font-size: 0.78rem; color: var(--cream-dim); text-transform: uppercase; letter-spacing: 0.5px; }

.product-modal-field { display: flex; flex-direction: column; gap: 0.5rem; }
.product-modal-label {
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
}

.pill-group { display: flex; gap: 0.6rem; }
.pill-option {
  flex: 1;
  background: none;
  border: 1px solid rgba(217, 173, 63, 0.3);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  color: var(--cream-dim);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.pill-option.active { background: var(--gold-gradient); color: var(--black); font-weight: 600; border-color: transparent; }

.product-modal-select {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--cream);
  background: var(--black-soft);
  border: 1px solid rgba(217, 173, 63, 0.3);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  cursor: pointer;
}

.qty-stepper { display: flex; align-items: center; gap: 1rem; }
.qty-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(217, 173, 63, 0.4);
  background: none;
  color: var(--gold-light);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s var(--ease);
}
.qty-btn:hover { background: rgba(217, 173, 63, 0.1); }
.qty-value { font-family: var(--font-serif); font-size: 1.2rem; min-width: 1.5rem; text-align: center; }

.product-modal-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(217, 173, 63, 0.2);
  font-size: 0.95rem;
  color: var(--cream-dim);
}
.cart-discount-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: var(--gold-light);
}
.product-modal-total strong { font-family: var(--font-serif); font-size: 1.3rem; color: var(--gold-light); }

.product-modal-cta {
  display: block;
  width: 100%;
  text-align: center;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  margin-top: 0.2rem;
}
.product-modal-cta.added { background: var(--gold-gradient); }

.product-modal-fixed {
  font-size: 0.92rem;
  color: var(--cream);
  background: var(--black-soft);
  border: 1px solid rgba(217, 173, 63, 0.25);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
}

.product-modal-shipping {
  font-size: 0.75rem;
  color: var(--cream-dim);
  text-align: center;
  margin-top: 0.2rem;
}

@media (max-width: 720px) {
  .product-modal { grid-template-columns: 1fr; max-height: 92vh; }
  .product-modal-media { padding: 1.4rem; }
  .product-modal-media img { max-height: 240px; }
}

/* ===== Cart modal ===== */
.cart-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.cart-modal-overlay.open { opacity: 1; pointer-events: auto; }

.cart-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--charcoal);
  border: 1px solid rgba(217, 173, 63, 0.25);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.cart-modal-overlay.open .cart-modal { transform: translateY(0) scale(1); }

.cart-title { font-family: var(--font-display); font-size: 1.4rem; color: var(--cream); }

.cart-items { display: flex; flex-direction: column; gap: 1rem; }
.cart-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(217, 173, 63, 0.15);
}
.cart-item img { width: 54px; height: 54px; object-fit: contain; background: var(--black-soft); border-radius: var(--radius); padding: 0.3rem; }
.cart-item-info { flex: 1; display: flex; flex-direction: column; gap: 0.15rem; }
.cart-item-name { font-size: 0.9rem; color: var(--cream); }
.cart-item-meta { font-size: 0.76rem; color: var(--cream-dim); }
.cart-item-controls { display: flex; align-items: center; gap: 0.6rem; }
.cart-item-controls .qty-btn { width: 28px; height: 28px; font-size: 1rem; }
.cart-item-controls .qty-value { font-size: 0.95rem; min-width: 1.2rem; }
.cart-item-remove {
  background: none; border: none; color: var(--cream-dim); cursor: pointer;
  font-size: 0.72rem; text-decoration: underline; margin-left: 0.4rem;
}
.cart-item-remove:hover { color: var(--gold-light); }

.cart-empty { color: var(--cream-dim); font-size: 0.9rem; text-align: center; padding: 1rem 0; }

.cart-summary { display: flex; flex-direction: column; gap: 0.9rem; }

/* ===== Checkout modal (shipping details) ===== */
.checkout-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.checkout-modal-overlay.open { opacity: 1; pointer-events: auto; }

.checkout-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--charcoal);
  border: 1px solid rgba(217, 173, 63, 0.25);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s var(--ease);
}
.checkout-modal-overlay.open .checkout-modal { transform: translateY(0) scale(1); }
.checkout-subtitle { color: var(--cream-dim); font-size: 0.88rem; margin: 0.3rem 0 1.6rem; }
.checkout-form { row-gap: 1.1rem; }
.checkout-payment { display: flex; flex-direction: column; gap: 0.7rem; }
.checkout-payment-note { font-size: 0.8rem; color: var(--cream-dim); line-height: 1.5; }
.checkout-payment-note strong { color: var(--gold-light); }

.detail-chips { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.chip {
  border: 1px solid rgba(217,173,63,0.35);
  background: var(--charcoal);
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-size: 0.85rem;
  color: var(--cream-dim);
}
.chip strong { color: var(--gold-light); font-weight: 600; margin-right: 0.4rem; }

/* ===== Coffee difference callout ===== */
.cafe-diff {
  max-width: 880px;
  margin: 4rem auto 0;
  padding-top: 3.5rem;
  border-top: 1px solid rgba(217, 173, 63, 0.2);
  text-align: center;
}
.cafe-diff-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--cream);
  margin: 1rem auto 2rem;
  max-width: 680px;
}
.cafe-diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  text-align: left;
  margin-bottom: 2rem;
}
.cafe-diff-grid p { color: var(--cream-dim); font-size: 0.98rem; }
.cafe-diff-grid strong { color: var(--gold-light); font-weight: 600; }
.cafe-diff-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-light);
  max-width: 620px;
  margin: 0 auto 2rem;
}
.cafe-diff-footer { color: var(--cream-dim); font-size: 0.95rem; max-width: 680px; margin: 0 auto; }
.cafe-diff-footer strong { color: var(--gold-light); font-weight: 600; }

/* ===== Process wave ===== */
.process { position: relative; background: var(--black-soft); overflow: hidden; }
.process-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.process-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: saturate(1.1) brightness(0.55) blur(1.5px);
}
.process-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0.85) 65%, rgba(10,10,10,0.97) 100%),
    linear-gradient(180deg, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.6) 30%, rgba(10,10,10,0.85) 75%, rgba(10,10,10,0.98) 100%);
}
.process .floating-beans { z-index: 1; }
.process .section-inner { position: relative; z-index: 2; }

.process-photo {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 2 / 3;
  margin: 2.6rem auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(217, 173, 63, 0.25);
  transform-style: preserve-3d;
  will-change: transform;
}
.process-photo::before {
  content: '';
  position: absolute;
  inset: -30%;
  z-index: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(217, 173, 63, 0.35) 0%, rgba(217, 173, 63, 0) 65%);
  filter: blur(20px);
  pointer-events: none;
}
.process-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
  filter: saturate(1.12) contrast(1.05);
  transition: transform 0.6s var(--ease);
}
.process-photo:hover img { transform: scale(1.05); }
.process-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10,10,10,0) 45%, rgba(10,10,10,0.88) 100%);
  pointer-events: none;
}
.process-photo-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.4rem 1.6rem;
  color: var(--cream);
  pointer-events: none;
}
.process-photo-kicker {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-light);
}
.process-photo-caption span:last-child {
  font-size: 0.78rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.process-wave {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 980px;
  margin: 2rem auto 0;
  padding-top: 10px;
}
.process-wave-line {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
}
.process-wave-line path {
  stroke: rgba(217, 173, 63, 0.5);
  fill: none;
  stroke-width: 2;
}
.process-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  width: 16%;
}
.process-step:nth-child(2) { margin-top: 100px; }
.process-step:nth-child(3) { margin-top: -14px; }
.process-step:nth-child(4) { margin-top: 100px; }
.process-step:nth-child(5) { margin-top: -14px; }
.process-step:nth-child(6) { margin-top: 100px; }
.process-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--charcoal);
  border: 1px solid rgba(217,173,63,0.5);
  position: relative;
}
.process-icon::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 22px;
  transform: translate(-50%, -50%);
  background: var(--gold-gradient);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}
.process-step p { font-size: 0.85rem; color: var(--cream-dim); text-align: center; }

/* ===== Gallery (full-bleed + filmstrip) ===== */
.gallery { background: var(--black); }
.feature-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: min(58vh, 620px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
  transform-style: preserve-3d;
  will-change: transform;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-frame-brand {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  pointer-events: none;
}
.feature-frame-brand-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.feature-frame-brand-mark img { height: 60px; width: auto; opacity: 0.9; }
.feature-frame-brand-mark span {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 1.5px;
  color: var(--gold-light);
  opacity: 0.85;
  white-space: nowrap;
}
#featureImg {
  position: relative;
  z-index: 1;
  width: auto; height: auto;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  transition: opacity 0.4s var(--ease);
}
.filmstrip { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.4rem; }
.film-thumb {
  position: relative;
  width: 90px; height: 64px;
  border-radius: 10px;
  border: 2px solid transparent;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.film-thumb:hover { opacity: 0.85; transform: translateY(-3px); }
.film-thumb.active { opacity: 1; border-color: var(--gold); }

/* Loupe: a small magnified preview that follows the cursor, echoing the
   iOS photo-picker "press and drag to zoom" lens — subtle, not a hard jump-cut. */
.film-thumb-lens {
  position: absolute;
  z-index: 30;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 0 5px rgba(217, 173, 63, 0.15);
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -78%) scale(0.85);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.film-thumb-lens.visible { opacity: 1; transform: translate(-50%, -78%) scale(1); }

@media (max-width: 560px) {
  .film-thumb-lens { width: 80px; height: 80px; }
}

/* ===== Delivery ===== */
.delivery { background: var(--black-soft); text-align: center; }
.delivery-copy { max-width: 640px; margin: 0 auto 1.2rem; color: var(--cream-dim); font-size: 1rem; }
.delivery-copy strong { color: var(--gold-light); font-weight: 600; }
.delivery-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem 3.5rem; margin: 2.4rem 0 2.6rem; }
.delivery-stats .stat-num { font-size: 1.7rem; }
.delivery-stats .stat { align-items: center; }

/* ===== Contact ===== */
.contact { background: var(--black); text-align: center; position: relative; }
.contact::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(217,173,63,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.contact-inner { position: relative; }
.contact-copy { max-width: 520px; margin: 0 auto 2.4rem; color: var(--cream-dim); font-size: 1.05rem; }
.contact-buttons { display: flex; justify-content: center; gap: 1.4rem; flex-wrap: wrap; }

.contact-email { margin-top: 1.6rem; }
.contact-email a {
  color: var(--gold-light);
  font-size: 1rem;
  border-bottom: 1px solid rgba(217,173,63,0.4);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.contact-email a:hover { color: var(--gold); border-color: var(--gold); }

.contact-form-wrap {
  max-width: 640px;
  margin: 4rem auto 0;
  padding-top: 3rem;
  border-top: 1px solid rgba(217,173,63,0.2);
}
.contact-form-title {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  color: var(--cream);
  margin: 1rem 0 2rem;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  text-align: left;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
}
.contact-form-full { grid-column: 1 / -1; }
/* Campo trampa anti-spam: invisible para personas, visible para bots simples. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--cream);
  background: var(--charcoal);
  border: 1px solid rgba(217,173,63,0.3);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  resize: vertical;
  cursor: pointer;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.contact-form-submit {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 0.5rem;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}

/* ===== Reseñas ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-bottom: 3rem;
}
.review-card {
  background: var(--charcoal);
  border: 1px solid rgba(217, 173, 63, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.review-card-stars { color: rgba(217, 173, 63, 0.25); font-size: 1rem; letter-spacing: 2px; }
.review-card-stars .filled { color: var(--gold); }
.review-card-comment { color: var(--cream-dim); font-size: 0.92rem; line-height: 1.6; }
.review-card-name { color: var(--gold-light); font-size: 0.85rem; font-weight: 600; }
.reviews-empty { color: var(--cream-dim); text-align: center; margin-bottom: 2rem; }

.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 0.2rem; }
.star-input input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.star-input label {
  font-size: 1.9rem;
  color: rgba(217, 173, 63, 0.25);
  cursor: pointer;
  transition: color 0.2s var(--ease);
  text-transform: none;
  letter-spacing: normal;
}
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label {
  color: var(--gold);
}
.star-input input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--black-soft);
  border-top: 1px solid rgba(217,173,63,0.15);
  padding: 3.5rem 2rem 2.5rem;
  text-align: center;
}
.footer-logo { height: 100px; width: auto; margin: 0 auto 1.2rem; filter: drop-shadow(0 8px 20px rgba(217,173,63,0.25)); }
.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-light);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.footer-copy { font-size: 0.78rem; color: var(--cream-dim); opacity: 0.7; }
.footer-legal { font-size: 0.75rem; color: var(--cream-dim); opacity: 0.6; margin-top: 0.3rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.4rem;
  margin: 1.6rem 0 1.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(217, 173, 63, 0.12);
}
.footer-links a {
  font-size: 0.74rem;
  letter-spacing: 0.3px;
  color: var(--cream-dim);
  transition: color 0.3s var(--ease);
}
.footer-links a:hover { color: var(--gold-light); }

/* ===== Aviso de cookies ===== */
.cookie-banner {
  position: fixed;
  left: 1.2rem; right: 1.2rem; bottom: 1.2rem;
  z-index: 400;
  max-width: 640px;
  margin: 0 auto;
  background: var(--charcoal);
  border: 1px solid rgba(217, 173, 63, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  padding: 1.3rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.cookie-banner.visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner-text { flex: 1; min-width: 220px; font-size: 0.84rem; color: var(--cream-dim); line-height: 1.5; }
.cookie-banner-text a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: flex; gap: 0.7rem; flex-shrink: 0; }
.cookie-banner-actions .btn { padding: 0.65rem 1.3rem; font-size: 0.72rem; border: none; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .cookie-banner { transition: none; } }

/* ===== Página de políticas ===== */
.policy-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
  background: var(--black-soft);
  border-bottom: 1px solid rgba(217, 173, 63, 0.15);
}
.policy-topbar .brand { margin-right: 0; }
.policy-topbar-back { font-size: 0.8rem; color: var(--cream-dim); transition: color 0.3s var(--ease); }
.policy-topbar-back:hover { color: var(--gold-light); }

.policy-hero { padding: 4rem 2rem 2rem; text-align: center; max-width: 760px; margin: 0 auto; }
.policy-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 900px;
  margin: 0 auto 1rem;
  padding: 0 2rem;
}
.policy-nav a {
  font-size: 0.76rem;
  letter-spacing: 0.4px;
  color: var(--cream-dim);
  border: 1px solid rgba(217, 173, 63, 0.3);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.policy-nav a:hover { color: var(--gold-light); border-color: var(--gold); }

.policy-section { max-width: 760px; margin: 0 auto; padding: 3.5rem 2rem; scroll-margin-top: 6.5rem; }
.policy-section:not(:last-of-type) { border-bottom: 1px solid rgba(217, 173, 63, 0.14); }
.policy-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
.policy-section h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--gold-light); margin: 1.6rem 0 0.6rem; }
.policy-section p { color: var(--cream-dim); line-height: 1.7; margin-bottom: 1rem; }
.policy-section ul { color: var(--cream-dim); line-height: 1.7; margin: 0 0 1rem 1.2rem; }
.policy-section li { margin-bottom: 0.4rem; }
.policy-section strong { color: var(--cream); font-weight: 600; }
.policy-external {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 0.5rem; color: var(--gold-light); border-bottom: 1px solid rgba(217,173,63,0.4);
  padding-bottom: 2px; transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.policy-external:hover { color: var(--gold); border-color: var(--gold); }

.faq-item {
  border: 1px solid rgba(217, 173, 63, 0.2);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.2rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--cream);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--gold-light);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item-body { padding: 0 1.2rem 1.1rem; color: var(--cream-dim); font-size: 0.88rem; line-height: 1.6; }

.policy-back { display: block; text-align: center; padding: 2rem 0 3rem; color: var(--cream-dim); font-size: 0.82rem; }
.policy-back:hover { color: var(--gold-light); }

/* ===== Scroll reveal base state ===== */
.reveal { opacity: 0; transform: translateY(40px); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { position: static; }
  .about-media img { height: 320px; }
  .origin-grid { grid-template-columns: 1fr; }
  .origin-collage { height: 420px; }
  .hero-product { width: clamp(200px, 24vw, 300px); }
  .card-row { grid-template-columns: repeat(3, 1fr); }
  .process-wave { flex-wrap: wrap; justify-content: center; row-gap: 2.4rem; }
  .process-wave-line { display: none; }
  .process-step { width: 30%; margin-top: 0 !important; }
  .cafe-diff-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1360px) {
  .main-nav { position: fixed; top: 0; right: -100%; height: 100vh; width: min(320px, 80vw);
    background: rgba(10,10,10,0.98); flex-direction: column; justify-content: center;
    gap: 2.2rem; padding: 2rem; margin-right: 0; transition: right 0.4s var(--ease); border-left: 1px solid rgba(217,173,63,0.2); }
  .main-nav a { white-space: normal; }
  .main-nav.open { right: 0; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 860px) {
  /* En pantallas angostas el texto + la bolsa apilados son más altos que
     100vh — si el héroe se queda con altura fija, el contenido se sube y
     queda tapado por el header. Dejamos que crezca lo que necesite. */
  .hero { height: auto; min-height: 100vh; }
  .hero-tilt-stage { height: auto; padding: 8rem 1.4rem 5rem; }
  .hero-title { font-size: clamp(2.6rem, 13vw, 4rem); }
  .hero-bottom-row { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .hero-product { align-self: center; width: 220px; }
  .card-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .section-inner, .section-inner-wide { padding: 4.5rem 1.4rem; }
  .origin-collage { grid-template-columns: 1fr; grid-template-rows: repeat(3, 180px); height: auto; }
  .collage-cell-a, .collage-cell-b, .collage-cell-c { grid-column: 1; }
  .collage-cell-a { grid-row: 1; } .collage-cell-b { grid-row: 2; } .collage-cell-c { grid-row: 3; }
  .card-row { grid-template-columns: 1fr 1fr; }
  .origin-stats { flex-wrap: wrap; gap: 1.6rem; }
  .process-step { width: 45%; }
  .feature-frame { height: 280px; }
  /* En fotos verticales (comunes en celular) el marco deja espacio a los
     lados y ahí se alcanza a ver el logo decorativo de fondo — en pantallas
     angostas mejor lo ocultamos para que no se vea como un error. */
  .feature-frame-brand { display: none; }
  .film-thumb { width: 64px; height: 46px; }
  .contact-form { grid-template-columns: 1fr; }
}

