/* =========================================================================
   Tienda Marilú
   Paleta de la marca; estructura y navegación inspiradas en tiendas de
   lencería con tarjetas redondeadas, banners de categoría y carruseles.
   ========================================================================= */

:root {
  --noir: #0B0A0B;
  --noir-soft: #171015;
  --magenta: #CA328D;
  --magenta-deep: #9E1E6B;
  --rosa: #EC8FD0;
  --rosa-soft: #F8D7EC;
  --blush: #FBF5F8;
  --porcelain: #FFFFFF;
  --champagne: #E9D9C9;
  --champagne-deep: #C7AE96;
  --ink: #2A1B24;
  --ink-soft: #6E5560;
  --line: rgba(42, 27, 36, .12);
  --magenta-tint: rgba(202, 50, 141, .08);

  --shadow: 0 12px 30px -14px rgba(42, 12, 30, .35);
  --shadow-soft: 0 4px 14px -6px rgba(42, 12, 30, .25);
  --radius: 10px;
  --radius-lg: 24px;
  --maxw: 1280px;
  --font: 'Jost', system-ui, sans-serif;
  --font-logo: 'Cormorant Garamond', serif;
}

/* ---------- base ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden
}

body {
  font-family: var(--font);
  background: var(--porcelain);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden
}

body.no-scroll {
  overflow: hidden
}

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

a {
  color: inherit;
  text-decoration: none
}

button {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none
}

input,
select {
  font: inherit;
  color: var(--ink)
}

ul {
  list-style: none
}

:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 2px
}

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--noir);
  color: #fff
}

.skip-link:focus {
  top: 16px
}

.section {
  padding: 56px 0
}

.empty {
  padding: 60px 0;
  text-align: center;
  color: var(--ink-soft)
}

.empty a {
  color: var(--magenta-deep);
  text-decoration: underline
}

/* ---------- botones y piezas chicas ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px
}

.btn-block {
  width: 100%
}

.btn-primary {
  background: var(--magenta);
  color: #fff;
  box-shadow: var(--shadow-soft)
}

.btn-primary:hover {
  background: var(--magenta-deep)
}

.btn-outline {
  border: 1px solid var(--magenta);
  color: var(--magenta-deep);
  background: var(--porcelain)
}

.btn-outline:hover {
  background: var(--magenta);
  color: #fff
}

.btn-light {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-soft)
}

.btn[disabled] {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--blush);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .2s, color .2s
}

.chip:hover,
.chip.active {
  background: var(--magenta);
  color: #fff
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--magenta-tint);
  color: var(--magenta-deep);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase
}

.tag:empty {
  display: none
}

.iconbtn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  transition: background .2s
}

.iconbtn:hover {
  background: var(--blush)
}

.iconbtn svg {
  width: 24px;
  height: 24px
}

.round-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blush);
  color: var(--ink);
  transition: background .2s, color .2s
}

.round-btn:hover {
  background: var(--magenta);
  color: #fff
}

.round-btn svg {
  width: 18px;
  height: 18px
}

.link-more {
  display: inline-block;
  margin-top: 14px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--magenta-deep);
  text-decoration: underline;
  text-underline-offset: 3px
}

.carousel-nav .link-more {
  margin: 0 8px 0 0
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-logo);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1;
  color: var(--ink)
}

.brand small {
  margin-top: 3px;
  font-family: var(--font);
  font-size: .5rem;
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--magenta)
}

/* ---------- franja de beneficios ---------- */
.announce {
  overflow: hidden;
  background: var(--noir);
  color: #fff
}

.announce-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite
}

.announce-group {
  display: flex;
  flex-shrink: 0
}

.announce li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 36px;
  font-size: .74rem;
  letter-spacing: .08em;
  white-space: nowrap
}

.announce svg {
  width: 14px;
  height: 14px;
  color: var(--rosa)
}

@keyframes marquee {
  to {
    transform: translateX(-50%)
  }
}

/* ---------- encabezado ---------- */
.site-header {
  position: relative;
  z-index: 40;
  background: var(--porcelain);
  box-shadow: var(--shadow-soft)
}

.header-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 84px
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px
}

.cartbtn {
  position: relative
}

.badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--magenta);
  color: #fff;
  font-size: .62rem;
  font-weight: 600
}

.badge[hidden] {
  display: none
}

.panel-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: border-color .2s, color .2s
}

.panel-pill:hover {
  border-color: var(--magenta);
  color: var(--magenta-deep)
}

