/* Lovely Gio — tienda.
   Todo el look sale de las variables de :root. Los temas (temas.css) sólo
   cambian variables y unos cuantos detalles con [data-theme="…"]. */

:root {
  /* Paleta base (tema Maximalista) */
  --accent: #ff3fa4;
  --accent-deep: #e0137f;
  --accent-soft: #ff9fd0;
  --accent-2: #8b3dff;
  --accent-3: #ffc94d;
  --accent-4: #9ff0d6;
  --accent-5: #dcc6ff;
  --danger: #ff2e63;
  --ink: #2e0a49;
  --muted: #7d5a92;
  --on-accent: #fff;

  /* Superficies */
  --bg: #fff3fa;
  --bg-image: radial-gradient(#ffd9ee 1.4px, transparent 1.6px);
  --bg-size: 22px 22px;
  --surface: #fff;
  --surface-2: #f1e8ff;
  --surface-3: #ffd9ee;
  --field-bg: #fff3fa;

  /* Líneas, sombras y formas */
  --line: #2e0a49;
  --bw: 3px;
  --bw-sm: 2px;
  --shadow: 6px 6px 0 var(--line);
  --shadow-sm: 4px 4px 0 var(--line);
  --shadow-hover: 9px 9px 0 var(--accent-2);
  --shadow-panel: 8px 8px 0 var(--accent-2);
  --shadow-img: 10px 10px 0 var(--accent);
  --radius: 22px;
  --radius-lg: 30px;
  --radius-sm: 14px;
  --radius-btn: 999px;
  --tilt: -3deg;
  --lift: translate(-3px, -3px);

  /* Tipografía */
  --f-script: 'Great Vibes', cursive;
  --f-display: 'Fraunces', Georgia, serif;
  --f-body: 'Outfit', system-ui, sans-serif;
  --display-style: italic;
  --display-weight: 900;
  --title-case: none;
  --title-spacing: -.01em;
  --nav-case: none;
  --nav-spacing: 0;

  /* Zonas */
  --announce-bg: #2e0a49;
  --announce-ink: #ffc94d;
  --header-bg: rgba(255, 243, 250, .92);
  --hero-bg: linear-gradient(135deg, #ff3fa4 0%, #ff6ec0 45%, #8b3dff 100%);
  --hero-ink: #fff;
  --hero-title-shadow: 4px 4px 0 var(--line);
  --hero-dots: radial-gradient(rgba(255,255,255,.22) 2.5px, transparent 3px);
  --hero-em: var(--accent-3);
  --band-bg: var(--accent-2);
  --band-ink: #fff;
  --footer-bg: #2e0a49;
  --footer-ink: #f6e9ff;
  --footer-head: var(--accent-3);
  --logo-ink: #2e0a49;
  --bead: #ff2e63;
  --marquee-bg: var(--accent-3);
  --marquee-ink: var(--ink);
  --marquee-tilt: -1.5deg;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--bg);
  background-image: var(--bg-image);
  background-size: var(--bg-size);
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.05; margin: 0 0 .4em; letter-spacing: var(--title-spacing); }
h1 em, h2 em { font-style: italic; color: var(--accent); }
.wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; justify-content: center; }
.small { font-size: .86rem; color: var(--muted); }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--surface); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------- Barra de anuncios ---------- */
.announce { background: var(--announce-bg); color: var(--announce-ink); overflow: hidden; white-space: nowrap; font-weight: 600; font-size: .85rem; letter-spacing: .03em; }
.announce-track { display: inline-flex; padding: 8px 0; animation: marquee 40s linear infinite; }
.announce-track span { padding-right: 8px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cabecera ---------- */
/* El fondo y el desenfoque van en ::before: un backdrop-filter en la cabecera
   haría que el menú móvil (position: fixed) midiera sólo lo que mide ella. */
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: var(--bw) solid var(--line); }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--header-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.header-in { display: flex; align-items: center; gap: 12px; min-height: 76px; }
.logo { display: inline-flex; align-items: flex-end; text-decoration: none; position: relative; padding-bottom: 12px; margin-right: auto; }
.logo-script { font-family: var(--f-script); font-size: 2.6rem; line-height: 1; color: var(--logo-ink); white-space: nowrap; }
.logo-heart { width: 30px; height: 46px; margin-left: -2px; margin-bottom: -10px; overflow: visible; }
.logo-sub { position: absolute; left: 6px; bottom: 0; font-size: .72rem; letter-spacing: .28em; color: var(--bead); text-transform: lowercase; font-weight: 500; }
.beads { fill: none; stroke: var(--bead); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 0 7.2; }
.beads-sm { stroke-width: 3; stroke-dasharray: 0 4.5; }
.charm { fill: none; stroke: var(--bead); stroke-width: 2.2; stroke-linejoin: round; }
.charm-eye { fill: none; stroke: var(--bead); stroke-width: 1.2; }
.charm-pupil { fill: var(--bead); }

