/* ---------------------------------------------------------------
   Mi Belleza Western Boutique -- sistema visual
   Ratios WCAG medidos y verificados, ninguno por debajo de AA:
   tinta/crema 12.62 · cafe/crema 6.95 · cafe/rosa-claro 5.67
   rosa-texto/crema 5.52 · tinta/rosa 7.25 · crema/cafe 6.95
   Regla que no se rompe: el rosa y el dorado nunca son color de
   texto sobre fondo claro (1.74 y 1.94). Son fondo y adorno.
--------------------------------------------------------------- */
:root {
  /* Paleta de Mi Belleza Western Boutique. Ratios medidos:
     tinta/crema 12.62 · cafe/crema 6.95 · rosa-texto/crema 5.52
     tinta/rosa 7.25 (el CTA rosa lleva texto tinta, nunca blanco)
     El rosa y el dorado NUNCA son color de texto sobre fondo claro:
     dan 1.7 y 1.9, que es ilegible. Van de fondo, borde y adorno. */
  --crema: #fff4e6;
  --crema-hondo: #fdebd9;
  --rosa-suave: #fdf0f4;
  --rosa-palido: #fdf0f4;
  --rosa-claro: #fad6e1;
  --rosa: #f5a6c1;
  --rosa-medio: #f5a6c1;
  --rosa-hondo: #e0739b;
  --rosa-texto: #c1174e;
  --cafe: #6b4e3d;
  --cafe-hondo: #4a3527;
  --tinta: #3a2a20;
  --dorado: #d4af37;
  --linea: #ebd9c9;
  --leopardo: #c8a06a;

  --display: "Playfair Display", ui-serif, Georgia, serif;
  --script: "Great Vibes", "Playfair Display", cursive;
  --western: "Rye", "Playfair Display", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 6rem;
}

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

/* display de las clases propias pisa el atributo hidden si no se fuerza */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

::selection { background: var(--rosa-claro); color: var(--tinta); }

:focus-visible { outline: 2px solid var(--cafe); outline-offset: 3px; border-radius: 2px; }

.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;
}
.skip-link:focus {
  position: fixed; top: 1rem; left: 1rem; z-index: 100; width: auto; height: auto;
  clip: auto; background: var(--tinta); color: var(--crema); padding: 0.6rem 1rem;
}

/* --- estructura --- */
.container { width: 100%; margin-inline: auto; padding-inline: 1.25rem; max-width: 90rem; }
@media (min-width: 768px) { .container { padding-inline: 2.5rem; } }
@media (min-width: 1280px) { .container { padding-inline: 3.5rem; } }

.eyebrow {
  font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 500; margin: 0;
}

/* --- botones --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.75rem; font-size: 0.75rem; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 500; border: 1px solid transparent;
  transition: background-color 200ms var(--soft), color 200ms var(--soft), border-color 200ms var(--soft);
  text-align: center;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--rosa); color: var(--tinta); }        /* 5.16 : AA */
.btn-primary:hover { background: var(--cafe); color: var(--crema); }
.btn-dark { background: var(--tinta); color: var(--crema); }
.btn-dark:hover { background: var(--cafe); }
.btn-outline { border-color: var(--cafe); color: var(--cafe); }
.btn-outline:hover { background: var(--cafe); color: var(--crema); }
.btn-ghost-light { border-color: rgba(255, 244, 230, 0.45); color: var(--crema); }
.btn-ghost-light:hover { background: var(--crema); color: var(--tinta); }
.btn-block { width: 100%; }

/* --- formularios --- */
.field {
  width: 100%; background: transparent; border: 1px solid var(--linea);
  padding: 0.85rem 1rem; font-size: 0.9375rem; transition: border-color 180ms var(--soft);
}
.field:focus { border-color: var(--cafe); outline: none; }
.field::placeholder { color: #8a7c6c; }
.field-error { border-color: var(--rosa-texto); }
.label { display: block; margin-bottom: 0.5rem; color: rgba(107, 78, 61, 0.6); }
.error-text { color: var(--rosa-texto); font-size: 0.8125rem; margin-top: 0.4rem; }

/* --- enlaces con subrayado animado --- */
.link {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size 260ms var(--soft);
}
.link:hover { background-size: 100% 1px; }

/* --- barra de aviso y cabecera --- */
.announce { background: var(--tinta); color: var(--crema); }
.announce p { padding: 0.65rem 0; text-align: center; }

.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 244, 230, 0.95); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--linea);
  transition: box-shadow 300ms var(--soft);
}
.header.is-scrolled { border-bottom-color: transparent; box-shadow: 0 1px 0 0 rgba(107, 78, 61, 0.1); }
.header-grid {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 1rem; height: 4rem;
}
@media (min-width: 768px) { .header-grid { height: 5rem; } }
@media (min-width: 1024px) {
  .header-grid { height: var(--header-h); grid-template-columns: auto 1fr auto; }
}
.header-left { display: flex; align-items: center; justify-content: flex-start; }
.header-center { display: flex; align-items: center; justify-content: center; }
.header-right { display: flex; align-items: center; justify-content: flex-end; gap: 0.125rem; }
@media (min-width: 768px) { .header-right { gap: 0.25rem; } }

