/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --guindo:        #9c163a;
  --guindo-rgb:     156, 22, 58;
  --guindo-deep:   #781d30;
  --guindo-deep-rgb: 120, 29, 48;
  --rosa:          #bf8b95;
  --rosa-rgb:       191, 139, 149;
  --beige:         #dfcec8;
  --beige-rgb:      223, 206, 200;
  --cream:         #faf6f3;
  --white:         #ffffff;
  --carbon:        #38393a;
  --carbon-soft:   #5c5d5f;
  --carbon-mute:   #8a8b8d;
  --line:          rgba(56, 57, 58, 0.12);

  --bg:            var(--cream);
  --ink:           var(--carbon);

  --font-display:  'Jost', sans-serif;
  --font-body:     'Lato', sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --container: 1240px;
  --gutter: 1.5rem;
  --radius: 4px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

[hidden] { display: none !important; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  text-wrap: balance;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--guindo-deep);
}
::selection { background: var(--rosa); color: var(--white); }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--carbon); color: var(--cream);
  z-index: 9999; border-radius: 8px; font-weight: 500;
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
/* Si el JS que revela estas secciones no llega a correr (conexión mala,
   bloqueador de contenido, error de script), esta animación en CSS puro
   las hace visibles igual a los 3.5s como red de seguridad — así la
   página nunca se queda invisible dependiendo por completo del JS. */
@keyframes reveal-failsafe { to { opacity: 1; transform: none; } }
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  animation: reveal-failsafe .01s linear 3.5s forwards;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

.kicker {
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rosa);
  font-weight: 700;
  margin-bottom: .9rem;
}
.kicker-on-dark { color: var(--beige); }

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.9rem;
  font-size: .95rem; font-weight: 700;
  letter-spacing: .01em;
  border-radius: 999px;
  overflow: hidden;
  transition: transform .3s var(--ease-out), background .3s var(--ease-out), box-shadow .3s var(--ease-out), color .3s var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: translateY(0) scale(.97); }
.btn-primary {
  background: var(--guindo);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(var(--guindo-rgb), .55);
}
.btn-primary::after {
  content: "";
  position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg);
  transition: left .65s var(--ease-out);
  pointer-events: none;
}
.btn-primary:hover::after { left: 130%; }
.btn-primary:hover { background: var(--guindo-deep); transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(var(--guindo-rgb), .65); }
.btn-ghost { color: var(--guindo-deep); border: 1.5px solid rgba(var(--guindo-rgb), .35); }
.btn-ghost:hover { background: rgba(var(--guindo-rgb), .08); transform: translateY(-2px); border-color: var(--guindo); }
.btn-block { width: 100%; }
.btn-sm { padding: .6rem 1.2rem; font-size: .82rem; }
.btn-on-dark { color: var(--cream); border-color: rgba(250,246,243,.4); }
.btn-on-dark:hover { background: rgba(250,246,243,.12); border-color: rgba(250,246,243,.6); }

.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  color: var(--carbon);
  transition: background .25s var(--ease-out), color .25s var(--ease-out);
}
.icon-btn:hover { background: rgba(var(--guindo-rgb), .08); color: var(--guindo); }

.cart-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 3px;
  background: var(--guindo); color: var(--white);
  font-size: .62rem; font-weight: 700; line-height: 16px; text-align: center;
  border-radius: 999px;
  transform: scale(0);
  transition: transform .3s var(--ease-soft);
}
.cart-badge.is-visible { transform: scale(1); }

/* =============================================================
   4. Ticker + Nav
   ============================================================= */
.ticker {
  background: var(--guindo-deep);
  color: var(--beige);
  overflow: hidden;
  padding-block: .6rem;
}
.ticker-track {
  display: flex; align-items: center;
  gap: .9rem;
  width: max-content;
  font-size: .8rem;
  letter-spacing: .03em;
  font-weight: 700;
  animation: tickerScroll 32s linear infinite;
}
.ticker-track .tk-dot { color: var(--rosa); opacity: .8; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 243, 0);
  backdrop-filter: blur(0px);
  transition: background .35s var(--ease-out), box-shadow .35s var(--ease-out), backdrop-filter .35s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(250, 246, 243, .92);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: .7rem;
  gap: 1.5rem;
}
.nav-logo img { height: 68px; width: auto; }
.nav-links {
  display: none;
  gap: 2.1rem;
  font-size: .92rem; font-weight: 700;
}
.nav-links a { position: relative; padding-block: .3rem; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--guindo);
  transition: right .35s var(--ease-out);
}
.nav-links a:hover::after { right: 0; }
.nav-links a.is-current-page::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: .25rem; }
.nav-burger { display: inline-flex; }

