﻿/* ═══════════════════════════════════════════════════════
   ENELDO MENDOZA · catalogo-cinematico.css
   Sistema cinemático: 6 frames + carrito + drawer + aterrizaje
═══════════════════════════════════════════════════════ */

:root {
  --bg-deep:        #0a0806;
  --bg-warm:        #1a1410;
  --surface:        #2a1f15;
  --surface-light:  rgba(255,255,255,.06);
  --surface-glass:  rgba(8,5,2,.65);

  --text:           #f4efe6;
  --text-dim:       rgba(244,239,230,.72);
  --text-faint:     rgba(244,239,230,.5);
  --text-mute:      rgba(244,239,230,.3);

  --gold:           #c8a84a;
  --gold-bright:    #d4b856;
  --gold-deep:      #9c8534;
  --gold-soft:      rgba(200,168,74,.15);

  --cream:          #f4efe6;
  --cream-warm:     #e8dfc9;

  --green:          #7fb069;
  --green-deep:     #588157;
  --red:            #c1432e;
  --red-soft:       rgba(193,67,46,.12);

  --font-display:   'Fraunces', Georgia, serif;
  --font-body:      'Inter Tight', system-ui, sans-serif;
  --font-mono:      'JetBrains Mono', monospace;

  --header-h:       64px;
  --radius-sm:      6px;
  --radius:         12px;
  --radius-lg:      18px;
  --radius-xl:      24px;

  --ease-out:       cubic-bezier(.2,.8,.2,1);
  --ease-in-out:    cubic-bezier(.65,.05,.36,1);
  --ease-back:      cubic-bezier(.34,1.56,.64,1);
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
input { font: inherit; color: inherit; border: none; background: none; outline: none; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(200,168,74,.25); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(200,168,74,.5); }

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: .04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ═══════════════════════════════════════════════════════
   PROGRESO
═══════════════════════════════════════════════════════ */
#progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-bright));
  z-index: 101;
  width: 0%;
  transition: width .8s var(--ease-out);
  box-shadow: 0 0 10px var(--gold);
}

/* ═══════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════ */
#hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 28px;
  background: linear-gradient(180deg, rgba(8,5,2,.92) 0%, rgba(8,5,2,.6) 80%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: opacity .4s var(--ease-out);
}
#hdr.hidden { opacity: 0; pointer-events: none; }

.hdr-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 500; font-style: italic;
  font-size: 18px; letter-spacing: -0.01em;
  color: var(--text);
}
.hdr-brand .leaf {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.hdr-brand .sep { width: 1px; height: 14px; background: var(--text-mute); margin: 0 4px; }
.hdr-brand .city {
  font-style: normal; font-family: var(--font-body);
  font-size: 10px; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--text-faint);
}

.hdr-search {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px;
  background: var(--surface-light);
  border: 1px solid transparent;
  border-radius: 99px;
  transition: all .35s var(--ease-out);
  min-width: 42px; cursor: text;
}
.hdr-search:focus-within, .hdr-search.expanded {
  background: rgba(255,255,255,.1);
  border-color: var(--gold);
  min-width: 320px;
  box-shadow: 0 0 0 4px rgba(200,168,74,.12);
}
.hdr-search .ico { width: 16px; height: 16px; color: var(--text-faint); flex-shrink: 0; }
.hdr-search input {
  flex: 1; font-size: 13px; color: var(--text);
  width: 0; opacity: 0; transition: opacity .25s .1s;
}
.hdr-search:focus-within input, .hdr-search.expanded input { width: auto; flex: 1; opacity: 1; }
.hdr-search input::placeholder { color: var(--text-mute); font-style: italic; }
.hdr-search .clr { display: none; color: var(--text-faint); font-size: 18px; line-height: 1; }
.hdr-search.has-value .clr { display: block; }