.main-nav { display: none; }
.main-nav a { white-space: nowrap; text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: var(--radius-btn); transition: background .15s; text-transform: var(--nav-case); letter-spacing: var(--nav-spacing); }
.main-nav a:hover { background: var(--surface-3); }
.header-actions { display: flex; gap: 6px; }
.icon-btn, .menu-btn, .menu-close { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: var(--bw-sm) solid var(--line); background: var(--surface); cursor: pointer; text-decoration: none; position: relative; color: var(--ink); }
.icon-btn:hover { background: var(--accent-3); }
.bag-btn { background: var(--accent); color: var(--on-accent); }
.bag-btn:hover { background: var(--accent-2); }
.bag-count { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--accent-3); color: var(--ink); font-size: .75rem; font-weight: 800; display: grid; place-items: center; border: var(--bw-sm) solid var(--line); }
.bag-count.pop { animation: pop .4s ease; }
@keyframes pop { 50% { transform: scale(1.5) rotate(-12deg); } }
.nav-social { display: none; }
.menu-close { display: none; }

@media (max-width: 1099px) {
  .logo-script { font-size: 2.1rem; }
  .main-nav.open {
    display: flex; flex-direction: column; gap: 4px; position: fixed; inset: 0; z-index: 60; padding: 80px 24px 24px;
    background: var(--accent); background-image: radial-gradient(rgba(255,255,255,.25) 2px, transparent 2.4px); background-size: 26px 26px;
  }
  .main-nav.open a { font-family: var(--f-display); font-size: 2rem; font-style: var(--display-style); color: var(--on-accent); padding: 6px 0; }
  .menu-open .site-header { z-index: 85; }
  .menu-open .wa-float { display: none; }
  .main-nav.open .menu-close { display: grid; position: absolute; top: 18px; right: 16px; }
  .main-nav.open .nav-social { display: flex; gap: 10px; margin-top: auto; }
  .main-nav.open .nav-social a { font-size: 1rem; width: 48px; height: 48px; display: grid; place-items: center; background: var(--surface); color: var(--accent); border-radius: 50%; padding: 0; }
}
@media (min-width: 1100px) {
  .menu-btn { display: none; }
  .main-nav { display: flex; align-items: center; gap: 2px; }
  .logo { margin-right: 18px; }
  .header-actions { margin-left: auto; }
}