.logo-wordmark { height: 1.75rem; width: auto; }
@media (min-width: 768px) { .logo-wordmark { height: 2.25rem; } }
.logo-desktop { display: none; }
@media (min-width: 1024px) {
  .logo-desktop { display: flex; }
  .logo-desktop .logo-wordmark { height: 2.25rem; }
  .logo-mobile { display: none; }
}
@media (min-width: 1280px) { .logo-desktop .logo-wordmark { height: 2.5rem; } }

.nav-main { display: none; }
@media (min-width: 1024px) { .nav-main { display: block; } }
.nav-main ul { display: flex; align-items: center; gap: 1.25rem; }
@media (min-width: 1280px) { .nav-main ul { gap: 1.75rem; } }
.nav-main a { color: var(--cafe); padding: 0.5rem 0; white-space: nowrap; transition: color 200ms var(--soft); }
.nav-main a:hover, .nav-main a[aria-current="page"] { color: var(--tinta); }
.nav-main a.is-sale { color: var(--rosa-texto); }

.icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; color: var(--cafe);
  transition: color 200ms var(--soft); position: relative;
}
.icon-btn:hover { color: var(--tinta); }
.icon-btn svg { width: 1.25rem; height: 1.25rem; }
.only-mobile { display: flex; }
@media (min-width: 1024px) { .only-mobile { display: none; } }
.from-md { display: none; }
@media (min-width: 768px) { .from-md { display: flex; } }

.cart-count {
  position: absolute; top: 0.4rem; right: 0.25rem; min-width: 1rem; height: 1rem;
  padding: 0 0.25rem; border-radius: 999px; background: var(--rosa); color: var(--tinta);
  font-size: 10px; font-weight: 500; display: flex; align-items: center; justify-content: center;
}

.lang { display: none; align-items: center; gap: 0.4rem; margin-right: 0.5rem; }
@media (min-width: 768px) { .lang { display: flex; } }
.lang a { color: rgba(107, 78, 61, 0.55); transition: color 200ms var(--soft); }
.lang a:hover { color: var(--cafe); }
.lang a.is-active { color: var(--tinta); }
.lang span { color: var(--linea); }

/* --- paneles deslizantes: menu, buscador, carrito, filtros --- */
.overlay { position: fixed; inset: 0; z-index: 50; visibility: hidden; }
.overlay.is-open { visibility: visible; }
.overlay-bg {
  position: absolute; inset: 0; background: rgba(58, 42, 32, 0.3);
  opacity: 0; transition: opacity 300ms var(--soft);
}
.overlay.is-open .overlay-bg { opacity: 1; }
.panel {
  position: absolute; background: var(--crema); display: flex; flex-direction: column;
  transition: transform 300ms var(--soft);
}
.panel-left { inset-block: 0; left: 0; width: 86%; max-width: 24rem; transform: translateX(-100%); }
.panel-right { inset-block: 0; right: 0; width: 100%; max-width: 28rem; transform: translateX(100%);
  box-shadow: 0 0 60px rgba(58, 42, 32, 0.1); }
.panel-top { inset-inline: 0; top: 0; max-height: 88vh; overflow-y: auto; transform: translateY(-100%); }
.overlay.is-open .panel { transform: none; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--linea); flex-shrink: 0;
}
.panel-body { flex: 1; overflow-y: auto; padding: 0 1.25rem; }
.panel-foot { border-top: 1px solid var(--linea); padding: 1.25rem; flex-shrink: 0; }

.menu-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; border-bottom: 1px solid rgba(235, 217, 201, 0.7);
  font-family: var(--display); font-size: 1.5rem;
}
.menu-list a.is-sale { color: var(--rosa-texto); }
.menu-secondary { margin-top: 1.5rem; padding-bottom: 1.5rem; }
.menu-secondary li { margin-bottom: 0.75rem; }
.menu-secondary a { color: var(--cafe); }

/* --- hero --- */
.hero { position: relative; height: 82svh; min-height: 560px; overflow: hidden; background: var(--cafe); }
@media (min-width: 768px) { .hero { height: 88svh; } }
.hero-scene {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 900ms var(--soft);
}
.hero-scene.is-active { opacity: 1; }
.hero-scene video, .hero-scene img { width: 100%; height: 100%; object-fit: cover; }
.hero-veil { position: absolute; inset: 0; background: rgba(58, 42, 32, 0.35); }
.hero-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(58, 42, 32,0.75), rgba(58, 42, 32,0.25) 55%, rgba(58, 42, 32,0.1));
}
@media (min-width: 768px) {
  .hero-grad { background: linear-gradient(to right, rgba(58, 42, 32,0.75), rgba(58, 42, 32,0.35) 45%, transparent); }
}
.hero-inner {
  position: relative; height: 100%; display: flex; flex-direction: column;
  justify-content: flex-end; padding-bottom: 3.5rem;
}
@media (min-width: 768px) { .hero-inner { justify-content: center; padding-bottom: 0; } }
.hero-copy { max-width: 36rem; animation: fadeUp 600ms var(--soft) both; }
.hero-copy .eyebrow { color: rgba(255, 244, 230, 0.85); }
.hero h1 {
  margin-top: 1rem; font-size: clamp(2.5rem, 7vw, 4.75rem); line-height: 1.03; color: var(--crema);
}
.hero-sub {
  margin-top: 1.25rem; max-width: 28rem; color: rgba(255, 244, 230, 0.9);
  font-size: 0.975rem; line-height: 1.6;
}
@media (min-width: 768px) { .hero-sub { font-size: 1.125rem; } }
.hero-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-scenes {
  position: absolute; bottom: 1.5rem; right: 1.25rem; display: none; align-items: center; gap: 1rem;
}
@media (min-width: 768px) { .hero-scenes { display: flex; } }
@media (min-width: 1024px) { .hero-scenes { right: 3.5rem; } }
.hero-scenes button { display: flex; align-items: center; gap: 0.5rem; }
.hero-scenes .bar { height: 1px; width: 1.25rem; background: rgba(255, 244, 230,0.45); transition: all 500ms var(--soft); }
.hero-scenes .eyebrow { color: rgba(255, 244, 230, 0.55); transition: color 300ms var(--soft); }
.hero-scenes button.is-active .bar { width: 2.5rem; background: var(--crema); }
.hero-scenes button.is-active .eyebrow { color: var(--crema); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp 600ms var(--soft) both; }