.panel-pill svg {
  width: 16px;
  height: 16px
}

.site-search {
  display: flex;
  gap: 10px;
  padding-bottom: 16px
}

.site-search[hidden] {
  display: none
}

.site-search input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--blush)
}

.cat-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-bottom: 18px
}

/* ---------- paneles laterales (menú y carrito) ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(11, 10, 11, .45);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: .3s
}

.overlay.open {
  opacity: 1;
  visibility: visible
}

.side-menu,
.drawer {
  position: fixed;
  top: 0;
  z-index: 70;
  width: min(400px, 100%);
  height: 100%;
  background: var(--porcelain);
  box-shadow: 0 0 60px rgba(0, 0, 0, .25);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1)
}

.side-menu {
  left: 0;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%)
}

.drawer {
  right: 0;
  transform: translateX(100%)
}

.side-menu.open,
.drawer.open {
  transform: translateX(0)
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line)
}

.drawer-head h3 {
  font-size: 1.3rem;
  font-weight: 600
}

.drawer-head .brand {
  align-items: flex-start;
  font-size: 1.5rem
}

.drawer-head button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%
}

.drawer-head button:hover {
  background: var(--blush)
}

.side-menu-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 24px 24px
}

.side-menu-body a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em
}

.side-menu-body a:hover {
  color: var(--magenta-deep)
}

.side-menu-title {
  margin: 24px 0 4px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft)
}

/* ---------- mensajes ---------- */
.flashes {
  padding-top: 16px
}

.flash {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-size: .9rem
}

.flash-success {
  background: var(--rosa-soft);
  color: var(--magenta-deep)
}

.flash-danger,
.flash-error {
  background: #fde2e2;
  color: #8a1c1c
}

.flash-info,
.flash-warning,
.flash-debug {
  background: var(--blush);
  color: var(--ink)
}

/* ---------- títulos ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  font-size: .8rem;
  color: var(--ink-soft)
}

.breadcrumb a:hover {
  color: var(--magenta-deep)
}

.page-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 24px
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600
}

.carousel-nav {
  display: flex;
  align-items: center;
  gap: 8px
}

/* ---------- inicio: banners de categoría ---------- */
.banners {
  display: flex;
  gap: 16px;
  height: min(64vh, 580px);
  margin-top: 28px
}

.banner {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  color: #fff;
  transition: flex .5s ease
}

.banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: brightness(.55);
  transition: filter .5s ease
}

/* El banner del medio se muestra expandido; al pasar el mouse se expande ese. */
.banners:not(:hover) .banner:nth-child(2),
.banner:hover {
  flex: 2.4
}

.banners:not(:hover) .banner:nth-child(2) img,
.banner:hover img {
  filter: brightness(.72)
}

.banner-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-size: 1.4rem;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity .3s
}

.banner-body {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0 24px 40px;
  text-align: center;
  opacity: 0;
  transition: opacity .3s
}

.banner-title {
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .35)
}

.banners:not(:hover) .banner:nth-child(2) .banner-body,
.banner:hover .banner-body {
  opacity: 1;
  transition-delay: .25s
}

.banners:not(:hover) .banner:nth-child(2) .banner-label,
.banner:hover .banner-label {
  opacity: 0
}

/* Con un solo banner no hay nada que expandir. */
.banner:only-child .banner-body {
  opacity: 1
}

.banner:only-child .banner-label {
  opacity: 0
}

/* ---------- inicio: beneficios ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px
}

.benefit {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--magenta-tint)
}

.benefit-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--magenta);
  color: #fff
}

.benefit-icon svg {
  width: 22px;
  height: 22px
}

.benefit strong {
  display: block;
  font-size: 1rem;
  font-weight: 600
}

.benefit span:not(.benefit-icon) {
  display: block;
  font-size: .85rem;
  color: var(--ink-soft)
}

/* ---------- tarjeta de producto ---------- */
.product-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0
}

.pc-media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow)
}

.pc-link {
  position: absolute;
  inset: 0
}

.pc-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .5s, transform .6s
}

.pc-img-hover {
  opacity: 0
}

.product-card:hover .pc-img-hover {
  opacity: 1
}

.product-card:hover .pc-img:only-child {
  transform: scale(1.04)
}

.pc-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 16px;
  font-family: var(--font-logo);
  font-size: 1.15rem;
  font-style: italic;
  text-align: center;
  color: rgba(255, 255, 255, .85)
}