/* Dropdowns (Tienda / Sucursales / Cuenta) */
.dropdown { position: relative; }
.dropdown-trigger {
  display: inline-flex; align-items: center; gap: .35rem;
  font: inherit; font-weight: 700;
  padding-block: .3rem;
}
.dropdown-trigger .chev { transition: transform .3s var(--ease-out); }
.dropdown.is-open .dropdown-trigger .chev { transform: rotate(180deg); }

.dropdown-panel {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 190px;
  background: var(--white);
  border-radius: 14px;
  padding: .6rem;
  box-shadow: 0 20px 44px -18px rgba(var(--guindo-deep-rgb), .35);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .1rem;
  opacity: 0; pointer-events: none;
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out);
  z-index: 50;
}
.dropdown.is-open .dropdown-panel {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-panel a, .dropdown-panel button {
  display: block; width: 100%; text-align: left;
  padding: .55rem .8rem; border-radius: 8px;
  font-size: .88rem; font-weight: 600; color: var(--carbon-soft);
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.dropdown-panel a:hover { background: rgba(var(--guindo-rgb), .08); color: var(--guindo); }

.dropdown-panel-wide { min-width: 240px; }
.branch-link { display: flex !important; flex-direction: column; gap: .1rem; }
.branch-name { font-weight: 700; color: var(--ink); }
.branch-phone { font-size: .78rem; color: var(--carbon-mute); font-weight: 500; }

.dropdown-account { position: relative; }
.dropdown-panel-account {
  position: absolute; top: calc(100% + 14px); right: 0; left: auto;
  transform: translateY(8px);
  width: 260px;
  background: var(--white);
  border-radius: 16px;
  padding: 1.3rem;
  box-shadow: 0 20px 44px -18px rgba(var(--guindo-deep-rgb), .35);
  border: 1px solid var(--line);
  z-index: 50;
}
.dropdown-panel-account p { font-weight: 700; color: var(--guindo-deep); margin-bottom: .4rem; font-family: var(--font-display); }
.dropdown-panel-account span { display: block; font-size: .84rem; color: var(--carbon-mute); margin-bottom: 1rem; }

.search-bar {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s var(--ease-out);
  border-top: 1px solid transparent;
}
.search-bar.is-open { max-height: 90px; border-top: 1px solid var(--line); }
.search-bar-inner { display: flex; gap: .75rem; padding-block: 1rem; }
.search-bar-inner input {
  flex: 1; border: 1px solid var(--line); border-radius: 999px;
  padding: .75rem 1.3rem; font: inherit; background: var(--white);
}
.search-bar-inner input:focus { outline: none; border-color: var(--guindo); }
.search-bar-inner button {
  background: var(--guindo); color: var(--white); border-radius: 999px; padding: .75rem 1.5rem; font-weight: 700;
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }
}

/* =============================================================
   5. Hero
   ============================================================= */
.hero {
  position: relative;
  height: clamp(400px, 44vw, 620px);
  display: flex; align-items: center;
  overflow: clip;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 68% 30%;
  transition: transform .5s var(--ease-out);
  will-change: transform;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(250,246,243,.98) 0%,
    rgba(250,246,243,.92) 30%,
    rgba(250,246,243,.4) 58%,
    rgba(var(--guindo-deep-rgb),.22) 100%);
}
.hero-inner {
  position: relative; z-index: 1; max-width: 600px; padding-block: 1.5rem;
  margin-inline: 0;
  margin-left: max(var(--gutter), calc((100vw - var(--container)) / 2));
  text-align: left;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  letter-spacing: -0.025em;
  max-width: 13ch;
  margin-bottom: 1.1rem;
  color: var(--carbon);
}
.ink-accent {
  color: var(--guindo);
  font-style: italic;
  position: relative;
}
.hero-sub {
  font-size: 1.02rem;
  color: var(--carbon-soft);
  max-width: 38ch;
  margin-bottom: 1.7rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.4rem; }