/* --- secciones --- */
.section { padding-block: 4rem; }
@media (min-width: 768px) { .section { padding-block: 6rem; } }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.section-head .eyebrow { color: rgba(107, 78, 61, 0.6); }
.section-head h2, .section-title {
  margin-top: 0.625rem; font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.15;
}
.section-head-center { text-align: center; }
.section-head-center h2 { margin-top: 0.75rem; }
.section-link { display: none; }
@media (min-width: 768px) {
  .section-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--cafe); padding-bottom: 0.35rem; }
}

/* --- rejilla de categorias --- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-top: 2.5rem; }
@media (min-width: 768px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3.5rem; }
}
@media (min-width: 1024px) { .cat-grid { grid-template-rows: repeat(2, 1fr); } }
.cat-card { position: relative; overflow: hidden; background: var(--crema-hondo); aspect-ratio: 3 / 4; }
.cat-card:first-child { grid-column: span 2; aspect-ratio: 4 / 5; }
@media (min-width: 768px) {
  .cat-card { aspect-ratio: 4 / 5; }
  .cat-card:first-child { grid-row: span 2; aspect-ratio: auto; min-height: 34rem; }
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--soft); }
.cat-card:hover img { transform: scale(1.04); }
.cat-card .shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(58, 42, 32,0.7), rgba(58, 42, 32,0.1) 55%, transparent);
}
.cat-card .cat-copy { position: absolute; inset-inline: 0; bottom: 0; padding: 1rem; }
@media (min-width: 768px) { .cat-card .cat-copy { padding: 1.5rem; } }
.cat-card h3 { font-size: 1.5rem; color: var(--crema); }
@media (min-width: 768px) { .cat-card h3 { font-size: 1.75rem; } }
.cat-card p { margin-top: 0.35rem; font-size: 0.875rem; color: rgba(255, 244, 230,0.85); max-width: 28ch; }
.cat-card .cat-cta { margin-top: 0.75rem; display: inline-flex; align-items: center; gap: 0.4rem; color: rgba(255, 244, 230,0.9); }
.cat-card .cat-cta i { display: block; height: 1px; width: 1.25rem; background: rgba(255, 244, 230,0.7); transition: width 300ms var(--soft); }
.cat-card:hover .cat-cta i { width: 2.25rem; }

/* --- rejilla y tarjeta de producto --- */
.grid-products {
  display: grid; grid-template-columns: repeat(2, 1fr);
  column-gap: 0.75rem; row-gap: 2rem; margin-top: 2.25rem;
}
@media (min-width: 768px) {
  .grid-products { grid-template-columns: repeat(3, 1fr); column-gap: 1.25rem; row-gap: 3rem; margin-top: 3rem; }
}
@media (min-width: 1024px) { .grid-products.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.card { position: relative; }
.card-media { position: relative; overflow: hidden; background: var(--crema-hondo); aspect-ratio: 3 / 4; }
.card-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms var(--soft), opacity 600ms var(--soft);
}
.card-media .img-hover { opacity: 0; }
.card:hover .card-media .img-main { transform: scale(1.03); opacity: 0; }
.card:hover .card-media .img-hover { transform: scale(1.03); opacity: 1; }
.card-badges { position: absolute; top: 0.75rem; left: 0.75rem; display: flex; flex-direction: column; gap: 0.375rem; pointer-events: none; }
.badge { padding: 0.25rem 0.625rem; }
.badge-sale { background: var(--tinta); color: var(--crema); }
.badge-new { background: rgba(255, 244, 230, 0.95); color: var(--tinta); }
.badge-out { background: rgba(255, 244, 230, 0.95); color: var(--cafe); }
.card-wish {
  position: absolute; top: 0.625rem; right: 0.625rem; width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center; color: var(--cafe);
}
.card-wish svg { width: 18px; height: 18px; filter: drop-shadow(0 1px 2px rgba(255, 244, 230,0.9)); }
.card-wish.is-on svg { fill: currentColor; }
.card-add { position: absolute; inset-inline: 0.625rem; bottom: 0.625rem; }
.card-add form { display: block; }
.card-add .btn-quick {
  width: 100%; background: rgba(255, 244, 230, 0.95); color: var(--tinta);
  padding: 0.625rem; display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  opacity: 0; transition: opacity 200ms var(--soft);
}
.card:hover .btn-quick, .btn-quick:focus-visible { opacity: 1; }
@media (max-width: 767px) { .card-add .btn-quick { opacity: 1; } }
.card-sizes {
  display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.5rem;
  background: rgba(255, 244, 230, 0.97); box-shadow: 0 2px 12px rgba(58, 42, 32,0.08);
}
.card-sizes button {
  min-width: 2.25rem; border: 1px solid var(--linea); padding: 0.35rem 0.5rem;
  font-size: 0.75rem; color: var(--cafe); transition: border-color 200ms var(--soft), color 200ms var(--soft);
}
.card-sizes button:hover { border-color: var(--tinta); color: var(--tinta); }
.card-info { padding-top: 0.75rem; }
.card-info .name { font-size: 0.875rem; line-height: 1.35; }
.card-prices { margin-top: 0.25rem; display: flex; align-items: baseline; gap: 0.5rem; }
.price { font-size: 0.875rem; color: var(--cafe); }
.price.is-sale { color: var(--rosa-texto); }
.price-was { font-size: 0.75rem; color: rgba(107, 78, 61,0.55); text-decoration: line-through; }
.card-colors { margin-top: 0.5rem; display: flex; gap: 0.375rem; }
.dot { width: 0.625rem; height: 0.625rem; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(58, 42, 32,0.15); }