.pc-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--shadow-soft);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--magenta-deep)
}

.pc-badge-out {
  background: var(--noir);
  color: var(--rosa)
}

.pc-price {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-size: .9rem;
  font-weight: 700;
  color: var(--magenta-deep);
  pointer-events: none
}

.pc-price small {
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft)
}

.pc-add {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--magenta);
  color: #fff;
  box-shadow: var(--shadow-soft);
  transition: background .2s, transform .2s
}

.pc-add:hover {
  background: var(--magenta-deep);
  transform: scale(1.06)
}

.pc-add svg {
  width: 18px;
  height: 18px
}

.pc-name {
  font-size: .98rem;
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis
}

.pc-name a:hover {
  color: var(--magenta-deep)
}

/* Degradados de relleno cuando no hay foto. */
.ph-0 {
  background: linear-gradient(155deg, #3a0f2a, var(--magenta))
}

.ph-1 {
  background: linear-gradient(155deg, #241019, #7a1f4f)
}

.ph-2 {
  background: linear-gradient(155deg, #cdb49d, var(--champagne))
}

.ph-3 {
  background: linear-gradient(155deg, #b65a93, var(--rosa))
}

.ph-4 {
  background: linear-gradient(155deg, #e7c4dc, var(--rosa-soft))
}

.ph-5 {
  background: linear-gradient(155deg, #9c8470, var(--champagne-deep))
}

/* ---------- grilla y carrusel ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 20px
}

.carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 4px 20px;
  margin: 0 -4px
}

.carousel::-webkit-scrollbar {
  display: none
}

.carousel-item {
  flex: 0 0 calc((100% - 3 * 20px) / 4);
  scroll-snap-align: start
}

/* ---------- listado ---------- */
.list-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px
}

.search-field {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--blush)
}

.search-field svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--ink-soft)
}

.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none
}

.sort-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase
}

.sort-field select {
  height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: var(--blush);
  font-size: .9rem;
  letter-spacing: 0;
  text-transform: none
}

.result-count {
  margin-left: auto;
  font-size: .85rem;
  color: var(--ink-soft)
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 44px
}

.page-num {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 500
}

.page-num:hover {
  background: var(--blush)
}

.page-num.current {
  background: var(--magenta);
  color: #fff
}

.page-gap {
  color: var(--ink-soft)
}

/* ---------- detalle de producto ---------- */
.pdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start
}

.pdp-media {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.pdp-main {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow)
}

.pdp-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px
}

.thumb {
  width: 72px;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius);
  border: 2px solid transparent;
  box-shadow: var(--shadow-soft)
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.thumb.sel {
  border-color: var(--magenta)
}

.pdp-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px
}

.pdp-info h1,
.qv-info h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  line-height: 1.1
}

.pdp-code {
  font-size: .8rem;
  color: var(--ink-soft)
}

.pdp-price {
  margin-top: 8px;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--magenta-deep)
}

.pdp-note {
  margin-bottom: 14px;
  font-size: .85rem;
  color: var(--ink-soft)
}

.pdp-info > [data-role=options],
.qv-info > [data-role=options] {
  width: 100%
}

.opt-label {
  margin-bottom: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase
}

.opt-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px
}

.opt {
  min-width: 52px;
  height: 52px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  transition: border-color .2s, background .2s, color .2s
}

.opt:hover {
  border-color: var(--magenta)
}

.opt.sel {
  border-color: var(--magenta);
  background: var(--magenta);
  color: #fff
}

.opt.out {
  opacity: .35;
  text-decoration: line-through;
  cursor: not-allowed
}

.buy-form {
  display: flex;
  gap: 10px;
  width: 100%;
  margin: 6px 0 4px
}

.buy-form .btn {
  flex: 1
}

.qty-field {
  display: flex;
  align-items: center;
  height: 46px;
  border-radius: 12px;
  background: var(--blush)
}

.qty-field button {
  width: 40px;
  height: 100%;
  font-size: 1.1rem
}

.qty-field input {
  width: 42px;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 500;
  -moz-appearance: textfield
}

.qty-field input::-webkit-outer-spin-button,
.qty-field input::-webkit-inner-spin-button {
  -webkit-appearance: none
}

.accordions {
  width: 100%;
  margin-top: 22px;
  border-top: 1px solid var(--line)
}

.accordion {
  border-bottom: 1px solid var(--line)
}

.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none
}