.hero-badge {
  position: relative;
  height: 1.4rem;
  font-size: .82rem; font-weight: 700;
  color: var(--guindo-deep);
}
.hero-badge-text {
  position: absolute; left: 0; top: 0;
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  white-space: nowrap;
}
.hero-badge-text::before { content: "✦ "; color: var(--rosa); }
.hero-badge-text.is-active { opacity: 1; transform: none; }

@media (min-width: 720px) {
  .hero-media img { object-position: 74% 24%; }
}
@media (min-width: 1280px) {
  .hero-title { font-size: clamp(2.8rem, 3.6vw, 4rem); }
}

/* =============================================================
   5.1 Promo de la semana
   ============================================================= */
.promo-semana { padding-block: 3rem; }
.promo-inner {
  display: grid; gap: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.4rem;
  align-items: center;
  perspective: 1200px;
}
.promo-media {
  position: relative;
  border-radius: 18px; overflow: hidden;
  aspect-ratio: 4/3;
}
.promo-media img { width: 100%; height: 100%; object-fit: cover; }
.promo-badge {
  position: absolute; top: .9rem; left: .9rem; z-index: 1;
  background: var(--guindo); color: var(--white);
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .45rem .9rem; border-radius: 999px;
  animation: promoPulse 2.4s ease-in-out infinite;
}
@keyframes promoPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--guindo-rgb), .45); }
  50% { box-shadow: 0 0 0 8px rgba(var(--guindo-rgb), 0); }
}

.promo-copy { padding: .6rem .8rem 1.2rem; }
.promo-copy h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); margin: .5rem 0 .8rem; }
.promo-desc { color: var(--carbon-soft); font-size: 1rem; max-width: 44ch; margin-bottom: 1.2rem; }
.promo-price { display: flex; align-items: baseline; gap: .7rem; margin-bottom: .6rem; }
.promo-price-now { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--guindo-deep); }
.promo-price-old { font-size: 1rem; color: var(--carbon-mute); text-decoration: line-through; }
.promo-countdown {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .84rem; font-weight: 700; color: var(--guindo);
  margin-bottom: 1.4rem;
}
.promo-countdown::before { content: "⏳"; }

@media (min-width: 720px) {
  .promo-inner { grid-template-columns: 1fr 1fr; padding: 1.6rem; }
}

/* =============================================================
   6. Category carousel
   ============================================================= */
.cat-carousel { padding-block: 2.4rem .8rem; }
.cat-carousel { position: relative; }
.cat-carousel::before {
  content: "";
  position: absolute; top: -10%; right: -4%; width: 34%; height: 55%;
  background: radial-gradient(circle, rgba(var(--guindo-rgb), .16), transparent 70%);
  filter: blur(60px);
  pointer-events: none; z-index: -1;
}
.cat-carousel-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.6rem;
}
.cat-carousel-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.cat-carousel-arrows { display: flex; gap: .6rem; flex-shrink: 0; }
.carousel-arrow {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid rgba(var(--guindo-rgb),.3);
  color: var(--guindo-deep);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s var(--ease-out), transform .25s var(--ease-out);
}
.carousel-arrow:hover { background: rgba(var(--guindo-rgb), .08); transform: translateY(-2px); }

.cat-carousel-track {
  display: flex; gap: 1.1rem;
  overflow-x: auto; overflow-y: visible;
  padding: .3rem .2rem 1rem;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  perspective: 1200px;
}
.cat-carousel-track::-webkit-scrollbar { display: none; }

.category-card {
  position: relative;
  flex: 0 0 auto;
  width: 190px;
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: .8rem;
}
.category-card-media {
  width: 190px; height: 190px; border-radius: 20px; overflow: hidden;
  background: var(--beige);
}
.category-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease-out);
}
.category-card:hover .category-card-media img { transform: scale(1.09); }
.category-card h3 { font-size: 1.05rem; color: var(--guindo-deep); }