/* --- coleccion --- */
.breadcrumb { font-size: 0.75rem; color: rgba(107, 78, 61,0.7); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.breadcrumb .sep { color: rgba(107, 78, 61,0.35); }
.collection-head { margin-top: 1.5rem; }
.collection-head h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.1; }
.collection-count { margin-top: 0.5rem; font-size: 0.875rem; color: rgba(107, 78, 61,0.7); }
.tool-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 0.75rem; border-block: 1px solid var(--linea); margin-top: 2rem;
}
.tool-bar .count { display: none; color: rgba(107, 78, 61,0.6); }
@media (min-width: 1024px) { .tool-bar .count { display: block; } .tool-bar .filters-btn { display: none; } }
.filters-btn { display: flex; align-items: center; gap: 0.5rem; color: var(--cafe); }
.select {
  border: 1px solid var(--linea); background: transparent; padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-size: 0.75rem; color: var(--cafe); transition: border-color 200ms var(--soft);
}
.select:hover, .select:focus { border-color: var(--cafe); outline: none; }
.collection-body { margin-top: 2rem; }
@media (min-width: 1024px) {
  .collection-body { display: grid; grid-template-columns: 14rem 1fr; gap: 3rem; }
  .filters-aside { position: sticky; top: calc(var(--header-h) + 1rem); align-self: start; }
}
.filters-aside { display: none; }
@media (min-width: 1024px) { .filters-aside { display: block; } }
.filter-group { margin-bottom: 2rem; }
.filter-group legend, .filter-group .legend { color: rgba(107, 78, 61,0.6); margin-bottom: 0.75rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.chip {
  min-width: 2.75rem; border: 1px solid var(--linea); padding: 0.5rem 0.75rem;
  font-size: 0.75rem; color: var(--cafe); transition: all 200ms var(--soft); display: inline-block;
}
.chip:hover { border-color: var(--cafe); }
.chip.is-on { background: var(--tinta); border-color: var(--tinta); color: var(--crema); }
.filter-row { display: flex; align-items: center; gap: 0.625rem; padding-block: 0.25rem; color: var(--cafe); font-size: 0.875rem; }
.filter-row:hover { color: var(--tinta); }
.swatch { width: 1.25rem; height: 1.25rem; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(58, 42, 32,0.2); flex-shrink: 0; }
.filter-row.is-on .swatch { box-shadow: inset 0 0 0 2px var(--tinta); }
.box { width: 1rem; height: 1rem; border: 1px solid var(--linea); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.filter-row.is-on .box { background: var(--tinta); border-color: var(--tinta); color: var(--crema); }
.filter-row.is-on { color: var(--tinta); }
.clear-all { color: var(--rosa-texto); }

.empty-state { border: 1px solid var(--linea); padding: 5rem 1.5rem; text-align: center; }
.empty-state h2, .empty-state p.title { font-family: var(--display); font-size: 1.5rem; }
.empty-state p { margin-top: 0.75rem; font-size: 0.875rem; color: rgba(107, 78, 61,0.75); }

/* --- ficha de producto --- */
.product-layout { margin-top: 1.5rem; }
@media (min-width: 1024px) {
  .product-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 4rem; margin-top: 2.5rem; }
}
.gallery { display: flex; flex-direction: column-reverse; gap: 0.75rem; }
@media (min-width: 768px) { .gallery { flex-direction: row; gap: 1rem; } }
.thumbs { display: flex; gap: 0.5rem; overflow-x: auto; }
@media (min-width: 768px) { .thumbs { flex-direction: column; width: 5rem; overflow: visible; } }
.thumb { position: relative; width: 4rem; aspect-ratio: 3/4; background: var(--crema-hondo); opacity: 0.7; flex-shrink: 0; }
@media (min-width: 768px) { .thumb { width: 100%; } }
.thumb.is-on { opacity: 1; box-shadow: inset 0 0 0 1px var(--cafe); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main { flex: 1; position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--crema-hondo); cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--soft); }
.product-info { margin-top: 2rem; }
@media (min-width: 1024px) { .product-info { margin-top: 0; position: sticky; top: calc(var(--header-h) + 1rem); align-self: start; } }
.product-info h1 { margin-top: 0.75rem; font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.15; }
.product-price { margin-top: 1rem; display: flex; align-items: center; gap: 0.75rem; }
.product-price .now { font-size: 1.125rem; }
.product-price .now.is-sale { color: var(--rosa-texto); }
.rating { margin-top: 0.75rem; display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: rgba(107, 78, 61,0.7); }
.rating .stars { display: flex; color: var(--rosa-texto); }
.rating svg { width: 0.875rem; height: 0.875rem; }
.option-group { margin-top: 1.75rem; }
.option-head { display: flex; align-items: baseline; justify-content: space-between; }
.colors { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.color-opt { width: 2rem; height: 2rem; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(58, 42, 32,0.2); display: block; }
.color-opt.is-on { box-shadow: inset 0 0 0 2px var(--tinta), 0 0 0 2px var(--crema), 0 0 0 4px var(--tinta); }
.sizes { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.375rem; }
.size-opt {
  min-width: 3rem; border: 1px solid var(--linea); padding: 0.625rem 0.875rem;
  font-size: 0.875rem; color: var(--cafe); transition: all 200ms var(--soft);
}
.size-opt:hover { border-color: var(--cafe); color: var(--tinta); }
.size-opt.is-on { background: var(--tinta); border-color: var(--tinta); color: var(--crema); }
.size-opt.is-out { color: rgba(107, 78, 61,0.35); text-decoration: line-through; cursor: not-allowed; }
.buy-row { margin-top: 1.75rem; display: flex; align-items: stretch; gap: 0.625rem; }
.qty { display: flex; align-items: center; border: 1px solid var(--linea); }
.qty button { width: 2.75rem; height: 3rem; display: flex; align-items: center; justify-content: center; color: var(--cafe); }
.qty button:disabled { opacity: 0.35; }
.qty span { width: 2rem; text-align: center; font-size: 0.875rem; }
.buy-row .btn { flex: 1; }
.wish-btn { width: 3rem; height: 3rem; border: 1px solid var(--linea); display: flex; align-items: center; justify-content: center; color: var(--cafe); flex-shrink: 0; }
.wish-btn:hover { border-color: var(--cafe); color: var(--tinta); }
.wish-btn.is-on svg { fill: currentColor; }
.ship-note { margin-top: 1.25rem; font-size: 0.75rem; line-height: 1.6; color: rgba(107, 78, 61,0.75); }
.accordions { margin-top: 2.25rem; }
details { border-bottom: 1px solid var(--linea); }
details summary {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1rem; cursor: pointer; list-style: none; color: var(--cafe);
}
details summary::-webkit-details-marker { display: none; }
details summary svg { width: 1rem; height: 1rem; transition: transform 300ms var(--soft); flex-shrink: 0; }
details[open] summary svg { transform: rotate(45deg); }
details .content { padding-bottom: 1.25rem; font-size: 0.875rem; line-height: 1.7; color: rgba(107, 78, 61,0.85); }

.sticky-buy {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 30;
  background: rgba(255, 244, 230,0.97); backdrop-filter: blur(6px);
  border-top: 1px solid var(--linea); padding: 0.75rem 1rem;
  transform: translateY(100%); transition: transform 300ms var(--soft);
}
.sticky-buy.is-visible { transform: none; }
@media (min-width: 768px) { .sticky-buy { display: none; } }
.sticky-buy .row { display: flex; align-items: center; gap: 0.75rem; }
.sticky-buy .info { flex: 1; min-width: 0; }
.sticky-buy .info p:first-child { font-size: 0.75rem; color: var(--cafe); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- carrito --- */
.cart-line { display: flex; gap: 1rem; padding-block: 1.25rem; border-bottom: 1px solid var(--linea); }
.cart-line:last-child { border-bottom: none; }
.cart-thumb { width: 5rem; aspect-ratio: 3/4; background: var(--crema-hondo); flex-shrink: 0; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .body { flex: 1; display: flex; flex-direction: column; }
.cart-line .top { display: flex; justify-content: space-between; gap: 0.75rem; }
.cart-line .variant { margin-top: 0.25rem; font-size: 0.75rem; color: rgba(107, 78, 61,0.7); }
.cart-line .actions { margin-top: auto; padding-top: 0.75rem; display: flex; align-items: center; justify-content: space-between; }
.qty-sm button { width: 2rem; height: 2rem; }
.qty-sm span { width: 2rem; }
.ship-bar { padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--linea); }
.ship-bar .track { margin-top: 0.5rem; height: 3px; background: var(--linea); }
.ship-bar .fill { height: 100%; background: var(--rosa); transition: width 500ms var(--soft); }
.totals { font-size: 0.875rem; }
.totals div { display: flex; justify-content: space-between; padding-block: 0.2rem; }
.totals .discount { color: var(--rosa-texto); }
.totals .grand { border-top: 1px solid var(--linea); margin-top: 0.5rem; padding-top: 0.75rem; }
.totals .grand dt, .totals .grand dd { font-family: var(--display); font-size: 1.125rem; }
.coupon-row { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.coupon-row .field { padding-block: 0.625rem; text-transform: uppercase; }
.coupon-applied {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  border: 1px solid rgba(245, 166, 193,0.4); background: rgba(253, 240, 244,0.4);
  padding: 0.5rem 0.75rem; margin-bottom: 1rem; font-size: 0.75rem; color: var(--cafe);
}

/* --- banner editorial, marca, instagram, boletin, pie --- */
.editorial { position: relative; height: 70svh; min-height: 440px; overflow: hidden; margin-top: 1rem; }
@media (min-width: 768px) { .editorial { height: 78svh; } }
.editorial img { width: 100%; height: 100%; object-fit: cover; }
.editorial .veil { position: absolute; inset: 0; background: rgba(58, 42, 32,0.3); }
.editorial .grad {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(58, 42, 32,0.7), transparent 60%);
}
@media (min-width: 768px) {
  .editorial .grad { background: linear-gradient(to left, rgba(58, 42, 32,0.7), rgba(58, 42, 32,0.2) 45%, transparent); }
}
.editorial-inner { position: absolute; inset: 0; display: flex; align-items: flex-end; padding-bottom: 3rem; }
@media (min-width: 768px) { .editorial-inner { align-items: center; justify-content: flex-end; padding-bottom: 0; } }
.editorial-copy { max-width: 28rem; }
@media (min-width: 768px) { .editorial-copy { text-align: right; } }
.editorial-copy .eyebrow { color: rgba(255, 244, 230,0.85); }
.editorial-copy h2 { margin-top: 0.75rem; font-size: clamp(2.25rem, 5.5vw, 3.75rem); line-height: 1.05; color: var(--crema); }
.editorial-copy p { margin-top: 1rem; color: rgba(255, 244, 230,0.88); font-size: 0.975rem; line-height: 1.6; }
@media (min-width: 768px) { .editorial-copy p { margin-left: auto; max-width: 24rem; } }

.brand-note { background: rgba(253, 240, 244,0.5); text-align: center; }
.brand-note .inner { padding-block: 5rem; }
@media (min-width: 768px) { .brand-note .inner { padding-block: 7rem; } }
.brand-note .rule { display: block; width: 3rem; height: 1px; background: var(--rosa); margin: 0 auto; }
.brand-note blockquote {
  margin: 2rem auto 0; max-width: 48rem; font-family: var(--display); font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem); line-height: 1.25; color: var(--cafe);
}
.brand-note .sub { margin: 1.5rem auto 0; max-width: 32rem; font-size: 0.875rem; line-height: 1.7; color: rgba(107, 78, 61,0.8); }

.ig-grid { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
@media (min-width: 768px) { .ig-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; } }
@media (min-width: 1024px) { .ig-grid { grid-template-columns: repeat(6, 1fr); } }
.ig-item { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--crema-hondo); }
.ig-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--soft); }
.ig-item:hover img { transform: scale(1.04); }
.ig-item .hoverfx {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(58, 42, 32,0); opacity: 0; transition: all 300ms var(--soft); color: var(--crema);
}
.ig-item:hover .hoverfx { background: rgba(58, 42, 32,0.25); opacity: 1; }
.ig-head { text-align: center; }
.ig-head a { margin-top: 0.75rem; display: inline-flex; align-items: center; gap: 0.625rem; font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.25rem); }
.ig-head svg { width: 1.5rem; height: 1.5rem; color: var(--rosa-texto); }

