/* ============================================================
   Jimena Style — tienda. Design system premium.
   Sin frameworks: custom properties, tipografía editorial
   (Fraunces + Figtree + acento script Parisienne, self-hosteadas
   en /fonts — sin dependencia de CDNs), animaciones y glassmorphism.
   Respeta prefers-reduced-motion.
   ============================================================ */

/* ---------- Tipografías (variables, subset latino) ---------- */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-italic-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('../fonts/figtree-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('../fonts/figtree-italic-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Parisienne';
  src: url('../fonts/parisienne.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Paleta — porcelana cálida + rosewood + oro champagne */
  --bg: #FBF7F4;
  --bg-soft: #F6EDE8;
  --surface: #FFFFFF;
  --ink: #26191F;
  --ink-soft: #4A3A41;
  --muted: #8E7B82;
  --primary: #B4637A;
  --primary-dark: #93465C;
  --primary-deep: #6E3145;
  --rose-pale: #F6DFE5;
  --rose-mist: #FBEFF2;
  --gold: #B8933E;
  --gold-soft: #E8D9AE;
  --accent: var(--gold);
  --line: #EFE3DD;
  --line-soft: #F5EBE5;
  --ok: #3E8E5A;
  --err: #C0392B;

  --grad-rose: linear-gradient(135deg, #C97B92 0%, #A85D74 45%, #93465C 100%);
  --grad-gold: linear-gradient(120deg, #D8B45A 0%, #B08A2E 100%);
  --grad-hero: radial-gradient(58% 85% at 12% 18%, #F9E3E9 0%, transparent 60%),
               radial-gradient(45% 70% at 88% 12%, #F3E6D2 0%, transparent 55%),
               radial-gradient(60% 90% at 78% 92%, #F6DFE5 0%, transparent 58%),
               linear-gradient(160deg, #FDF9F6 0%, #F9F0EA 100%);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', system-ui, 'Segoe UI', sans-serif;
  --script: 'Parisienne', 'Segoe Script', cursive;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 2px 10px rgba(38, 25, 31, .05), 0 8px 28px rgba(38, 25, 31, .05);
  --shadow-lift: 0 6px 18px rgba(38, 25, 31, .09), 0 22px 48px rgba(38, 25, 31, .12);
  --shadow-glow: 0 8px 26px rgba(180, 99, 122, .35);
  --trans: 220ms cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --hdr-h: 74px;
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow-x: hidden;
}

main { flex: 1 0 auto; animation: page-in 480ms var(--ease-out) both; }

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

::selection { background: var(--rose-pale); color: var(--primary-deep); }

* { scrollbar-width: thin; scrollbar-color: #D9C4CB transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: #D9C4CB; border-radius: 99px; }
*::-webkit-scrollbar-track { background: transparent; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: 1.28rem; }
h1 em, h2 em { color: var(--primary-dark); font-style: italic; }

p { margin: 0 0 1em; }

a { color: var(--primary-dark); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--primary); }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(180, 99, 122, .4); outline-offset: 2px; border-radius: 4px; }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.75rem; }
.mb-2 { margin-bottom: 1rem; }
[hidden] { display: none !important; }

/* Overline editorial: "LO NUEVO", "MI CUENTA"… */
.overline {
  display: inline-block;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: .6rem;
}
.overline::before { content: '— '; color: var(--gold); letter-spacing: 0; }

/* ---------- Animaciones y reveal on-scroll ---------- */

@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes subir { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
@keyframes acercar { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes flotar { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-16px) rotate(2deg); } }
@keyframes flotar-b { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(14px); } }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes brillo { to { background-position: -200% 0; } }
@keyframes marquesina { to { transform: translateX(-50%); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes latido { 0%, 100% { box-shadow: 0 0 0 0 rgba(180, 99, 122, .35); } 60% { box-shadow: 0 0 0 12px rgba(180, 99, 122, 0); } }

/* .reveal: invisible hasta entrar al viewport (site.js agrega .in-view).
   Entrada por animation (no transition): al terminar deja de aplicar, así no
   pisa las transiciones de hover de .card/.feature ni les hereda el delay --d. */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in-view {
  opacity: 1; transform: none;
  animation: subir 700ms var(--ease-out) var(--d, 0ms) backwards;
}
/* Escalonado automático dentro de grillas */
.grid > .reveal:nth-child(2) { --d: 70ms; }
.grid > .reveal:nth-child(3) { --d: 140ms; }
.grid > .reveal:nth-child(4) { --d: 210ms; }
.grid > .reveal:nth-child(5) { --d: 280ms; }
.grid > .reveal:nth-child(6) { --d: 350ms; }
.grid > .reveal:nth-child(7) { --d: 420ms; }
.grid > .reveal:nth-child(8) { --d: 490ms; }
/* Delays manuales: <div class="reveal d2"> */
.d1 { --d: 90ms; } .d2 { --d: 180ms; } .d3 { --d: 270ms; } .d4 { --d: 360ms; } .d5 { --d: 450ms; }

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

/* ---------- Botones ---------- */

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--grad-rose);
  color: #fff;
  font: 500 .95rem var(--sans);
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform var(--trans), box-shadow var(--trans), background var(--trans), color var(--trans), border-color var(--trans), opacity var(--trans);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(147, 70, 92, .25);
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .35) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 600ms ease;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: 3px solid rgba(180, 99, 122, .35); outline-offset: 2px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-outline {
  background: transparent; color: var(--primary-dark);
  border-color: var(--primary); box-shadow: none;
}
.btn-outline:hover { background: var(--grad-rose); border-color: transparent; color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--surface); color: var(--primary-dark); border-color: var(--primary); box-shadow: var(--shadow); }

.btn-gold { background: var(--grad-gold); box-shadow: 0 4px 14px rgba(176, 138, 46, .3); }
.btn-gold:hover { box-shadow: 0 8px 26px rgba(176, 138, 46, .4); }

.btn-sm { padding: .4rem 1rem; font-size: .85rem; }
.btn-lg { padding: .92rem 2.3rem; font-size: 1.02rem; }
.btn-danger { background: linear-gradient(135deg, #D65041, #A93226); box-shadow: 0 4px 14px rgba(169, 50, 38, .25); }
.btn-danger:hover { box-shadow: 0 8px 24px rgba(169, 50, 38, .35); }
.btn-block { width: 100%; }

/* ---------- Formularios ---------- */

.field { margin-bottom: 1.05rem; }
.field label {
  display: block; font-size: .78rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: .35rem; color: var(--ink-soft);
}

input[type=text], input[type=email], input[type=password], input[type=number],
input[type=search], input[type=tel], select, textarea {
  width: 100%;
  padding: .68rem .95rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: 400 .95rem var(--sans);
  transition: border-color var(--trans), box-shadow var(--trans), background var(--trans);
}
input:hover, select:hover, textarea:hover { border-color: #DFCBC2; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(180, 99, 122, .14);
}
textarea { resize: vertical; min-height: 110px; }

.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: minmax(0, 1fr); } }

.check { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.check input { width: auto; }

.form-hint { font-size: .8rem; color: var(--muted); margin-top: .25rem; }

/* ---------- Dropdowns premium (reemplazo del popup nativo del select) ---------- */

/* El <select> real queda oculto pero operativo (fuente de verdad + fallback táctil) */
.dd-oculto {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  opacity: 0 !important; pointer-events: none !important;
  margin: -1px !important; padding: 0 !important; border: 0 !important;
}
.dd-trigger {
  display: inline-flex; align-items: center; justify-content: space-between; gap: .6rem;
  width: 100%;
  padding: .68rem .95rem;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink);
  font: 400 .95rem var(--sans); text-align: left; cursor: pointer;
  transition: border-color var(--trans), box-shadow var(--trans), background var(--trans);
}
.dd-trigger:hover { border-color: #DFCBC2; }
.dd-trigger:focus-visible, .dd-trigger.dd-abierto {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(180, 99, 122, .14);
}
.dd-trigger .dd-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-trigger .dd-chev {
  display: inline-flex; flex: none; color: var(--primary-dark);
  transition: transform 240ms var(--ease-out);
}
.dd-trigger .dd-chev svg { width: 15px; height: 15px; }
.dd-trigger.dd-abierto .dd-chev { transform: rotate(180deg); }
/* Variante píldora del header: hereda .moneda-pill; sin el chevron de fondo duplicado */
.dd-trigger.moneda-pill { width: auto; background-image: none; padding-right: .8rem; gap: .35rem; }
.dd-trigger.moneda-pill .dd-chev svg { width: 12px; height: 12px; }
.catalogo-top .orden .dd-trigger { width: auto; }

.dd-panel {
  position: fixed; z-index: 400;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lift);
  padding: .4rem; max-height: 300px; overflow-y: auto;
  animation: acercar 170ms var(--ease-out);
  transform-origin: top center;
}
.dd-panel.dd-arriba { transform-origin: bottom center; }
.dd-item {
  display: flex; align-items: center; justify-content: space-between; gap: .9rem;
  padding: .52rem .75rem; border-radius: 9px;
  font: 500 .9rem var(--sans); color: var(--ink);
  cursor: pointer; white-space: nowrap;
  transition: background 120ms ease, color 120ms ease;
}
.dd-item.dd-activo { background: var(--rose-mist); color: var(--primary-dark); }
.dd-item[aria-selected="true"] { color: var(--primary-dark); font-weight: 600; }
.dd-item .dd-check {
  display: inline-flex; opacity: 0; color: var(--primary); transform: scale(.6);
  transition: opacity 150ms ease, transform 150ms var(--ease-out);
}
.dd-item .dd-check svg { width: 14px; height: 14px; }
.dd-item[aria-selected="true"] .dd-check { opacity: 1; transform: none; }
.dd-item.dd-deshabilitado { opacity: .45; cursor: not-allowed; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 244, .78);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: background var(--trans), border-color var(--trans), box-shadow var(--trans);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .86);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(38, 25, 31, .06);
}

.hdr-inner {
  display: flex; align-items: center; gap: 1.2rem;
  padding: .85rem 0;
  transition: padding var(--trans);
}
.site-header.is-scrolled .hdr-inner { padding: .55rem 0; }

.brand {
  font-family: var(--serif);
  font-size: 1.6rem; font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: .01em;
  transition: transform var(--trans);
}
/* "Style" en script Parisienne: la firma de la marca */
.brand em {
  color: var(--primary); font-style: normal;
  font-family: var(--script);
  font-size: 1.18em; line-height: 1;
  margin-left: .06em; vertical-align: -.08em;
}
.brand:hover { color: var(--primary-dark); transform: scale(1.02); }

.main-nav { display: flex; gap: 1.4rem; }
.main-nav a {
  position: relative;
  color: var(--ink); font-size: .93rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem 0;
  transition: color var(--trans);
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: 2px;
  background: var(--grad-rose);
  transform: scaleX(0); transform-origin: left;
  transition: transform 280ms var(--ease-out);
}
.main-nav a:hover, .main-nav a.active { color: var(--primary-dark); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.hdr-search { flex: 1 1 160px; max-width: 300px; margin-left: auto; }
.hdr-search input {
  border-radius: 999px; padding: .5rem 1.1rem; font-size: .9rem;
  background: rgba(255, 255, 255, .8); border-color: var(--line);
}
.hdr-search input:focus { background: #fff; }

.hdr-actions { display: flex; align-items: center; gap: .5rem; }

.moneda-pill {
  width: auto; border-radius: 999px; padding: .38rem 1.7rem .38rem .85rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .05em; color: var(--primary-dark);
  border: 1.5px solid var(--rose-pale); background: rgba(255, 255, 255, .7); cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2393465C' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .6rem center;
  transition: border-color var(--trans), background-color var(--trans);
}
.moneda-pill:hover { border-color: var(--primary); }

.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--ink); border: 1px solid transparent;
  transition: background var(--trans), color var(--trans), transform var(--trans), border-color var(--trans), box-shadow var(--trans);
}
.icon-btn:hover { background: #fff; color: var(--primary-dark); border-color: var(--line); transform: translateY(-2px); box-shadow: var(--shadow); }
.icon-btn svg { width: 20px; height: 20px; }

.badge-dot {
  position: absolute; top: 0; right: -2px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: var(--grad-rose); color: #fff;
  font-size: .66rem; font-weight: 700; line-height: 18px; text-align: center;
  box-shadow: 0 2px 6px rgba(147, 70, 92, .4);
}
.badge-dot.pop { animation: pop 420ms var(--ease-out); }

.account { position: relative; }
.account summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: .4rem;
}
.account summary::-webkit-details-marker { display: none; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad-rose);
  color: #fff; font-weight: 600; font-size: .88rem;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(147, 70, 92, .3);
  transition: transform var(--trans), box-shadow var(--trans);
}
.account summary:hover .avatar { transform: scale(1.08); box-shadow: var(--shadow-glow); }
.account-menu {
  position: absolute; right: 0; top: calc(100% + .6rem);
  min-width: 210px; background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lift); padding: .5rem; z-index: 60;
  animation: acercar 200ms var(--ease-out);
  transform-origin: top right;
}
.account-menu a, .account-menu button {
  display: block; width: 100%; text-align: left;
  padding: .55rem .75rem; border-radius: 9px; border: 0; background: none;
  font: 500 .9rem var(--sans); color: var(--ink); cursor: pointer;
  transition: background var(--trans), color var(--trans), padding-left var(--trans);
}
.account-menu a:hover, .account-menu button:hover { background: var(--rose-mist); color: var(--primary-dark); padding-left: 1rem; }
.account-menu hr { border: 0; border-top: 1px solid var(--line); margin: .35rem 0; }
.account-menu .who { padding: .5rem .75rem .2rem; font-size: .78rem; color: var(--muted); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; color: var(--ink);
  padding: .3rem; width: 40px; height: 40px;
  align-items: center; justify-content: center; border-radius: 50%;
  transition: background var(--trans);
}
.nav-toggle:hover { background: var(--rose-mist); }
.nav-toggle svg { width: 22px; height: 22px; }