.hdr-filters { display: flex; justify-content: flex-end; gap: 6px; }
.fchip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px;
  border: 1px solid var(--text-mute); border-radius: 99px;
  font-family: var(--font-body); font-size: 11px;
  font-weight: 500; letter-spacing: .04em;
  color: var(--text-dim); transition: all .25s var(--ease-out);
  white-space: nowrap;
}
.fchip:hover { border-color: var(--text-faint); color: var(--text); }
.fchip.on { background: var(--gold); border-color: var(--gold); color: var(--bg-deep); font-weight: 700; }
.fchip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .6; }
.fchip.on .dot { background: var(--bg-deep); opacity: 1; }

/* ═══════════════════════════════════════════════════════
   STAGE Y FRAMES
═══════════════════════════════════════════════════════ */
#stage { position: fixed; inset: 0; overflow: hidden; }

.frame {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  transition: opacity .7s var(--ease-out);
  display: flex; flex-direction: column;
}
.frame.active { opacity: 1; pointer-events: auto; z-index: 5; }

.frame-bg { position: absolute; inset: 0; z-index: 0; }
.frame-bg::before {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.1) 35%, rgba(0,0,0,.5) 100%);
}
.frame-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}
.frame-bg.placeholder {
  background: radial-gradient(ellipse at 30% 40%, var(--surface) 0%, var(--bg-warm) 60%, var(--bg-deep) 100%);
}

.frame-content {
  position: relative; z-index: 3; flex: 1;
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 32px) 32px 32px;
}

/* ═══════════════════════════════════════════════════════
   FRAME 1 · PUERTA
═══════════════════════════════════════════════════════ */
#f1 .frame-bg img {
  filter: blur(2px) brightness(95%) saturate(100%);
  transform: scale(1.12);
  transition: transform 1.2s var(--ease-out);
}
#f1 .frame-bg::before {
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(8,5,2,.55) 100%),
    linear-gradient(90deg, rgba(8,5,2,.8) 0%, transparent 60%),
    linear-gradient(180deg, transparent 30%, rgba(8,5,2,.2) 100%),
    rgba(8,5,2,.25);
}
#f1 .frame-bg::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(135deg, rgba(60,40,20,.15) 0%, rgba(20,10,5,.15) 100%);
  mix-blend-mode: multiply; pointer-events: none;
}
#f1 .frame-content {
  justify-content: flex-start; align-items: center;
  padding: 60px 50px; flex-direction: row;
}

.f1-inner {
  width: 55%; max-width: 55%;
  text-align: right; display: flex;
  flex-direction: column; align-items: flex-end;
}
.f1-eyebrow {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 24px;
  opacity: 0; animation: f1FadeIn .9s var(--ease-out) .2s forwards;
}
.f1-title {
  font-family: var(--font-display); font-weight: 400; font-style: normal;
  font-size: clamp(40px, 5.5vw, 76px); line-height: 1;
  letter-spacing: -.02em; color: var(--text);
  text-shadow: 0 4px 30px rgba(0,0,0,.6); margin-bottom: 14px;
  opacity: 0; animation: f1FadeIn .9s var(--ease-out) .4s forwards;
}
.f1-title em { font-style: italic; font-weight: 400; color: var(--gold); }
.f1-subtitle {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: 18px; color: var(--text-dim); margin-bottom: 32px;
  opacity: 0; animation: f1FadeIn .9s var(--ease-out) .6s forwards;
}
.f1-actions {
  display: flex; flex-direction: row; gap: 20px;
  width: 100%; max-width: 640px;
  opacity: 0; animation: f1FadeIn .9s var(--ease-out) .8s forwards;
}
.f1-btn {
  flex: 1; min-width: 0;
  padding: 10px 26px;
  background: rgba(8,5,2,.25);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.1); border-radius: 8px;
  text-align: left; transition: all .35s var(--ease-out);
  position: relative; overflow: hidden; cursor: pointer;
}
.f1-btn::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, var(--gold-soft), transparent 60%);
  opacity: 0; transition: opacity .4s var(--ease-out);
}
.f1-btn:hover { transform: translateY(-3px); border-color: var(--gold); }
.f1-btn:hover::before { opacity: 1; }
.f1-btn.green { --acc: #25d366; }
.f1-btn.green:hover { border-color: var(--acc); }
.f1-btn.green:hover::before { background: radial-gradient(circle at 80% 20%, rgba(37,211,102,.15), transparent 60%); }
.f1-btn.red { --acc: #ff4d4f; }
.f1-btn.red:hover { border-color: var(--acc); }
.f1-btn.red:hover::before { background: radial-gradient(circle at 80% 20%, rgba(255,77,79,.15), transparent 60%); }
.f1-btn .row {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 10px; position: relative; z-index: 2;
}
.f1-btn .ico {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-light); color: var(--acc, var(--gold));
}
.f1-btn .arrow {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-light); color: var(--text-dim);
  font-size: 13px; transition: all .3s var(--ease-out);
}
.f1-btn:hover .arrow { background: var(--acc, var(--gold)); color: var(--bg-deep); transform: translateX(4px); }
.f1-btn .ttl {
  font-family: var(--font-display); font-weight: 500;
  font-size: 22px; letter-spacing: -.01em;
  color: var(--text); margin-bottom: 4px; line-height: 1.05;
  position: relative; z-index: 2;
}
.f1-btn .sub {
  font-family: var(--font-body); font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 600;
  position: relative; z-index: 2;
}
.f1-footnote {
  margin-top: 32px; font-size: 10px;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--text-mute);
  opacity: 0; animation: f1FadeIn .9s var(--ease-out) 1s forwards;
}
.f1-footnote .dot { color: var(--gold); margin: 0 8px; }