/* =============================================================
   7. Colección Iveth
   ============================================================= */
.coleccion {
  background: linear-gradient(165deg, var(--guindo-deep), var(--guindo) 130%);
  color: var(--cream);
  padding-block: 3.2rem;
}
.coleccion-head { max-width: 560px; margin-bottom: 2rem; }
.coleccion h2 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.6rem); }
.coleccion-sub { color: rgba(250,246,243,.82); font-size: 1.02rem; margin-top: .9rem; margin-bottom: 1.6rem; }

.coleccion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 2.4rem;
  column-gap: 1.2rem;
  perspective: 1200px;
}
.iveth-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px -18px rgba(var(--guindo-rgb),.4);
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.iveth-card:hover { transform: translateY(-6px); box-shadow: 0 24px 46px -20px rgba(0,0,0,.35); }
.iveth-card-media { aspect-ratio: 4/5; overflow: hidden; position: relative; }
.iveth-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.iveth-card:hover .iveth-card-media img { transform: scale(1.07); }
.iveth-card-badge {
  position: absolute; top: .7rem; left: .7rem;
  background: var(--guindo); color: var(--white);
  font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 999px;
}
.iveth-card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.iveth-card-body h3 { font-size: 1rem; color: var(--ink); font-weight: 600; }
.iveth-card-body .desc { font-size: .84rem; color: var(--carbon-mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.iveth-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: .6rem; }
.price { font-weight: 700; color: var(--guindo-deep); font-family: var(--font-display); }
.add-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--guindo); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease-soft), background .3s var(--ease-out);
  font-size: 1.2rem;
}
.add-btn:hover { transform: scale(1.1) rotate(90deg); background: var(--guindo-deep); }
.add-btn.is-added { background: #3d8a52; }

@media (min-width: 720px) {
  .coleccion-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================================
   8. Tienda (recién llegados)
   ============================================================= */
.tienda { padding-block: .5rem 2.8rem; }
.tienda-head { max-width: 620px; margin-bottom: 1.6rem; }
.tienda-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.tienda-head-link {
  display: inline-block; margin-top: 1rem;
  font-weight: 700; color: var(--guindo);
  border-bottom: 1.5px solid rgba(var(--guindo-rgb), .35);
  padding-bottom: 2px;
  transition: border-color .25s var(--ease-out);
}
.tienda-head-link:hover { border-color: var(--guindo); }

.filter-status {
  margin-top: 1rem;
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .9rem; color: var(--carbon-soft);
  background: var(--beige);
  padding: .5rem 1rem;
  border-radius: 999px;
}
.filter-status strong { color: var(--guindo-deep); }
.filter-status button {
  font-weight: 700; color: var(--guindo);
  text-decoration: underline;
}

.tienda-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  perspective: 1200px;
}
.product-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), opacity .35s var(--ease-out);
}
.product-card:focus-visible, .iveth-card:focus-visible { outline: 2px solid var(--guindo); outline-offset: 3px; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px -18px rgba(var(--guindo-rgb),.3); }
.product-card-media { aspect-ratio: 4/5; overflow: hidden; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease-out); }
.product-card:hover .product-card-media img { transform: scale(1.09); }
.product-card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.brand-tag { font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--rosa); font-weight: 700; }
.product-card-body h3 { font-size: .95rem; font-weight: 600; color: var(--ink); }
.product-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: .6rem; }
.product-card-cta { margin-top: .7rem; }

.product-card.is-hidden, .iveth-card.is-hidden { display: none; }

.finder-empty { text-align: center; color: var(--carbon-mute); padding-block: 3rem; }
.load-more-btn { margin-top: 2rem; max-width: 280px; margin-inline: auto; }

@media (min-width: 540px) {
  .tienda-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .tienda-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  .tienda-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================================
   8.1 Shop layout: sidebar + content (tienda.html, linea-iveth.html)
   ============================================================= */
.shop-layout {
  display: grid;
  gap: 1.6rem;
  align-items: start;
}
.shop-content { min-width: 0; }

.shop-sidebar-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: .9rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 700; font-size: .92rem;
  margin-bottom: 1rem;
  color: var(--guindo-deep);
}
.shop-sidebar-toggle svg { transition: transform .3s var(--ease-out); }
.shop-sidebar-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.shop-sidebar {
  display: none;
  flex-direction: column;
  gap: .1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: .7rem;
  margin-bottom: 1.6rem;
}
.shop-sidebar.is-open { display: flex; }