.newsletter { background: var(--cafe); color: var(--crema); }
.newsletter .inner { padding-block: 4rem; max-width: 36rem; margin-inline: auto; text-align: center; }
@media (min-width: 768px) { .newsletter .inner { padding-block: 6rem; } }
.newsletter h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.15; color: var(--crema); }
.newsletter p { margin-top: 1rem; font-size: 0.875rem; line-height: 1.7; color: rgba(255, 244, 230,0.8); }
.newsletter form { margin-top: 2rem; }
.newsletter .row { display: flex; flex-direction: column; gap: 0.625rem; }
@media (min-width: 640px) { .newsletter .row { flex-direction: row; } }
.newsletter .field { border-color: rgba(255, 244, 230,0.3); color: var(--crema); flex: 1; }
.newsletter .field::placeholder { color: rgba(255, 244, 230,0.5); }
.newsletter .field:focus { border-color: var(--rosa-claro); }
.newsletter .consent { margin-top: 1rem; font-size: 0.75rem; line-height: 1.6; color: rgba(255, 244, 230,0.55); }
.newsletter .done { margin-top: 2rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.newsletter .done svg { color: var(--rosa-claro); }

.footer { margin-top: 6rem; border-top: 1px solid var(--linea); background: var(--crema-hondo); }
@media (min-width: 768px) { .footer { margin-top: 8rem; } }
.footer-cols { display: grid; gap: 3rem; padding-block: 3.5rem; }
@media (min-width: 768px) {
  .footer-cols { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; padding-block: 5rem; }
}
.footer-brand { max-width: 20rem; }
.footer-brand img { height: 6rem; width: auto; }
.footer-brand .tagline { margin-top: 1.25rem; font-family: var(--display); font-style: italic; font-size: 1.125rem; line-height: 1.3; color: var(--cafe); }
.footer-brand .place { margin-top: 0.75rem; font-size: 0.875rem; color: rgba(107, 78, 61,0.75); }
.footer-social { margin-top: 1.5rem; display: flex; gap: 1rem; }
.footer-social a { color: var(--cafe); }
.footer-social a:hover { color: var(--tinta); }
.footer-social svg { width: 1.25rem; height: 1.25rem; }
.footer h2 { font-family: var(--sans); color: rgba(107, 78, 61,0.6); }
.footer nav ul { margin-top: 1.25rem; }
.footer nav li { margin-bottom: 0.75rem; }
.footer nav a { font-size: 0.875rem; color: var(--cafe); }
.footer nav a:hover { color: var(--tinta); }
.footer-legal { border-top: 1px solid var(--linea); }
.footer-legal .inner {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  padding-block: 1.25rem; font-size: 0.75rem; color: rgba(107, 78, 61,0.7);
}
@media (min-width: 768px) { .footer-legal .inner { flex-direction: row; justify-content: space-between; } }

/* --- paginas de contenido, cuenta y pago --- */
.prose { max-width: 42rem; margin-top: 2rem; }
.prose > p { font-size: 1.0625rem; line-height: 1.75; color: var(--cafe); }
.prose .stack > p { margin-top: 1.25rem; line-height: 1.75; color: var(--cafe); }
.page-head h1 { margin-top: 1.5rem; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.1; max-width: 48rem; }
.table-guide { margin-top: 1rem; overflow-x: auto; }
.table-guide table { min-width: 26rem; font-size: 0.875rem; }
.table-guide th { text-align: left; font-weight: 500; padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid rgba(107, 78, 61,0.25); }
.table-guide td { padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--linea); color: var(--cafe); }
.table-guide td:first-child { color: var(--tinta); }
.notice {
  border: 1px solid rgba(245, 166, 193,0.4); background: rgba(253, 240, 244,0.4);
  padding: 0.75rem 1rem; font-size: 0.875rem; color: var(--cafe); max-width: 36rem;
}
.checkout-layout { margin-top: 2.5rem; }
@media (min-width: 1024px) { .checkout-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; } }
.field-grid { display: grid; gap: 1rem; margin-top: 1.25rem; }
@media (min-width: 640px) { .field-grid { grid-template-columns: repeat(2, 1fr); } }
.field-grid .full { grid-column: 1 / -1; }
fieldset { border: none; padding: 0; margin: 0; }
legend { font-family: var(--display); font-size: 1.25rem; padding: 0; }
.summary-box { border: 1px solid var(--linea); padding: 1.25rem; margin-top: 3rem; }
@media (min-width: 1024px) { .summary-box { margin-top: 0; position: sticky; top: calc(var(--header-h) + 1rem); } }
.success { text-align: center; padding-block: 6rem; }
.success .mark {
  width: 3.5rem; height: 3.5rem; border-radius: 999px; background: var(--rosa-suave);
  display: flex; align-items: center; justify-content: center; margin: 0 auto; color: var(--cafe);
}
.success h1 { margin-top: 1.5rem; font-size: clamp(2rem, 4.5vw, 3rem); }
.success p { margin-top: 1rem; max-width: 32rem; margin-inline: auto; font-size: 0.875rem; line-height: 1.7; color: var(--cafe); }

