/* =========================================================
   Cloih Accesorios · tienda
   Identidad tomada del tema de Shopify: rosa + tinta, Playfair Display + Poppins
   ========================================================= */
:root {
  --ink: #111111;          /* texto: negro */
  --ink-2: #111111;        /* textos secundarios también en negro */
  --bg: #fbfbfb;
  --surface: #ffffff;
  --pink: #f9c0e9;         /* fondos rosa (scheme-5) */
  --pink-btn: #f0b2de;     /* botones rosa (scheme-1) */
  --pink-bar: #f6a9d4;     /* barra de avisos */
  --pink-soft: #fdeef8;
  --pink-deep: #a8327f;    /* rosa con contraste para texto y foco */
  --pink-cta: #f6a3c8;     /* botones: rosado pastel más puro que el fondo */
  --pink-cta-hover: #f28dbb;
  --bar-text: #111111;
  --line: #ece6ef;
  --out: #b4233c;
  --ok: #1e7a4c;
  --radius: 12px;
  --display: "Playfair Display", Georgia, serif;
  --body: "Poppins", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 90px; scrollbar-color: var(--pink-btn) var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15.5px/1.65 var(--body); -webkit-font-smoothing: antialiased; caret-color: var(--pink-deep); }
::selection { background: var(--pink); color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--pink-deep); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
p { margin: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 24px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 500; text-decoration: none; cursor: pointer; letter-spacing: .01em;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-ink { background: var(--pink-cta); color: var(--ink); }
.btn-ink:hover:not(:disabled) { background: var(--pink-cta-hover); }
.btn-pink { background: var(--pink-btn); color: var(--ink); }
.btn-pink:hover:not(:disabled) { background: #f5c3e7; }
.btn-line { border: 1.5px solid var(--pink-cta); background: transparent; }
.btn-line:hover { border-color: var(--pink-cta-hover); background: rgb(255 255 255 / .35); }
.btn-block { width: 100%; }
.btn.loading { color: transparent; position: relative; }
.btn.loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--ink); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 99px; background: none; cursor: pointer; position: relative; text-decoration: none; }
.icon-btn:hover { background: rgb(46 42 57 / .06); }