.shop-cat-group { border-top: 1px solid var(--line); }
.shop-cat-group:first-of-type { border-top: none; }
.shop-cat {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .8rem .9rem;
  font-size: .9rem; font-weight: 700;
  color: var(--carbon-soft);
  border-radius: 9px;
  text-align: left;
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.shop-cat:hover { background: rgba(var(--guindo-rgb), .07); color: var(--guindo); }
.shop-cat.is-active { background: var(--guindo); color: var(--white); }
.shop-cat .chev { flex-shrink: 0; transition: transform .3s var(--ease-out); }
.shop-cat[aria-expanded="true"] .chev { transform: rotate(180deg); }

.shop-subs { display: flex; flex-direction: column; gap: .05rem; padding: .1rem 0 .5rem 1rem; }
.shop-subs button {
  text-align: left;
  padding: .58rem .8rem;
  font-size: .84rem; font-weight: 600;
  color: var(--carbon-mute);
  border-radius: 7px;
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.shop-subs button:hover { background: rgba(var(--guindo-rgb), .07); color: var(--guindo); }
.shop-subs button.is-active { background: rgba(var(--guindo-rgb), .13); color: var(--guindo-deep); font-weight: 700; }

@media (min-width: 960px) {
  .shop-layout { grid-template-columns: 240px 1fr; }
  .shop-sidebar-toggle { display: none; }
  .shop-sidebar { display: flex !important; position: sticky; top: 108px; }
}

/* =============================================================
   9. Eventos & cursos (lanzamiento de septiembre)
   ============================================================= */
.eventos {
  position: relative;
  color: var(--cream);
  padding-block: 4rem;
  overflow: clip;
  min-height: 420px;
  display: flex; align-items: center;
}
.eventos-bg { position: absolute; inset: 0; z-index: 0; }
.eventos-bg img { width: 100%; height: 100%; object-fit: cover; }
.eventos-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(var(--guindo-deep-rgb),.94) 0%,
    rgba(var(--guindo-deep-rgb),.82) 40%,
    rgba(var(--guindo-deep-rgb),.55) 75%,
    rgba(var(--guindo-deep-rgb),.4) 100%);
}
.eventos-inner { position: relative; z-index: 1; max-width: 560px; }
.eventos h2 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.eventos-sub { color: rgba(250,246,243,.88); margin-top: 1rem; font-size: 1.05rem; max-width: 42ch; }

.eventos-form { margin-top: 2rem; }
.eventos-form label { display: block; font-size: .88rem; color: rgba(250,246,243,.8); margin-bottom: .8rem; max-width: 40ch; }
.eventos-form-row { display: flex; gap: .7rem; flex-wrap: wrap; }
.eventos-form-row input {
  flex: 1; min-width: 200px;
  padding: .85rem 1.2rem; border-radius: 999px;
  border: 1px solid rgba(250,246,243,.35);
  background: rgba(250,246,243,.1);
  color: var(--cream); font: inherit;
}
.eventos-form-row input::placeholder { color: rgba(250,246,243,.6); }
.eventos-form-row input:focus { outline: none; border-color: var(--rosa); }

.eventos-whatsapp-link {
  display: inline-block; margin-top: 1.3rem;
  font-size: .86rem; font-weight: 700; color: rgba(250,246,243,.75);
  border-bottom: 1px solid rgba(250,246,243,.35);
  padding-bottom: 2px;
  transition: color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.eventos-whatsapp-link:hover { color: var(--white); border-color: var(--white); }

/* =============================================================
   10. Footer
   ============================================================= */
.footer {
  position: relative;
  background: var(--guindo-deep);
  color: var(--beige);
  padding-block: 3rem 1.5rem;
}
.footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--rosa), var(--guindo), var(--beige));
  opacity: .8;
}
.footer-top {
  display: grid; gap: 2.6rem;
  padding-bottom: 2.6rem;
  border-bottom: 1px solid rgba(250,246,243,.15);
}
.footer-brand img { height: 88px; margin-bottom: 1rem; }
.footer-brand p { color: rgba(250,246,243,.7); font-size: .9rem; line-height: 1.6; max-width: 32ch; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.3rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(250,246,243,.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--beige);
  transition: background .3s var(--ease-out), transform .3s var(--ease-out), border-color .3s var(--ease-out);
}
.footer-social a:hover { background: var(--rosa); border-color: var(--rosa); color: var(--guindo-deep); transform: translateY(-3px); }