@keyframes f1FadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════
   FRAME 2 · PASILLOS
═══════════════════════════════════════════════════════ */
#f2 .frame-content { padding-top: calc(var(--header-h) + 20px); overflow: hidden; }
.f2-head {
  text-align: center; margin-bottom: 28px;
  opacity: 0; animation: f1FadeIn .7s var(--ease-out) .1s forwards;
}
.f2-eyebrow {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.f2-title {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(32px, 4vw, 52px); line-height: 1;
  letter-spacing: -.02em; color: var(--text);
  text-shadow: 0 4px 30px rgba(0,0,0,.5);
}
.f2-title em { font-style: normal; color: var(--gold); font-weight: 400; }

/* ═══════════════════════════════════════════════════════
   F2 — ACORDEÓN CINEMATOGRÁFICO
   11 cards en línea horizontal. Hover expande la card y
   contrae las demás. Texto horizontal abajo. Altura 440px.
═══════════════════════════════════════════════════════ */
.f2-grid {
  display: flex;
  gap: 6px;
  height: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
}
.f2-card {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  transition: flex .7s var(--ease-out);
  min-width: 0;
  opacity: 0;
  animation: cardIn .7s var(--ease-out) forwards;
  /* min-width: garantiza que las cards cerradas no queden tan finitas */
  flex-basis: 0;
}
.f2-grid:hover .f2-card { flex: .7; }
.f2-grid .f2-card:hover { flex: 4.5; }

.f2-card-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 1.2s var(--ease-out), filter .7s var(--ease-out);
  filter: grayscale(.35) brightness(.55);
}
.f2-card:hover .f2-card-img { filter: none; transform: scale(1.05); }

.f2-card-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.6) 35%, rgba(0,0,0,.2) 70%, transparent 100%);
}

/* Etiqueta que aparece cuando la card está CERRADA: nombre horizontal abajo */
.f2-card-label {
  position: absolute; left: 0; right: 0; bottom: 18px;
  z-index: 3;
  text-align: center; padding: 0 8px;
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 14px; color: var(--text);
  letter-spacing: .02em; line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,.85);
  transition: opacity .3s var(--ease-out);
  pointer-events: none;
}
.f2-card:hover .f2-card-label { opacity: 0; }