/* Overlay + drawer mobile */
.nav-overlay {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(38, 25, 31, .4);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity 280ms ease;
}
body.drawer-open .nav-overlay { opacity: 1; pointer-events: auto; }
body.drawer-open { overflow: hidden; }
/* El drawer vive dentro del header (stacking context z-50): con el drawer
   abierto el header sube por encima del overlay (z-55) para que el panel
   no quede tapado por el velo. */
body.drawer-open .site-header { z-index: 70; }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    /* height:100vh y no bottom:0 — el backdrop-filter del header lo vuelve
       containing block del fixed, y bottom:0 lo achicaría a la caja del header. */
    position: fixed; top: 0; left: 0; height: 100vh; z-index: 60;
    width: min(320px, 84vw);
    background: linear-gradient(170deg, #FFFFFF 0%, #FBF3EF 100%);
    box-shadow: var(--shadow-lift);
    flex-direction: column; gap: 0;
    padding: 5.2rem 1.6rem 2rem;
    transform: translateX(-102%);
    transition: transform 340ms var(--ease-out);
  }
  body.drawer-open .main-nav { transform: none; }
  .main-nav::before {
    content: 'Venus Mágica';
    position: absolute; top: 1.4rem; left: 1.6rem;
    font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--primary-dark);
  }
  .main-nav a { padding: .85rem 0; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  .main-nav a::after { display: none; }
  .hdr-search { display: none; }
}
/* La búsqueda del header no entra en mobile: vive arriba del drawer (D12). */
.nav-search { display: flex; position: relative; margin-bottom: .6rem; }
@media (min-width: 941px) { .nav-search { display: none; } }
.nav-search input { border-radius: 999px; padding: .6rem 2.8rem .6rem 1.1rem; font-size: .95rem; }
.nav-search-btn {
  position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; cursor: pointer;
  color: var(--primary-dark); display: inline-flex; align-items: center; justify-content: center;
}
.nav-search-btn:hover { background: var(--rose-mist); }
.nav-search-btn svg { width: 19px; height: 19px; }

/* Header compacto en pantallas chicas: sin esto el contenido mínimo del
   header supera el viewport y toda la página desborda horizontalmente. */
@media (max-width: 620px) {
  .hdr-inner { gap: .5rem; padding: .65rem 0; }
  .brand { font-size: 1.3rem; }
  .nav-toggle, .icon-btn { width: 36px; height: 36px; }
  .icon-btn svg { width: 19px; height: 19px; }
  .hdr-bell { display: none; } /* notificaciones quedan en Mi cuenta */
  .hdr-actions { gap: .35rem; }
  .moneda-pill { font-size: .74rem; padding: .3rem 1.5rem .3rem .65rem; }
  .hdr-actions .btn-sm { padding: .32rem .8rem; font-size: .8rem; }
}
@media (max-width: 400px) {
  .brand { font-size: 1.18rem; }
  .moneda-pill { font-size: .7rem; padding: .28rem 1.3rem .28rem .55rem; }
  .hdr-actions .btn-sm { padding: .3rem .6rem; font-size: .76rem; }
}

/* ---------- Hero (home) ---------- */

@keyframes hero-pan { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
@keyframes morfo {
  0%   { border-radius: 52% 48% 56% 44% / 50% 54% 46% 50%; }
  35%  { border-radius: 46% 54% 44% 56% / 58% 44% 56% 42%; }
  70%  { border-radius: 56% 44% 52% 48% / 44% 56% 44% 58%; }
  100% { border-radius: 48% 52% 46% 54% / 52% 46% 56% 44%; }
}
@keyframes titilar {
  0%, 100% { opacity: .15; transform: scale(.7) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(25deg); }
}
@keyframes trazo { to { stroke-dashoffset: 0; } }
@keyframes latido-btn {
  0%, 100% { box-shadow: 0 4px 14px rgba(147, 70, 92, .25), 0 0 0 0 rgba(180, 99, 122, .4); }
  60% { box-shadow: 0 4px 14px rgba(147, 70, 92, .25), 0 0 0 14px rgba(180, 99, 122, 0); }
}
@keyframes bajar-cue { 0%, 100% { transform: translateY(0); opacity: .55; } 50% { transform: translateY(7px); opacity: 1; } }

.hero {
  position: relative;
  background: var(--grad-hero);
  background-size: 160% 160%;
  animation: hero-pan 18s ease-in-out infinite alternate;
  overflow: hidden;
  isolation: isolate;
}
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; z-index: -1;
  filter: blur(60px); opacity: .6;
}
.hero::before {
  width: 460px; height: 460px; top: -150px; right: 6%;
  background: radial-gradient(circle, #F0BCCB 0%, transparent 70%);
  animation: flotar 9s ease-in-out infinite;
}
.hero::after {
  width: 400px; height: 400px; bottom: -170px; left: -90px;
  background: radial-gradient(circle, #EDD8AC 0%, transparent 70%);
  animation: flotar-b 11s ease-in-out infinite;
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center;
  gap: 2.5rem; padding: 4.8rem 0 5.2rem;
}
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4rem); margin-bottom: .35em; animation: subir 700ms var(--ease-out) both; }
.hero h1 em { color: var(--primary); position: relative; display: inline-block; }
/* Subrayado a pincel que se dibuja solo (el path usa pathLength=100) */
.hero h1 em .pincel {
  position: absolute; left: -2%; right: -2%; bottom: -.16em; width: 104%; height: .2em;
  overflow: visible; pointer-events: none;
}
.hero h1 em .pincel path {
  fill: none; stroke: var(--gold); stroke-width: 7; stroke-linecap: round; opacity: .8;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: trazo 800ms var(--ease-out) 1.05s forwards;
}
.hero .overline { animation: aparecer 600ms ease both; }
.hero p.lead {
  font-size: 1.15rem; font-weight: 300; color: var(--ink-soft); max-width: 34rem;
  animation: subir 700ms var(--ease-out) 120ms both;
}
.hero .hero-ctas { animation: subir 700ms var(--ease-out) 240ms both; }
.hero .hero-ctas .btn:not(.btn-outline) { animation: latido-btn 2.8s ease-out 2s infinite; }

/* Composición visual: blob que muta + anillos + chips de vidrio + destellos */
.hero-visual {
  position: relative; aspect-ratio: 1;
  max-width: 430px; width: 100%; margin-inline: auto;
  animation: acercar 900ms var(--ease-out) 150ms both;
}
.hero-visual [data-plx] { transition: transform 400ms cubic-bezier(.2, .8, .3, 1); will-change: transform; }