/* ---------- Barra de avisos ---------- */
.announce { background: var(--pink-bar); color: var(--bar-text); overflow: hidden; font-size: .78rem; font-weight: 500; letter-spacing: .02em; }
.announce-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.announce-set { display: flex; flex: none; }
.announce span { padding: 8px 28px; white-space: nowrap; }
.announce span::after { content: "✦"; margin-left: 56px; opacity: .6; }
.announce:hover .announce-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .announce-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .announce-set[aria-hidden] { display: none; } }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(251 251 251 / .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; gap: 16px; }
.logo { font-family: var(--display); font-size: 2.1rem; font-weight: 500; text-decoration: none; letter-spacing: -0.02em; line-height: 1; justify-self: center; }
.logo span { color: var(--pink-deep); }
.logo img { display: block; height: 40px; width: auto; }
.footer-brand .logo img { height: 44px; }
.nav { display: flex; gap: 26px; font-size: .9rem; }
.nav a { text-decoration: none; color: var(--ink-2); position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--pink-deep); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav-right { justify-self: end; margin-right: 96px; }
.header-actions { position: absolute; right: var(--gutter); display: flex; gap: 2px; }
.header-row { position: relative; }
.menu-btn { display: none; }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--pink-deep); color: #fff; font-size: .7rem; font-weight: 600; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu { position: sticky; top: 76px; z-index: 45; background: var(--bg); border-bottom: 1px solid var(--line); }
.menu nav { display: flex; flex-direction: column; padding: 8px var(--gutter) 18px; }
.menu nav a, .menu #menu-cats a { display: block; padding: 12px 0; text-decoration: none; font-size: 1.05rem; border-bottom: 1px solid var(--line); }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
.section-head p { color: var(--ink-2); max-width: 46ch; margin-top: 8px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* Hero */
.hero { background: transparent; overflow: hidden; }
.cats-top { padding-block: clamp(28px, 4vw, 44px) clamp(8px, 2vw, 16px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(24px, 5vw, 64px); min-height: min(640px, 78vh); padding-block: clamp(40px, 6vw, 72px); }
.hero-kicker { font-size: .85rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--bar-text); margin-bottom: 14px; }
.hero h1 { font-size: clamp(3rem, 8vw, 6rem); line-height: .98; }
.hero h1 em { font-style: italic; color: var(--pink-deep); }

/* División navideña: guirnalda de pino con nieve y lazo rosado (img/guirnalda.svg). */
.holiday-divider { display: flex; justify-content: center; margin-top: clamp(14px, 2.5vw, 24px); }
.holiday-divider img { width: min(250px, 68vw); height: auto; }
.holiday-divider + .hero .hero-grid { padding-top: clamp(20px, 3.5vw, 44px); }

/* Título navideño: rojo con un brillo blanco que lo recorre, y una estrella del logo. */
.hero h1.holiday-title { position: relative; display: inline-block; padding-right: .32em; }
.holiday-title em {
  font-weight: 500; letter-spacing: .005em; padding-right: .06em;
  color: #a8122c;
  background: linear-gradient(105deg, #96102a 0%, #b5172f 38%, #e0566c 46%, #f7c9d1 52%, #e0566c 58%, #b5172f 66%, #96102a 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: holiday-brillo 7s ease-in-out 1s infinite;
}
.holiday-star { position: absolute; top: .02em; right: 0; width: .3em; height: .3em; fill: #b5172f; stroke: none; filter: drop-shadow(0 0 6px rgb(224 86 108 / .45)); animation: holiday-titila 3.5s ease-in-out infinite; }
@keyframes holiday-brillo { 0%, 20% { background-position: 100% 0; } 60%, 100% { background-position: 0% 0; } }
@keyframes holiday-titila { 0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; } 50% { transform: scale(.72) rotate(20deg); opacity: .75; } }
@media (prefers-reduced-motion: reduce) {
  .holiday-title em, .holiday-star { animation: none; }
  .holiday-title em { background-position: 50% 0; }
}
.hero p.lede { margin-top: 18px; font-size: 1.08rem; color: var(--ink); max-width: 38ch; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-art { position: relative; aspect-ratio: 1; max-height: 560px; justify-self: center; width: 100%; }
.hero-art .blob { position: absolute; inset: 6%; border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%; background: var(--surface); box-shadow: 0 40px 80px -40px rgb(168 50 127 / .45); }
.hero-art img { position: absolute; object-fit: cover; border-radius: 22px; box-shadow: 0 24px 50px -24px rgb(46 42 57 / .45); background: var(--pink-soft); }
.hero-art img:nth-of-type(1) { inset: 10% 22% 22% 10%; width: 68%; height: 68%; transform: rotate(-4deg); }
.hero-art img:nth-of-type(2) { right: 4%; bottom: 6%; width: 42%; height: 42%; transform: rotate(5deg); }
.hero-art img:nth-of-type(3) { right: 8%; top: 4%; width: 28%; height: 28%; border-radius: 50%; }
.hero-art .hero-word { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-style: italic; font-size: clamp(3rem, 8vw, 6rem); color: var(--pink-deep); }

/* Categorías en círculo (como en Shopify) */
/* Una sola fila: si no caben, se deslizan de lado (con el dedo o la rueda). */
.circles {
  display: flex; flex-wrap: nowrap; gap: clamp(14px, 3vw, 36px); list-style: none; margin: 0;
  padding: 10px 8px 6px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.circles::-webkit-scrollbar { display: none; }
.circles > li { flex: none; scroll-snap-align: center; }
.circles > li:first-child { margin-left: auto; }   /* centrados cuando caben todos */
.circles > li:last-child { margin-right: auto; }
.circles a { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: .92rem; }
@media (max-width: 700px) {
  /* Bordes que se desvanecen: insinúan que hay más círculos al deslizar. */
  .circles { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    mask-image: linear-gradient(to right, transparent, #000 18px, #000 calc(100% - 28px), transparent); }
}
.circle { width: clamp(70px, 9vw, 100px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--pink); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.5px var(--pink-btn); transition: box-shadow .3s var(--ease), transform .4s var(--ease); }
.circle img { width: 100%; height: 100%; object-fit: cover; }
.circle span { font-family: var(--display); font-size: 1.3rem; font-style: italic; color: var(--pink-deep); }
.circles a:hover .circle { transform: translateY(-4px); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.5px var(--pink-deep); }

/* Tarjetas de producto */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-link { display: block; text-decoration: none; }
.card-media { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--pink-soft); box-shadow: 0 18px 35px -28px rgb(46 42 57 / .5); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s, transform .8s var(--ease); }
.card-media img.alt { opacity: 0; }
.card-link:hover .card-media img:first-child { transform: scale(1.04); }
.card-link:hover .card-media img.alt { opacity: 1; }
.card-ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 1.6rem; color: var(--pink-deep); background: var(--pink); }
.tag { position: absolute; left: 10px; bottom: 10px; padding: 3px 12px; border-radius: 20px; background: var(--pink); color: var(--ink); font-size: .75rem; font-weight: 500; }
.tag-out { background: var(--ink); color: #fff; }
.card-body { padding: 14px 4px 0; text-align: center; }
.card-body h3 { font-family: var(--body); font-size: .98rem; font-weight: 500; line-height: 1.35; }
.price { margin-top: 4px; font-variant-numeric: tabular-nums; }
.price s { color: var(--ink-2); font-size: .88em; margin-left: 4px; }

/* Bandas */
.band { background: var(--pink); }
.band-ink { background: var(--ink); color: #fff; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 80px); align-items: center; }
.feature-media { aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: var(--pink-soft); display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-media img:first-child { grid-row: 1 / 3; }
.feature-media img:only-child { grid-column: 1 / -1; }
.feature-media img:first-child:nth-last-child(2) { grid-row: 1 / 2; grid-column: 1 / -1; }
.feature-media img:nth-child(2):last-child { grid-row: 2 / 3; grid-column: 1 / -1; }
.feature-media .ph { grid-column: 1 / -1; grid-row: 1 / -1; display: grid; place-items: center; font-family: var(--display); font-size: 3rem; font-style: italic; color: var(--pink-deep); background: var(--pink); }
.feature h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.feature p { margin-top: 16px; color: var(--ink-2); max-width: 44ch; font-size: 1.05rem; }
.band-ink .feature p, .band-ink .quote p { color: #e6e1ea; }
.feature .btn { margin-top: 28px; }

.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.promise div { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.promise svg { width: 28px; height: 28px; color: var(--pink-deep); }
.promise b { font-weight: 500; }
.promise span { color: var(--ink-2); font-size: .9rem; }

.quote { text-align: center; max-width: 760px; margin-inline: auto; }
.quote h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.quote p { margin-top: 16px; font-family: var(--display); font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.4rem); color: var(--ink-2); }

/* Suscripción */
.newsletter { text-align: center; max-width: 560px; margin-inline: auto; }
.newsletter h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.newsletter p { color: var(--ink-2); margin-top: 8px; }
.news-row { display: flex; gap: 8px; margin-top: 24px; }
.news-row input { flex: 1; min-width: 0; }
.form-msg { min-height: 1.6em; margin-top: 10px; font-size: .9rem; }
.form-msg.error { color: var(--out); }
.form-msg.ok { color: var(--ok); }

/* Campos */
input[type=text], input[type=email], input[type=tel], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #d9d0dd; border-radius: 10px; background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 90px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #857d92; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pink-deep); box-shadow: 0 0 0 3px rgb(168 50 127 / .15); }
input[aria-invalid=true] { border-color: var(--out); }
label { display: block; font-size: .88rem; font-weight: 500; margin-bottom: 6px; }

/* ---------- Pie ---------- */
.site-footer { background: var(--pink); padding-block: 64px 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-brand .logo { display: inline-block; }
.footer-head { font-family: var(--display); font-size: 1.25rem; margin-top: 14px; }
.footer-brand p:not(.footer-head) { margin-top: 6px; max-width: 34ch; color: var(--ink); font-size: .92rem; }
.social { display: flex; gap: 4px; margin-top: 12px; margin-left: -10px; }
.site-footer h2 { font-family: var(--body); font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer nav a, #foot-cats a { display: block; padding: 4px 0; text-decoration: none; font-size: .92rem; color: var(--ink); }
.site-footer nav a:hover { color: var(--ink); text-decoration: underline; }
.site-footer div > p { font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.footer-legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgb(46 42 57 / .15); font-size: .82rem; color: var(--ink); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 8px;
  padding: 12px 18px 12px 14px; border-radius: 99px; background: #e09bcd; color: #fff; text-decoration: none; font-weight: 500; font-size: .9rem;
  box-shadow: 0 14px 30px -12px rgb(168 50 127 / .55); transition: transform .3s var(--ease);
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 22px; height: 22px; }
.wa-float span { color: var(--ink); }
.wa-float { background: var(--pink-btn); color: var(--ink); }

/* ---------- Carrito lateral ---------- */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgb(46 42 57 / .4); opacity: 0; transition: opacity .3s; }
.scrim.show { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(420px, 100%); background: var(--bg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .45s var(--ease); box-shadow: -20px 0 50px -24px rgb(46 42 57 / .45); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.6rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 20px; }
.drawer-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.drawer-foot:empty { display: none; }
.drawer-foot .small { margin: 2px 0 14px; }
.drawer-empty { height: 100%; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--ink-2); }
.cart-items { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-thumb { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--pink); display: grid; place-items: center; font-family: var(--display); color: var(--pink-deep); text-decoration: none; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: .92rem; }
.cart-name { font-weight: 500; text-decoration: none; }
.cart-name:hover { text-decoration: underline; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.05rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid #d9d0dd; border-radius: 99px; margin-top: 6px; width: max-content; }
.qty button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: none; border-radius: 99px; cursor: pointer; }
.qty button:hover:not(:disabled) { background: var(--pink-soft); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty svg { width: 15px; height: 15px; }
.qty span { min-width: 26px; text-align: center; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Aviso */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; translate: -50% 0; max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 12px; background: var(--ink); color: #fff; font-size: .92rem; box-shadow: 0 14px 30px -14px rgb(0 0 0 / .5); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .4s var(--ease); }
.toast.show { opacity: 1; transform: none; }
.toast.error { background: var(--out); }

/* ---------- Catálogo ---------- */
.page-hero { background: var(--pink); padding-block: clamp(36px, 6vw, 64px); text-align: center; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.page-hero p { color: var(--ink); margin-top: 8px; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 16px; border-radius: 99px; border: 1px solid #d9d0dd; background: transparent; cursor: pointer; font-size: .9rem; text-decoration: none; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed=true], .chip[aria-current] { background: var(--pink-cta); color: var(--ink); border-color: var(--pink-cta); }
.toolbar-right { display: flex; gap: 8px; align-items: center; }
.toolbar-right input { width: 220px; }
.toolbar-right select { width: auto; }
.result-count { color: var(--ink-2); font-size: .9rem; margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.empty-state { text-align: center; padding: 64px 16px; color: var(--ink-2); }
.empty-state h2 { color: var(--ink); font-size: 1.8rem; margin-bottom: 8px; }
.empty-state .btn { margin-top: 20px; }
.skeleton .card-media { animation: pulse 1.4s ease-in-out infinite; }
.skeleton .card-body span { display: block; height: 12px; margin: 8px auto 0; width: 70%; border-radius: 6px; background: var(--pink-soft); }
@keyframes pulse { 50% { opacity: .55; } }

/* ---------- Producto ---------- */
.breadcrumb { font-size: .85rem; color: var(--ink-2); padding-top: 24px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); padding-block: 24px clamp(48px, 7vw, 88px); align-items: start; }
.gallery-main { aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--pink-soft); position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .card-ph { font-size: 3rem; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 2px; }
.thumbs button { flex: none; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; border: 0; padding: 0; cursor: pointer; opacity: .65; outline-offset: 2px; transition: opacity .2s; }
.thumbs button[aria-current=true] { opacity: 1; outline: 2px solid var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info { position: sticky; top: 100px; }
.product-info .cat { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; }
.product-info h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-top: 8px; }
.product-price { font-size: 1.4rem; margin-top: 12px; font-variant-numeric: tabular-nums; }
.product-price s { color: var(--ink-2); font-size: .75em; margin-left: 8px; }
.material { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 12px; border-radius: 99px; background: var(--pink-soft); font-size: .85rem; }
.material svg { width: 16px; height: 16px; color: var(--pink-deep); }
.options { margin-top: 26px; border: 0; padding: 0; }
.options legend { font-size: .88rem; font-weight: 500; margin-bottom: 10px; padding: 0; }
.options-list { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: block; padding: 9px 18px; border: 1px solid #d9d0dd; border-radius: 10px; cursor: pointer; font-size: .92rem; }
.opt input:checked + span { background: var(--pink-cta); color: var(--ink); border-color: var(--pink-cta); }
.opt input:focus-visible + span { outline: 2.5px solid var(--pink-deep); outline-offset: 2px; }
.opt input:disabled + span { color: #a9a2b4; text-decoration: line-through; cursor: not-allowed; border-style: dashed; }
.buy { display: flex; gap: 10px; margin-top: 26px; align-items: stretch; }
.buy .qty { margin: 0; }
.buy .qty button { width: 44px; height: 44px; }
.buy .btn { flex: 1; }
.stock-note { margin-top: 12px; font-size: .88rem; color: var(--ink-2); }
.stock-note.low { color: var(--pink-deep); font-weight: 500; }
.stock-note.out { color: var(--out); }
.ask-wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .9rem; color: var(--ink-2); }
.ask-wa svg { width: 18px; height: 18px; }
.description { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink); white-space: pre-line; max-width: 62ch; }
.perks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; font-size: .9rem; color: var(--ink-2); }
.perks li { display: flex; gap: 10px; align-items: center; }
.perks svg { color: var(--pink-deep); width: 18px; height: 18px; }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: start; padding-block: 32px 88px; }
.checkout h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 24px; }
.co-section { padding: 24px 0; border-top: 1px solid var(--line); }
.co-section h2 { font-family: var(--body); font-size: 1rem; font-weight: 600; margin-bottom: 14px; }
.field { margin-bottom: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radios { display: grid; gap: 8px; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio span { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid #d9d0dd; border-radius: 12px; cursor: pointer; font-size: .95rem; }
.radio span small { color: var(--ink-2); }
.radio input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--surface); }
.radio input:focus-visible + span { outline: 2.5px solid var(--pink-deep); outline-offset: 2px; }
.summary { position: sticky; top: 100px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.summary h2 { font-size: 1.5rem; margin-bottom: 10px; }
.summary .cart-item { grid-template-columns: 56px 1fr auto; }
.summary .cart-thumb { width: 56px; height: 56px; }
.coupon { display: flex; gap: 8px; margin-top: 16px; }
.coupon input { text-transform: uppercase; }
.coupon .btn { min-height: 46px; padding: 8px 16px; }
.totals { margin: 16px 0 0; display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; font-size: .95rem; }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.totals .grand { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 1.2rem; font-weight: 600; }
.totals .grand dt { color: var(--ink); }
.form-error { color: var(--out); font-size: .9rem; min-height: 1.4em; margin: 10px 0; }
.success { max-width: 620px; margin: 0 auto; padding-block: clamp(48px, 8vw, 96px); text-align: center; }
.success .check-big { width: 72px; height: 72px; border-radius: 50%; background: var(--pink); display: grid; place-items: center; margin: 0 auto 20px; color: var(--pink-deep); }
.success .check-big svg { width: 34px; height: 34px; stroke-width: 2; }
.success h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.success p { margin-top: 12px; color: var(--ink-2); }
.success .order-box { margin: 28px 0; padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: left; }
.success .btn { margin-top: 8px; }

/* ---------- Calendario de Adviento ---------- */
.adv-hero { background: var(--pink); overflow: hidden; }
.adv-hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 6vw, 72px); padding-block: clamp(40px, 7vw, 88px); }
.eyebrow { font-size: .82rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--bar-text); margin-bottom: 14px; }
.adv-copy h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); line-height: 1; }
.adv-copy .lede { margin-top: 16px; font-size: 1.08rem; color: var(--ink); max-width: 40ch; }
.adv-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-top: 26px; }
.adv-price > b { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 500; }
.adv-price span { font-size: .95rem; color: var(--bar-text); }
.adv-when {
  display: flex; width: fit-content; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 16px;
  border-radius: 99px; background: rgb(255 255 255 / .7); color: var(--ink); font-weight: 500; font-size: .95rem;
}
.adv-when svg, .adv-sum-when svg, .adv-ok-when svg { width: 18px; height: 18px; color: var(--pink-deep); }
.adv-sum-when { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; font-weight: 500; }
.success .adv-ok-when { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 6px 14px; border-radius: 99px; background: var(--pink-soft); color: var(--ink); font-weight: 500; }
.adv-stock { display: block; margin-top: 8px; font-size: .92rem; color: var(--bar-text); font-variant-numeric: tabular-nums; }
.adv-stock.low { color: var(--pink-deep); font-weight: 600; }
.adv-stock.out { color: var(--out); font-weight: 600; }
.adv-copy > .btn { margin-top: 28px; }
.adv-closed { margin-top: 28px; padding: 20px 22px; border-radius: 16px; background: rgb(255 255 255 / .6); max-width: 44ch; }
.adv-closed b { font-family: var(--display); font-size: 1.5rem; font-weight: 500; }
.adv-closed p { margin: 6px 0 14px; color: var(--ink); }

/* Las 24 puertitas */
.adv-art { justify-self: center; width: min(100%, 520px); }
.adv-doors {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 18px; border-radius: 24px;
  background: var(--surface); box-shadow: 0 40px 80px -40px rgb(168 50 127 / .5); perspective: 900px;
  grid-auto-flow: dense;
}
/* 6 × 5 casillas: el 24 ocupa 2×2 y tres puertas son dobles, así no quedan huecos. */
.adv-door { position: relative; aspect-ratio: 1; border-radius: 10px; background: #f6e3ab; }
.adv-door.big { grid-column: span 2; grid-row: span 2; }
.adv-door.wide { grid-column: span 2; aspect-ratio: auto; }
.adv-flap { z-index: 1; }
.adv-gem { position: absolute; inset: 0; margin: auto; width: 34%; height: 34%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8dc, #d9a93a 70%); box-shadow: 0 0 0 3px rgb(255 255 255 / .55); }
.adv-flap {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 10px;
  font-family: var(--display); font-size: clamp(.95rem, 2.2vw, 1.25rem); color: var(--ink);
  background: var(--pink-soft); border: 1px solid #f2cfe7;
  transform-origin: left center; transition: transform .6s var(--ease); backface-visibility: hidden;
}
.adv-door:nth-child(3n) .adv-flap { background: var(--pink); }
.adv-door:nth-child(4n+1) .adv-flap { background: #fff; }
.adv-door.big .adv-flap { font-size: clamp(2rem, 5vw, 3rem); font-style: italic; color: var(--pink-deep); background: var(--pink-btn); }
@media (hover: hover) and (pointer: fine) {
  .adv-door:hover .adv-flap { transform: rotateY(-62deg); }
}
.js .adv-door .adv-flap { animation: adv-peek 1.1s var(--ease) both; animation-delay: calc(var(--d) * 45ms + 300ms); }
@keyframes adv-peek { 0% { transform: rotateY(-40deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .adv-flap, .js .adv-door .adv-flap { animation: none; transition: none; }
  .adv-door:hover .adv-flap { transform: none; }
}
.adv-cover {
  width: min(100%, 440px); margin-inline: auto; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 24px; background: var(--pink-soft); box-shadow: 0 40px 80px -36px rgb(120 30 80 / .55);
}

.adv-story { display: grid; gap: clamp(28px, 6vw, 72px); align-items: center; max-width: 720px; }
.adv-story.has-photo { grid-template-columns: 1fr 1fr; max-width: none; }
.adv-story-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; background: var(--pink-soft); }
.adv-info h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
.adv-desc { margin-top: 16px; color: var(--ink); white-space: pre-line; max-width: 54ch; font-size: 1.04rem; }
.adv-info h3 { font-family: var(--body); font-size: 1rem; font-weight: 600; margin: 28px 0 12px; }
.adv-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.adv-list li { display: flex; gap: 10px; align-items: flex-start; }
.adv-list svg { color: var(--pink-deep); width: 18px; height: 18px; margin-top: 4px; }
.adv-steps { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: paso; }
.adv-steps li { counter-increment: paso; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.adv-steps li::before { content: counter(paso); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); color: var(--pink-deep); font-family: var(--display); font-size: 1.3rem; }
.adv-steps b { font-weight: 600; }
.adv-steps span { color: var(--ink-2); font-size: .94rem; }

.adv-form-sec { background: var(--pink-soft); scroll-margin-top: 70px; }
.adv-form-title { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: 20px; }
.adv-form-sec .co-section h3 { font-family: var(--body); font-size: 1rem; font-weight: 600; margin-bottom: 14px; }
.adv-form-sec .co-section { border-color: #f2d6ea; }
.adv-form-sec input, .adv-form-sec textarea { background: var(--surface); }
.adv-qty { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.adv-qty .qty { margin: 0; background: var(--surface); }
.adv-qty .qty button { width: 46px; height: 46px; }
.adv-qty output { min-width: 34px; text-align: center; font-weight: 600; font-size: 1.1rem; }
.adv-sum-head { display: flex; gap: 14px; align-items: center; padding: 6px 0 4px; }
.adv-sum-head div { display: grid; }
.adv-mini { flex: none; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--pink-soft); color: var(--pink-deep); }
.adv-mini img { width: 100%; height: 100%; object-fit: cover; }
.adv-mini svg { width: 26px; height: 26px; }
.totals .adv-abono { margin-top: 6px; padding: 10px 12px; border-radius: 10px; background: var(--pink-soft); font-size: .95rem; }
.totals .adv-abono dt { color: var(--ink); font-weight: 500; }
.totals .adv-abono dd { font-weight: 600; color: var(--pink-deep); }
.totals .adv-resta { padding: 2px 12px; font-size: .9rem; }
.totals .adv-resta dd { font-weight: 500; }
.adv-ok-title { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.adv-pay { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.adv-pay h3 { font-family: var(--body); font-size: .95rem; font-weight: 600; margin-bottom: 6px; }
.adv-pay p { margin: 0; color: var(--ink); }
.adv-pay-text { white-space: pre-line; }
#adv-ok:focus { outline: none; }

@media (max-width: 960px) {
  .adv-hero-grid, .adv-story.has-photo, .adv-steps { grid-template-columns: 1fr; }
  .adv-cover { width: min(100%, 360px); }
  .adv-copy { text-align: center; }
  .adv-copy .lede, .adv-closed, .adv-when { margin-inline: auto; }
  .adv-price { justify-content: center; }
}
@media (max-width: 600px) {
  .adv-doors { gap: 6px; padding: 12px; border-radius: 18px; }
  .adv-flap, .adv-door { border-radius: 8px; }
}

/* ---------- Pago con Yappy ---------- */
.yappy-titulo { font-family: var(--body); font-size: .95rem; font-weight: 600; margin: 18px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.yappy-box { display: grid; gap: 10px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: left; }
.yappy-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.yappy-head b { font-size: 1.25rem; }
.yappy-box .field { margin: 0; }
.yappy-btn-wrap { min-height: 46px; display: flex; justify-content: center; }
.yappy-estado { font-size: .9rem; min-height: 1.3em; margin: 0; text-align: center; }
.yappy-estado.error { color: var(--out); }
.yappy-nota { font-size: .82rem; text-align: center; margin: 0; }
.yappy-ok { text-align: center; background: #eaf6ef; border-color: #cfe9da; }
.yappy-ok b { color: var(--ok); font-size: 1.1rem; }
.pagar { max-width: 520px; }
.pagar h1 { font-size: clamp(2rem, 5vw, 2.8rem); }

/* ---------- Títulos grandes: suben suavemente y pasan de borroso a nítido ----------
   Mismo listado que TITULOS en core.js. Llegan un instante después de su sección. */
.js :is(.hero h1, .page-hero h1, .adv-copy h1, .section-head h2, .feature h2, .quote h2,
        .newsletter h2, .adv-story h2, .adv-form-title, .product-info h1, .checkout h1,
        .success h1, .adv-ok-title, .empty-state h2, .adv-closed b) {
  opacity: 0; transform: translateY(14px); filter: blur(6px);
  transition: opacity 1.1s var(--ease) .12s, transform 1.1s var(--ease) .12s, filter 1.1s var(--ease) .12s;
}
.js :is(.hero h1, .page-hero h1, .adv-copy h1, .section-head h2, .feature h2, .quote h2,
        .newsletter h2, .adv-story h2, .adv-form-title, .product-info h1, .checkout h1,
        .success h1, .adv-ok-title, .empty-state h2, .adv-closed b).titulo-in {
  opacity: 1; transform: none; filter: none;
}
@media (prefers-reduced-motion: reduce) {
  .js :is(.hero h1, .page-hero h1, .adv-copy h1, .section-head h2, .feature h2, .quote h2,
          .newsletter h2, .adv-story h2, .adv-form-title, .product-info h1, .checkout h1,
          .success h1, .adv-ok-title, .empty-state h2, .adv-closed b) {
    transform: none; filter: none; transition: opacity .4s ease;
  }
}

/* ---------- Movimiento ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn { display: grid; justify-self: start; }
  .header-row { height: 64px; }
  .menu { top: 64px; }
  .logo { font-size: 1.8rem; }
  .logo img { height: 32px; }
  .hero-grid, .feature, .product, .checkout { grid-template-columns: 1fr; }
  .hero-grid { min-height: 0; text-align: center; }
  .hero p.lede { margin-inline: auto; }
  .hero .ctas { justify-content: center; }
  .hero-art { max-width: 460px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .product-info, .summary { position: static; }
  .summary { order: -1; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .promise { grid-template-columns: 1fr; }
  .news-row { flex-direction: column; }
  .row2 { grid-template-columns: 1fr; }
  .toolbar-right { width: 100%; }
  .toolbar-right input { flex: 1; width: auto; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
  .card-body h3 { font-size: .9rem; }
}