.accordion summary::-webkit-details-marker {
  display: none
}

.accordion summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--magenta)
}

.accordion[open] summary::after {
  content: "−"
}

.accordion-body {
  padding-bottom: 18px;
  font-size: .92rem;
  font-weight: 300;
  color: var(--ink-soft)
}

.accordion-body p + p {
  margin-top: 10px
}

.accordion-body a {
  color: var(--magenta-deep);
  text-decoration: underline
}

/* ---------- vista rápida ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(11, 10, 11, .45);
  opacity: 0;
  visibility: hidden;
  transition: .3s
}

.modal.open {
  opacity: 1;
  visibility: visible
}

.modal-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--porcelain);
  box-shadow: var(--shadow);
  transform: scale(.96);
  transition: transform .3s
}

.modal.open .modal-card {
  transform: scale(1)
}

.qv-media {
  position: relative;
  min-height: 420px
}

.qv-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9)
}

.qv-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 34px 32px;
  overflow-y: auto
}

.qv-info .btn-block {
  margin-top: 4px
}

/* ---------- páginas informativas ---------- */
.prose {
  max-width: 720px
}

.prose p {
  margin-bottom: 14px;
  font-weight: 300
}

.prose a:not(.btn) {
  color: var(--magenta-deep);
  text-decoration: underline
}

.prose-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 34px
}

/* ---------- formularios y cuenta ---------- */
.auth {
  display: flex;
  justify-content: center
}

.auth-card {
  width: 100%;
  max-width: 460px;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: var(--porcelain);
  box-shadow: var(--shadow)
}

.auth-card .page-title {
  margin-bottom: 8px
}

.auth-lead {
  margin-bottom: 24px;
  font-size: .92rem;
  color: var(--ink-soft)
}

.auth-aside {
  align-self: flex-end;
  font-size: .82rem;
  color: var(--magenta-deep);
  text-decoration: underline
}

.auth-switch {
  margin-top: 22px;
  text-align: center;
  font-size: .9rem
}

.auth-switch a {
  font-weight: 500;
  color: var(--magenta-deep);
  text-decoration: underline
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0
}

.form-field label {
  font-size: .8rem;
  font-weight: 500
}

.form-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--blush);
  transition: border-color .2s, background .2s
}

.form-field input:focus {
  outline: none;
  border-color: var(--magenta);
  background: var(--porcelain)
}

.form-field.has-error input {
  border-color: #c0392b
}

.form-help {
  font-size: .75rem;
  color: var(--ink-soft)
}

.form-help ul {
  padding-left: 16px;
  list-style: disc
}

.form-error {
  font-size: .8rem;
  color: #a12a1f
}

.form-alert {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #fde2e2;
  color: #8a1c1c;
  font-size: .88rem
}

.account-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start
}

.account-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--porcelain);
  box-shadow: var(--shadow)
}

.account-card h2 {
  font-size: 1.2rem;
  font-weight: 600
}

.account-card .form-stack .btn {
  align-self: flex-start
}

.account-email {
  font-size: .9rem;
  color: var(--ink-soft)
}

.account-link {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500
}

.account-link:hover {
  color: var(--magenta-deep)
}

.account-orders {
  grid-column: 1 / -1
}

.order-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line)
}

.order-row:hover strong {
  color: var(--magenta-deep)
}

.order-row small {
  display: block;
  font-size: .78rem;
  color: var(--ink-soft)
}

.order-row-total {
  min-width: 90px;
  text-align: right;
  font-weight: 600
}

/* ---------- checkout y pedido ---------- */
.checkout-grid,
.order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start
}

.checkout-main {
  display: flex;
  flex-direction: column;
  gap: 20px
}

.checkout-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 24px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--porcelain);
  box-shadow: var(--shadow)
}

.checkout-step legend {
  float: left;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  font-size: 1.15rem;
  font-weight: 600
}

.checkout-step legend span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--magenta);
  color: #fff;
  font-size: .85rem
}

.checkout-hint {
  font-size: .85rem;
  color: var(--ink-soft)
}

.checkout-hint a,
.form-alert a {
  color: var(--magenta-deep);
  text-decoration: underline
}

.choices {
  display: grid;
  gap: 10px
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .2s, background .2s
}

.choice:has(input:checked) {
  border-color: var(--magenta);
  background: var(--magenta-tint)
}

.choice input {
  margin-top: 4px;
  accent-color: var(--magenta)
}

