/* ===== Cabecera flotante ===== */
.cab {
  position: fixed;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}
.cab > * { pointer-events: auto; }
.cab-logo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--kraft);
  box-shadow: 0 12px 30px -12px rgba(31, 21, 14, .6);
  transition: transform .5s var(--ease);
}
.cab-logo:hover { transform: rotate(-10deg) scale(1.05); }
.cab-logo img { width: 42px; height: auto; object-fit: contain; }
.cab-nav {
  position: relative;
  display: flex;
  gap: 2px;
  padding: 6px;
  border-radius: 999px;
  background: var(--vidrio);
  border: 1px solid rgba(255, 253, 249, .55);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 12px 30px -16px rgba(31, 21, 14, .5);
}
.cab-nav a {
  position: relative;
  z-index: 1;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--cafe);
  transition: color .3s;
}
.cab-nav a.activo { color: var(--kraft); }
.cab-ind {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--cafe);
  opacity: 0;
  transition: left .5s var(--ease), width .5s var(--ease), opacity .3s;
}
.cab-acc { display: flex; gap: 10px; }
.cab-menu { display: none; }
.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--oxido);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  transform: scale(0);
  transition: transform .4s var(--ease);
}
.badge.hay { transform: scale(1); }
.badge.pop { animation: pop .5s var(--ease); }
@keyframes pop { 40% { transform: scale(1.45); } }