/* Detalle expandido (evocación + nombre grande + meta) cuando la card está ABIERTA */
.f2-card-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 22px 26px;
}
.f2-card-detail {
  opacity: 0; transform: translateY(15px);
  transition: opacity .45s var(--ease-out) .15s, transform .45s var(--ease-out) .15s;
}
.f2-card:hover .f2-card-detail { opacity: 1; transform: translateY(0); }
.f2-card-evoke {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: 14px; color: rgba(255,255,255,.75); margin-bottom: 6px;
}
.f2-card-name {
  font-family: var(--font-display); font-weight: 500;
  font-size: 26px; letter-spacing: -.01em;
  color: var(--text); line-height: 1.05; margin-bottom: 4px;
}
.f2-card-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px;
}
.f2-card-count {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .2em; color: rgba(255,255,255,.6);
  text-transform: uppercase;
}
.f2-card-arrow {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--bg-deep); font-size: 14px; font-weight: 700;
  transition: transform .3s var(--ease-out);
}
.f2-card:hover .f2-card-arrow { transform: translateX(4px); }

/* Sin tamaños variables: legacy de la versión grid */
.f2-card.size-grande,
.f2-card.size-mediano,
.f2-card.size-pequeno { /* todas iguales */ }


@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════
   FRAME 3 · PRODUCTOS
═══════════════════════════════════════════════════════ */
#f3 .frame-content { padding-top: calc(var(--header-h) + 14px); padding-bottom: 100px; overflow: hidden; }
.f3-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 20px;
}
.f3-breadcrumb {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 6px;
}
/* Botón "← Categorías" visible y reconocible como botón */
.f3-breadcrumb .back-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid rgba(200,168,74,.35);
  background: rgba(200,168,74,.08);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  cursor: pointer;
  transition: all .25s var(--ease-out);
}
.f3-breadcrumb .back-link:hover {
  background: var(--gold);
  color: var(--bg-deep);
  border-color: var(--gold);
  transform: translateX(-2px);
}
.f3-cat-title {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(28px, 3.5vw, 44px); line-height: 1;
  letter-spacing: -.02em; color: var(--text);
}
.f3-cat-subtitle {
  font-family: var(--font-display); font-style: italic;
  font-size: 13px; color: var(--text-dim); margin-top: 6px;
}
.f3-sort { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.f3-sort .label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-faint); margin-right: 6px;
}
/* Botones de orden: más visibles, padding más generoso */
.f3-sort-btn {
  padding: 9px 16px; border-radius: 99px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--text-dim);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  transition: all .25s var(--ease-out);
  cursor: pointer;
}
.f3-sort-btn:hover {
  background: rgba(255,255,255,.08);
  color: var(--text);
  border-color: rgba(255,255,255,.25);
}
.f3-sort-btn.on {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-deep);
  box-shadow: 0 0 0 3px rgba(200,168,74,.15);
}