.choice-body strong {
  display: block;
  font-weight: 500
}

.choice-body small {
  font-size: .8rem;
  color: var(--ink-soft)
}

.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--blush);
  font: inherit;
  resize: vertical
}

.form-field textarea:focus {
  outline: none;
  border-color: var(--magenta);
  background: var(--porcelain)
}

.checkout-summary {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--blush)
}

.checkout-summary h2 {
  font-size: 1.15rem;
  font-weight: 600
}

.summary-lines li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line)
}

.summary-lines .li-thumb {
  width: 52px
}

.summary-name {
  flex: 1;
  min-width: 0;
  font-size: .92rem;
  font-weight: 500
}

.summary-name small {
  display: block;
  font-size: .76rem;
  font-weight: 400;
  color: var(--ink-soft)
}

.summary-price {
  font-weight: 600;
  white-space: nowrap
}

.cart-alt {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: .8rem;
  color: var(--ink-soft);
  text-decoration: underline
}

.order-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px
}

.order-hero .page-title {
  margin-bottom: 4px
}

.order-hero p {
  color: var(--ink-soft)
}

.order-hero a {
  color: var(--magenta-deep);
  text-decoration: underline
}

.order-meta {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: 12px
}

.order-meta small {
  display: block;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft)
}

.next-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border-radius: 16px;
  background: var(--magenta-tint)
}

.next-step h2 {
  font-size: 1rem;
  font-weight: 600
}

.bank-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--porcelain);
  font-size: .92rem
}

.bank-details dt {
  color: var(--ink-soft)
}

.bank-details dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 500;
  overflow-wrap: anywhere
}

.copy-btn {
  padding: 2px 10px;
  border: 1px solid var(--magenta);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 500;
  color: var(--magenta-deep)
}

.copy-btn:hover {
  background: var(--magenta);
  color: #fff
}

.order-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
  font-size: .92rem
}

.order-details dt {
  font-weight: 500
}

.order-details small {
  color: var(--ink-soft)
}

/* ---------- newsletter ---------- */
.newsletter {
  margin-top: 40px;
  padding: 64px 0;
  background: linear-gradient(120deg, var(--noir-soft), var(--magenta-deep));
  color: #fff
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px
}

.newsletter-kicker {
  font-size: 1.1rem;
  font-weight: 300
}

.newsletter h2 {
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px
}

.newsletter p {
  color: rgba(255, 255, 255, .8)
}

.newsletter-form {
  display: flex;
  gap: 10px
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: #fff
}

.newsletter-form .btn {
  min-height: 50px
}

/* ---------- footer ---------- */
.site-footer {
  padding: 56px 0 28px;
  background: var(--noir);
  color: #C9BDC4
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .1)
}

.footer-brand .brand {
  align-items: flex-start;
  color: #fff
}

.footer-brand p {
  max-width: 32ch;
  margin: 16px 0 18px;
  font-size: .88rem;
  font-weight: 300
}

.socials {
  display: flex;
  gap: 10px
}

.socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  color: #fff;
  transition: .2s
}

.socials a:hover {
  border-color: var(--magenta);
  background: var(--magenta)
}

.socials svg {
  width: 18px;
  height: 18px
}

.footer-col summary {
  margin-bottom: 14px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  list-style: none;
  pointer-events: none
}

.footer-col summary::-webkit-details-marker {
  display: none
}

.footer-links a {
  display: block;
  padding: 5px 0;
  font-size: .88rem;
  font-weight: 300;
  transition: color .2s
}

.footer-links a:hover {
  color: var(--rosa)
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  font-size: .78rem;
  font-weight: 300
}

.foot-login {
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  transition: .2s
}

.foot-login:hover {
  border-color: var(--rosa);
  color: var(--rosa)
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--magenta);
  color: #fff;
  box-shadow: var(--shadow);
  transition: background .2s, transform .2s
}

.wa-float:hover {
  background: var(--magenta-deep);
  transform: scale(1.05)
}

.wa-float svg {
  width: 26px;
  height: 26px
}

/* ---------- carrito ---------- */
.cart-panel {
  display: flex;
  flex-direction: column;
  height: 100%
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px
}

.cart-error {
  margin: 14px 24px 0;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--rosa-soft);
  color: var(--magenta-deep);
  font-size: .85rem
}

.cart-empty {
  padding: 40px 0;
  text-align: center;
  color: var(--ink-soft)
}

.line-item {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line)
}