.menu-movil {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  background: rgba(53, 36, 24, .92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  clip-path: circle(0 at calc(100% - 44px) 44px);
  transition: clip-path .7s var(--ease);
}
.menu-movil.abierto { clip-path: circle(150% at calc(100% - 44px) 44px); }
.menu-movil a {
  font-family: var(--f-disp);
  font-variation-settings: 'wdth' 125;
  font-weight: 850;
  font-size: 40px;
  color: var(--kraft);
  text-decoration: none;
}
.menu-movil .cerrar { position: absolute; top: 24px; right: 24px; }

/* ===== Hero ===== */
.hero { padding: 12px; }
.hero-bloque {
  position: relative;
  min-height: calc(100svh - 24px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(196, 85, 43, .28), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(220, 211, 194, .12), transparent 60%),
    var(--cafe);
  color: var(--kraft);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding: 120px clamp(24px, 5vw, 80px) 90px;
  overflow: hidden;
}
.hero-logo { width: 150px; opacity: .9; margin-bottom: 30px; }
.hero-h {
  margin: 0;
  font-size: clamp(42px, 6.4vw, 104px);
  color: var(--kraft);
}
.hero-h .pal { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-h .pal > span { display: inline-block; transform: translateY(105%); animation: subir 1.1s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes subir { to { transform: none; } }
.hero-p {
  max-width: 470px;
  margin: 28px 0 36px;
  font-size: 18px;
  color: rgba(220, 211, 194, .82);
  opacity: 0;
  animation: aparecer 1s var(--ease) .7s forwards;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; animation: aparecer 1s var(--ease) .9s forwards; }
@keyframes aparecer { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* Carrusel tipo mazo */
.mazo { position: relative; height: min(68vh, 640px); opacity: 0; animation: aparecer 1.2s var(--ease) .4s forwards; }
.mazo-cartas { position: relative; height: calc(100% - 70px); touch-action: pan-y; cursor: grab; }
.mazo-cartas.arrastrando { cursor: grabbing; }
.carta {
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sombra-2);
  transform-origin: 50% 100%;
  transition: transform .9s var(--ease), opacity .9s var(--ease), filter .9s var(--ease);
  will-change: transform;
  user-select: none;
}
.carta img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 6s linear; pointer-events: none; }
.carta.frente img { transform: scale(1); }
.carta-chip {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(31, 21, 14, .35);
  border: 1px solid rgba(255, 253, 249, .25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.mazo-pie { display: flex; align-items: center; justify-content: space-between; height: 70px; padding-top: 18px; }
.mazo-puntos { display: flex; gap: 8px; }
.mazo-puntos button {
  position: relative;
  width: 34px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(220, 211, 194, .25);
  overflow: hidden;
}
.mazo-puntos button span { position: absolute; inset: 0; background: var(--kraft); transform: scaleX(0); transform-origin: left; }
.mazo-puntos button.activo span { animation: progreso var(--dur, 5s) linear forwards; }
.mazo-puntos button.visto span { transform: scaleX(1); }
@keyframes progreso { to { transform: scaleX(1); } }
.mazo-flechas { display: flex; gap: 10px; }
.hero .redondo { background: rgba(255, 253, 249, .1); color: var(--kraft); border-color: rgba(255, 253, 249, .22); }
.hero .redondo:hover { background: var(--kraft); color: var(--cafe); }

.sello {
  position: absolute;
  left: -54px;
  top: -46px;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(196, 85, 43, .92);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6);
  transition: transform .5s var(--ease);
  z-index: 20;
}
.sello:hover { transform: scale(1.08); }
.sello-txt { position: absolute; inset: 0; width: 100%; height: 100%; animation: girar 18s linear infinite; }
.sello-txt text { font-family: var(--f-disp); font-variation-settings: 'wdth' 125; font-weight: 800; font-size: 15px; letter-spacing: 3px; fill: var(--kraft); }
.sello img { width: 52px; }
@keyframes girar { to { transform: rotate(360deg); } }

.hero-anuncio {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  margin: 0;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255, 253, 249, .08);
  border: 1px solid rgba(255, 253, 249, .14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 13px;
  color: rgba(220, 211, 194, .85);
  white-space: nowrap;
}
.hero-anuncio:empty { display: none; }

/* ===== Marquesina ===== */
.marq { padding: 46px 0; overflow: hidden; }
.marq-pista { display: flex; width: max-content; align-items: center; gap: 40px; will-change: transform; }
.marq-pista span {
  font-family: var(--f-disp);
  font-variation-settings: 'wdth' 125;
  font-weight: 900;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--cafe);
  white-space: nowrap;
}
.marq-pista span.hueco { color: transparent; -webkit-text-stroke: 1.5px var(--cafe); }
.marq-pista img { width: 64px; opacity: .85; flex: none; }

/* ===== Catálogo ===== */
.cat { padding: 60px clamp(18px, 4vw, 60px) 110px; }
.cat-cab { display: flex; align-items: end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 36px; }
.cat-h { margin: 0; font-size: clamp(40px, 6vw, 88px); color: var(--cafe); }
.cat-p { max-width: 400px; margin: 0; color: var(--gris); font-size: 17px; }
.cat-herr { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }
.chips {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: var(--kraft-2);
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}
.chips::-webkit-scrollbar { display: none; }
.chips button {
  position: relative;
  z-index: 1;
  flex: none;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--cafe);
  transition: color .3s;
}
.chips button.activo { color: var(--kraft); }
.chips-ind { position: absolute; top: 6px; bottom: 6px; left: 0; border-radius: 999px; background: var(--cafe); transition: left .5s var(--ease), width .5s var(--ease); }
.buscar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  height: 50px;
  border-radius: 999px;
  background: var(--blanco);
  border: 1px solid var(--linea);
  min-width: 240px;
  transition: border-color .3s, box-shadow .3s;
}
.buscar:focus-within { border-color: var(--cafe); box-shadow: 0 0 0 4px rgba(53, 36, 24, .08); }
.buscar svg { width: 18px; height: 18px; color: var(--gris); }
.buscar input { border: 0; outline: 0; background: none; width: 100%; font-size: 15px; }