.f3-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px; overflow-y: auto; padding: 4px 4px 20px;
  max-height: calc(100vh - var(--header-h) - 230px);
}
.f3-card {
  background: var(--surface-glass); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  transition: all .35s var(--ease-out); position: relative;
  opacity: 0; animation: cardIn .55s var(--ease-out) forwards;
}
.f3-card:hover {
  transform: translateY(-4px); border-color: rgba(200,168,74,.4);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,.6);
}
.f3-card-img {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--cream-warm), var(--cream));
  position: relative; overflow: hidden;
}
.f3-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.f3-card:hover .f3-card-img img { transform: scale(1.05); }
.f3-card-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; text-align: center;
  background: linear-gradient(135deg, var(--cream-warm), var(--cream));
}
.f3-card-placeholder .name {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 16px; color: var(--bg-warm); line-height: 1.2;
}
.f3-card-placeholder .brand {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 6px;
}
.f3-card-discount {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  background: var(--red); color: var(--cream);
  font-family: var(--font-body); font-size: 10px; font-weight: 700;
  letter-spacing: .08em; padding: 5px 9px;
  border-radius: 4px; text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(193,67,46,.4);
}
.f3-card-qty {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold); color: var(--bg-deep);
  font-family: var(--font-mono); font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(200,168,74,.5);
  animation: bumpIn .35s var(--ease-back);
}
@keyframes bumpIn {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.f3-card-info { padding: 14px 14px 16px; }
.f3-card-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; min-height: 18px; }
.f3-tag {
  font-family: var(--font-body); font-size: 9px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 3px;
  background: var(--gold-soft); color: var(--gold);
}
.f3-tag.vegano { background: rgba(127,176,105,.15); color: var(--green); }
.f3-tag.organico { background: rgba(168,198,108,.15); color: #a8c66c; }
.f3-tag.keto { background: rgba(212,163,115,.15); color: #d4a373; }
.f3-tag.proteico { background: rgba(176,137,104,.15); color: #b08968; }
.f3-tag.sin-azucar { background: rgba(233,196,106,.15); color: #e9c46a; }
.f3-card-name {
  font-family: var(--font-display); font-weight: 500; font-size: 16px;
  letter-spacing: -.01em; color: var(--text); line-height: 1.15; margin-bottom: 4px;
}
.f3-card-meta { font-family: var(--font-body); font-size: 11px; color: var(--text-faint); margin-bottom: 10px; }
.f3-card-price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.f3-card-price { font-family: var(--font-mono); font-size: 17px; font-weight: 700; color: var(--gold); }
.f3-card-price.discounted .old {
  text-decoration: line-through; color: var(--text-mute);
  font-size: 12px; font-weight: 500; margin-right: 6px;
}
.f3-card-quick-add {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1; transition: all .2s;
}
.f3-card-quick-add:hover { background: var(--gold); color: var(--bg-deep); transform: scale(1.1); }
.f3-empty {
  grid-column: 1 / -1; text-align: center;
  padding: 80px 20px; color: var(--text-faint);
}
.f3-empty .icon { font-size: 40px; margin-bottom: 16px; opacity: .3; }
.f3-empty .title {
  font-family: var(--font-display); font-style: italic;
  font-size: 22px; color: var(--text-dim); margin-bottom: 6px;
}
.f3-empty .sub { font-size: 13px; color: var(--text-mute); }

/* ═══════════════════════════════════════════════════════
   ATERRIZAJE
═══════════════════════════════════════════════════════ */
#landing {
  position: fixed; inset: 0; z-index: 90;
  opacity: 0; pointer-events: none;
  transition: opacity .5s var(--ease-out);
}
#landing.on { opacity: 1; pointer-events: auto; }
.landing-backdrop {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(60,40,20,.4) 0%, rgba(8,5,2,.94) 70%);
  backdrop-filter: blur(12px);
}
.landing-stage {
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 40px;
}
.landing-content {
  display: grid; grid-template-columns: minmax(360px, 1fr) minmax(360px, 1.1fr);
  gap: 60px; align-items: center; max-width: 1100px; width: 100%;
  transform: translateY(40px); opacity: 0;
  transition: all .7s var(--ease-out) .1s;
}
#landing.on .landing-content { transform: translateY(0); opacity: 1; }
.landing-imagery { position: relative; aspect-ratio: 1; width: 100%; }
.landing-img-context {
  position: absolute; inset: 0; border-radius: var(--radius-lg);
  overflow: hidden; background: linear-gradient(135deg, var(--surface), var(--bg-warm));
  box-shadow: 0 50px 100px -20px rgba(0,0,0,.7);
  opacity: 0; transition: opacity 1s var(--ease-out) .3s;
}
#landing.on .landing-img-context { opacity: 1; }
.landing-img-context img { width: 100%; height: 100%; object-fit: cover; }
.landing-img-context .placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(200,168,74,.18), transparent 60%),
    linear-gradient(135deg, var(--surface) 0%, var(--bg-warm) 80%);
  text-align: center; padding: 40px;
}
.landing-img-context .placeholder .ctx-label {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.landing-img-context .placeholder .ctx-name {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 28px; color: var(--cream-warm); line-height: 1.1;
}
.landing-img-ficha {
  position: absolute; top: -8%; left: 50%;
  width: 65%; aspect-ratio: 1; border-radius: 50%;
  overflow: hidden; background: var(--cream);
  transform: translateX(-50%) translateY(0);
  box-shadow: 0 40px 80px -10px rgba(0,0,0,.5), 0 0 0 8px rgba(244,239,230,.06);
  transition: transform 1.1s var(--ease-out) .15s; z-index: 2;
}
#landing.on .landing-img-ficha { transform: translateX(-50%) translateY(40%); }
.landing-img-ficha img { width: 100%; height: 100%; object-fit: cover; }
.landing-img-ficha .placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; padding: 20px; text-align: center;
  background: linear-gradient(135deg, var(--cream-warm), var(--cream));
}
.landing-img-ficha .placeholder .brand {
  font-family: var(--font-mono); font-size: 8px;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 4px;
}
.landing-img-ficha .placeholder .name {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 16px; color: var(--bg-warm); line-height: 1.1;
}
.landing-img-discount {
  position: absolute; top: 5%; right: -2%; z-index: 3;
  background: var(--red); color: var(--cream);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; padding: 8px 12px; border-radius: 6px;
  text-transform: uppercase; box-shadow: 0 8px 24px rgba(193,67,46,.5);
  transform: rotate(8deg);
}
.landing-info { padding-right: 20px; }
.landing-info .breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 14px;
}
.landing-info .breadcrumb .gold { color: var(--gold); }
.landing-info .brand {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.landing-info h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(34px, 4vw, 52px); line-height: 1;
  letter-spacing: -.02em; color: var(--text); margin-bottom: 14px;
}
.landing-info .evoke {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: 20px; color: var(--gold); margin-bottom: 24px; line-height: 1.3;
}
.landing-info .desc {
  font-size: 15px; line-height: 1.6; color: var(--text-dim);
  margin-bottom: 24px; max-width: 460px;
}
.landing-info .specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.landing-info .spec {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 1px solid rgba(255,255,255,.12);
  border-radius: 99px; font-size: 11px; font-weight: 500;
  letter-spacing: .04em; color: var(--text-dim);
}
.landing-info .spec .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.landing-info .spec.peso .dot { background: var(--text-faint); }
.landing-info .price-row {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 28px; padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.landing-info .price {
  font-family: var(--font-mono); font-size: 38px;
  font-weight: 700; color: var(--gold); line-height: 1;
}
.landing-info .price-old {
  font-family: var(--font-mono); font-size: 18px;
  color: var(--text-mute); text-decoration: line-through;
}
.landing-info .price-save {
  margin-left: auto; font-family: var(--font-body); font-size: 11px;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--red); padding: 6px 10px; background: var(--red-soft); border-radius: 4px;
}
.landing-controls { display: flex; gap: 14px; align-items: stretch; }
.landing-qty {
  display: flex; align-items: center;
  background: var(--surface-light); border: 1px solid rgba(255,255,255,.1);
  border-radius: 99px; padding: 4px;
}
.landing-qty button {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold); color: var(--bg-deep);
  font-weight: 700; font-size: 16px; transition: all .2s;
}
.landing-qty button:hover { background: var(--gold-bright); transform: scale(1.05); }
.landing-qty .n {
  min-width: 36px; text-align: center;
  font-family: var(--font-mono); font-weight: 700;
  font-size: 15px; color: var(--text);
}
.landing-add {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 0 28px; height: 48px;
  background: var(--gold); color: var(--bg-deep); border-radius: 99px;
  font-family: var(--font-body); font-weight: 700; font-size: 12px;
  letter-spacing: .2em; text-transform: uppercase;
  transition: all .25s var(--ease-out);
}
.landing-add:hover {
  background: var(--gold-bright); transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(200,168,74,.6);
}
.landing-add svg { width: 16px; height: 16px; }
.landing-close {
  position: absolute; top: 24px; right: 24px; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface-light); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); font-size: 22px; line-height: 1; transition: all .25s;
}
.landing-close:hover { background: var(--gold); color: var(--bg-deep); transform: rotate(90deg); }