.hero-blob-wrap { position: absolute; inset: 11%; }
.hero-blob {
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 72% 82%, rgba(110, 49, 69, .28) 0%, rgba(110, 49, 69, 0) 52%),
    linear-gradient(140deg, #F7DCE3 0%, #E9AFC0 55%, #C97B92 100%);
  box-shadow: var(--shadow-lift), inset 0 0 70px rgba(255, 255, 255, .45);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
  animation: morfo 11s ease-in-out infinite alternate, flotar 8s ease-in-out 1.1s infinite;
}
.hero-monograma {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(2.5rem, 4.4vw, 3.4rem); color: var(--primary-deep);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}
.hero-est {
  font-size: .62rem; font-weight: 600; letter-spacing: .34em; text-transform: uppercase;
  color: var(--primary-dark); opacity: .8;
}
/* Anillo punteado que gira + anillo con satélite en contragiro */
.hero-visual .anillo {
  position: absolute; inset: 6%; border-radius: 50%;
  border: 1.5px dashed rgba(147, 70, 92, .32);
  animation: girar 42s linear infinite;
}
.hero-visual .orbita {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(184, 147, 62, .28);
  animation: girar 26s linear infinite reverse;
}
.hero-visual .orbita::after {
  content: ''; position: absolute; top: -7px; left: 50%; margin-left: -7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--grad-gold);
  box-shadow: 0 0 12px rgba(184, 147, 62, .65);
}
.hero-sparkle {
  position: absolute; color: var(--gold); z-index: 2; pointer-events: none;
  animation: titilar 3.2s ease-in-out var(--d, 0ms) infinite;
}
.hero-sparkle.s1 { top: 4%; left: 12%; font-size: 1.15rem; --d: 0ms; }
.hero-sparkle.s2 { top: 18%; right: 2%; font-size: .8rem; --d: 900ms; }
.hero-sparkle.s3 { bottom: 12%; left: 2%; font-size: .9rem; --d: 1600ms; }
.hero-sparkle.s4 { bottom: 2%; right: 16%; font-size: 1.3rem; --d: 2300ms; }
/* El wrap recibe el parallax (transform inline por JS); las animaciones de
   entrada + flotación van en el chip interno para no pisarse entre sí. */
.hero-chip-wrap { position: absolute; z-index: 3; }
.hero-chip-wrap.c1 { top: 9%; right: -4%; }
.hero-chip-wrap.c2 { bottom: 26%; left: -9%; }
.hero-chip-wrap.c3 { bottom: -2%; right: 6%; }
.hero-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .95rem; border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-lift);
  font-size: .8rem; font-weight: 500; color: var(--ink); white-space: nowrap;
}
.hero-chip svg { width: 17px; height: 17px; color: var(--primary-dark); flex: none; }
.hero-chip-wrap.c1 .hero-chip { animation: acercar 600ms var(--ease-out) .9s both, flotar-b 7s ease-in-out 1.5s infinite; }
.hero-chip-wrap.c2 .hero-chip { animation: acercar 600ms var(--ease-out) 1.15s both, flotar-b 8.5s ease-in-out 1.75s infinite; }
.hero-chip-wrap.c3 .hero-chip { animation: acercar 600ms var(--ease-out) 1.4s both, flotar-b 7.6s ease-in-out 2s infinite; }

/* Invitación a scrollear */
.hero-scroll {
  position: absolute; left: 50%; bottom: .9rem; transform: translateX(-50%); z-index: 2;
  color: var(--primary-dark); opacity: .8;
}
.hero-scroll svg { width: 22px; height: 22px; display: block; animation: bajar-cue 2s ease-in-out infinite; }
.hero-scroll:hover { opacity: 1; }

@media (min-width: 1500px) {
  .hero-inner { padding: 6rem 0 6.6rem; gap: 3.5rem; }
  .hero-visual { max-width: 480px; }
}
@media (max-width: 800px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding: 3rem 0 3.6rem; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero .hero-ctas { justify-content: center; }
  .hero-visual { max-width: 250px; margin-top: 1rem; }
  .hero-chip-wrap, .hero-scroll { display: none; }
}

/* ---------- Cinta marquesina ---------- */

.ribbon {
  background: linear-gradient(90deg, var(--primary-deep), var(--primary-dark) 45%, var(--primary-deep));
  color: #fff; padding: .7rem 0;
  font-size: .88rem; letter-spacing: .1em; text-transform: uppercase;
  overflow: hidden; white-space: nowrap;
}
.ribbon strong { color: var(--gold-soft); font-weight: 600; }
.ribbon .marquee { display: inline-flex; gap: 3rem; padding-right: 3rem; animation: marquesina 28s linear infinite; will-change: transform; }
.ribbon .marquee span { display: inline-flex; gap: 3rem; }
.ribbon:hover .marquee { animation-play-state: paused; }

/* ---------- Secciones ---------- */

.section { padding: 3.6rem 0 1.4rem; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.section-head h2 { margin: 0; }
.section-head .ver-todo {
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
}
.section-head .ver-todo:hover { gap: .7rem; }
.section-head a { font-size: .9rem; font-weight: 600; transition: gap var(--trans); }

/* Franja de beneficios (envío / pago / digital) */
.features-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem;
  padding: 2.4rem 0 .6rem;
}
.feature {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow);
  transition: transform var(--trans), box-shadow var(--trans);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.feature .ico {
  flex: none; width: 48px; height: 48px; border-radius: 14px;
  background: var(--rose-mist); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
}
.feature .ico svg { width: 24px; height: 24px; }
.feature .tit { font-weight: 600; font-size: .96rem; }
.feature .sub { font-size: .82rem; color: var(--muted); }
@media (max-width: 800px) { .features-strip { grid-template-columns: minmax(0, 1fr); gap: .8rem; } }

/* ---------- Grillas y cards ---------- */