.grilla {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 22px;
}
.prod {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--blanco);
  padding: 10px;
  box-shadow: 0 1px 0 var(--linea);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), opacity .5s;
}
.prod:hover { transform: translateY(-6px); box-shadow: var(--sombra); }
.prod.grande { grid-column: span 2; grid-row: span 2; }
.prod.oculto { display: none; }
.prod-foto {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--kraft-2);
  cursor: pointer;
}
.prod.grande .prod-foto { aspect-ratio: auto; flex: 1; min-height: 360px; }
.prod-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .6s; }
.prod-foto img.b { opacity: 0; }
.prod:hover .prod-foto img { transform: scale(1.06); }
.prod:hover .prod-foto img.b { opacity: 1; }
.prod-etqs { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; z-index: 2; }
.etq {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 253, 249, .7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 600;
  color: var(--cafe);
}
.etq.oxido { background: var(--oxido); color: #fff; }
.prod-ver {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 21, 14, .45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: transform .5s var(--ease), opacity .4s;
}
.prod-ver svg { width: 16px; height: 16px; }
.prod:hover .prod-ver, .prod-ver:focus { transform: translate(-50%, 0); opacity: 1; }
.prod-info { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 16px 8px 8px; }
.prod-info h3 { margin: 0 0 4px; font-family: var(--f-disp); font-variation-settings: 'wdth' 112; font-weight: 750; font-size: 18px; line-height: 1.15; color: var(--cafe); }
.prod.grande .prod-info h3 { font-size: 26px; }
.prod-precio { font-size: 14px; color: var(--gris); }
.prod-precio b { color: var(--cafe); font-size: 16px; }
.anadir {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--cafe);
  color: var(--kraft);
  overflow: hidden;
  transition: transform .45s var(--ease), background .3s, width .45s var(--ease);
}
.anadir:hover { transform: rotate(90deg); background: var(--oxido); }
.anadir svg { width: 20px; height: 20px; transition: transform .4s var(--ease), opacity .3s; }
.anadir .ok { position: absolute; transform: translateY(30px); opacity: 0; }
.anadir.hecho { background: var(--verde-wa); transform: none; }
.anadir.hecho .mas { transform: translateY(-30px); opacity: 0; }
.anadir.hecho .ok { transform: none; opacity: 1; }
.vacio { text-align: center; color: var(--gris); padding: 40px 0; }

/* ===== Destacados ===== */
.dest {
  margin: 0 12px;
  padding: 90px 0 70px;
  border-radius: var(--r-xl);
  background: var(--cafe);
  color: var(--kraft);
  overflow: hidden;
}
.dest-cab { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 0 clamp(24px, 5vw, 70px); margin-bottom: 44px; }
.dest-h { margin: 0; font-size: clamp(38px, 5.6vw, 80px); max-width: 780px; }
.dest-flechas { display: flex; gap: 10px; }
.dest .redondo { background: rgba(255, 253, 249, .08); color: var(--kraft); border-color: rgba(255, 253, 249, .2); }
.dest .redondo:hover { background: var(--kraft); color: var(--cafe); }
.dest-pista {
  display: flex;
  gap: 22px;
  padding: 0 clamp(24px, 5vw, 70px) 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 clamp(24px, 5vw, 70px);
  scrollbar-width: none;
  cursor: grab;
}
.dest-pista::-webkit-scrollbar { display: none; }
.dest-pista.arrastrando { cursor: grabbing; scroll-snap-type: none; }
.dcard {
  position: relative;
  flex: none;
  width: clamp(280px, 34vw, 480px);
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  scroll-snap-align: start;
  isolation: isolate;
}
.dcard:nth-child(even) { margin-top: 50px; }
.dcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); pointer-events: none; }
.dcard:hover img { transform: scale(1.06); }
.dcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(31, 21, 14, .85), rgba(31, 21, 14, 0) 55%); z-index: 0; }
.dcard-info { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 1; }
.dcard-info h3 { margin: 0 0 8px; font-family: var(--f-disp); font-variation-settings: 'wdth' 118; font-weight: 800; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.05; color: #fff; }
.dcard-info p { margin: 0 0 18px; color: rgba(255, 255, 255, .75); font-size: 14px; }
.dcard-acc { display: flex; gap: 10px; flex-wrap: wrap; }
.dcard .btn-vidrio { color: #fff; padding: 12px 18px; font-size: 14px; }
.dest-barra { height: 3px; margin: 40px clamp(24px, 5vw, 70px) 0; border-radius: 3px; background: rgba(220, 211, 194, .15); overflow: hidden; }
.dest-barra span { display: block; height: 100%; width: 20%; background: var(--kraft); border-radius: 3px; transition: width .2s, transform .2s; }

/* ===== Cómo pedir (sticky: ningún ancestro con overflow hidden) ===== */
.como {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  padding: 120px clamp(18px, 4vw, 60px);
}
.como-fotos { position: relative; }
.como-sticky {
  position: sticky;
  top: 100px;
  height: calc(100vh - 140px);
  max-height: 720px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--kraft-2);
}
.como-sticky img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  clip-path: inset(0 0 100% 0 round 0);
  transition: opacity .9s var(--ease), transform 1.4s var(--ease), clip-path 1s var(--ease);
}
.como-sticky img.activa { opacity: 1; transform: scale(1); clip-path: inset(0 0 0 0 round 0); }
.como-chip {
  position: absolute;
  top: 22px;
  left: 22px;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(255, 253, 249, .72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--f-disp);
  font-variation-settings: 'wdth' 125;
  font-weight: 800;
  font-size: 18px;
  color: var(--cafe);
  transition: transform .5s var(--ease);
}
.como-chip.cambia { animation: chip .6s var(--ease); }
@keyframes chip { 0% { transform: scale(1); } 40% { transform: scale(.85); } 100% { transform: scale(1); } }
.como-h { margin: 0 0 40px; font-size: clamp(38px, 5vw, 72px); color: var(--cafe); }
.paso {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: .25;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transform: translateX(-10px);
}
.paso.activo { opacity: 1; transform: none; }
.paso h3 { margin: 0 0 14px; font-family: var(--f-disp); font-variation-settings: 'wdth' 118; font-weight: 800; font-size: clamp(28px, 3vw, 44px); line-height: 1.05; color: var(--cafe); }
.paso p { margin: 0; max-width: 460px; font-size: 18px; color: var(--gris); }
.paso-img { display: none; }