/* ---------- Botones y stickers ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-btn); border: var(--bw) solid var(--line);
  background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s, background .15s;
  text-transform: var(--nav-case); letter-spacing: var(--nav-spacing);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); background: var(--accent-deep); }
.btn:active { transform: translate(2px, 2px); box-shadow: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: var(--shadow-sm); }
.btn-big { padding: 15px 28px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn-ghost:hover { background: var(--accent-3); }
.btn.loading { pointer-events: none; opacity: .8; }
.btn.loading::after { content: ''; width: 16px; height: 16px; border: 3px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.sticker { display: inline-block; padding: 6px 14px; border-radius: 999px; border: var(--bw-sm) solid var(--line); font-weight: 700; font-size: .85rem; transform: rotate(var(--tilt)); box-shadow: 3px 3px 0 var(--line); margin-bottom: 14px; }
.sticker-gold { background: var(--accent-3); color: var(--ink); }
.sticker-purple { background: var(--accent-2); color: var(--on-accent); }
.link-more { font-weight: 700; color: var(--accent-2); text-decoration: none; display: block; }
.link-more:hover { text-decoration: underline wavy; }
.link-more.center { margin-top: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--hero-bg); color: var(--hero-ink); overflow: hidden; padding: 40px 0 90px; }
.dots { position: absolute; inset: 0; background-image: var(--hero-dots); background-size: 30px 30px; pointer-events: none; }
.hero-in { position: relative; display: grid; gap: 30px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5.4rem); font-weight: var(--display-weight); font-style: var(--display-style); text-shadow: var(--hero-title-shadow); text-transform: var(--title-case); }
.lead { font-size: 1.12rem; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.hero-perks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 600; }
.hero-perks li { display: flex; align-items: center; gap: 6px; }
.hero-art { position: relative; height: 380px; max-width: 480px; width: 100%; margin: 0 auto; }
.arch { position: absolute; overflow: hidden; border: 4px solid var(--line); box-shadow: var(--shadow); background: var(--surface-3); border-radius: 999px 999px 26px 26px; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-0 { width: 54%; height: 82%; left: 4%; top: 6%; transform: rotate(-5deg); }
.arch-1 { width: 40%; height: 54%; right: 2%; top: 0; transform: rotate(6deg); background: var(--accent-5); }
.arch-2 { width: 38%; height: 44%; right: 8%; bottom: 0; transform: rotate(-3deg); background: var(--accent-3); border-radius: 26px 26px 999px 999px; }
.arch-fill { width: 100%; height: 100%; display: grid; place-items: center; background: repeating-linear-gradient(45deg, var(--surface-3) 0 14px, var(--surface) 14px 28px); }
.arch-heart { width: 50%; height: auto; }
.spin-badge { position: absolute; width: 140px; height: 140px; left: -8px; bottom: -14px; z-index: 3; animation: spin 18s linear infinite; background: var(--accent-3); border-radius: 50%; border: var(--bw) solid var(--line); }
.spin-badge text { font: 700 15.5px var(--f-body); fill: var(--ink); letter-spacing: .06em; }
.float-heart { position: absolute; font-size: 2.2rem; color: var(--accent-3); text-shadow: 2px 2px 0 var(--line); animation: floaty 4s ease-in-out infinite; z-index: 4; }
.fh-1 { top: -4%; left: 46%; } .fh-2 { top: 40%; right: -2%; animation-delay: -1s; color: #fff; }
.fh-3 { bottom: 10%; left: 52%; color: var(--danger); animation-delay: -2s; } .fh-4 { top: 22%; left: -2%; color: #fff; animation-delay: -3s; }
@keyframes floaty { 50% { transform: translateY(-12px) rotate(10deg); } }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 60px; }
.hero-wave path { fill: var(--bg); }
@media (min-width: 900px) {
  .hero { padding: 70px 0 120px; }
  .hero-in { grid-template-columns: 1.1fr .9fr; }
  .hero-art { height: 480px; }
}

/* ---------- Marquesina grande ---------- */
.big-marquee { overflow: hidden; background: var(--marquee-bg); border-block: var(--bw) solid var(--line); transform: rotate(var(--marquee-tilt)); margin: 10px -10px 0; }
.big-marquee-track { display: inline-flex; align-items: center; gap: 24px; white-space: nowrap; padding: 12px 0; animation: marquee 30s linear infinite; }
.big-marquee span { font-family: var(--f-display); font-style: var(--display-style); font-weight: var(--display-weight); font-size: clamp(1.6rem, 4vw, 2.6rem); color: var(--marquee-ink); text-transform: var(--title-case); }
.big-marquee b { color: var(--danger); font-size: 1.6rem; }