.footer-col { display: flex; flex-direction: column; gap: .7rem; }
.footer-col h3 {
  color: var(--cream); font-size: .82rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: .5rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(250,246,243,.18);
}
.footer-col a { color: rgba(250,246,243,.78); font-size: .93rem; transition: color .25s var(--ease-out), transform .25s var(--ease-out); }
.footer-col a:hover { color: var(--white); transform: translateX(3px); }
.footer-link-icon { display: flex !important; align-items: center; gap: .55rem; }
.footer-link-icon svg { flex-shrink: 0; color: var(--rosa); }

.footer-contact { gap: 1rem; }
.footer-wa-btn { align-self: flex-start; margin-top: .3rem; }

.footer-bottom {
  padding-top: 1.6rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: .8rem; color: rgba(250,246,243,.55);
}
.footer-top-btn {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid rgba(250,246,243,.3);
  color: var(--beige);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s var(--ease-out), transform .3s var(--ease-out);
}
.footer-top-btn:hover { background: rgba(250,246,243,.15); transform: translateY(-3px); }

@media (min-width: 720px) {
  .footer-top { grid-template-columns: 1.3fr 1fr 1fr; }
}
@media (min-width: 1100px) {
  .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

/* =============================================================
   11. WhatsApp float + cart drawer
   ============================================================= */
.whatsapp-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px -10px rgba(0,0,0,.4);
  transition: transform .3s var(--ease-soft);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float.is-lifted { transform: translateY(-64px); }
.whatsapp-float.is-lifted:hover { transform: translateY(-64px) scale(1.08); }

.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw);
  z-index: 200;
  transform: translateX(100%);
  transition: transform .45s var(--ease-out);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer-panel {
  height: 100%; background: var(--cream);
  display: flex; flex-direction: column;
  box-shadow: -20px 0 50px -20px rgba(0,0,0,.3);
}
.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem 1.4rem; border-bottom: 1px solid var(--line);
}
.cart-drawer-head h3 { font-size: 1.15rem; }
.cart-drawer-items { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; display: flex; flex-direction: column; gap: 1rem; }
.cart-empty { color: var(--carbon-mute); text-align: center; padding-block: 2rem; }
.cart-item { display: flex; gap: .9rem; align-items: center; }
.cart-item img { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: .88rem; font-weight: 600; color: var(--ink); }
.cart-item-info span { font-size: .82rem; color: var(--carbon-mute); }
.cart-item-info .cart-item-color { display: block; font-weight: 600; color: var(--guindo); }
.cart-item-remove { color: var(--guindo); font-size: .8rem; font-weight: 700; }
.cart-drawer-foot { padding: 1.3rem 1.4rem 1.6rem; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 1rem; font-size: 1rem; }
.cart-total strong { color: var(--guindo-deep); font-family: var(--font-display); font-size: 1.2rem; }

.cart-checkout-form { display: flex; flex-direction: column; gap: .6rem; }
.cart-checkout-label { font-size: .8rem; color: var(--carbon-mute); margin-bottom: .2rem; }
.cart-checkout-form input {
  padding: .75rem 1rem; border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white); font: inherit; font-size: .9rem;
}
.cart-checkout-form input:focus { outline: none; border-color: var(--guindo); }
.cart-checkout-form button[disabled] { opacity: .5; pointer-events: none; }

.cart-overlay {
  position: fixed; inset: 0; background: rgba(56,29,36,.4); z-index: 190;
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease-out);
}
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }

.product-modal-overlay {
  position: fixed; inset: 0; background: rgba(56,29,36,.5); z-index: 210;
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease-out);
}
.product-modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.product-modal {
  position: fixed; inset: 0; z-index: 220;
  display: flex; align-items: center; justify-content: center;
  padding: 1.2rem;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-out);
}
.product-modal.is-open { opacity: 1; pointer-events: auto; }
.product-modal-panel {
  background: var(--white); border-radius: 22px;
  width: min(1360px, 97vw); max-height: 93vh;
  display: flex; flex-direction: column;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
  position: relative;
  overflow: hidden;
  transform: translateY(16px) scale(.98);
  transition: transform .35s var(--ease-out);
}
.product-modal.is-open .product-modal-panel { transform: translateY(0) scale(1); }
@media (min-width: 720px) {
  .product-modal-panel { flex-direction: row; max-height: 90vh; }
}
.product-modal-close {
  position: absolute; top: .8rem; right: .8rem; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.94); color: var(--ink);
  font-size: 1.5rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px -8px rgba(0,0,0,.3);
}
.product-modal-media {
  flex: 0 0 auto; min-width: 0; min-height: 0;
  background: var(--cream); display: flex; flex-direction: column;
}
.pm-media-frame { position: relative; flex: 0 0 auto; min-height: 0; overflow: hidden; background: var(--cream); }
.pm-media-frame > img {
  width: 100%; aspect-ratio: 1/1; object-fit: contain; display: block;
}
@media (min-width: 720px) {
  .product-modal-media { flex: 0 0 55%; max-width: 55%; }
  .pm-media-frame { flex: 1; min-height: 0; }
  .pm-media-frame > img { height: 100%; min-height: 0; aspect-ratio: auto; }
}
@media (min-width: 1000px) {
  .pm-media-frame > img { min-height: 640px; }
}
.product-modal-thumbs { flex: 0 0 auto; display: flex; gap: .55rem; padding: .7rem; background: var(--white); overflow-x: auto; }
.pm-thumb {
  flex: 0 0 auto; width: 72px; height: 72px; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; opacity: .65; transition: opacity .2s var(--ease-out), border-color .2s var(--ease-out);
}
.pm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pm-thumb.is-active, .pm-thumb:hover { opacity: 1; border-color: var(--guindo); }
@media (min-width: 720px) {
  .pm-thumb { width: 84px; height: 84px; }
}
.product-modal-body {
  flex: 1 1 auto; min-width: 0; min-height: 0; overflow-y: auto;
  padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: .7rem;
}
.product-modal-body h3 { font-size: 1.4rem; color: var(--ink); }
.product-modal-desc { color: var(--carbon-mute); font-size: .92rem; line-height: 1.6; }
.product-modal-colors {
  display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; gap: .5rem; margin-top: .2rem;
  max-height: 160px; overflow-y: auto; padding: .2rem .1rem; flex-shrink: 0;
}
.product-modal-colors-label { font-size: .8rem; color: var(--carbon-mute); width: 100%; margin-bottom: .1rem; }
.pm-color-pill {
  padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--line);
  font-size: .78rem; font-weight: 600; color: var(--ink); background: var(--cream);
  transition: background .2s var(--ease-out), border-color .2s var(--ease-out);
}
.pm-color-pill.is-active { background: var(--guindo); border-color: var(--guindo); color: var(--white); }
.product-modal-price { font-size: 1.25rem; font-weight: 700; color: var(--guindo-deep); font-family: var(--font-display); }
.product-modal-qty { display: flex; align-items: center; gap: .8rem; margin-top: .2rem; }
.product-modal-qty-label { font-size: .8rem; color: var(--carbon-mute); font-weight: 600; }
.qty-stepper { display: flex; align-items: center; gap: .1rem; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-stepper button {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--guindo-deep); background: var(--cream);
}
.qty-stepper button:hover { background: rgba(var(--guindo-rgb), .12); }
.qty-stepper span { min-width: 28px; text-align: center; font-weight: 700; font-size: .9rem; }
.product-modal-foot { display: flex; flex-direction: column; gap: .6rem; margin-top: .6rem; }