.grid { display: grid; gap: 1.4rem; }
.grid-productos { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-categorias { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.grid-blog { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
@media (max-width: 560px) {
  .grid { gap: .9rem; }
  .grid-productos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out), border-color var(--trans);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: #E8D5CD; }

.card-prod { display: flex; flex-direction: column; position: relative; }
.card-prod .img-wrap { position: relative; aspect-ratio: 1; background: var(--bg-soft); overflow: hidden; display: block; }
.card-prod .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.card-prod:hover .img-wrap img { transform: scale(1.07); }
.card-prod .img-cta {
  position: absolute; left: 50%; bottom: .9rem; transform: translate(-50%, 12px);
  padding: .45rem 1.2rem; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--primary-deep);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap; opacity: 0; box-shadow: var(--shadow);
  transition: opacity 260ms ease, transform 260ms var(--ease-out);
}
.card-prod:hover .img-cta { opacity: 1; transform: translate(-50%, 0); }
.card-prod .body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.card-prod .cat { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.card-prod h3 { font-size: 1.12rem; margin: 0; font-weight: 600; }
.card-prod h3 a { color: var(--ink); }
.card-prod h3 a:hover { color: var(--primary-dark); }
.card-prod .precio { margin-top: auto; padding-top: .45rem; font-weight: 600; font-size: 1.1rem; color: var(--primary-deep); }
.card-prod .precio .desde { font-size: .75rem; font-weight: 400; color: var(--muted); margin-right: .25rem; }
.card-prod .precio .tachado { font-size: .85rem; font-weight: 300; color: var(--muted); text-decoration: line-through; margin-left: .4rem; }

.badges { position: absolute; top: .75rem; left: .75rem; display: flex; flex-direction: column; gap: .35rem; z-index: 2; align-items: flex-start; }
.badge {
  display: inline-block; padding: .2rem .65rem; border-radius: 999px;
  font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.badge-oferta { background: var(--grad-gold); color: #fff; }
.badge-digital { background: linear-gradient(135deg, #8B75BD, #5B4A9E); color: #fff; }
.badge-sinstock { background: var(--muted); color: #fff; }

.card-cat {
  position: relative;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 2.2rem 1rem; min-height: 118px;
  background: linear-gradient(135deg, #FFF 0%, var(--rose-mist) 100%);
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--ink);
  overflow: hidden;
}
.card-cat::after {
  content: '→'; position: absolute; bottom: .6rem; left: 50%; transform: translate(-50%, 8px);
  font-size: .95rem; color: var(--primary); opacity: 0;
  transition: opacity var(--trans), transform 260ms var(--ease-out);
}
.card-cat:hover { color: var(--primary-dark); }
.card-cat:hover::after { opacity: 1; transform: translate(-50%, 0); }

.card-blog { display: flex; flex-direction: column; }
.card-blog .cover { aspect-ratio: 16/9; background: var(--bg-soft); overflow: hidden; display: block; }
.card-blog .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.card-blog:hover .cover img { transform: scale(1.05); }
.card-blog .body { padding: 1.1rem 1.2rem 1.3rem; }
.card-blog .fecha { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Catálogo ---------- */

.catalogo-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2rem; align-items: start; padding: 2rem 0; }
@media (max-width: 900px) { .catalogo-layout { grid-template-columns: minmax(0, 1fr); } }

.filtros {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem; box-shadow: var(--shadow); position: sticky; top: calc(var(--hdr-h) + 12px);
}
.filtros h3 { font-size: 1.05rem; margin-bottom: .9rem; }
.filtros .field { margin-bottom: .9rem; }
.rango-precio { display: flex; gap: .5rem; align-items: center; }

.filtros-toggle { display: none; }
@media (max-width: 900px) {
  .filtros { position: static; display: none; animation: subir 300ms var(--ease-out); }
  .filtros.abierto { display: block; }
  .filtros-toggle { display: inline-flex; margin-bottom: 1rem; }
}

.catalogo-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1.3rem; }
.catalogo-top .orden { display: flex; align-items: center; gap: .5rem; }
.catalogo-top .orden select { width: auto; }

.paginacion { display: flex; justify-content: center; align-items: center; gap: .45rem; margin: 2.2rem 0 1rem; flex-wrap: wrap; }
.paginacion button {
  min-width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font: 600 .9rem var(--sans); cursor: pointer;
  transition: all var(--trans);
}
.paginacion button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.paginacion button.activa { background: var(--grad-rose); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(147, 70, 92, .3); }
.paginacion button:disabled { opacity: .4; cursor: default; }

/* ---------- Detalle de producto ---------- */

.detalle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; padding: 2.4rem 0; align-items: start; }
@media (max-width: 900px) { .detalle { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; } }

.galeria .principal {
  aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.galeria .principal img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); animation: aparecer 400ms ease; }
.galeria .principal:hover img { transform: scale(1.04); }
.galeria .thumbs { display: flex; gap: .6rem; margin-top: .9rem; flex-wrap: wrap; }
.galeria .thumbs button {
  width: 72px; height: 72px; border-radius: 12px; overflow: hidden;
  border: 2px solid var(--line); background: var(--bg-soft); cursor: pointer; padding: 0;
  transition: border-color var(--trans), transform var(--trans), box-shadow var(--trans);
}
.galeria .thumbs button.activa, .galeria .thumbs button:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.galeria .thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detalle-info h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.detalle-info .cat { text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; color: var(--muted); }
.precio-grande { font-size: 2.1rem; font-weight: 600; color: var(--primary-deep); font-family: var(--serif); }
.precio-grande .tachado { font-size: 1.15rem; color: var(--muted); text-decoration: line-through; font-weight: 400; margin-left: .6rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .5rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); font: 500 .88rem var(--sans); cursor: pointer;
  transition: all var(--trans); color: var(--ink);
}
.chip:hover:not(:disabled) { border-color: var(--primary); color: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.chip.activa { background: var(--grad-rose); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(147, 70, 92, .3); }
.chip:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); transition: border-color var(--trans); }
.qty:hover { border-color: var(--primary); }
.qty button {
  width: 40px; height: 40px; border: 0; background: none; font-size: 1.15rem; cursor: pointer;
  color: var(--primary-dark); border-radius: 50%; transition: background var(--trans);
}
.qty button:hover { background: var(--rose-mist); }
.qty input { width: 48px; border: 0; text-align: center; font-weight: 600; padding: 0; background: transparent; }
.qty input:focus { box-shadow: none; }

.entrega-nota {
  display: flex; gap: .7rem; align-items: flex-start;
  background: linear-gradient(135deg, #F6F0FB, #EFE7F8);
  border: 1px solid #E2D4F0; border-radius: 12px;
  padding: .8rem 1rem; font-size: .88rem;
}

/* ---------- Tablas / carrito ---------- */

.tabla-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table.tabla { width: 100%; border-collapse: collapse; min-width: 560px; }
.tabla th {
  text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); background: #FDFAF7;
}
.tabla td { padding: .95rem 1.1rem; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla tr { transition: background var(--trans); }
.tabla tbody tr:hover { background: #FDF8F5; }

.item-mini { display: flex; align-items: center; gap: .9rem; }
.item-mini img { width: 58px; height: 58px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-soft); }
.item-mini .nombre { font-weight: 600; }
.item-mini .variante { font-size: .8rem; color: var(--muted); }

.link-quitar { color: var(--err); background: none; border: none; cursor: pointer; font-size: .85rem; padding: .2rem; border-radius: 6px; transition: background var(--trans); }
.link-quitar:hover { text-decoration: underline; background: #FBEFEC; }

.resumen-caja {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.4rem;
}
.resumen-caja .fila { display: flex; justify-content: space-between; padding: .32rem 0; font-size: .95rem; }
.resumen-caja .fila.total { border-top: 1px solid var(--line); margin-top: .55rem; padding-top: .75rem; font-weight: 600; font-size: 1.2rem; font-family: var(--serif); }
.resumen-caja .fila .verde { color: var(--ok); font-weight: 600; }

.carrito-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.8rem; align-items: start; padding: 2rem 0; }
@media (max-width: 900px) { .carrito-layout { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Checkout ---------- */

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 1.8rem; align-items: start; padding: 2rem 0; }
@media (max-width: 940px) { .checkout-layout { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 941px) { .checkout-layout .resumen-caja { position: sticky; top: calc(var(--hdr-h) + 12px); } }

.paso {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.4rem 1.5rem; margin-bottom: 1.2rem;
  transition: box-shadow var(--trans);
}
.paso:focus-within { box-shadow: var(--shadow-lift); }
.paso h2 { font-size: 1.2rem; display: flex; align-items: center; gap: .65rem; margin-bottom: .9rem; }
.paso h2 .num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--grad-rose); color: #fff;
  font: 600 .84rem var(--sans); display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(147, 70, 92, .3);
  flex: none;
}

.opcion {
  display: flex; gap: .75rem; align-items: flex-start;
  border: 1.5px solid var(--line); border-radius: 12px; padding: .85rem 1rem;
  margin-bottom: .6rem; cursor: pointer;
  transition: border-color var(--trans), background var(--trans), box-shadow var(--trans), transform var(--trans);
}
.opcion:hover { border-color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow); }
.opcion.activa { border-color: var(--primary); background: var(--rose-mist); box-shadow: 0 0 0 1px var(--primary) inset; }
.opcion input { width: auto; margin-top: .28rem; accent-color: var(--primary-dark); }
.opcion .tit { font-weight: 600; }

.cupon-row { display: flex; gap: .6rem; }
.cupon-row input { flex: 1; text-transform: uppercase; }
.cupon-estado-row { display: flex; align-items: center; flex-wrap: wrap; gap: .1rem .8rem; margin-top: .3rem; }
.cupon-estado-row .form-hint { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.cupon-estado-row .form-hint:empty { display: none; }

.advertencia {
  background: #FCF3E3; border: 1px solid #EED9A8; color: #7A5C13;
  border-radius: 12px; padding: .7rem 1rem; font-size: .88rem; margin-bottom: .5rem;
}

/* ---------- Chips de estado de orden ---------- */

.chip-estado {
  display: inline-block; padding: .24rem .8rem; border-radius: 999px;
  font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.chip-PendingPayment { background: #FCF3E3; color: #9A6B00; border: 1px solid #EED9A8; }
.chip-Paid          { background: #E7F4EC; color: var(--ok); border: 1px solid #BFE3CC; }
.chip-Fulfilling    { background: #EDEAF7; color: #5B4A9E; border: 1px solid #D5CCEE; }
.chip-Shipped       { background: #E6F0F8; color: #2A6496; border: 1px solid #BFDCF0; }
.chip-Delivered     { background: #E7F4EC; color: #23663C; border: 1px solid #BFE3CC; }
.chip-Cancelled     { background: #F0EDEE; color: var(--muted); border: 1px solid #DBD4D6; }
.chip-Refunded      { background: #FBE9E6; color: var(--err); border: 1px solid #F0C6BF; }

/* ---------- Línea de tiempo (estado de orden) ---------- */

.timeline { list-style: none; margin: 1rem 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 1.4rem 2rem; }
.timeline li::before {
  content: ''; position: absolute; left: 7px; top: 20px; bottom: -2px;
  width: 2px; background: var(--line);
}
.timeline li:last-child::before { display: none; }
.timeline .tl-dot {
  position: absolute; left: 0; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line);
  transition: all var(--trans);
}
.timeline li.hecho .tl-dot { background: var(--grad-rose); border-color: transparent; box-shadow: 0 2px 8px rgba(147, 70, 92, .35); }
.timeline li.actual .tl-dot { background: var(--surface); border-color: var(--primary); animation: latido 2s ease-out infinite; }
.timeline li.hecho::before { background: var(--primary); }
.timeline .tl-tit { font-weight: 600; font-size: .95rem; }
.timeline .tl-fecha { font-size: .8rem; color: var(--muted); }
.timeline li.pendiente { opacity: .5; }

/* ---------- Mi cuenta ---------- */

.cuenta-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2rem; align-items: start; padding: 2rem 0; }
@media (max-width: 900px) { .cuenta-layout { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; } }

.cuenta-nav {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: .65rem; position: sticky; top: calc(var(--hdr-h) + 12px);
}
/* En mobile las pestañas se acomodan en varias filas: ninguna queda oculta fuera de pantalla (D12). */
@media (max-width: 900px) { .cuenta-nav { position: static; display: flex; flex-wrap: wrap; gap: .3rem; padding: .5rem; } }
@media (max-width: 560px) { .cuenta-nav a { flex: 1 1 auto; text-align: center; padding: .55rem .75rem; font-size: .88rem; } }
.cuenta-nav a {
  display: block; padding: .65rem 1rem; border-radius: 10px;
  color: var(--ink); font-size: .92rem; font-weight: 500; white-space: nowrap;
  transition: background var(--trans), color var(--trans), padding-left var(--trans);
}
.cuenta-nav a:hover { background: var(--rose-mist); color: var(--primary-dark); }
@media (min-width: 901px) { .cuenta-nav a:hover { padding-left: 1.25rem; } }
.cuenta-nav a.activa { background: var(--grad-rose); color: #fff; box-shadow: 0 4px 12px rgba(147, 70, 92, .25); }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.5rem 1.6rem; margin-bottom: 1.3rem;
}
.panel h2 { font-size: 1.3rem; }

.notif {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: 1rem 1.1rem; border-bottom: 1px solid var(--line-soft);
  transition: background var(--trans);
}
.notif:last-child { border-bottom: 0; }
.notif:hover { background: #FDF8F5; }
.notif.noleida { background: var(--rose-mist); }
.notif .punto { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); margin-top: .55rem; flex: none; box-shadow: 0 0 0 3px rgba(180, 99, 122, .18); }
.notif .punto.leida { background: var(--line); box-shadow: none; }
.notif .titulo { font-weight: 600; }

.direccion-card {
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem;
  margin-bottom: .8rem; position: relative; background: var(--surface);
  transition: border-color var(--trans), box-shadow var(--trans), transform var(--trans);
}
.direccion-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.direccion-card .acciones { display: flex; gap: .8rem; margin-top: .5rem; }

.licencia {
  font-family: Consolas, monospace; background: #F8F2EE; border: 1px dashed #D9C4CB;
  padding: .4rem .8rem; border-radius: 10px; font-size: .88rem; display: inline-flex; gap: .6rem; align-items: center;
  transition: border-color var(--trans), background var(--trans);
}
.licencia:hover { border-color: var(--primary); background: var(--rose-mist); }
.licencia button { border: 0; background: none; cursor: pointer; color: var(--primary-dark); font-size: .8rem; font-weight: 600; }

/* ---------- Auth ---------- */

.auth-wrap {
  display: flex; justify-content: center; align-items: flex-start;
  padding: 3.4rem 1rem 4rem;
  background:
    radial-gradient(46% 60% at 14% 12%, var(--rose-mist) 0%, transparent 60%),
    radial-gradient(40% 55% at 88% 88%, #F6EEDD 0%, transparent 60%);
}
.auth-card {
  width: 100%; max-width: 440px;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
  padding: 2.4rem 2.2rem;
  position: relative; overflow: hidden;
  animation: subir 560ms var(--ease-out) both;
}
.auth-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-rose);
}
.auth-card h1 { text-align: center; font-size: 1.8rem; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: .92rem; margin-bottom: 1.6rem; }
.auth-links { text-align: center; font-size: .88rem; margin-top: 1.2rem; }

/* ---------- Blog / contenido ---------- */

.pagina-contenido { max-width: 780px; margin-inline: auto; padding: 2.6rem 0 3.2rem; }
.pagina-contenido h1 { font-size: clamp(2rem, 4vw, 2.7rem); }
.pagina-contenido h2 { margin-top: 1.6em; }
.post-cover { border-radius: var(--radius-lg); overflow: hidden; margin: 1.5rem 0; box-shadow: var(--shadow-lift); }
.post-meta { color: var(--muted); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.post-body { font-size: 1.05rem; line-height: 1.75; }

/* ---------- Gracias / éxito ---------- */

.gracias-hero { text-align: center; padding: 3.4rem 0 1rem; }
.gracias-hero .icono {
  width: 84px; height: 84px; margin: 0 auto 1.2rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 2.2rem;
  background: #E7F4EC; color: var(--ok); border: 2px solid #BFE3CC;
  animation: acercar 600ms var(--ease-out) both, latido 2.4s ease-out .7s 3;
}
.gracias-hero .icono.espera { background: #FCF3E3; border-color: #EED9A8; }

/* ---------- Pago simulado ---------- */

.pago-sim {
  max-width: 470px; margin: 3.2rem auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
  padding: 2.2rem; text-align: center;
  position: relative; overflow: hidden;
  animation: subir 500ms var(--ease-out) both;
}
.pago-sim::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad-gold); }
.pago-sim .monto { font-family: var(--serif); font-size: 2.5rem; font-weight: 600; color: var(--ink); margin: .6rem 0; }
.pago-sim .marca { font-size: .78rem; text-transform: uppercase; letter-spacing: .22em; color: var(--muted); }
.pago-sim .botones { display: flex; gap: .8rem; justify-content: center; margin-top: 1.7rem; flex-wrap: wrap; }

/* ---------- Vacíos / spinners / skeletons / toasts ---------- */

.vacio { text-align: center; padding: 3.4rem 1rem; color: var(--muted); animation: aparecer 500ms ease both; }
.vacio .icono { font-size: 2.8rem; margin-bottom: .7rem; animation: flotar 5s ease-in-out infinite; display: inline-block; }

.spinner {
  width: 36px; height: 36px; margin: 2rem auto;
  border: 3px solid var(--line); border-top-color: var(--primary);
  border-radius: 50%; animation: girar .8s linear infinite;
}

.skeleton {
  background: linear-gradient(90deg, #F2E8E2 25%, #FBF4EF 50%, #F2E8E2 75%);
  background-size: 200% 100%; animation: brillo 1.4s infinite;
  border-radius: var(--radius);
}
.skeleton-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); background: var(--surface); }
.skeleton-card .sk-img { aspect-ratio: 1; }
.skeleton-card .sk-img, .skeleton-card .sk-linea {
  background: linear-gradient(90deg, #F2E8E2 25%, #FBF4EF 50%, #F2E8E2 75%);
  background-size: 200% 100%; animation: brillo 1.4s infinite;
}
.skeleton-card .sk-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .55rem; }
.skeleton-card .sk-linea { height: 13px; border-radius: 6px; }
.skeleton-card .sk-linea.corta { width: 55%; }

#toasts { position: fixed; bottom: 1.3rem; right: 1.3rem; z-index: 200; display: flex; flex-direction: column; gap: .6rem; max-width: 360px; }
.toast {
  display: flex; align-items: flex-start; gap: .6rem;
  background: rgba(38, 25, 31, .94); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: 14px; padding: .8rem 1.05rem;
  font-size: .9rem; box-shadow: var(--shadow-lift);
  transform: translateX(calc(100% + 2rem));
  transition: transform 380ms var(--ease-out), opacity 300ms ease;
  border-left: 4px solid var(--ok);
  cursor: pointer;
}
.toast.show { transform: none; }
.toast.err { border-left-color: var(--err); }
.toast .t-ico { flex: none; margin-top: .1rem; }

/* ---------- Volver arriba ---------- */

.to-top {
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--primary-dark); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lift);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity var(--trans), transform var(--trans), background var(--trans), color var(--trans);
}
.to-top.visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--grad-rose); color: #fff; border-color: transparent; }
.to-top svg { width: 20px; height: 20px; }
/* No superponer con los toasts */
#toasts { bottom: 5.2rem; }

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  background: #1E1418; color: #C9BAC0; margin-top: 4rem;
  overflow: hidden;
}
.site-footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary) 30%, var(--gold) 70%, transparent);
}
.site-footer::after {
  content: ''; position: absolute; top: -120px; right: -80px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 99, 122, .16) 0%, transparent 70%);
  pointer-events: none;
}
.footer-inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem;
  padding: 3.2rem 0 2.2rem;
}
.footer-inner.sin-redes { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); }
@media (max-width: 800px) { .footer-inner, .footer-inner.sin-redes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 500px) { .footer-inner, .footer-inner.sin-redes { grid-template-columns: minmax(0, 1fr); } }
.site-footer .brand { color: #fff; font-size: 1.5rem; }
.site-footer .brand em { color: #E4A8B8; }
.site-footer h4 {
  color: #fff; font-size: .82rem; margin-bottom: .9rem;
  font-family: var(--sans); font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: #C9BAC0; font-size: .9rem; transition: color var(--trans), padding-left var(--trans); }
.site-footer a:hover { color: #fff; padding-left: .3rem; }
.site-footer .brand:hover { padding-left: 0; }
.footer-legal {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 1.1rem 0 1.4rem; font-size: .8rem; color: #97858C;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* ---------- Encabezado de página simple ---------- */

.page-head { padding: 2.4rem 0 .3rem; }
.page-head h1 { margin-bottom: .15em; }
.page-head .sub { color: var(--muted); font-weight: 300; font-size: 1.05rem; }


/* ===== Extra por pagina: home ===== */
/* ---------- Home (Index) ---------- */
.home-msj { font-style: normal; font-weight: 400; }
.home-sep { font-style: normal; color: var(--gold-soft); opacity: .75; }
.home-cita { text-align: center; max-width: 46rem; margin-inline: auto; padding: .6rem 0 .2rem; }
.home-cita p { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.8vw, 1.9rem); line-height: 1.45; color: var(--ink-soft); margin: 0 0 .55rem; }
.home-cita .firma { font-size: .74rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--primary-dark); }


/* ===== Extra por pagina: catalogo ===== */
/* --- Catálogo: toggle de filtros (mobile) --- */
.filtros-toggle svg { width: 18px; height: 18px; flex: none; }
.filtros-toggle[aria-expanded="true"] { background: var(--rose-mist); border-color: var(--primary); color: var(--primary-dark); }
.cat-fchevron { margin-left: auto; transition: transform 280ms var(--ease-out); }
.filtros-toggle[aria-expanded="true"] .cat-fchevron { transform: rotate(180deg); }
.cat-fcount {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--grad-rose); color: #fff;
  font-size: .72rem; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(147, 70, 92, .35);
}


/* ===== Extra por pagina: producto ===== */
/* ---------- Página Producto (detalle) ---------- */

/* Skeleton de carga en dos columnas */
.prod-sk-img { aspect-ratio: 1; border-radius: var(--radius-lg); }
.prod-sk-thumbs { display: flex; gap: .6rem; margin-top: .9rem; }
.prod-sk-thumbs .skeleton { width: 72px; height: 72px; border-radius: 12px; }
.prod-sk-info { display: flex; flex-direction: column; gap: 1.05rem; padding-top: .3rem; }
.prod-sk-info .skeleton { border-radius: 8px; }
.prod-sk-chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.prod-sk-chips .skeleton { width: 88px; height: 38px; border-radius: 999px; }
.prod-sk-info .prod-sk-btn { height: 52px; width: min(240px, 100%); border-radius: 999px; }

/* Galería: ancla los badges sobre la imagen principal */
.prod-galeria .principal { position: relative; }

/* Bloques escalonados de la columna info */
.prod-bloque { margin-top: 1.35rem; }
.prod-bloque:first-child { margin-top: 0; }
.prod-bloque h1 { margin: .15em 0 0; }

/* Migas de pan sobre el título */
.prod-migas a { color: var(--muted); }
.prod-migas a:hover { color: var(--primary-dark); }
.prod-migas .sep { margin: 0 .45rem; color: var(--gold); }

/* Fila de precio + badge de oferta */
.prod-precio-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }

/* Nota de entrega con ícono SVG */
.entrega-nota .prod-nota-ico {
  flex: none; width: 36px; height: 36px; border-radius: 11px;
  background: rgba(255, 255, 255, .85); color: #5B4A9E;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(38, 25, 31, .08);
}
.prod-nota-ico svg { width: 19px; height: 19px; }
.entrega-nota.prod-envio { background: linear-gradient(135deg, #EEF7F1, #E3F1E8); border-color: #C4E2CF; }
.prod-envio .prod-nota-ico { color: var(--ok); }

/* Fila de compra: qty + CTA + stock */
.prod-compra { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.prod-btn-agregar svg { width: 19px; height: 19px; }
@media (max-width: 560px) {
  .prod-compra .prod-btn-agregar { flex: 1 1 100%; order: 3; }
}

/* Indicador de stock con punto de color */
.prod-stock { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 500; }
.prod-stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(62, 142, 90, .16); }
.prod-stock.ok { color: var(--ok); }
.prod-stock.agotado { color: var(--err); }
.prod-stock.agotado::before { box-shadow: 0 0 0 3px rgba(192, 57, 43, .14); }

/* Descripción a ancho completo bajo la grilla del detalle */
.prod-desc { grid-column: 1 / -1; margin-top: .8rem; padding-top: 2.4rem; border-top: 1px solid var(--line); }
.prod-desc .section-head { margin-bottom: 1.1rem; }
.prod-desc-texto { white-space: pre-line; color: var(--ink-soft); max-width: 72ch; font-size: 1.03rem; line-height: 1.8; font-weight: 300; margin: 0; }

/* Estado de error/vacío ocupando ambas columnas */
.prod-span { grid-column: 1 / -1; }


/* ===== Extra por pagina: carrito-gracias-pago ===== */
/* ===== Carrito ===== */
.carrito-sk-fila { height: 92px; border-radius: var(--radius); margin-bottom: .9rem; }
.carrito-sk-resumen { height: 330px; border-radius: var(--radius); }
.carrito-vaciar { display: inline-flex; align-items: center; min-height: 40px; padding: .4rem .8rem; margin-top: .5rem; }
.carrito-seguro { display: flex; align-items: center; justify-content: center; gap: .45rem; margin-top: .9rem; font-size: .78rem; color: var(--muted); }
.carrito-seguro svg { flex: none; }
/* Línea que ya no se puede comprar (sin precio en su moneda, dada de baja…): se ve, pero apagada. */
.carrito-adv { margin-top: .35rem; font-size: .8rem; color: #7A5C13; background: #FCF3E3; border: 1px solid #EED9A8; border-radius: 9px; padding: .3rem .6rem; }
.tabla tr.no-disponible .item-mini img { opacity: .55; filter: grayscale(.5); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 680px) {
  .carrito-tabla-wrap { overflow: visible; background: transparent; border: 0; box-shadow: none; border-radius: 0; }
  .carrito-tabla-wrap table.tabla { min-width: 0; display: block; }
  .carrito-tabla-wrap thead { display: none; }
  .carrito-tabla-wrap tbody { display: flex; flex-direction: column; gap: .85rem; }
  .carrito-tabla-wrap tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "prod prod" "precio total" "cant quitar";
    gap: .6rem .9rem; align-items: center;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 1rem 1.05rem;
  }
  .carrito-tabla-wrap tbody tr:hover { background: var(--surface); }
  .carrito-tabla-wrap td { padding: 0; border: 0; }
  .carrito-tabla-wrap td.c-prod { grid-area: prod; }
  .carrito-tabla-wrap td.c-precio { grid-area: precio; }
  .carrito-tabla-wrap td.c-cant { grid-area: cant; }
  .carrito-tabla-wrap td.c-total { grid-area: total; text-align: right; }
  .carrito-tabla-wrap td.c-quitar { grid-area: quitar; text-align: right; }
  .carrito-tabla-wrap td[data-label]::before {
    content: attr(data-label);
    display: block; font-size: .64rem; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--muted); margin-bottom: .12rem;
  }
  .carrito-tabla-wrap .link-quitar { padding: .45rem .6rem; min-height: 40px; display: inline-flex; align-items: center; }
}

/* Títulos dentro de estados vacíos (carrito / gracias / pago simulado) */
.carrito-vacio-tit, .gracias-vacio-tit, .pago-vacio-tit { color: var(--ink); font-size: 1.5rem; margin: .15em 0 .3em; }

/* ===== Gracias ===== */
.gracias-wrap { max-width: 880px; margin-inline: auto; }
.gracias-digital {
  display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap;
  background: linear-gradient(135deg, #F6F0FB 0%, #EFE7F8 100%);
  border: 1px solid #E2D4F0; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 1.25rem 1.4rem; margin-bottom: 1.4rem;
}
.gracias-digital .gd-ico {
  flex: none; width: 52px; height: 52px; border-radius: 16px;
  background: #fff; color: #5B4A9E;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(91, 74, 158, .18);
}
.gracias-digital .gd-ico svg { width: 26px; height: 26px; }
.gracias-digital .gd-txt { flex: 1 1 240px; }
.gracias-digital .gd-tit { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: #3F3272; line-height: 1.2; }
.gracias-digital p { margin: .2rem 0 0; font-size: .9rem; color: #5B4A9E; }
@media (max-width: 560px) { .gracias-digital .btn { width: 100%; } }
.gracias-resumen { max-width: 400px; margin-inline: auto; }
.gracias-ctas { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin: 1.75rem 0 1rem; }
.gracias-aviso { max-width: 560px; margin: .8rem auto 0; text-align: left; }
.gracias-sync { text-align: center; margin: .7rem 0 0; color: var(--muted); font-size: .88rem; }
.gracias-sync .spinner { display: inline-block; vertical-align: -3px; width: 16px; height: 16px; margin: 0 .45rem 0 0; border-width: 2px; }
.pago-sim-reintento { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }

/* ===== Pago simulado ===== */
.pago-sim-tit { font-size: 1.55rem; margin: .55rem 0 .2rem; }
.pago-sim-orden { margin: 0; color: var(--muted); font-size: .92rem; }
.pago-sim-orden strong {
  font-family: Consolas, monospace; font-weight: 600; letter-spacing: .04em;
  background: #F8F2EE; border: 1px dashed #D9C4CB; border-radius: 8px;
  padding: .1rem .55rem; color: var(--ink);
}
.pago-sim-moneda { font-family: var(--sans); font-size: .95rem; font-weight: 500; letter-spacing: .14em; color: var(--muted); }
.pago-sim-divisor { border: 0; border-top: 1px dashed var(--line); margin: 1.15rem 0 .9rem; }
.pago-sim-rechazar:hover { color: var(--err); border-color: var(--err); background: #FBEFEC; box-shadow: none; }
.pago-sim-proc {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  margin-top: 1.3rem; color: var(--muted); font-size: .9rem;
  animation: aparecer 300ms ease both;
}
.pago-sim-proc .spinner { width: 22px; height: 22px; margin: 0; border-width: 3px; }
.pago-sim-error { color: var(--err); }
.pago-sim-error:empty { display: none; }
.pago-sim-nota { display: flex; align-items: center; justify-content: center; gap: .45rem; margin-top: 1.4rem; font-size: .78rem; color: var(--muted); }
.pago-sim-nota svg { width: 14px; height: 14px; flex: none; }
.pago-sim .botones .btn { min-width: 180px; }
@media (max-width: 480px) {
  .pago-sim { margin: 1.8rem auto; padding: 1.9rem 1.3rem; }
  .pago-sim .botones .btn { min-width: 0; width: 100%; }
}


/* ===== Extra por pagina: checkout ===== */
/* ---------- Checkout (rediseño premium) ---------- */

.co-paso-sub { font-size: .88rem; color: var(--muted); margin: -.45rem 0 1rem; padding-left: calc(28px + .65rem); }
@media (max-width: 560px) { .co-paso-sub { padding-left: 0; } }

.paso h2 .co-h-ico { margin-left: auto; color: #DFC9D1; flex: none; }
.paso h2 .co-h-ico svg { width: 22px; height: 22px; display: block; }

.co-op-ico {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  background: var(--rose-mist); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--trans), color var(--trans), box-shadow var(--trans);
}
.co-op-ico svg { width: 21px; height: 21px; }
.opcion.activa .co-op-ico { background: var(--grad-rose); color: #fff; box-shadow: 0 3px 10px rgba(147, 70, 92, .3); }

.co-tag {
  display: inline-block; margin-left: .45rem; padding: .12rem .6rem; border-radius: 999px;
  font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--grad-gold); color: #fff; vertical-align: middle;
}

.co-vacio-dir {
  border: 1.5px dashed var(--line); border-radius: 12px;
  padding: 1.05rem 1.1rem; margin-bottom: .6rem;
  color: var(--muted); font-size: .9rem; text-align: center;
}

.co-form-dir { border-top: 1px dashed var(--line); margin-top: 1.1rem; padding-top: 1.2rem; animation: subir 320ms var(--ease-out); }
.co-form-acciones { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .3rem; }

.co-skel-chip { display: inline-block; width: 92px; height: 40px; border-radius: 999px; }
.co-skel-opcion { height: 72px; border-radius: 12px; margin-bottom: .6rem; }
.co-skel-linea { height: 13px; border-radius: 6px; margin: .6rem 0; }
.co-skel-linea.corta { width: 55%; }
.co-skel-linea.media { width: 78%; }
.co-skel-total { height: 30px; border-radius: 8px; margin-top: 1.1rem; }
.co-skel-btn { height: 54px; border-radius: 999px; margin-top: 1rem; }

.co-div { border: 0; border-top: 1px solid var(--line); margin: .75rem 0 .55rem; }
.co-op-txt { min-width: 0; overflow-wrap: anywhere; }
#co-dir-error { margin: .2rem 0 .8rem; }
.co-error { padding: 1.6rem .5rem; }
.co-error p { margin: 0 0 .8rem; color: var(--ink-soft); }
.co-error-acciones { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }

.co-spin {
  display: inline-block; width: 18px; height: 18px; flex: none;
  border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  border-radius: 50%; animation: girar .7s linear infinite;
}

.co-seguro {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  margin-top: .55rem; font-size: .8rem; color: var(--muted);
}
.co-seguro svg { width: 15px; height: 15px; flex: none; color: var(--ok); }


/* ===== Extra por pagina: auth ===== */
/* ---------- Auth premium (Ingresar / Registrarse / Recuperar / Restablecer) ---------- */

.auth-emblema {
  width: 56px; height: 56px; margin: 0 auto 1.05rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--rose-mist); color: var(--primary-dark);
  border: 1px solid var(--rose-pale);
  box-shadow: 0 6px 18px rgba(180, 99, 122, .18), inset 0 0 0 5px #fff;
  animation: acercar 600ms var(--ease-out) 140ms both;
}
.auth-emblema svg { width: 26px; height: 26px; }

.auth-card .overline { display: block; text-align: center; margin-bottom: .4rem; }

.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; margin-bottom: .35rem; }
.auth-label-row label { margin-bottom: 0; }
.auth-label-row .olvide { font-size: .78rem; font-weight: 500; white-space: nowrap; }

.auth-pass { position: relative; }
.auth-pass input { padding-right: 3.1rem; }
.auth-pass-toggle {
  position: absolute; top: 50%; right: .3rem; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); border-radius: 50%;
  transition: color var(--trans), background var(--trans);
}
.auth-pass-toggle:hover { color: var(--primary-dark); background: var(--rose-mist); }
.auth-pass-toggle svg { width: 20px; height: 20px; }

.auth-req { color: var(--primary); margin-left: .15rem; }

.auth-perks {
  list-style: none; margin: 0 0 1.45rem; padding: .95rem 1.1rem; display: grid; gap: .5rem;
  background: linear-gradient(135deg, var(--rose-mist), #FBF4EE);
  border: 1px solid var(--rose-pale); border-radius: 14px;
}
.auth-perks li { display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; color: var(--ink-soft); line-height: 1.45; }
.auth-perks svg { width: 16px; height: 16px; flex: none; margin-top: .16rem; color: var(--primary-dark); }

.auth-fuerza { display: flex; align-items: center; gap: .65rem; margin-top: .5rem; }
.auth-fuerza .barra { flex: 1; height: 5px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.auth-fuerza .relleno { display: block; height: 100%; width: 0; border-radius: inherit; background: transparent; transition: width 340ms var(--ease-out), background 340ms ease; }
.auth-fuerza .texto { font-size: .73rem; color: var(--muted); min-width: 62px; text-align: right; letter-spacing: .04em; }

.auth-btn-spin {
  width: 17px; height: 17px; flex: none;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  border-radius: 50%; animation: girar .7s linear infinite;
}

.auth-pie { border-top: 1px solid var(--line-soft); margin-top: 1.5rem; padding-top: 1.15rem; }

.auth-volver { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; }
.auth-volver svg { width: 16px; height: 16px; transition: transform var(--trans); }
.auth-volver:hover svg { transform: translateX(-3px); }

.auth-nota {
  display: flex; gap: .85rem; align-items: flex-start;
  background: #EAF4EE; border: 1px solid #C4E2CF; color: #2F5E42;
  border-radius: 14px; padding: .95rem 1.05rem; font-size: .88rem; line-height: 1.5;
  animation: subir 420ms var(--ease-out) both;
}
.auth-nota .nico {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: #fff; color: var(--ok); border: 1px solid #C4E2CF;
  display: inline-flex; align-items: center; justify-content: center;
}
.auth-nota .nico svg { width: 18px; height: 18px; }


/* ===== Extra por pagina: cuenta-perfil ===== */
/* ===== Mi cuenta: Index / Perfil / Direcciones / Notificaciones ===== */

/* Redirección de /mi-cuenta */
.mc-redirect { text-align: center; padding: 4.5rem 0 5.5rem; }
.mc-redirect .spinner { margin: 1.4rem auto .9rem; }

/* Encabezado de panel con acción a la derecha */
.mc-panel-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; margin-bottom: 1rem; }
.mc-panel-head h2 { margin: 0; }
.mc-panel-head .mc-hint { display: block; margin-top: .1rem; }
.mc-hint { font-size: .82rem; color: var(--muted); letter-spacing: .02em; }
.mc-panel-sub { color: var(--muted); font-size: .9rem; margin: -.35rem 0 1.2rem; max-width: 46rem; }

/* Skeletons de los paneles de cuenta (se combinan con .skeleton) */
.mc-sk-field { height: 70px; border-radius: 12px; margin-bottom: 1.05rem; }
.mc-sk-btn { height: 46px; width: 190px; max-width: 100%; border-radius: 999px; }
.mc-sk-card { height: 150px; border-radius: var(--radius); }
.mc-sk-notif { height: 86px; border-radius: 12px; margin-bottom: .6rem; }

/* Perfil: tarjeta de identidad */
.perfil-id { display: flex; align-items: center; gap: 1rem; padding: 1.05rem 1.25rem; margin-bottom: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, #FFFFFF 0%, var(--rose-mist) 100%); box-shadow: var(--shadow); }
.perfil-id-avatar { width: 54px; height: 54px; flex: none; border-radius: 50%; background: var(--grad-rose); color: #fff; font: 600 1.35rem var(--serif); display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(147, 70, 92, .3); }
.perfil-id-nombre { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.2; }
.perfil-id-email { font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }

/* Direcciones */
.dir-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: .9rem; }
.dir-grid .direccion-card { margin-bottom: 0; display: flex; flex-direction: column; }
.dir-grid .direccion-card .acciones { margin-top: auto; padding-top: .7rem; align-items: center; }
.dir-grid .acciones button { min-height: 40px; }
.dir-top { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.dir-ico { width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--rose-mist); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; }
.dir-ico svg { width: 19px; height: 19px; }
.dir-etiqueta { display: inline-block; font-weight: 600; font-size: 1.02rem; margin-right: .5rem; }
.dir-pred { display: inline-block; padding: .12rem .6rem; border-radius: 999px; font-size: .64rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--grad-gold); color: #fff; box-shadow: 0 2px 6px rgba(176, 138, 46, .3); vertical-align: 1px; }
.dir-datos { line-height: 1.55; }
.dir-form { margin-top: 1.4rem; padding: 1.35rem 1.4rem 1.5rem; border: 1.5px solid var(--rose-pale); border-radius: var(--radius); background: linear-gradient(160deg, #FFFFFF 0%, var(--rose-mist) 100%); animation: subir 340ms var(--ease-out) both; }
.dir-form h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.dir-form-botones { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: .4rem; }

/* Notificaciones */
.ntf-lista { border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.ntf-lista .notif { cursor: pointer; animation: subir 420ms var(--ease-out) both; }
.ntf-lista .notif:nth-child(2) { animation-delay: 60ms; }
.ntf-lista .notif:nth-child(3) { animation-delay: 120ms; }
.ntf-lista .notif:nth-child(4) { animation-delay: 180ms; }
.ntf-lista .notif:nth-child(5) { animation-delay: 240ms; }
.ntf-lista .notif:nth-child(n+6) { animation-delay: 300ms; }
.ntf-cuerpo { flex: 1; min-width: 0; }
.ntf-fecha { margin-top: .2rem; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.ntf-flecha { width: 18px; height: 18px; flex: none; align-self: center; color: var(--muted); opacity: 0; transform: translateX(-6px); transition: opacity var(--trans), transform var(--trans), color var(--trans); }
.notif:hover .ntf-flecha, .notif:focus-visible .ntf-flecha { opacity: 1; transform: none; color: var(--primary-dark); }
.notif:focus-visible { outline: 3px solid rgba(180, 99, 122, .35); outline-offset: -3px; }


/* ===== Extra por pagina: cuenta-ordenes ===== */
/* ============================================================
   Mi cuenta · Órdenes, detalle de orden y descargas
   (prefijos: cta- compartido del trío, ord- detalle, dsc- descargas)
   ============================================================ */

/* Encabezado de panel con overline editorial */
.cta-panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: .6rem 1rem; flex-wrap: wrap; margin-bottom: 1.15rem; }
.cta-panel-head h2 { margin: 0; }
.cta-panel-head .overline { margin-bottom: .3rem; }
.cta-panel-head .sub { flex-basis: 100%; color: var(--muted); font-size: .9rem; margin: 0; }

/* Skeletons de filas para listas de panel */
.cta-sk { display: flex; flex-direction: column; gap: .7rem; padding: .2rem 0; }
.cta-sk .skeleton { height: 54px; border-radius: 12px; }
.cta-sk .cta-sk-titulo { height: 24px; width: 42%; border-radius: 8px; }
.cta-sk .skeleton:nth-child(3) { opacity: .75; }
.cta-sk .skeleton:nth-child(4) { opacity: .55; }

/* Título serif dentro de estados vacíos .vacio */
.cta-vacio-tit { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--ink-soft); margin: .15rem 0 .3rem; }

/* Pill de clave/tracking con botón de copiar cómodo de tocar (≥40px) */
.licencia.cta-lic { padding: .25rem .3rem .25rem .85rem; word-break: break-all; max-width: 100%; }
.licencia.cta-lic button { min-height: 40px; min-width: 44px; padding: .2rem .6rem; border-radius: 9px; transition: background var(--trans); }
.licencia.cta-lic button:hover { background: rgba(180, 99, 122, .12); }

/* ----- Detalle de orden ----- */
.ord-volver { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; transition: gap var(--trans); }
.ord-volver:hover { gap: .65rem; }
.ord-volver svg { width: 15px; height: 15px; }
.ord-encabezado { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .8rem; margin-top: .55rem; }
.ord-encabezado h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.8rem); }
.ord-fechas { color: var(--muted); font-size: .85rem; margin: .45rem 0 0; }

/* Grilla: ítems/envío/pagos a la izquierda; seguimiento y totales a la derecha.
   En mobile el seguimiento pasa arriba y los totales al final. */
.ord-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; grid-template-areas: "main estado" "main resumen"; column-gap: 1.3rem; align-items: start; }
.ord-main { grid-area: main; min-width: 0; }
.ord-estado { grid-area: estado; }
.ord-resumen { grid-area: resumen; margin-bottom: 1.3rem; }
@media (max-width: 880px) { .ord-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "estado" "main" "resumen"; } }

.ord-items { list-style: none; margin: .2rem 0 0; padding: 0; }
.ord-items li { display: flex; align-items: flex-start; flex-wrap: wrap; gap: .6rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line-soft); }
.ord-items li:first-child { padding-top: .35rem; }
.ord-items li:last-child { border-bottom: 0; padding-bottom: .25rem; }
.ord-items .item-mini { flex: 1 1 230px; min-width: 0; }
.ord-item-montos { margin-left: auto; text-align: right; white-space: nowrap; }
.ord-item-montos .unit { font-size: .82rem; color: var(--muted); }
.ord-item-montos .linea { font-weight: 600; font-size: 1.02rem; color: var(--primary-deep); }
.ord-entrega { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-left: calc(58px + .9rem); }
@media (max-width: 560px) { .ord-entrega { padding-left: 0; } }

.ord-aviso { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem; font-size: .9rem; color: var(--ink-soft); margin-top: .9rem; }
.ord-nota-digital { font-size: .82rem; color: var(--muted); margin: .2rem 0 0; }
.ord-direccion { margin: 0; line-height: 1.65; }

/* Orden pendiente: reintentar el pago o cancelar (H05) */
.ord-pago { border-color: #EED9A8; background: linear-gradient(160deg, #FFFFFF 0%, #FCF6EA 100%); }
.ord-pago h2 { margin: .1rem 0 .5rem; }
.ord-pago-txt { margin: 0 0 .4rem; font-size: .92rem; color: var(--ink-soft); }
.ord-pago-acciones { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.ord-pago-acciones .btn svg { flex: none; }
@media (max-width: 480px) { .ord-pago-acciones .btn { flex: 1 1 100%; } }

/* Pagos de la orden: lista (una tabla no entra a 390 px) */
.ord-pagos { list-style: none; margin: 0; padding: 0; }
.ord-pagos li { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line-soft); }
.ord-pagos li:last-child { border-bottom: 0; }
.ord-pago-monto { text-align: right; white-space: nowrap; }

/* Producto Content: link privado + instrucciones (H09) */
.contenido-acceso { flex-basis: 100%; min-width: 0; }
.contenido-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.contenido-acciones .btn svg { flex: none; }
.contenido-instr { margin: .6rem 0 0; padding: .65rem .85rem; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line-soft); font-size: .86rem; color: var(--ink-soft); white-space: pre-line; overflow-wrap: anywhere; }

/* Mis órdenes en mobile: cada orden es una tarjeta clickeable (D12) */
.ordenes-tabla-wrap tbody tr[data-href] { cursor: pointer; }
@media (max-width: 680px) {
  .ordenes-tabla-wrap { overflow: visible; background: transparent; border: 0; box-shadow: none; border-radius: 0; }
  .ordenes-tabla-wrap table.tabla { min-width: 0; display: block; }
  .ordenes-tabla-wrap thead { display: none; }
  .ordenes-tabla-wrap tbody { display: flex; flex-direction: column; gap: .75rem; }
  .ordenes-tabla-wrap tbody tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "num estado" "fecha estado" "items total" "ver ver";
    gap: .35rem .8rem; align-items: center;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: .95rem 1rem;
  }
  .ordenes-tabla-wrap tbody tr:hover { background: var(--surface); border-color: var(--primary); }
  .ordenes-tabla-wrap td { padding: 0; border: 0; min-width: 0; }
  .ordenes-tabla-wrap td.o-num { grid-area: num; overflow-wrap: anywhere; }
  .ordenes-tabla-wrap td.o-fecha { grid-area: fecha; }
  .ordenes-tabla-wrap td.o-estado { grid-area: estado; text-align: right; align-self: start; }
  .ordenes-tabla-wrap td.o-items { grid-area: items; font-size: .85rem; color: var(--muted); }
  .ordenes-tabla-wrap td.o-items::before { content: attr(data-label) ": "; }
  .ordenes-tabla-wrap td.o-total { grid-area: total; text-align: right; }
  .ordenes-tabla-wrap td.o-ver { grid-area: ver; }
  .ordenes-tabla-wrap td.o-ver .btn { width: 100%; justify-content: center; }
}

/* ----- Descargas ----- */
.dsc-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .9rem; }
@media (max-width: 680px) { .dsc-grid { grid-template-columns: minmax(0, 1fr); } }
.dsc-sk { height: 118px; border-radius: var(--radius); }
.dsc-card { display: flex; gap: 1rem; align-items: flex-start; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.05rem 1.1rem; transition: border-color var(--trans), box-shadow var(--trans), transform var(--trans); }
.dsc-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-3px); }
.dsc-thumb { position: relative; flex: none; }
.dsc-thumb img { width: 62px; height: 62px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-soft); }
.dsc-tipo-ico { position: absolute; right: -7px; bottom: -7px; width: 26px; height: 26px; border-radius: 50%; background: var(--grad-rose); color: #fff; display: flex; align-items: center; justify-content: center; border: 2px solid var(--surface); box-shadow: 0 2px 8px rgba(147, 70, 92, .35); }
.dsc-tipo-ico svg { width: 13px; height: 13px; }
.dsc-body { flex: 1; min-width: 0; }
.dsc-tipo { display: inline-block; font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-dark); background: var(--rose-mist); border: 1px solid var(--rose-pale); border-radius: 999px; padding: .12rem .6rem; margin-bottom: .35rem; }
.dsc-nombre { font-weight: 600; font-size: 1.02rem; color: var(--ink); display: inline-block; }
a.dsc-nombre:hover { color: var(--primary-dark); }
.dsc-meta { font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.dsc-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .65rem; }
.btn-descarga { max-width: 100%; }
.btn-descarga svg { flex: none; }
.dsc-archivo { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dsc-peso { font-size: .74rem; opacity: .8; font-weight: 500; flex: none; }


/* ===== Extra por pagina: blog-contenido ===== */
/* ---------- Blog: índice (.blog-) ---------- */
.blog-sk .sk-img { aspect-ratio: 16/9; }
.blog-leer {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: .6rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary-dark);
  transition: gap var(--trans), color var(--trans);
}
.blog-leer svg { width: 15px; height: 15px; }
.card-blog:hover .blog-leer { gap: .7rem; color: var(--primary); }