/* ---------- Secciones ---------- */
.section { padding: 56px 16px; }
.section-tight { padding-top: 30px; padding-bottom: 60px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.title-deco { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: var(--display-weight); margin: 0; position: relative; text-transform: var(--title-case); }
.title-deco::after { content: ''; display: block; width: 120px; height: 12px; margin-top: 6px; background: radial-gradient(circle, var(--accent) 4px, transparent 4.5px) 0 0 / 14px 12px repeat-x; }

.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cat-tile { position: relative; min-height: 130px; border: var(--bw) solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--shadow); overflow: hidden; transition: transform .15s; background-size: cover; background-position: center; isolation: isolate; }
.cat-tile:hover { transform: var(--lift) rotate(-1deg); }
.cat-tile.has-img::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.55)); }
.cat-tile.has-img { color: #fff !important; }
.cat-name { font-family: var(--f-display); font-weight: var(--display-weight); font-style: var(--display-style); font-size: 1.45rem; line-height: 1.05; text-transform: var(--title-case); }
.cat-n { font-size: .85rem; font-weight: 600; opacity: .85; }
.cat-deco { position: absolute; top: 8px; right: 14px; font-size: 2.4rem; opacity: .9; }
.tile-pink { background-color: var(--accent); color: var(--on-accent); }
.tile-purple { background-color: var(--accent-2); color: var(--on-accent); }
.tile-gold { background-color: var(--accent-3); color: var(--ink); }
.tile-mint { background-color: var(--accent-4); color: var(--ink); }
.tile-lilac { background-color: var(--accent-5); color: var(--ink); }
.tile-red { background-color: var(--danger); color: var(--on-accent); }
@media (min-width: 700px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } .cat-tile { min-height: 170px; } }
@media (min-width: 1000px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Tarjetas de producto ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 700px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
@media (min-width: 1000px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 10px 12px; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: var(--lift); box-shadow: var(--shadow-hover); }
.card-link { text-decoration: none; flex: 1; }
.card-img { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-3); border: var(--bw-sm) solid var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.06); }
.card h3 { font-family: var(--f-body); font-weight: 700; font-size: 1rem; margin: 10px 2px 2px; line-height: 1.25; }
.price { margin: 0 2px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price strong { font-family: var(--f-display); font-size: 1.25rem; color: var(--accent-2); }
.price s { color: var(--muted); font-size: .9rem; }
.burst { position: absolute; top: 8px; left: 8px; width: 54px; height: 54px; display: grid; place-items: center; background: var(--accent-3); color: var(--ink); font-weight: 800; font-size: .85rem; clip-path: polygon(50% 0, 61% 18%, 82% 10%, 80% 32%, 100% 40%, 85% 56%, 96% 76%, 74% 78%, 68% 100%, 50% 87%, 32% 100%, 26% 78%, 4% 76%, 15% 56%, 0 40%, 20% 32%, 18% 10%, 39% 18%); transform: rotate(-12deg); }
.burst-lg { width: 80px; height: 80px; font-size: 1.1rem; top: 14px; left: 14px; }
.sold { position: absolute; inset: auto 0 12px; margin: auto; width: max-content; background: var(--ink); color: var(--surface); padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: .8rem; transform: rotate(-4deg); }
.card-add { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 9px; border-radius: var(--radius-btn); border: var(--bw-sm) solid var(--line); background: var(--surface-2); font-weight: 700; cursor: pointer; text-decoration: none; transition: background .15s; color: var(--ink); }
.card-add:hover { background: var(--accent); color: var(--on-accent); }

/* ---------- Banda de beneficios ---------- */
.band { background: var(--band-bg); color: var(--band-ink); padding: 46px 0; margin: 30px 0; position: relative; border-block: var(--bw) solid var(--line); }
.band::before, .band::after { content: ''; position: absolute; left: 0; right: 0; height: 14px; background: linear-gradient(135deg, var(--band-bg) 50%, transparent 50%) 0 0 / 22px 14px repeat-x, linear-gradient(225deg, var(--band-bg) 50%, transparent 50%) 0 0 / 22px 14px repeat-x; }
.band::before { top: -16px; transform: scaleY(-1); }
.band::after { bottom: -16px; }
.band-in { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.perk h3 { font-family: var(--f-body); font-size: 1.1rem; margin: 10px 0 4px; }
.perk p { margin: 0; opacity: .9; font-size: .95rem; }
.perk-ico { width: 54px; height: 54px; border-radius: 50%; background: var(--accent-3); color: var(--ink); display: grid; place-items: center; border: var(--bw) solid var(--line); font-size: 1.3rem; }

/* ---------- Galería de Instagram ---------- */
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 800px) { .ig-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; } }
.ig-grid a { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; border: var(--bw-sm) solid var(--line); }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ig-grid a:hover img { transform: scale(1.08); }