/* ═══════════════════════════════════════════════════════
   CARRITO FLOTANTE
═══════════════════════════════════════════════════════ */
#cart-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 80;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px 12px 14px;
  background: var(--gold); color: var(--bg-deep); border-radius: 99px;
  font-family: var(--font-body); font-weight: 700; letter-spacing: .05em;
  box-shadow: 0 16px 40px -10px rgba(200,168,74,.5);
  cursor: pointer; transition: all .35s var(--ease-out);
  transform: translateY(80px); opacity: 0; pointer-events: none;
}
#cart-fab.visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
#cart-fab:hover {
  background: var(--gold-bright); transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 50px -10px rgba(200,168,74,.7);
}
#cart-fab .icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-deep); color: var(--gold);
  display: flex; align-items: center; justify-content: center; position: relative;
}
#cart-fab .icon .count {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--red); color: var(--cream);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--gold);
}
#cart-fab .info { display: flex; flex-direction: column; gap: 1px; line-height: 1.1; }
#cart-fab .info .lbl { font-size: 9px; letter-spacing: .25em; text-transform: uppercase; opacity: .7; }
#cart-fab .info .tot { font-family: var(--font-mono); font-size: 16px; font-weight: 700; }

/* ═══════════════════════════════════════════════════════
   DRAWER
═══════════════════════════════════════════════════════ */
#drawer {
  position: fixed; top: 0; right: 0;
  width: min(440px, 90vw); height: 100vh; z-index: 95;
  background: var(--bg-warm); border-left: 1px solid rgba(255,255,255,.08);
  box-shadow: -30px 0 60px -20px rgba(0,0,0,.6);
  transform: translateX(100%); transition: transform .45s var(--ease-out);
  display: flex; flex-direction: column;
}
#drawer.on { transform: translateX(0); }
#drawer-backdrop {
  position: fixed; inset: 0; z-index: 94;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .4s;
}
#drawer-backdrop.on { opacity: 1; pointer-events: auto; }
.drawer-head {
  padding: 28px 28px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; justify-content: space-between; align-items: flex-start;
}
.drawer-head h3 {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 28px; letter-spacing: -.01em;
  color: var(--text); line-height: 1; margin-bottom: 4px;
}
.drawer-head .count {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .25em; text-transform: uppercase; color: var(--gold);
}
.drawer-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--text); transition: all .25s;
}
.drawer-close:hover { background: rgba(255,255,255,.15); }
.drawer-list { flex: 1; overflow-y: auto; padding: 16px 28px; }
.drawer-item {
  display: grid; grid-template-columns: 60px 1fr auto;
  gap: 14px; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.05); align-items: center;
}
.drawer-item-img {
  width: 60px; height: 60px; border-radius: 8px;
  overflow: hidden; background: var(--cream-warm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-style: italic; font-size: 11px;
  color: var(--bg-warm); text-align: center; padding: 4px; line-height: 1;
}
.drawer-item-img img { width: 100%; height: 100%; object-fit: cover; }
.drawer-item-info .nm {
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  color: var(--text); line-height: 1.15; margin-bottom: 4px;
}
.drawer-item-info .meta { font-size: 11px; color: var(--text-faint); margin-bottom: 8px; }
.drawer-item-info .qty-mini {
  display: inline-flex; align-items: center;
  background: var(--surface-light); border-radius: 99px; padding: 2px;
}
.drawer-item-info .qty-mini button {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); color: var(--bg-deep); font-weight: 700; font-size: 12px;
}
.drawer-item-info .qty-mini .n {
  min-width: 24px; text-align: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 12px;
}
.drawer-item-price {
  text-align: right; font-family: var(--font-mono);
  font-weight: 700; font-size: 15px; color: var(--gold);
}
.drawer-item-remove {
  display: block; font-size: 10px; color: var(--text-mute);
  margin-top: 4px; letter-spacing: .1em; text-transform: uppercase;
}
.drawer-item-remove:hover { color: var(--red); }
.drawer-empty { text-align: center; padding: 60px 20px; color: var(--text-faint); }
.drawer-empty .lg {
  font-family: var(--font-display); font-style: italic;
  font-size: 22px; color: var(--text-dim); margin-bottom: 8px;
}
.drawer-empty .sm { font-size: 12px; color: var(--text-mute); }
.drawer-foot {
  padding: 24px 28px 28px;
  border-top: 1px solid rgba(255,255,255,.06); background: var(--bg-warm);
}
.drawer-totals { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.drawer-totals .row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; color: var(--text-dim);
}
.drawer-totals .row.grand {
  padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 14px; color: var(--text); font-weight: 600;
}
.drawer-totals .row.grand .val {
  font-family: var(--font-mono); font-size: 26px; font-weight: 700; color: var(--gold);
}
.drawer-info {
  display: flex; gap: 12px;
  background: rgba(127,176,105,.06);
  border: 1px solid rgba(127,176,105,.25);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
  line-height: 1.45;
}
.drawer-info-icon {
  flex-shrink: 0;
  color: #25d366;
  margin-top: 1px;
}
.drawer-info-text {
  font-size: 12px;
  color: var(--text-dim);
}
.drawer-info-text strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 3px;
}
.drawer-confirm {
  width: 100%; padding: 16px; background: var(--gold); color: var(--bg-deep);
  border-radius: 12px; font-family: var(--font-body); font-weight: 700;
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  transition: all .25s var(--ease-out);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.drawer-confirm:hover {
  background: var(--gold-bright); transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(200,168,74,.6);
}
.drawer-confirm:disabled { opacity: .4; cursor: not-allowed; transform: none; }


/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .landing-content { grid-template-columns: 1fr; gap: 40px; max-height: 80vh; overflow-y: auto; }
  .landing-imagery { max-width: 340px; margin: 0 auto; }
  /* Acordeón con menos altura en pantallas medianas */
  .f2-grid { height: 380px; }
}
@media (max-width: 900px) {
  .f1-inner { width: 70%; max-width: 70%; }
  #f1 .frame-bg::before {
    background:
      radial-gradient(ellipse at center, transparent 30%, rgba(8,5,2,.55) 100%),
      linear-gradient(90deg, rgba(8,5,2,.85) 0%, transparent 80%),
      rgba(8,5,2,.3);
  }
  /* Tablet: el acordeón se transforma en scroll horizontal con peek
     porque 11 cards en línea no funcionan en pantallas <900px */
  .f2-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    height: 380px;
    gap: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 20px;
    margin: 0 -20px;
    border-radius: 0;
  }
  .f2-grid::-webkit-scrollbar { display: none; }
  /* En mobile/tablet no hay hover: las cards son individuales con tamaño fijo */
  .f2-grid:hover .f2-card,
  .f2-grid .f2-card:hover,
  .f2-card {
    flex: 0 0 220px;
    scroll-snap-align: center;
    border-radius: var(--radius-lg);
  }
  /* Y la información está siempre visible (sin esperar hover) */
  .f2-card-img { filter: brightness(.6); }
  .f2-card-label { display: none; }
  .f2-card-detail { opacity: 1; transform: none; }
}
@media (max-width: 700px) {
  .hdr-search.expanded { min-width: 200px; }
  .hdr-filters { display: none; }
  .f1-inner { width: 90%; max-width: 90%; text-align: left; align-items: flex-start; }
  .f1-actions { flex-direction: column; }
  .frame-content { padding-left: 20px; padding-right: 20px; }
  /* Mobile: cards levemente más chicas */
  .f2-grid { height: 360px; }
  .f2-card,
  .f2-grid:hover .f2-card,
  .f2-grid .f2-card:hover {
    flex: 0 0 78vw;
    max-width: 280px;
  }
  .f2-card-name { font-size: 22px; }
}