/* ---------- Blog: nota (.post-) ---------- */
.post-volver {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.post-volver svg { width: 16px; height: 16px; transition: transform var(--trans); }
.post-volver:hover svg { transform: translateX(-4px); }
.post-sep { width: 64px; height: 2px; border-radius: 2px; background: var(--grad-gold); margin: 1.15rem 0 1.5rem; }
.post-body > p:first-child::first-letter {
  float: left; font-family: var(--serif); font-size: 3.1em; line-height: .82;
  padding: .06em .14em 0 0; color: var(--primary-dark);
}
.post-fin { margin-top: 2.8rem; padding-top: 1.9rem; border-top: 1px solid var(--line); text-align: center; }
.post-fin .overline { margin-bottom: .9rem; }
.post-sk-titulo { height: 42px; width: 72%; margin-top: 1rem; }
.post-sk-meta { height: 13px; width: 150px; margin-top: .9rem; border-radius: 6px; }
.post-sk-cover { aspect-ratio: 16/9; margin-top: 1.6rem; border-radius: var(--radius-lg); }
.post-sk-linea { height: 15px; margin-top: 1rem; border-radius: 6px; }
.post-sk-linea.corta { width: 62%; }

/* ---------- Sobre nosotros (.sn-) ---------- */
.sn-lead { font-size: 1.16rem; font-weight: 300; color: var(--ink-soft); }
.sn-cita {
  margin: 2.1rem 0; padding: 1.35rem 1.6rem 1.35rem 1.9rem;
  border-left: 3px solid var(--gold);
  background: var(--rose-mist);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif); font-style: italic; font-size: 1.4rem; line-height: 1.35;
  color: var(--primary-deep);
}
.sn-sec { margin-top: 2.4rem; }
.sn-sec h2 { margin-top: .1em; }
.sn-valores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.3rem 0 .4rem; }
@media (max-width: 640px) { .sn-valores { grid-template-columns: minmax(0, 1fr); } }
.sn-valor {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.15rem; box-shadow: var(--shadow);
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.sn-valor:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: #E8D5CD; }
.sn-valor .emoji { display: block; font-size: 1.7rem; margin-bottom: .5rem; }
.sn-valor h3 { font-size: 1.18rem; margin-bottom: .25rem; }
.sn-valor p { margin: 0; font-size: .88rem; color: var(--muted); }
.sn-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

/* ---------- Contacto (.cont-) ---------- */
.cont-grid {
  display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 1.6rem; align-items: start;
  max-width: 1000px; padding: 1.4rem 0 3.4rem;
}
@media (max-width: 860px) { .cont-grid { grid-template-columns: minmax(0, 1fr); } }
.cont-item {
  display: flex; gap: .95rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.05rem 1.15rem; margin-bottom: .8rem; box-shadow: var(--shadow);
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.cont-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #E8D5CD; }
.cont-item .ico {
  flex: none; width: 44px; height: 44px; border-radius: 13px;
  background: var(--rose-mist); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
}
.cont-item .ico svg { width: 22px; height: 22px; }
.cont-item .tit { font-weight: 600; font-size: .95rem; }
.cont-item .sub { font-size: .86rem; color: var(--muted); overflow-wrap: anywhere; }
.cont-nota {
  font-size: .85rem; color: var(--muted);
  background: var(--bg-soft); border: 1px dashed var(--line);
  border-radius: 12px; padding: .85rem 1rem; margin: 0;
}
.cont-panel h2 { font-size: 1.35rem; margin-bottom: .2em; }
.cont-panel .cont-sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.2rem; }
.cont-ok { background: #EAF4EE; border: 1px solid #C4E2CF; }

/* ---------- Legales: Términos y Devoluciones (.legal-) ---------- */
.legal-sec { margin-top: 2.2rem; padding-top: 1.5rem; border-top: 1px solid var(--line-soft); }
.legal-sec h2 { margin-top: 0; font-size: 1.45rem; }
.legal-num {
  display: block; font-family: var(--serif); font-style: italic;
  font-size: 1rem; letter-spacing: .14em; color: var(--gold); margin-bottom: .15rem;
}
.legal-destacado {
  display: flex; gap: .7rem; align-items: flex-start;
  background: var(--rose-mist); border: 1px solid var(--rose-pale);
  border-radius: 12px; padding: .85rem 1.05rem;
  font-size: .92rem; margin: 1.1rem 0;
}
.legal-destacado .emoji { flex: none; }
.legal-cierre {
  margin-top: 2.8rem; padding: 1.7rem 1.4rem; text-align: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.legal-cierre p { margin: 0 0 .9rem; color: var(--muted); }

/* ---------- Error (.err-) ---------- */
.err-page { padding: 4.2rem 1rem 5rem; }
.err-page h1 { margin: .35em 0 .25em; color: var(--ink); }
.err-page p { max-width: 34rem; margin-inline: auto; }
.err-page .icono { font-size: 3.4rem; }
.err-page code {
  font-family: Consolas, monospace; font-size: .85rem; color: var(--ink-soft);
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 8px; padding: .12rem .55rem;
}
.err-ctas { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.7rem; }