.li-thumb {
  position: relative;
  width: 68px;
  aspect-ratio: 4/5;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--radius)
}

.li-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.li-info {
  flex: 1;
  min-width: 0
}

.line-item h4 {
  font-size: .98rem;
  font-weight: 500;
  line-height: 1.25
}

.li-meta {
  margin: 2px 0 8px;
  font-size: .76rem;
  color: var(--ink-soft)
}

.qty {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--blush)
}

.qty button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 1rem
}

.qty button[disabled] {
  opacity: .3;
  cursor: not-allowed
}

.qty span {
  min-width: 24px;
  text-align: center;
  font-size: .85rem
}

.li-warning {
  margin-top: 6px;
  font-size: .76rem;
  color: var(--magenta-deep)
}

.li-remove {
  margin-top: 6px;
  font-size: .72rem;
  color: var(--ink-soft);
  text-decoration: underline
}

.li-price {
  font-weight: 600;
  white-space: nowrap
}

.drawer-foot {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  background: var(--blush)
}

.subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 1.1rem;
  font-weight: 600
}

.drawer-foot .small {
  margin-bottom: 14px;
  font-size: .78rem;
  color: var(--ink-soft)
}

.drawer-foot .btn {
  width: 100%
}

.cart-page {
  max-width: 560px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--porcelain);
  box-shadow: var(--shadow)
}

.cart-page [data-cart-close] {
  display: none
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .carousel-item {
    flex-basis: calc((100% - 2 * 20px) / 3)
  }

  .pdp-grid {
    gap: 32px
  }
}

@media (max-width: 860px) {
  .banners {
    flex-direction: column;
    height: auto
  }

  .banner,
  .banners:not(:hover) .banner:nth-child(2),
  .banner:hover {
    flex: none;
    aspect-ratio: 4/3
  }

  .banner img {
    filter: brightness(.65)
  }

  .banner-label {
    display: none
  }

  .banner .banner-body {
    opacity: 1
  }

  .benefits {
    grid-template-columns: 1fr
  }

  .pdp-grid,
  .modal-card,
  .newsletter-inner,
  .account-grid,
  .checkout-grid,
  .order-grid {
    grid-template-columns: 1fr
  }

  .checkout-summary {
    position: static
  }

  .order-meta {
    grid-template-columns: repeat(2, auto)
  }

  .modal-card {
    overflow-y: auto
  }

  .qv-media {
    min-height: 0;
    aspect-ratio: 4/3
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr
  }

  .footer-brand {
    grid-column: 1 / -1
  }
}

@media (max-width: 680px) {
  .wrap {
    padding: 0 16px
  }

  .section {
    padding: 36px 0
  }

  .header-bar {
    min-height: 68px
  }

  .brand {
    font-size: 1.5rem
  }

  /* En el celular las categorías viven en el menú lateral. */
  .cat-nav {
    display: none
  }

  /* En el celular el staff entra al panel desde "Mi cuenta". */
  .panel-pill {
    display: none
  }

  .header-actions {
    gap: 0
  }

  .header-actions .iconbtn {
    width: 36px;
    height: 36px
  }

  .header-actions .iconbtn svg {
    width: 22px;
    height: 22px
  }

  .form-row {
    grid-template-columns: 1fr
  }

  .auth-card {
    padding: 28px 20px
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 12px
  }

  .carousel-item {
    flex-basis: 70%
  }

  .pc-price {
    font-size: .8rem;
    padding: 4px 10px
  }

  .pc-add {
    width: 34px;
    height: 34px
  }

  .result-count {
    margin-left: 0;
    width: 100%
  }

  .newsletter-form {
    flex-direction: column
  }

  /* En columna, flex: 1 le ganaría a la altura del campo. */
  .newsletter-form input {
    flex: none
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0
  }

  .footer-brand {
    padding-bottom: 20px
  }

  /* En el celular las columnas del footer se pliegan. */
  .footer-col {
    border-top: 1px solid rgba(255, 255, 255, .1)
  }

  .footer-col summary {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 16px 0;
    pointer-events: auto;
    cursor: pointer
  }

  .footer-col summary::after {
    content: "+";
    font-size: 1.1rem;
    font-weight: 300
  }

  .footer-col[open] summary::after {
    content: "−"
  }

  .footer-links {
    padding-bottom: 14px
  }

  .wa-float {
    right: 14px;
    bottom: 14px;
    width: 50px;
    height: 50px
  }
}