/* ---------- Nosotras ---------- */
.about-teaser { display: grid; gap: 28px; align-items: center; background: var(--surface-2); border: var(--bw) solid var(--line); border-radius: 32px; padding: 26px; box-shadow: var(--shadow); }
.about-teaser h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: var(--display-weight); text-transform: var(--title-case); }
.about-logo { background: #fff; border-radius: 50%; border: 4px solid var(--line); overflow: hidden; aspect-ratio: 1; max-width: 300px; margin: 0 auto; box-shadow: 0 0 0 10px var(--accent), 0 0 0 13px var(--line); }
.about-logo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); }
@media (min-width: 800px) { .about-teaser { grid-template-columns: 300px 1fr; padding: 40px; gap: 46px; } }
.prose p { font-size: 1.08rem; }
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--accent); border: var(--bw-sm) solid var(--line); }
.social a:hover { background: var(--accent-3); }
.social-big a { width: 52px; height: 52px; }

/* ---------- Encabezado de páginas ---------- */
.page-hero { position: relative; background: var(--hero-bg); color: var(--hero-ink); padding: 46px 0 50px; overflow: hidden; border-bottom: var(--bw) solid var(--line); }
.page-hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: var(--display-weight); font-style: var(--display-style); text-shadow: var(--hero-title-shadow); position: relative; margin: 0; text-transform: var(--title-case); }
.page-hero h1 em, .hero h1 em { color: var(--hero-em); }
.page-hero .wrap { position: relative; }
.page-hero-sm { padding: 34px 0 36px; }
.page-hero .lead { margin: 10px auto 16px; }
.big-emoji { font-size: 3.4rem; line-height: 1; margin-bottom: 8px; }

/* ---------- Tienda ---------- */
.shop { padding-top: 24px; padding-bottom: 60px; }
.shop-bar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.chip { flex: none; padding: 8px 16px; border-radius: var(--radius-btn); border: var(--bw-sm) solid var(--line); background: var(--surface); font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; color: var(--ink); }
.chip:hover { background: var(--surface-3); }
.chip.on { background: var(--ink); color: var(--surface); }
.shop-tools { display: flex; gap: 10px; }
.search { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--surface); border: var(--bw-sm) solid var(--line); border-radius: var(--radius-btn); padding: 0 14px; }
.search input { border: 0; outline: 0; background: transparent; padding: 10px 0; width: 100%; min-width: 0; }
.shop-tools select { border: var(--bw-sm) solid var(--line); border-radius: var(--radius-btn); padding: 8px 12px; background: var(--surface); }
@media (min-width: 900px) { .shop-bar { flex-direction: row; align-items: center; justify-content: space-between; } .shop-tools { min-width: 420px; } }
.empty { text-align: center; padding: 50px 16px; max-width: 520px; margin: 0 auto; }
.empty-heart { width: 90px; height: 135px; margin: 0 auto 10px; }
.empty h1, .empty h2 { font-size: 2rem; }