/* ===== Almacén ===== */
.alm { position: relative; margin: 0 12px; min-height: 90vh; border-radius: var(--r-xl); overflow: hidden; display: flex; align-items: end; padding: clamp(18px, 4vw, 50px); }
.alm-foto { position: absolute; inset: 0; }
.alm-foto img { width: 100%; height: 130%; object-fit: cover; will-change: transform; }
.alm::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(31, 21, 14, .55), rgba(31, 21, 14, .05) 60%); z-index: 1; }
.alm-card {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: clamp(26px, 3.5vw, 44px);
  border-radius: var(--r-lg);
  background: rgba(255, 253, 249, .16);
  border: 1px solid rgba(255, 253, 249, .3);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  color: #fff;
}
.alm-card h2 { margin: 0 0 16px; font-size: clamp(30px, 3.6vw, 50px); }
.alm-card p { margin: 0 0 28px; font-size: 17px; color: rgba(255, 255, 255, .85); }

/* ===== Contacto ===== */
.cont { padding: 120px 12px 12px; }
.cont-bloque { border-radius: var(--r-xl); background: var(--kraft); padding: clamp(40px, 6vw, 90px) clamp(24px, 5vw, 80px); }
.cont-h { margin: 0 0 50px; font-size: clamp(40px, 12.5vw, 210px); color: var(--cafe); line-height: .85; }
.cont-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 50px; }
.cont-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: var(--r-md);
  background: rgba(255, 253, 249, .55);
  text-decoration: none;
  transition: transform .45s var(--ease), background .3s;
  min-width: 0;
}
a.cont-item:hover { transform: translateY(-4px); background: var(--blanco); }
.cont-item small { display: block; font-size: 12px; color: var(--gris); }
.cont-item b { display: block; font-weight: 600; color: var(--cafe); overflow-wrap: anywhere; }
.cont-ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--cafe); color: var(--kraft); }
.cont-ico svg { width: 20px; height: 20px; }
.cont-ico-txt { width: auto; padding: 0 14px; border-radius: 999px; font-size: 12px; font-weight: 600; }