/* --- buscador --- */
.search-form { display: flex; align-items: center; gap: 0.75rem; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(107, 78, 61,0.3); }
.search-form input {
  flex: 1; background: transparent; border: none; outline: none;
  font-family: var(--display); font-size: 1.25rem; padding-block: 0.5rem;
}
@media (min-width: 768px) { .search-form input { font-size: 1.875rem; } }
.search-form input::placeholder { color: rgba(107, 78, 61,0.45); }
.search-results { padding-block: 1.25rem; }
.search-results .eyebrow { color: rgba(107, 78, 61,0.6); }
.search-grid { margin-top: 1rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1rem; }
@media (min-width: 768px) { .search-grid { grid-template-columns: repeat(5, 1fr); } }
.suggest { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
}

/* --- tamano de los iconos en linea ---
   Sin esto el SVG toma su tamano por defecto y parte el texto del boton. */
svg { flex-shrink: 0; }
.btn svg,
.section-link svg,
.menu-list a svg,
.filters-btn svg,
.search-form > svg,
.newsletter .done svg,
.notice svg { width: 1rem; height: 1rem; }
.btn { white-space: nowrap; }
.search-form > svg { width: 1.25rem; height: 1.25rem; }
.success .mark svg { width: 1.75rem; height: 1.75rem; }
.card-add .btn-quick svg { width: 0.875rem; height: 0.875rem; }
.card-sizes .icon-btn svg { width: 1rem; height: 1rem; }