/* ---------- Producto ---------- */
.product { padding-top: 22px; padding-bottom: 30px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--accent-2); font-weight: 600; text-decoration: none; }
.product-in { display: grid; gap: 30px; }
@media (min-width: 900px) { .product-in { grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: start; } .gallery { position: sticky; top: 100px; } }
.gallery-main { position: relative; aspect-ratio: 1; border: 4px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-3); box-shadow: var(--shadow-img); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 18px; overflow-x: auto; padding: 4px; }
.thumb { flex: none; width: 74px; height: 74px; border-radius: var(--radius-sm); overflow: hidden; border: 3px solid transparent; padding: 0; cursor: pointer; background: var(--surface-3); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.on { border-color: var(--accent); box-shadow: 3px 3px 0 var(--line); }
.product-info h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: var(--display-weight); text-transform: var(--title-case); }
.price-lg strong { font-size: 2rem; }
.price-lg small { color: var(--muted); font-weight: 600; }
.buy { margin: 22px 0; display: grid; gap: 14px; }
.opts { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.opts legend { font-weight: 700; margin-bottom: 8px; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: inline-block; padding: 8px 16px; border-radius: var(--radius-btn); border: var(--bw-sm) solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; min-width: 44px; text-align: center; }
.opt input:checked + span { background: var(--accent); color: var(--on-accent); box-shadow: 3px 3px 0 var(--line); }
.opt input:focus-visible + span { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.buy-row { display: flex; gap: 10px; }
.qty { display: inline-flex; align-items: center; border: var(--bw) solid var(--line); border-radius: var(--radius-btn); background: var(--surface); overflow: hidden; flex: none; }
.qty button { width: 40px; height: 48px; border: 0; background: transparent; font-size: 1.3rem; cursor: pointer; font-weight: 700; }
.qty button:hover { background: var(--surface-3); }
.qty input { width: 38px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; appearance: textfield; background: transparent; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-sm button { width: 32px; height: 36px; font-size: 1.1rem; }
.qty-sm input { width: 30px; }
.stock-note { margin: 0; font-weight: 600; color: var(--accent-2); }
.soldout-note { font-weight: 700; color: var(--danger); margin: 0; }
.desc { background: var(--surface); border: 2px dashed var(--accent); border-radius: 18px; padding: 18px; font-size: 1.02rem; }
.mini-perks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.mini-perks li { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.mini-perks a { color: var(--accent-2); font-weight: 700; }

/* ---------- Bolsa ---------- */
.cart { display: grid; gap: 24px; }
@media (min-width: 900px) { .cart { grid-template-columns: 1fr 380px; align-items: start; } }
.cart-lines { display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 74px 1fr auto; grid-template-areas: "img name del" "img qty total"; gap: 6px 12px; align-items: center; background: var(--surface); border: var(--bw) solid var(--line); border-radius: 20px; padding: 10px; box-shadow: var(--shadow-sm); }
.cart-line-ro { grid-template-areas: "img name total"; }
.cart-img { grid-area: img; width: 74px; height: 74px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-3); }
.cart-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-name { grid-area: name; display: flex; flex-direction: column; line-height: 1.3; }
.cart-name a, .cart-name span { font-weight: 700; text-decoration: none; }
.cart-name small { color: var(--muted); }
.cart-line .qty { grid-area: qty; justify-self: start; border-width: var(--bw-sm); }
.cart-total { grid-area: total; justify-self: end; font-family: var(--f-display); font-size: 1.1rem; }
.cart-del { grid-area: del; justify-self: end; }
.cart-del button { border: 0; background: var(--surface-3); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.cart-del button:hover { background: var(--danger); color: #fff; }
.summary { background: var(--surface); border: var(--bw) solid var(--line); border-radius: 26px; padding: 22px; box-shadow: var(--shadow-panel); }
@media (min-width: 900px) { .summary { position: sticky; top: 100px; } }
.summary h2 { font-size: 1.7rem; font-style: var(--display-style); }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 2px dotted var(--accent-5); }
.sum-total { font-size: 1.3rem; border-bottom: 0; margin-bottom: 14px; }
.sum-total strong { font-family: var(--f-display); color: var(--accent-2); }
.free-meter { margin: 14px 0; font-size: .92rem; }
.free-meter p { margin: 0 0 6px; }
.meter { height: 14px; background: var(--surface-2); border: var(--bw-sm) solid var(--line); border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; background: repeating-linear-gradient(45deg, var(--accent) 0 10px, var(--accent-soft) 10px 20px); }

/* ---------- Checkout ---------- */
.checkout { display: grid; gap: 24px; }
@media (min-width: 960px) { .checkout { grid-template-columns: 1fr 400px; align-items: start; } }
.co-step { background: var(--surface); border: var(--bw) solid var(--line); border-radius: 26px; padding: 20px; margin: 0 0 20px; box-shadow: var(--shadow-sm); min-width: 0; }
.co-step legend { font-family: var(--f-display); font-weight: var(--display-weight); font-size: 1.4rem; font-style: var(--display-style); padding: 0 8px; display: flex; align-items: center; gap: 10px; background: var(--bg); border-radius: 999px; }
.step-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-style: normal; font-size: 1rem; border: var(--bw-sm) solid var(--line); }
.grid-2 { display: grid; gap: 14px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: span 2; } }
.field { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea { border: var(--bw-sm) solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px; background: var(--field-bg); font-weight: 500; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--surface-3); background: var(--surface); }
.field small { font-weight: 400; color: var(--muted); }
.field input.invalid, .field select.invalid { border-color: var(--danger); background: #fff0f3; }
.opt-label { font-weight: 400; color: var(--muted); }
.ship-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.ship-list, .offices { display: grid; gap: 10px; }
.ship-opt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; border: var(--bw-sm) solid var(--line); border-radius: 18px; padding: 12px 14px; cursor: pointer; background: var(--field-bg); transition: background .12s; }
.ship-opt:hover { background: var(--surface-2); }
.ship-opt input { accent-color: var(--accent); width: 20px; height: 20px; }
.ship-opt:has(input:checked) { background: var(--surface-3); box-shadow: 4px 4px 0 var(--accent); }
.ship-opt b { display: block; }
.ship-opt small { color: var(--muted); }
.ship-opt .ship-price { font-family: var(--f-display); font-weight: 900; font-size: 1.15rem; color: var(--accent-2); }
.offices { margin-top: 16px; padding-top: 14px; border-top: 2px dashed var(--accent-5); }
.offices h4 { margin: 0 0 4px; }
.loader { display: flex; align-items: center; gap: 12px; padding: 14px; font-weight: 600; color: var(--accent-2); }
.loader::before { content: ''; width: 26px; height: 26px; border: 4px solid var(--surface-3); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
.co-lines { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 10px; }
.co-lines li { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; font-size: .94rem; }
.co-img { position: relative; width: 56px; height: 56px; }
.co-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; border: var(--bw-sm) solid var(--line); }
.co-img b { position: absolute; top: -8px; right: -8px; background: var(--accent-2); color: var(--on-accent); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; }
.co-name small { display: block; color: var(--muted); }
.co-error { background: #ffe3ea; border: 2px solid var(--danger); color: #a3002e; border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; font-weight: 600; }
.pay-marks { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.pay-marks img { height: 28px; width: auto; background: #fff; border-radius: 5px; }
.pay-chip { display: inline-grid; place-items: center; height: 28px; padding: 0 8px; border-radius: 5px; background: #fff; color: #222; font-weight: 800; font-size: .72rem; border: 1px solid #ddd; }
.pay-chip.oxxo { background: #e30613; color: #ffd200; border-color: #e30613; }

/* ---------- Pedido ---------- */
.pay-box { background: var(--surface); border: var(--bw) solid var(--line); border-radius: 24px; padding: 22px; box-shadow: 8px 8px 0 var(--accent-3); margin-bottom: 22px; }
.pay-box h2 { font-size: 1.5rem; }
.pay-box .mono { font-size: 1.15rem; background: var(--surface-2); padding: 2px 8px; border-radius: 8px; }

/* ---------- Políticas ---------- */
.policies { max-width: 820px; }
.policies h2 { font-size: 2rem; margin-top: 1.2em; color: var(--accent-2); font-style: var(--display-style); }

/* ---------- Avisos ---------- */
.flash { margin: 18px 0 0; padding: 12px 18px; border-radius: 16px; border: var(--bw-sm) solid var(--line); font-weight: 600; background: var(--accent-4); color: var(--ink); }
.flash-error { background: #ffe3ea; border-color: var(--danger); color: #a3002e; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 160%); opacity: 0; visibility: hidden; pointer-events: none; background: var(--ink); color: var(--surface); padding: 12px 20px; border-radius: 999px; font-weight: 600; z-index: 80; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), opacity .2s; max-width: calc(100% - 32px); box-shadow: 4px 4px 0 var(--accent); display: flex; gap: 12px; align-items: center; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; pointer-events: auto; }
.toast a { color: var(--accent-3); font-weight: 800; white-space: nowrap; }
.toast.error { background: var(--danger); color: #fff; box-shadow: 4px 4px 0 var(--ink); }

/* ---------- Pie ---------- */
.site-footer { position: relative; background: var(--footer-bg); color: var(--footer-ink); margin-top: 60px; padding: 30px 0 90px; }
.site-footer .wave { position: absolute; top: -58px; left: 0; width: 100%; height: 60px; }
.site-footer .wave path { fill: var(--footer-bg); }
.footer-grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.footer-grid h4 { font-family: var(--f-display); font-style: var(--display-style); font-size: 1.3rem; color: var(--footer-head); margin: 0 0 10px; }
.footer-grid > div > a { display: block; text-decoration: none; padding: 3px 0; opacity: .9; }
.footer-grid > div > a:hover { color: var(--accent-soft); }
.footer-logo { display: flex; align-items: flex-end; }
.footer-logo .logo-script { color: var(--footer-ink); font-size: 2.8rem; }
.footer-logo .logo-heart { width: 34px; height: 52px; margin-bottom: -6px; }
.footer-logo .beads, .footer-logo .charm, .footer-logo .charm-eye { stroke: var(--accent-soft); }
.footer-logo .charm-pupil { fill: var(--accent-soft); }
.site-footer .small { color: var(--footer-ink); opacity: .8; display: flex; gap: 6px; align-items: flex-start; }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px dashed rgba(255,255,255,.25); font-size: .88rem; opacity: .8; }
.wa-float { position: fixed; right: 16px; bottom: 16px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; border: var(--bw) solid var(--line); box-shadow: var(--shadow-sm); z-index: 50; font-size: 1.4rem; }
.wa-float:hover { transform: rotate(-8deg) scale(1.06); }
.checkout-page .wa-float { display: none; }

/* ---------- Selector de estilos (sólo en vista previa) ---------- */
.theme-bar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 90; display: flex; gap: 6px; align-items: center; padding: 8px; background: rgba(20, 10, 30, .88); backdrop-filter: blur(8px); border-radius: 999px; max-width: calc(100% - 100px); overflow-x: auto; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.theme-bar span { color: #fff; font: 600 .78rem 'Outfit', sans-serif; padding: 0 6px 0 8px; white-space: nowrap; }
.theme-bar a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; color: #fff; text-decoration: none; font: 600 .82rem 'Outfit', sans-serif; white-space: nowrap; }
.theme-bar a i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 2px solid #fff; }
.theme-bar a.on { background: #fff; color: #1a0b2e; }
.theme-bar a.on i { border-color: #1a0b2e; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