/* Botones sociales: el color sube desde abajo */
.redes { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.redes li { position: relative; }
.redes a { position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--blanco); color: var(--cafe); overflow: hidden; transition: box-shadow .3s, color .3s; }
.redes a svg { position: relative; z-index: 1; width: 26px; height: 26px; }
.redes .relleno { position: absolute; left: 0; right: 0; bottom: 0; height: 0; transition: height .35s ease-in-out; }
.redes a:hover { color: #fff; box-shadow: 3px 2px 45px 0 rgba(0, 0, 0, .15); }
.redes a:hover .relleno { height: 100%; }
.redes a[data-red='ig'] .relleno, .redes a[data-red='ig'] ~ .tip { background: linear-gradient(45deg, #405de6, #5b51db, #b33ab4, #c135b4, #e1306c, #fd1f1f); }
.redes a[data-red='tt'] .relleno, .redes a[data-red='tt'] ~ .tip { background: #111; }
.redes a[data-red='wa'] .relleno, .redes a[data-red='wa'] ~ .tip { background: #1faa55; }
.tip { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); padding: 5px 10px; border-radius: 6px; color: #fff; font-size: 13px; white-space: nowrap; opacity: 0; visibility: hidden; transition: all .3s ease; }
.redes li:hover .tip { opacity: 1; visibility: visible; top: -44px; }

/* ===== Pie ===== */
.pie { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 30px clamp(24px, 5vw, 80px) 40px; font-size: 13px; color: var(--gris); }
.pie-logo { width: 120px; }
.pie p { margin: 0; }
.pie-firma { text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--linea); transition: background .3s, color .3s; }
.pie-firma:hover { background: var(--cafe); color: var(--kraft); }

/* ===== Carrito ===== */
.velo { position: fixed; inset: 0; z-index: 70; background: rgba(31, 21, 14, .35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .5s; }
.velo.on { opacity: 1; pointer-events: auto; }
.carrito {
  position: fixed;
  top: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 80;
  width: min(460px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  background: rgba(247, 243, 236, .88);
  border: 1px solid rgba(255, 253, 249, .7);
  backdrop-filter: blur(26px) saturate(1.4);
  -webkit-backdrop-filter: blur(26px) saturate(1.4);
  box-shadow: var(--sombra-2);
  transform: translateX(calc(100% + 30px));
  transition: transform .7s var(--ease);
  overflow: hidden;
}
.carrito.abierto { transform: none; }
.car-cab { display: flex; align-items: center; justify-content: space-between; padding: 24px 24px 10px; }
.car-cab h2 { margin: 0; font-size: 30px; color: var(--cafe); }
.car-cuerpo { flex: 1; overflow-y: auto; padding: 10px 24px; }
.car-vacio { padding: 50px 0; text-align: center; color: var(--gris); }
.car-item { display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; align-items: center; padding: 12px; margin-bottom: 10px; border-radius: var(--r-md); background: var(--blanco); animation: entrar .5s var(--ease); }
@keyframes entrar { from { opacity: 0; transform: translateX(30px); } }
.car-item img { width: 70px; height: 70px; border-radius: 14px; object-fit: cover; }
.car-item h4 { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: var(--cafe); line-height: 1.2; }
.car-item small { color: var(--gris); }
.car-quitar { display: block; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--oxido); font-size: 12px; font-weight: 600; }
.cant { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--kraft-2); }
.cant button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--blanco); color: var(--cafe); font-weight: 700; font-size: 16px; transition: background .25s, color .25s; }
.cant button:hover { background: var(--cafe); color: var(--kraft); }
.cant output { min-width: 22px; text-align: center; font-weight: 600; }
.car-form { display: grid; gap: 10px; padding: 16px 24px 24px; border-top: 1px solid var(--linea); }
.car-form label span { display: block; font-size: 12px; color: var(--gris); margin-bottom: 4px; }
.car-form input, .car-form textarea { width: 100%; padding: 12px 16px; border-radius: var(--r-sm); border: 1px solid var(--linea); background: var(--blanco); outline: 0; resize: none; transition: border-color .3s, box-shadow .3s; }
.car-form input:focus, .car-form textarea:focus { border-color: var(--cafe); box-shadow: 0 0 0 4px rgba(53, 36, 24, .08); }
.car-total { display: flex; justify-content: space-between; font-size: 14px; color: var(--gris); }
.car-total b { color: var(--cafe); }
.car-enviar { justify-content: center; margin-top: 6px; }
.car-enviar:disabled { opacity: .45; pointer-events: none; }
.car-ok { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; gap: 8px; }
.car-ok-ico { display: grid; place-items: center; width: 90px; height: 90px; border-radius: 50%; background: var(--verde-wa); color: #fff; animation: pop .6s var(--ease); }
.car-ok-ico svg { width: 44px; height: 44px; }
.car-ok h3 { margin: 12px 0 0; font-size: 30px; color: var(--cafe); }
.car-ok p { color: var(--gris); margin: 0 0 16px; }

/* ===== Modal vista rápida ===== */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(31, 21, 14, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .4s; }
.modal.abierto { opacity: 1; pointer-events: auto; }
.modal-caja {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  width: min(1040px, 100%);
  max-height: calc(100svh - 32px);
  border-radius: var(--r-xl);
  background: var(--papel);
  overflow: hidden;
  transform: translateY(40px) scale(.96);
  transition: transform .6s var(--ease);
}
.modal.abierto .modal-caja { transform: none; }
.modal-x { position: absolute; top: 16px; right: 16px; z-index: 3; }
.modal-fotos { position: relative; background: var(--kraft-2); min-height: 420px; }
.modal-pista { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.modal-pista::-webkit-scrollbar { display: none; }
.modal-pista img { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.modal-miniaturas { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 8px; z-index: 2; }
.modal-miniaturas button { width: 54px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden; background: none; opacity: .7; transition: opacity .3s, border-color .3s, transform .3s; }
.modal-miniaturas button.activo { border-color: #fff; opacity: 1; transform: translateY(-3px); }
.modal-miniaturas img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { padding: clamp(28px, 4vw, 50px); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.modal-info .etq { align-self: start; background: var(--kraft); }
.modal-info h3 { margin: 0; font-size: clamp(28px, 3vw, 42px); color: var(--cafe); }
.modal-info p { margin: 0; color: var(--gris); font-size: 17px; }
.modal-datos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 6px 0; }
.modal-datos div { padding: 14px 16px; border-radius: var(--r-sm); background: var(--blanco); }
.modal-datos dt { font-size: 12px; color: var(--gris); }
.modal-datos dd { margin: 2px 0 0; font-weight: 600; color: var(--cafe); }
.modal-acc { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(31, 21, 14, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--kraft);
  font-size: 14px;
  font-weight: 500;
  transform: translate(-50%, 120px);
  transition: transform .6s var(--ease);
  pointer-events: none;
}
.toast.on { transform: translate(-50%, 0); }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .grilla { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cont-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .cab-nav { display: none; }
  .cab-menu { display: grid; }
  .hero-bloque { grid-template-columns: 1fr; padding-top: 110px; padding-bottom: 100px; gap: 30px; }
  .mazo { height: 480px; }
  .sello { left: auto; right: -10px; top: -40px; width: 110px; height: 110px; }
  .sello img { width: 40px; }
  .hero-logo { display: none; }
  .grilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .prod.grande { grid-row: auto; }
  .prod.grande .prod-foto { aspect-ratio: 16 / 11; min-height: 0; flex: none; }
  .como { grid-template-columns: 1fr; padding-top: 80px; padding-bottom: 80px; }
  .como-fotos { display: none; }
  .como-h { margin-bottom: 10px; }
  .paso { min-height: 0; padding: 26px 0; opacity: 1; transform: none; }
  .paso-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); margin-bottom: 22px; }
  .modal-caja { grid-template-columns: 1fr; overflow-y: auto; }
  .modal-fotos { min-height: 0; aspect-ratio: 4 / 3.4; }
  .modal-info { overflow: visible; }
}
@media (max-width: 560px) {
  .cab { top: 12px; left: 12px; right: 12px; }
  .cab-logo { width: 54px; height: 54px; }
  .cab-logo img { width: 36px; }
  .redondo { width: 46px; height: 46px; }
  .hero { padding: 8px; }
  .hero-bloque { padding: 96px 20px 84px; border-radius: 28px; }
  .hero-p { font-size: 16px; }
  .mazo { height: 420px; }
  .sello { display: none; }
  .hero-anuncio { white-space: normal; width: calc(100% - 32px); text-align: center; border-radius: 18px; }
  .grilla { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .prod { padding: 7px; border-radius: 22px; }
  .prod-info { flex-direction: column; align-items: stretch; padding: 12px 4px 4px; }
  .prod-info h3 { font-size: 15px; }
  .prod.grande .prod-info h3 { font-size: 20px; }
  .anadir { width: 100%; height: 42px; border-radius: 999px; }
  .anadir:hover { transform: none; }
  .prod-ver { display: none; }
  .buscar { min-width: 0; width: 100%; }
  .dest { margin: 0 8px; padding: 70px 0 50px; }
  .dest-flechas { display: none; }
  .dcard { width: 78vw; }
  .dcard:nth-child(even) { margin-top: 0; }
  .alm { margin: 0 8px; min-height: 80vh; }
  .cont { padding: 80px 8px 8px; }
  .cont-grid { grid-template-columns: 1fr; }
  .modal { padding: 0; align-items: end; }
  .modal-caja { border-radius: 28px 28px 0 0; max-height: 92svh; }
}
