/* D Flowers — tienda (diseño limpio, rosa y blanco) */
:root {
  --bg: #ffffff;
  --bg-soft: #fdf6f5;
  --surface: #ffffff;
  --text: #3a2e27;
  --muted: #7a6a60;
  --line: #f0e3df;
  --brand: #c75b6a;
  --brand-dark: #a8475a;
  --brand-soft: #fbe9ec;
  --brown: #4a3428;
  --ok: #2f7d5b;
  --ok-soft: #e6f4ed;
  --warn: #a35c00;
  --warn-soft: #fff4e0;
  --danger: #b4233a;
  --danger-soft: #fdecee;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(74, 52, 40, 0.08);
  --shadow-lg: 0 20px 50px rgba(74, 52, 40, 0.16);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); color: var(--brown); line-height: 1.15; margin: 0 0 .5rem; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--brown); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(199, 91, 106, .45); outline-offset: 2px; }

/* ── Botones ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1px solid transparent; border-radius: 999px; padding: .75rem 1.4rem;
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: #fff; color: var(--brand-dark); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-soft); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-wa { background: #1f9d55; color: #fff; }
.btn-wa:hover { background: #17834a; }
.btn-block { width: 100%; }
.btn-sm { padding: .5rem .95rem; font-size: .85rem; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; color: var(--brown);
}
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn svg { width: 22px; height: 22px; }
.badge-count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.badge-count[hidden] { display: none; }

/* ── Barra superior y header ───────────────── */
.topbar { background: var(--brown); color: #fbeee9; font-size: .82rem; }
.topbar .container { display: flex; gap: 1.25rem; justify-content: center; align-items: center; min-height: 36px; flex-wrap: wrap; text-align: center; }
.topbar a { color: #fff; }
.topbar span { white-space: nowrap; }
@media (max-width: 640px) { .topbar .hide-sm { display: none; } }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 1rem; min-height: 70px; }
.brand-logo img { height: 48px; width: auto; }
.main-nav { flex: 1; }
.main-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; justify-content: center; }
.main-nav a, .main-nav button {
  display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .85rem; border-radius: 999px;
  text-decoration: none; color: var(--text); font-weight: 500; font-size: .95rem; background: none; border: 0; cursor: pointer;
}
.main-nav a:hover, .main-nav button:hover, .main-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-dark); }
.has-menu { position: relative; }
.submenu {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: .5rem; min-width: 220px; display: none; z-index: 50;
}
.has-menu:hover .submenu, .has-menu:focus-within .submenu, .has-menu.open .submenu { display: grid; }
.submenu a { border-radius: var(--radius-sm); justify-content: flex-start; }
.header-actions { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav-toggle { display: none; }
.header-search { display: none; border-bottom: 1px solid var(--line); background: #fff; }
.header-search.open { display: block; }
.header-search form { display: flex; gap: .5rem; padding: .75rem 0; }
.header-search input { flex: 1; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: fixed; inset: 0 20% 0 0; background: #fff; transform: translateX(-105%); transition: transform .25s; z-index: 60; box-shadow: var(--shadow-lg); padding: 1rem; overflow-y: auto; }
  .main-nav.open { transform: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .submenu { position: static; transform: none; display: grid; box-shadow: none; border: 0; padding: 0 0 0 1rem; }
  .brand-logo img { height: 40px; }
}

/* ── Formularios ───────────────────────────── */
.input, .select, .textarea {
  width: 100%; border: 1px solid #e3d3cd; border-radius: var(--radius-sm); padding: .72rem .9rem; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(199, 91, 106, .15); }
.textarea { min-height: 96px; resize: vertical; }
.field { display: grid; gap: .35rem; margin-bottom: .9rem; }
.field label, .label { font-weight: 600; font-size: .9rem; }
.field .hint { font-size: .8rem; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.input.invalid { border-color: var(--danger); }
.choice-group { display: flex; gap: .5rem; flex-wrap: wrap; }
.choice {
  position: relative; display: inline-flex; align-items: center; gap: .5rem; border: 1px solid #e3d3cd; border-radius: var(--radius-sm);
  padding: .65rem .9rem; cursor: pointer; background: #fff; font-weight: 500;
}
.choice input { accent-color: var(--brand); }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice:has(input:disabled) { opacity: .45; cursor: not-allowed; }

.notice { border-radius: var(--radius-sm); padding: .75rem 1rem; font-size: .9rem; margin: .5rem 0 1rem; }
.notice-ok { background: var(--ok-soft); color: var(--ok); }
.notice-warn { background: var(--warn-soft); color: var(--warn); }
.notice-error { background: var(--danger-soft); color: var(--danger); }
.notice[hidden] { display: none; }

/* ── Hero ──────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: var(--bg-soft); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.5rem; align-items: center; padding: 3.5rem 16px; }
.hero-eyebrow { display: inline-block; background: #fff; color: var(--brand-dark); border-radius: 999px; padding: .35rem .8rem; font-size: .8rem; font-weight: 600; margin-bottom: 1rem; box-shadow: var(--shadow); }
.hero p.lede { font-size: 1.1rem; color: var(--muted); max-width: 34rem; }
.hero-media { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.finder { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; display: grid; grid-template-columns: 1fr 1fr auto; gap: .6rem; align-items: end; margin-top: 1.5rem; }
.finder .field { margin: 0; }
.finder-result { grid-column: 1 / -1; margin: 0; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 2rem 16px; }
  .hero-media { order: -1; aspect-ratio: 16/10; }
  .finder { grid-template-columns: 1fr 1fr; }
  .finder .btn { grid-column: 1 / -1; }
}

/* ── Secciones ─────────────────────────────── */
.section { padding: 3.5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--muted); }
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.benefit { display: flex; gap: .75rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.benefit-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; }
.benefit-icon svg { width: 22px; height: 22px; }
.benefit strong { display: block; color: var(--brown); }
.benefit span { font-size: .87rem; color: var(--muted); }
@media (max-width: 900px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .benefits { grid-template-columns: 1fr; } }

.occasions { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem; }
.occasion {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; text-align: center;
  min-height: 120px; padding: 1rem; border-radius: var(--radius); text-decoration: none; color: var(--brown);
  background: linear-gradient(160deg, #fff 0%, var(--brand-soft) 100%); border: 1px solid var(--line); font-weight: 600;
  transition: transform .15s, box-shadow .15s;
}
.occasion:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.occasion .emoji { font-size: 1.8rem; }

.tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .5rem 1rem; font-weight: 600; cursor: pointer; color: var(--muted); }
.tab[aria-selected="true"] { background: var(--brown); color: #fff; border-color: var(--brown); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: step; }
.step { background: #fff; border-radius: var(--radius); padding: 1.25rem; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: .6rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ── Tarjetas de producto ──────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.card {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 1/1; background: var(--bg-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-badges { position: absolute; top: .6rem; left: .6rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.pill { display: inline-block; border-radius: 999px; padding: .2rem .6rem; font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.pill-sale { background: var(--brand); color: #fff; }
.pill-new { background: #fff; color: var(--brown); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.pill-top { background: var(--brown); color: #fff; }
.pill-out { background: #eee; color: #555; }
.quick-btn {
  position: absolute; right: .6rem; bottom: .6rem; opacity: 0; transform: translateY(6px); transition: .2s;
  background: rgba(255,255,255,.95); border: 0; border-radius: 999px; padding: .45rem .8rem; font-size: .8rem; font-weight: 600; cursor: pointer;
}
.card:hover .quick-btn, .quick-btn:focus { opacity: 1; transform: none; }
@media (hover: none) { .quick-btn { opacity: 1; transform: none; } }
.card-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-title { font-weight: 600; color: var(--text); text-decoration: none; line-height: 1.3; }
.card-title::after { content: ""; position: absolute; inset: 0; }
.card-sku { font-size: .75rem; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.price-now { font-weight: 700; font-size: 1.1rem; color: var(--brown); }
.price-was { color: var(--muted); text-decoration: line-through; font-size: .9rem; }
.card-actions { margin-top: auto; padding-top: .5rem; position: relative; z-index: 1; }
.card.is-out .card-media img { filter: grayscale(.6); opacity: .7; }

.addons-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.addon-card { display: flex; gap: .75rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem; }
.addon-card img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--bg-soft); }
.addon-card .name { font-weight: 600; font-size: .9rem; line-height: 1.25; }

/* ── Catálogo ──────────────────────────────── */
.page-hero { background: var(--bg-soft); padding: 2.2rem 0 1.6rem; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }
.breadcrumbs a { color: var(--muted); }
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; padding: 2rem 0 3rem; }
.filters { position: sticky; top: 90px; align-self: start; display: grid; gap: 1.25rem; }
.filter-block h3 { font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .6rem; }
.filter-list { display: grid; gap: .2rem; }
.filter-list button {
  text-align: left; border: 0; background: none; padding: .45rem .6rem; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; color: var(--text);
}
.filter-list button:hover { background: var(--bg-soft); }
.filter-list button[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.filter-list .count { color: var(--muted); font-size: .8rem; }
.catalog-toolbar { display: flex; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; flex-wrap: wrap; }
.catalog-toolbar .input, .catalog-toolbar .select { width: auto; }
.active-filters { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; background: var(--brand-soft); color: var(--brand-dark); border: 0; border-radius: 999px; padding: .3rem .7rem; font-size: .82rem; cursor: pointer; }
.filters-toggle { display: none; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
@media (max-width: 900px) {
  .catalog { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 0 0 auto; width: min(340px, 90vw); background: #fff; z-index: 70; padding: 1.25rem; overflow-y: auto; transform: translateX(105%); transition: transform .25s; box-shadow: var(--shadow-lg); }
  .filters.open { transform: none; }
  .filters-toggle { display: inline-flex; }
}

/* ── Producto ──────────────────────────────── */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; padding: 2rem 0 3rem; }
.gallery-main { border-radius: 20px; overflow: hidden; aspect-ratio: 1/1; background: var(--bg-soft); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: .6rem; margin-top: .75rem; flex-wrap: wrap; }
.thumbs button { width: 72px; height: 72px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--bg-soft); }
.thumbs button[aria-current="true"] { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info .price-now { font-size: 1.6rem; }
.variant-list { display: flex; gap: .5rem; flex-wrap: wrap; }
.variant { border: 1px solid #e3d3cd; background: #fff; border-radius: 999px; padding: .5rem 1rem; cursor: pointer; font-weight: 500; }
.variant[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.qty { display: inline-flex; align-items: center; border: 1px solid #e3d3cd; border-radius: 999px; overflow: hidden; }
.qty button { border: 0; background: none; width: 38px; height: 40px; cursor: pointer; font-size: 1.1rem; }
.qty input { width: 44px; text-align: center; border: 0; }
.buy-row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin: 1.2rem 0; }
.info-box { background: var(--bg-soft); border-radius: var(--radius); padding: 1rem; font-size: .9rem; display: grid; gap: .5rem; }
.info-box div { display: flex; gap: .6rem; }
.addon-check { display: flex; align-items: center; gap: .7rem; padding: .55rem; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.addon-check:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.addon-check img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.addon-check .grow { flex: 1; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ── Carrito (panel lateral) ───────────────── */
.overlay { position: fixed; inset: 0; background: rgba(40, 28, 22, .45); z-index: 65; opacity: 0; pointer-events: none; transition: opacity .2s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: #fff; z-index: 80; transform: translateX(105%); transition: transform .25s; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.drawer-foot { border-top: 1px solid var(--line); padding: 1rem 1.25rem; display: grid; gap: .6rem; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--bg-soft); }
.cart-line .name { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.cart-line .meta { font-size: .8rem; color: var(--muted); }
.cart-line .remove { border: 0; background: none; color: var(--muted); font-size: .8rem; cursor: pointer; text-decoration: underline; padding: 0; }
.totals { display: grid; gap: .3rem; }
.totals div { display: flex; justify-content: space-between; }
.totals .total { font-weight: 700; font-size: 1.15rem; color: var(--brown); }

/* ── Modal ─────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-card { position: relative; background: #fff; border-radius: 20px; max-width: 860px; width: 100%; max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1fr 1fr; }
.modal-card .gallery-main { border-radius: 0; }
.modal-close { position: absolute; top: .6rem; right: .6rem; z-index: 2; background: #fff; }
.modal-content { padding: 1.5rem; }
@media (max-width: 700px) { .modal-card { grid-template-columns: 1fr; } }

/* ── Checkout ──────────────────────────────── */
.checkout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; padding: 2rem 0 3rem; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.25rem; }
.panel h2 { font-size: 1.45rem; display: flex; gap: .6rem; align-items: center; }
.panel h2 .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--brand); color: #fff; font-family: var(--font-body); font-size: .9rem; }
.summary { position: sticky; top: 90px; }
.pay-methods { display: grid; gap: .6rem; }
.pay-method { display: flex; gap: .75rem; align-items: center; border: 1px solid #e3d3cd; border-radius: var(--radius-sm); padding: .85rem 1rem; cursor: pointer; }
.pay-method:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pay-method input { accent-color: var(--brand); }
.pay-method .grow { flex: 1; }
.pay-method small { display: block; color: var(--muted); }
.card-logos { display: flex; gap: .3rem; }
.card-logos span { border: 1px solid var(--line); border-radius: 5px; padding: .1rem .35rem; font-size: .68rem; font-weight: 800; background: #fff; }
.spei-box { background: var(--bg-soft); border-radius: var(--radius); padding: 1rem; display: grid; gap: .4rem; }
.spei-box code { font-size: 1.05rem; background: #fff; padding: .2rem .45rem; border-radius: 6px; }
@media (max-width: 960px) { .checkout { grid-template-columns: 1fr; } .summary { position: static; } }

/* ── Estado de pedido ──────────────────────── */
.status-card { max-width: 720px; margin: 2.5rem auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 2rem; box-shadow: var(--shadow); }
.status-icon { width: 64px; height: 64px; border-radius: 999px; display: grid; place-items: center; font-size: 1.9rem; margin-bottom: 1rem; }
.status-ok { background: var(--ok-soft); }
.status-wait { background: var(--warn-soft); }
.status-bad { background: var(--danger-soft); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 1rem 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

/* ── Contenido (páginas informativas) ─────── */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/9; margin-top: 1.25rem; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 760px) { .info-grid { grid-template-columns: 1fr; } }

/* ── Footer ────────────────────────────────── */
.site-footer { background: var(--brown); color: #f2e6e1; padding: 3rem 0 1.5rem; margin-top: 2rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-grid h4 { color: #fff; margin: 0 0 .75rem; font-size: .95rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; font-size: .92rem; }
.footer-logo { background: #fff; border-radius: 12px; padding: .5rem .8rem; display: inline-block; margin-bottom: .8rem; }
.footer-logo img { height: 44px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1rem; font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.pay-badges { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .75rem; }
.pay-badges span { background: #fff; color: var(--brown); border-radius: 6px; padding: .15rem .45rem; font-size: .72rem; font-weight: 800; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.wa-float { position: fixed; left: 18px; bottom: 18px; z-index: 30; width: 54px; height: 54px; border-radius: 999px; background: #1f9d55; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.wa-float svg { width: 28px; height: 28px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--brown); color: #fff; padding: .8rem 1.2rem; border-radius: 999px; z-index: 100; transition: transform .25s; box-shadow: var(--shadow-lg); font-weight: 500; max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); }

.skeleton { background: linear-gradient(90deg, #f6eeeb 25%, #fbf5f3 50%, #f6eeeb 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); min-height: 320px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ═════════════════════════════════════════════
   Movimiento y microinteracciones
   ═════════════════════════════════════════════ */
[data-site-header] { display: contents; } /* para que el header quede fijo arriba al hacer scroll */

/* Barra de lectura y barra de carga */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--brand), #f4b6c2); transform-origin: 0 50%; transform: scaleX(0); z-index: 120; pointer-events: none; }
.page-loader { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--brown); z-index: 121; pointer-events: none; }
.page-loader.run { animation: loadbar 1.4s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes loadbar { 0% { width: 0; } 60% { width: 70%; } 100% { width: 92%; } }

/* Header que se compacta */
.site-header { transition: box-shadow .25s, background .25s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(74, 52, 40, .08); }
.site-header .container { transition: min-height .25s; }
.site-header.scrolled .container { min-height: 60px; }
.brand-logo img { transition: height .25s, transform .3s; }
.site-header.scrolled .brand-logo img { height: 40px; }
.brand-logo:hover img { transform: rotate(-3deg) scale(1.03); }

/* Navegación con subrayado animado */
.main-nav a, .main-nav button { position: relative; transition: background .2s, color .2s; }
.main-nav > ul > li > a::after, .main-nav > ul > li > button::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 4px; height: 2px; border-radius: 2px; background: var(--brand); transition: left .25s, right .25s;
}
.main-nav > ul > li > a:hover::after, .main-nav > ul > li > button:hover::after { left: 18%; right: 18%; }
.submenu { animation: dropIn .18s ease-out; transform-origin: top center; }
@keyframes dropIn { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }

/* Botones: elevación, brillo y onda */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn:hover:not([disabled]) { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(199, 91, 106, .22); }
.btn-ghost:hover:not([disabled]), .btn-outline:hover:not([disabled]) { box-shadow: 0 8px 18px rgba(74, 52, 40, .08); }
.btn:active:not([disabled]) { transform: translateY(0) scale(.98); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); translate: -120% 0; transition: translate .7s;
}
.btn-primary:hover::before { translate: 120% 0; }
.ink { position: absolute; border-radius: 50%; background: currentColor; opacity: .25; transform: scale(0); animation: ink .6s ease-out forwards; pointer-events: none; }
.tab, .chip, .variant { position: relative; overflow: hidden; transition: background .2s, color .2s, border-color .2s, transform .15s; }
.tab:hover, .variant:hover { transform: translateY(-1px); }
@keyframes ink { to { transform: scale(1); opacity: 0; } }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn-outline.is-loading::after, .btn-ghost.is-loading::after { border-color: var(--brand-soft); border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Spinner de pétalos (cargas) */
.df-spinner { display: inline-block; width: 38px; height: 38px; position: relative; animation: spin 1.6s linear infinite; }
.df-spinner::before, .df-spinner::after { content: ""; position: absolute; inset: 0; border-radius: 60% 0; background: var(--brand); opacity: .75; transform: rotate(45deg) scale(.55); }
.df-spinner::after { background: #f4b6c2; transform: rotate(-45deg) scale(.55); }

/* Iconos: carrito que rebota, contador que salta */
.icon-btn { transition: background .2s, transform .2s; }
.icon-btn:hover { transform: translateY(-1px); }
.icon-btn.bump { animation: bump .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.25) rotate(-8deg); } 70% { transform: scale(.94); } 100% { transform: scale(1); } }
.badge-count.pop { animation: pop .45s cubic-bezier(.3,1.8,.5,1); }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.3); } 100% { transform: scale(1); } }
.fly-to-cart { position: fixed; z-index: 130; width: 64px; height: 64px; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow-lg); pointer-events: none; transition: transform .75s cubic-bezier(.5,-0.3,.3,1), opacity .75s; }

/* Aparición al hacer scroll */
.motion-ready .rv { opacity: 0; translate: 0 26px; transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--rv-delay, 0ms), translate .7s cubic-bezier(.2,.7,.2,1) var(--rv-delay, 0ms); }
.motion-ready .rv.in { opacity: 1; translate: 0 0; }

/* Hero vivo: degradado que respira, pétalos y título por palabras */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #fbe3e8 0%, transparent 60%), radial-gradient(900px 500px at -10% 110%, #fdeee2 0%, transparent 55%), var(--bg-soft); }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(50px); opacity: .55; pointer-events: none; z-index: 0;
}
.hero::before { width: 380px; height: 380px; background: #f6c4cf; top: -120px; right: 18%; animation: blob 14s ease-in-out infinite alternate; }
.hero::after { width: 320px; height: 320px; background: #fde2c9; bottom: -140px; left: 6%; animation: blob 18s ease-in-out infinite alternate-reverse; }
@keyframes blob { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.15); } }
.hero-inner { position: relative; z-index: 1; }
.petals { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.page-hero { position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; }
.hero h1 .w { display: inline-block; opacity: 0; translate: 0 .5em; filter: blur(4px); transition: opacity .6s, translate .6s cubic-bezier(.2,.8,.2,1), filter .6s; transition-delay: calc(var(--wi) * 70ms + 100ms); }
.hero h1.words-in .w { opacity: 1; translate: 0 0; filter: none; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.hero-eyebrow { position: relative; overflow: hidden; animation: floatY 5s ease-in-out infinite; }
.hero-eyebrow::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.8) 50%, transparent 65%); translate: -120% 0; animation: shine 4.5s ease-in-out infinite 1.5s; }
@keyframes shine { 0%, 60% { translate: -120% 0; } 100% { translate: 120% 0; } }
@keyframes floatY { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
.hero-media { transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .4s; will-change: transform; animation: mediaIn 1s cubic-bezier(.2,.8,.2,1) both .2s; }
.hero-media:hover { box-shadow: 0 30px 60px rgba(74, 52, 40, .22); }
.hero-media img { transform: scale(1.06); will-change: transform; }
@keyframes mediaIn { from { opacity: 0; clip-path: inset(12% 12% 12% 12% round 28px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 28px); } }
.finder { animation: riseIn .8s cubic-bezier(.2,.8,.2,1) both .6s; }
@keyframes riseIn { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }

/* Beneficios, ocasiones, pasos */
.benefit { transition: transform .25s, box-shadow .25s, border-color .25s; }
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #f2cfd6; }
.benefit-icon { transition: transform .4s cubic-bezier(.3,1.6,.5,1), background .3s; }
.benefit:hover .benefit-icon { transform: rotate(-10deg) scale(1.12); background: var(--brand); color: #fff; }
.occasion { position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.occasion .emoji { transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.occasion:hover .emoji { transform: scale(1.3) rotate(-8deg); animation: wiggle .6s ease-in-out .2s; }
@keyframes wiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: -10deg; } 75% { rotate: 10deg; } }
.step { transition: transform .25s, box-shadow .25s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step:hover::before { animation: pop .45s cubic-bezier(.3,1.8,.5,1); }

/* Tarjetas de producto: inclinación 3D, brillo que sigue al cursor */
.card { transform-style: preserve-3d; transition: box-shadow .3s, transform .35s cubic-bezier(.2,.7,.2,1); }
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(74, 52, 40, .14); }
.card.tilting { transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateY(-6px); }
.card::before, .occasion::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.35), transparent 45%);
}
.card.tilting::before, .occasion.tilting::before { opacity: 1; }
.card-media img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-media img { transform: scale(1.08); }
.card .pill-sale { animation: pulseTag 2.4s ease-in-out infinite; }
@keyframes pulseTag { 0%, 100% { box-shadow: 0 0 0 0 rgba(199, 91, 106, .45); } 50% { box-shadow: 0 0 0 6px rgba(199, 91, 106, 0); } }
.addon-card { transition: transform .25s, box-shadow .25s; }
.addon-card:hover { transform: translateY(-3px) rotate(-.5deg); box-shadow: var(--shadow); }

/* Formularios con foco vivo */
.input, .select, .textarea { transition: border-color .2s, box-shadow .25s, background .2s; }
.input:hover, .select:hover, .textarea:hover { border-color: #d9bdb6; }
.pay-method, .choice { transition: border-color .2s, background .2s, transform .15s, box-shadow .2s; }
.pay-method:hover, .choice:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(74, 52, 40, .06); }
.notice:not([hidden]) { animation: riseIn .35s ease-out; }

/* Carrito y modal con entrada suave */
.drawer { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.drawer.open .cart-line { animation: riseIn .4s ease-out both; }
.modal.open .modal-card { animation: modalIn .35s cubic-bezier(.2,.8,.2,1); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }

/* WhatsApp con pulso */
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #1f9d55; animation: ring 2.6s ease-out infinite; }
.wa-float { transition: transform .25s; }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }

/* ═════════════════════════════════════════════
   Chat de ventas
   ═════════════════════════════════════════════ */
.df-chat { position: fixed; right: 18px; bottom: 18px; z-index: 95; font-family: var(--font-body); }
.df-chat-launcher {
  position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, #e07f8f 100%); box-shadow: 0 14px 30px rgba(199, 91, 106, .4);
  display: grid; place-items: center; transition: transform .3s cubic-bezier(.3,1.6,.5,1); animation: launcherIn .6s cubic-bezier(.3,1.6,.5,1) both 1s;
}
.df-chat-launcher:hover { transform: scale(1.08); }
.df-chat-launcher svg { width: 28px; height: 28px; position: absolute; transition: transform .3s, opacity .3s; }
.df-chat-launcher .ico-close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.df-chat.open .df-chat-launcher .ico-open { opacity: 0; transform: rotate(90deg) scale(.6); }
.df-chat.open .df-chat-launcher .ico-close { opacity: 1; transform: none; }
.df-chat-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand); animation: ring 2.4s ease-out infinite; }
.df-chat.open .df-chat-ring { display: none; }
@keyframes launcherIn { from { transform: scale(0) rotate(-30deg); } to { transform: none; } }
.df-chat-panel {
  position: absolute; right: 0; bottom: 76px; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px));
  background: #fff; border-radius: 22px; box-shadow: 0 30px 70px rgba(74, 52, 40, .25); display: flex; flex-direction: column; overflow: hidden;
  transform-origin: bottom right; transform: scale(.6) translateY(20px); opacity: 0; pointer-events: none; transition: transform .35s cubic-bezier(.2,.9,.3,1.2), opacity .25s;
}
.df-chat.open .df-chat-panel { transform: none; opacity: 1; pointer-events: auto; }
.df-chat-head { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; color: #fff; background: linear-gradient(135deg, var(--brown) 0%, #6b4a3a 100%); }
.df-chat-head strong { display: block; font-family: var(--font-display); font-size: 1.25rem; line-height: 1; }
.df-chat-head small { opacity: .85; font-size: .78rem; display: inline-flex; align-items: center; gap: .35rem; }
.df-dot { width: 8px; height: 8px; border-radius: 50%; background: #5ee39a; box-shadow: 0 0 0 0 rgba(94, 227, 154, .7); animation: online 2s infinite; }
@keyframes online { 70% { box-shadow: 0 0 0 7px rgba(94, 227, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 227, 154, 0); } }
.df-chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.3rem; }
.df-chat-x { margin-left: auto; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; transition: background .2s, transform .2s; }
.df-chat-x:hover { background: rgba(255,255,255,.25); transform: rotate(90deg); }
.df-chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; background: linear-gradient(180deg, var(--bg-soft), #fff 40%); scroll-behavior: smooth; }
.df-msg { max-width: 85%; padding: .6rem .85rem; border-radius: 16px; font-size: .9rem; line-height: 1.45; animation: msgIn .3s cubic-bezier(.2,.8,.2,1); overflow-wrap: anywhere; }
.df-msg a { color: inherit; text-decoration: underline; }
.df-msg-bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--text); box-shadow: 0 2px 8px rgba(74, 52, 40, .05); }
.df-msg-me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.df-typing { display: inline-flex; gap: 4px; padding: .75rem .9rem; }
.df-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.df-typing span:nth-child(2) { animation-delay: .15s; }
.df-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.df-chat-quick { display: flex; gap: .4rem; flex-wrap: wrap; padding: 0 1rem .5rem; }
.df-chat-quick:empty { display: none; }
.df-chat-quick button { border: 1px solid #f0c9d1; background: #fff; color: var(--brand-dark); border-radius: 999px; padding: .4rem .75rem; font-size: .8rem; font-weight: 600; cursor: pointer; transition: background .2s, transform .2s; animation: msgIn .4s both; }
.df-chat-quick button:nth-child(2) { animation-delay: .05s; }
.df-chat-quick button:nth-child(3) { animation-delay: .1s; }
.df-chat-quick button:nth-child(4) { animation-delay: .15s; }
.df-chat-quick button:hover { background: var(--brand-soft); transform: translateY(-1px); }
.df-chat-form { display: flex; gap: .5rem; align-items: flex-end; padding: .6rem .75rem; border-top: 1px solid var(--line); }
.df-chat-form textarea { flex: 1; resize: none; border: 1px solid #e3d3cd; border-radius: 18px; padding: .6rem .9rem; font: inherit; font-size: .9rem; max-height: 110px; outline: none; transition: border-color .2s, box-shadow .2s; }
.df-chat-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(199, 91, 106, .15); }
.df-chat-form button { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; cursor: pointer; display: grid; place-items: center; transition: transform .2s, background .2s; }
.df-chat-form button:hover { background: var(--brand-dark); transform: rotate(-12deg) scale(1.06); }
.df-chat-form button svg { width: 18px; height: 18px; }
.df-chat-legal { margin: 0; padding: 0 1rem .6rem; font-size: .7rem; color: var(--muted); }
.df-chat-teaser { position: absolute; right: 0; bottom: 76px; width: 240px; background: #fff; border-radius: 16px 16px 4px 16px; padding: .8rem 2rem .8rem .9rem; box-shadow: var(--shadow-lg); cursor: pointer; animation: riseIn .5s cubic-bezier(.2,.8,.2,1); }
.df-chat-teaser p { margin: 0; font-size: .88rem; line-height: 1.4; }
.df-chat-teaser-close { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 1.1rem; color: var(--muted); cursor: pointer; }
.df-chat-teaser[hidden] { display: none; }
@media (max-width: 520px) {
  .df-chat-panel { position: fixed; right: 8px; left: 8px; bottom: 86px; width: auto; height: calc(100dvh - 110px); }
}

/* ═════════════════════════════════════════════
   Tienda que crece con el inventario
   ═════════════════════════════════════════════ */
.btn-light { background: rgba(255,255,255,.92); color: var(--brown); border-color: transparent; backdrop-filter: blur(6px); }
.btn-light:hover { background: #fff; }

/* Menú de categorías con foto */
.submenu.mega { grid-template-columns: repeat(2, minmax(200px, 1fr)); gap: .2rem; min-width: 460px; padding: .6rem; }
.mega-item { display: flex !important; gap: .7rem; align-items: center; padding: .45rem .55rem !important; border-radius: 12px !important; }
.mega-item img, .mega-emoji { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; background: var(--bg-soft); display: grid; place-items: center; font-size: 1.4rem; transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.mega-item:hover img, .mega-item:hover .mega-emoji { transform: scale(1.1) rotate(-4deg); }
.mega-item strong { display: block; font-weight: 600; line-height: 1.2; }
.mega-item small { color: var(--muted); font-size: .78rem; }
.mega-all { grid-column: 1 / -1; justify-content: center !important; font-weight: 600; color: var(--brand-dark) !important; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px !important; margin-top: .2rem; }
.mega-item { animation: riseIn .35s cubic-bezier(.2,.8,.2,1) both; }
.mega-item:nth-child(2) { animation-delay: .03s; } .mega-item:nth-child(3) { animation-delay: .06s; } .mega-item:nth-child(4) { animation-delay: .09s; }
.mega-item:nth-child(5) { animation-delay: .12s; } .mega-item:nth-child(6) { animation-delay: .15s; } .mega-item:nth-child(n+7) { animation-delay: .18s; }
@media (max-width: 900px) { .submenu.mega { grid-template-columns: 1fr; min-width: 0; } .mega-item img, .mega-emoji { width: 36px; height: 36px; } }

/* Mosaico de categorías */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); grid-auto-rows: 220px; gap: 1rem; }
.cat-tile { position: relative; overflow: hidden; border-radius: 20px; text-decoration: none; color: #fff; background: linear-gradient(135deg, #f6c4cf, #fbe3c8); transform-style: preserve-3d; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .3s; isolation: isolate; }
.cat-tile.is-wide { grid-column: span 2; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .5s; z-index: -1; }
.cat-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(40,24,20,.62)); transition: opacity .3s; }
.cat-tile-emoji { position: absolute; inset: 0; display: grid; place-items: center; font-size: 4.5rem; z-index: -1; transition: transform .6s cubic-bezier(.3,1.6,.5,1); }
.cat-tile-text { position: absolute; left: 1rem; right: 1rem; bottom: .9rem; display: grid; gap: .1rem; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.cat-tile-text strong { font-family: var(--font-display); font-size: 1.65rem; line-height: 1.05; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.cat-tile-text small { opacity: .9; font-weight: 500; }
.cat-tile:hover { box-shadow: 0 24px 50px rgba(74, 52, 40, .2); transform: translateY(-6px); }
.cat-tile.tilting { transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateY(-6px); }
.cat-tile:hover img { transform: scale(1.1); filter: saturate(1.15); }
.cat-tile:hover .cat-tile-emoji { transform: scale(1.2) rotate(-8deg); }
.cat-tile:hover .cat-tile-text { transform: translateY(-4px); }
.cat-tile::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.28), transparent 45%); }
.cat-tile.tilting::before { opacity: 1; }
@media (max-width: 560px) { .cat-tiles { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; } .cat-tile.is-wide { grid-column: span 2; } .cat-tile-text strong { font-size: 1.3rem; } }

/* Banda de categoría en inicio (foto con parallax) */
.cat-band { position: relative; overflow: hidden; border-radius: 24px; min-height: 210px; display: flex; align-items: flex-end; margin-bottom: 1.4rem; background: linear-gradient(120deg, var(--brand-soft), #fdeee2); isolation: isolate; }
.cat-band img { position: absolute; left: 0; right: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; z-index: -2; transform: translate3d(0, var(--py, 0), 0) scale(1.04); will-change: transform; transition: transform .1s linear; }
.cat-band:not(.no-image)::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(40,24,20,.62), rgba(40,24,20,.12) 70%); }
.cat-band-text { width: 100%; padding: 1.6rem 1.8rem; margin: 0 !important; }
.cat-band:not(.no-image) .cat-band-text h2, .cat-band:not(.no-image) .cat-band-text p { color: #fff; }
.cat-band:not(.no-image) .cat-band-text p { opacity: .9; }
.cat-band.no-image { min-height: 0; }
@media (max-width: 560px) { .cat-band { min-height: 170px; border-radius: 18px; } .cat-band-text { padding: 1.1rem; } }

/* Temporada */
.season-wrap { padding-bottom: 0; }
.season-banner { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 1.5rem; align-items: center; padding: 1.8rem; border-radius: 26px;
  background: radial-gradient(600px 300px at 0% 0%, #fbd3dc, transparent 60%), radial-gradient(500px 300px at 100% 100%, #fde2c9, transparent 60%), var(--bg-soft); border: 1px solid #f3dcd8; }
.season-banner::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: #f6c4cf; filter: blur(60px); opacity: .5; top: -90px; left: 30%; animation: blob 12s ease-in-out infinite alternate; pointer-events: none; }
.season-copy { position: relative; }
.season-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: .2rem 0 .4rem; }
.season-emoji { font-size: 2.6rem; display: inline-block; animation: floatY 4s ease-in-out infinite; }
.season-when { margin: .3rem 0 0; font-weight: 700; color: var(--brand-dark); letter-spacing: .02em; text-transform: uppercase; font-size: .8rem; }
.season-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); position: relative; }
@media (max-width: 860px) { .season-banner { grid-template-columns: 1fr; padding: 1.3rem; } }

/* Portada de categoría en el catálogo */
.page-hero-cover { position: absolute; left: 0; right: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; z-index: 0; opacity: 0; transform: translate3d(0, var(--py, 0), 0) scale(1.08); transition: opacity .8s ease, transform .1s linear; }
.page-hero-cover.in { opacity: 1; }
.page-hero.has-cover { min-height: 260px; display: flex; align-items: flex-end; color: #fff; }
.page-hero.has-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(40,24,20,.7), rgba(40,24,20,.1)); z-index: 0; }
.page-hero.has-cover .container { width: 100%; }
.page-hero.has-cover h1, .page-hero.has-cover .muted, .page-hero.has-cover .breadcrumbs, .page-hero.has-cover .breadcrumbs a { color: #fff; }
.page-hero.has-cover .petals { z-index: 1; }
.page-hero h1.title-in { animation: titleIn .7s cubic-bezier(.2,.8,.2,1); }
@keyframes titleIn { from { opacity: 0; translate: 0 .4em; filter: blur(4px); } to { opacity: 1; translate: 0 0; filter: none; } }

/* Selector de color */
.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: .35rem 0 .1rem; }
.swatch { --size: 30px; position: relative; width: var(--size); height: var(--size); border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: #fff; box-shadow: 0 0 0 1px #e3d3cd; transition: transform .25s cubic-bezier(.3,1.6,.5,1), box-shadow .25s; }
.swatch span { position: absolute; inset: 3px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.swatch.is-mix span { background: conic-gradient(#b3122e, #f4c430, #f08bb0, #f7f3ee, #6c3483, #b3122e); }
.swatch:hover { transform: scale(1.12); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--brand); transform: scale(1.08); }
.swatch[aria-checked="true"] span { animation: swPop .4s cubic-bezier(.3,1.8,.5,1); }
.swatch.is-out::after { content: ""; position: absolute; left: 50%; top: 2px; bottom: 2px; width: 2px; background: rgba(120,100,90,.75); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.swatch.is-out span { opacity: .45; }
@keyframes swPop { 0% { transform: scale(.6); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
.swatches.sm { gap: .3rem; margin: .1rem 0 .25rem; }
.swatches.sm .swatch { --size: 20px; }
.swatches.sm .swatch span { inset: 2px; }
.swatches.lg .swatch { --size: 38px; }
.swatch-name { font-weight: 600; font-size: .9rem; color: var(--brand-dark); margin-left: .25rem; animation: riseIn .3s ease-out; }
.card.color-out .card-media img { filter: grayscale(.5); opacity: .75; }
.gallery-main { position: relative; }
.color-tag { position: absolute; left: 1rem; bottom: 1rem; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); color: var(--brown); font-weight: 600; font-size: .85rem; padding: .35rem .8rem; border-radius: 999px; box-shadow: var(--shadow); }
.color-tag.pop { animation: pop .45s cubic-bezier(.3,1.8,.5,1); }
.dot-color { display: none; }

/* Cambio de foto al elegir color: fundido con zoom suave */
img.swap-out { opacity: 0 !important; transform: scale(1.04); filter: blur(6px); transition: opacity .18s ease, transform .18s ease, filter .18s ease !important; }
img.swap-in { animation: swapIn .5s cubic-bezier(.2,.8,.2,1); }
@keyframes swapIn { from { opacity: 0; transform: scale(1.06); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
::view-transition-old(df-product), ::view-transition-old(df-quick) { animation: vtOut .32s cubic-bezier(.4,0,.2,1) both; }
::view-transition-new(df-product), ::view-transition-new(df-quick) { animation: vtIn .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes vtOut { to { opacity: 0; transform: scale(.96); filter: blur(6px); } }
@keyframes vtIn { from { opacity: 0; transform: scale(1.05); filter: blur(8px); clip-path: circle(20% at 50% 50%); } to { opacity: 1; transform: none; filter: none; clip-path: circle(75% at 50% 50%); } }

/* Filtro por color en el catálogo */
.color-list { grid-template-columns: 1fr 1fr; }
.color-filter { align-items: center; gap: .45rem; justify-content: flex-start !important; }
.color-filter .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); flex: none; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.color-filter:hover .dot, .color-filter[aria-pressed="true"] .dot { transform: scale(1.25); }
.color-filter .count { margin-left: auto; }
.color-filter[disabled] { opacity: .4; cursor: default; }

@media (prefers-reduced-motion: reduce) {
  .motion-ready .rv { opacity: 1; translate: none; }
  .petals, .hero::before, .hero::after, .season-banner::before { display: none; }
  .page-hero-cover, .cat-band img { transform: none !important; }
}
@media (max-width: 520px) { body.chat-open .wa-float { display: none; } }