.product-modal-related { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.product-modal-related-label { font-size: .8rem; color: var(--carbon-mute); font-weight: 600; }
.product-modal-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: .6rem; }
.pm-related-item {
  display: flex; flex-direction: column; gap: .25rem; text-align: left;
  border-radius: 10px; overflow: hidden; background: var(--cream);
}
.pm-related-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.pm-related-item span { font-size: .68rem; line-height: 1.3; padding-inline: .35rem; color: var(--ink); }
.pm-related-item span:first-of-type { padding-top: .3rem; }
.pm-related-price { font-weight: 700; color: var(--guindo-deep); padding-bottom: .4rem; }
@media (max-width: 480px) {
  .product-modal-related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================================
   12. Inner page headers (Tienda / Línea Iveth / Sucursales)
   ============================================================= */
.page-header {
  position: relative;
  padding-block: 3rem 1.5rem;
  background: var(--beige);
}
.page-header::before {
  content: "";
  position: absolute; top: -20%; left: -6%; width: 42%; height: 140%;
  background: radial-gradient(circle, rgba(var(--rosa-rgb), .4), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: -1;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); }
.page-header-sub { color: var(--carbon-soft); margin-top: .8rem; max-width: 50ch; font-size: 1.02rem; }

.page-header-dark {
  background: linear-gradient(165deg, var(--guindo-deep), var(--guindo) 130%);
  color: var(--cream);
}
.page-header-dark h1 { color: var(--white); }
.page-header-dark .page-header-sub { color: rgba(250,246,243,.85); }

.tienda-page { padding-block: 2rem 2.8rem; }
.coleccion-page { padding-block: 2.2rem 1.6rem; }
.coleccion-page .coleccion-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 540px) { .coleccion-page .coleccion-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .coleccion-page .coleccion-grid { grid-template-columns: repeat(4, 1fr); } }

.linea-cta { padding-block: .5rem 3.2rem; text-align: center; }
.linea-cta-inner { max-width: 480px; margin-inline: auto; display: grid; gap: 1rem; justify-items: center; }
.linea-cta p { color: var(--carbon-soft); }

/* =============================================================
   13. Sucursales
   ============================================================= */
.branches { padding-block: 2.6rem 3.2rem; }
.branches-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: 1fr;
  perspective: 1200px;
}
.branch-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.8rem;
  overflow: hidden;
  scroll-margin-top: 100px;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.branch-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -22px rgba(var(--guindo-rgb),.3); }

.branch-card-media {
  margin: -1.8rem -1.8rem 1.3rem;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.branch-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease-out);
}
.branch-card:hover .branch-card-media img { transform: scale(1.08); }
.branch-card-media img.is-face-top { object-position: 50% 15%; }

.branch-card-tag {
  display: inline-block; margin-bottom: .8rem;
  background: rgba(var(--guindo-rgb),.1); color: var(--guindo);
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px;
}
.branch-card h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.branch-card-addr { color: var(--carbon-soft); font-size: .95rem; margin-bottom: .9rem; }
.branch-card-meta { list-style: none; margin-bottom: .9rem; display: grid; gap: .4rem; }
.branch-card-meta a { color: var(--guindo-deep); font-weight: 700; }
.branch-card-meta li { color: var(--guindo-deep); font-size: .92rem; font-weight: 700; }
.branch-card-services {
  list-style: none; display: flex; flex-wrap: wrap; gap: .4rem;
  margin-bottom: 1.4rem;
}
.branch-card-services li {
  font-size: .76rem; font-weight: 700; color: var(--carbon-soft);
  background: var(--beige); padding: .3rem .7rem; border-radius: 999px;
}
.branch-card-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

@media (min-width: 720px) {
  .branches-grid { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin-inline: auto; }
}

/* =============================================================
   14. Mobile menu
   ============================================================= */
.nav-links.is-open {
  display: flex; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--cream); padding: 1.2rem var(--gutter) 1.6rem;
  box-shadow: 0 12px 24px -16px rgba(0,0,0,.2);
  gap: 1.2rem;
  z-index: 60;
}
.nav-links.is-open .dropdown-panel {
  position: static;
  transform: none;
  opacity: 1; pointer-events: auto;
  display: none;
  box-shadow: none; border: none; padding: .3rem 0 0 .8rem;
}
.nav-links.is-open .dropdown.is-open .dropdown-panel { display: flex; }