/* ===============================================================
   Identidad de Mi Belleza Western Boutique
   =============================================================== */

/* Lockup de la cabecera. Se dibuja con tipografia y no con el logo
   en imagen porque el logo circular a 40px es una mancha ilegible. */
.marca { display: flex; flex-direction: column; align-items: center; line-height: 1; text-align: center; }
.marca-nombre {
  font-family: var(--script); color: var(--cafe);
  font-size: 1.75rem; line-height: 0.9; padding-top: 0.1em;
}
.marca-sub {
  font-family: var(--western); color: var(--rosa-texto);
  font-size: 0.5rem; letter-spacing: 0.22em; text-transform: uppercase; margin-top: 0.35rem;
}
.marca-sub i { color: var(--rosa-hondo); font-style: normal; margin-inline: 0.15em; }
@media (min-width: 768px) {
  .marca-nombre { font-size: 2.1rem; }
  .marca-sub { font-size: 0.5625rem; }
}
@media (min-width: 1280px) {
  .marca-nombre { font-size: 2.35rem; }
}

/* Leopardo dibujado con gradientes: sin imagenes y sin blur,
   que en iPhone es justo lo que congela el scroll. */
.leopardo {
  background-color: #e6c9a0;
  background-image:
    radial-gradient(ellipse 9px 7px at 12% 26%, #4a3527 55%, transparent 58%),
    radial-gradient(ellipse 15px 12px at 12% 26%, transparent 42%, #8a6b47 46%, transparent 62%),
    radial-gradient(ellipse 8px 6px at 44% 68%, #4a3527 55%, transparent 58%),
    radial-gradient(ellipse 14px 11px at 44% 68%, transparent 42%, #8a6b47 46%, transparent 62%),
    radial-gradient(ellipse 9px 7px at 72% 22%, #4a3527 55%, transparent 58%),
    radial-gradient(ellipse 15px 12px at 72% 22%, transparent 42%, #8a6b47 46%, transparent 62%),
    radial-gradient(ellipse 7px 6px at 88% 74%, #4a3527 55%, transparent 58%),
    radial-gradient(ellipse 13px 10px at 88% 74%, transparent 42%, #8a6b47 46%, transparent 62%);
  background-size: 96px 58px;
}
.cinta-leopardo { height: 14px; width: 100%; }
.cinta-leopardo.fina { height: 9px; }

/* Filete doble rosa y dorado, el remate del logo llevado a la pagina */
.filete { display: flex; align-items: center; justify-content: center; gap: 0.75rem; }
.filete::before, .filete::after {
  content: ""; height: 1px; width: 3rem; background: linear-gradient(to right, transparent, var(--dorado));
}
.filete::after { background: linear-gradient(to left, transparent, var(--dorado)); }
.filete span { color: var(--rosa-hondo); font-size: 0.75rem; }

/* Las cuatro promesas del brandboard, como banda al pie */
.promesas { background: var(--cafe-hondo); color: var(--crema); }
.promesas ul {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1rem;
  padding-block: 1.5rem; text-align: center;
}
@media (min-width: 900px) { .promesas ul { grid-template-columns: repeat(4, 1fr); padding-block: 1.25rem; } }
.promesas li { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.promesas .corazon { color: var(--rosa); font-size: 0.9rem; }
.promesas span { font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* Tarjeta de agradecimiento, la del brandboard, en la confirmacion */
.gracias {
  max-width: 30rem; margin: 2.5rem auto 0; background: var(--rosa-suave);
  border: 1px solid var(--rosa-claro); padding: 2rem 1.75rem; text-align: center;
}
.gracias h2 { font-family: var(--script); font-size: 2.5rem; color: var(--rosa-texto); line-height: 1; }
.gracias p { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--cafe); }
.gracias .firma { margin-top: 0.5rem; font-family: var(--script); font-size: 1.375rem; color: var(--rosa-hondo); }

/* Ajustes de la piel nueva sobre los componentes que ya existian */
.announce { background: var(--cafe-hondo); }
.badge-sale { background: var(--rosa-texto); color: var(--crema); }
.badge-new { background: var(--rosa-claro); color: var(--cafe-hondo); }
.btn-primary { background: var(--rosa); color: var(--tinta); }     /* 7.25 : AA de sobra */
.btn-primary:hover { background: var(--rosa-hondo); color: var(--crema); }
.btn-dark { background: var(--cafe-hondo); color: var(--crema); }
.btn-dark:hover { background: var(--cafe); }
.cart-count { background: var(--rosa-hondo); color: var(--crema); }
.newsletter { background: var(--cafe-hondo); }
.newsletter h2 { font-family: var(--script); font-size: clamp(2.25rem, 5vw, 3.25rem); }
.brand-note { background: var(--rosa-suave); }
.brand-note blockquote { font-family: var(--script); font-style: normal; font-size: clamp(1.75rem, 4vw, 2.75rem); color: var(--cafe); }
.section-head-center .section-title,
.hero h1 { font-family: var(--display); }
.ig-head a { font-family: var(--script); font-size: clamp(1.875rem, 3.6vw, 2.5rem); }
.cat-card h3 { font-family: var(--display); }
.footer { background: var(--rosa-suave); }
.footer-brand .tagline { font-family: var(--script); font-style: normal; font-size: 1.375rem; color: var(--rosa-texto); }
.nav-main a.is-sale { color: var(--rosa-texto); }
.chip.is-on { background: var(--cafe-hondo); border-color: var(--cafe-hondo); }
.size-opt.is-on { background: var(--cafe-hondo); border-color: var(--cafe-hondo); }
.filter-row.is-on .box { background: var(--cafe-hondo); border-color: var(--cafe-hondo); }
.ship-bar .fill { background: var(--rosa-hondo); }

/* La clase .marca aparece despues en la hoja y pisaba el display:none
   que oculta cada version. Con doble clase gana la regla correcta. */
.marca.logo-desktop { display: none; }
.marca.logo-mobile { display: flex; }
@media (min-width: 1024px) {
  .marca.logo-desktop { display: flex; }
  .marca.logo-mobile { display: none; }
}

/* El logo de la marca, en el unico sitio donde tiene tamano para lucir */
.sello { width: 9rem; height: auto; margin: 0 auto; }
@media (min-width: 768px) { .sello { width: 11rem; } }
.brand-note blockquote { margin-top: 1.5rem; }

/* En pantallas estrechas las manchas del leopardo se agrandaban demasiado */
@media (max-width: 640px) {
  .leopardo { background-size: 64px 40px; }
  .cinta-leopardo { height: 10px; }
  .cinta-leopardo.fina { height: 7px; }
}
