@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --cream:      #FAF6F1;
  --cream-dark: #F0E8DC;
  --terra:      #B8694A;
  --terra-light:#D4856A;
  --sage:       #7A9B87;
  --sage-light: #A8C4B0;
  --ink:        #2A2420;
  --ink-mid:    #6B5E57;
  --ink-light:  #A89990;
  --white:      #FFFFFF;
  --shadow:     0 2px 16px rgba(42,36,32,.10);
  --shadow-lg:  0 8px 40px rgba(42,36,32,.18);
  --radius:     12px;
  --radius-sm:  6px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
}

/* ── HEADER ─────────────────────────────────────────────── */
header {
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(42,36,32,.06);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .6rem;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
}

.logo-img {
  height: 46px;
  width: auto;
  display: block;
}

.logo-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.logo-sub {
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--terra);
  margin-top: 2px;
}

.header-tagline {
  font-size: .72rem;
  color: var(--ink-light);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ── SEO H1 (visually hidden) ────────────────────────────── */
.seo-h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  background-image: url('../images/hero-banner.jpg?v=2');
  background-size: cover;
  background-position: center 30%;
  padding: 5rem 2rem 4.5rem;
  text-align: center;
  overflow: hidden;
}

/* translucent overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250, 244, 235, 0.72);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

/* all hero content above the overlay */
.hero > * {
  position: relative;
  z-index: 1;
}

.hero-display {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: .7rem;
  text-shadow: 0 1px 3px rgba(255,255,255,.4);
}

.hero-display em {
  font-style: italic;
  color: var(--terra);
}

.hero-sub {
  font-size: .95rem;
  color: var(--ink-mid);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 400;
}

/* ── BESTSELLERS ─────────────────────────────────────────── */
.bestsellers {
  background: var(--white);
  border-bottom: 2px solid var(--cream-dark);
  padding: 2.5rem 0 2rem;
}

.bestsellers-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.bestsellers-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.bestsellers-title em {
  font-style: italic;
  color: var(--terra);
}

.bestsellers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

/* ── CATEGORY NAV (circles as menus) ─────────────────────── */
.cat-nav {
  background: var(--white);
  border-bottom: 2px solid var(--cream-dark);
  padding: 2.75rem 2rem 2.25rem;
}

.cat-circles {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.cat-circle {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
}

.cat-circle-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid var(--white);
  transition: box-shadow .25s ease;
}

.cat-circle:hover .cat-circle-img,
.cat-circle.open .cat-circle-img,
.cat-circle.active-cat .cat-circle-img {
  box-shadow: var(--shadow-lg);
}

.cat-circle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cat-circle-label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .02em;
  background: none;
  border: none;
  cursor: pointer;
  padding: .2rem .5rem;
  transition: color .2s;
}

.cat-circle-label svg {
  width: 12px;
  height: 12px;
  transition: transform .2s;
}

.cat-circle:hover .cat-circle-label,
.cat-circle.open .cat-circle-label,
.cat-circle.active-cat .cat-circle-label {
  color: var(--terra);
}

.cat-circle:hover .cat-circle-label svg,
.cat-circle.open .cat-circle-label svg {
  transform: rotate(180deg);
}

/* "Más vendidos" pill */
.cat-bestsellers {
  text-align: center;
  margin-top: 1.85rem;
}

.bestsellers-pill {
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mid);
  background: transparent;
  border: 1.5px solid var(--cream-dark);
  border-radius: 99px;
  padding: .55rem 1.5rem;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}

.bestsellers-pill:hover {
  border-color: var(--terra);
  color: var(--terra);
}

.bestsellers-pill.active {
  background: var(--terra);
  border-color: var(--terra);
  color: var(--white);
}

@media (max-width: 600px) {
  .cat-nav { padding: 1.75rem 1rem 1.5rem; }
  .cat-circles { gap: 1.25rem; }
  .cat-circle-img { width: 100px; height: 100px; }
  .cat-circle-label { font-size: 1rem; }
}

/* ── MEGA NAV ────────────────────────────────────────────── */
.mega-nav {
  background: var(--white);
  border-bottom: 2px solid var(--cream-dark);
  position: sticky;
  top: 68px;
  z-index: 150;
}

.mega-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: stretch;
}

.mega-item {
  position: relative;
}

.mega-btn {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: 1rem 1.6rem;
  background: transparent;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mid);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}

.mega-btn svg {
  width: 10px;
  height: 10px;
  transition: transform .2s;
  flex-shrink: 0;
}

.mega-item:hover .mega-btn,
.mega-item.open .mega-btn {
  color: var(--terra);
  border-bottom-color: var(--terra);
}

.mega-item:hover .mega-btn svg,
.mega-item.open .mega-btn svg {
  transform: rotate(180deg);
}

.mega-btn.active-section {
  color: var(--terra);
  border-bottom-color: var(--terra);
}

/* ── MEGA DROPDOWN ───────────────────────────────────────── */
.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 320px;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-top: 3px solid var(--terra);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease;
  z-index: 300;
}

/* Visibility is controlled ONLY by the .open class (toggled in JS) — no CSS
   :hover, so a tap can never leave the menu stuck open on touchscreens. */
.mega-item.open .mega-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.mega-dropdown-inner {
  padding: 1.25rem 1.5rem 1.5rem;
}

/* "Todo de Niña" link */
.mega-all-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--terra);
  text-decoration: none;
  margin-bottom: 1.1rem;
  padding: .3rem .7rem;
  border-radius: 99px;
  border: 1.5px solid var(--terra);
  transition: background .18s, color .18s;
}

.mega-all-link:hover,
.mega-all-link.active {
  background: var(--terra);
  color: var(--white);
}

/* Columns wrapper */
.mega-cols {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

/* Single column */
.mega-col {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-width: 128px;
}

.mega-col-title {
  font-family: 'Playfair Display', serif;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .2rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--cream-dark);
}

/* Clickable category title → page with every product of that category */
.mega-cat-link {
  display: block;
  cursor: pointer;
  text-decoration: none;
  transition: color .15s;
}
.mega-cat-link:hover,
.mega-cat-link.active {
  color: var(--terra);
}

.mega-age-link {
  font-size: .8rem;
  font-weight: 400;
  color: var(--ink-mid);
  text-decoration: none;
  padding: .22rem .4rem;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
  cursor: pointer;
  white-space: nowrap;
  display: block;
}

.mega-age-link:hover,
.mega-age-link.active {
  background: var(--cream-dark);
  color: var(--terra);
  font-weight: 500;
}

/* ── BESTSELLERS INLINE H2 ──────────────────────────────── */
.bestsellers-inline-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.bestsellers-inline-h2 em {
  font-style: italic;
  color: var(--terra);
}

/* ── ACTIVE FILTER BAR ───────────────────────────────────── */
.active-filter-bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: .9rem 2rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 48px;
}

.filter-breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--ink-mid);
  font-weight: 500;
}

.filter-breadcrumb .sep {
  color: var(--ink-light);
  font-size: .7rem;
}

.filter-breadcrumb .crumb-section { color: var(--terra); font-weight: 600; }
.filter-breadcrumb .crumb-cat     { color: var(--ink); }
.filter-breadcrumb .crumb-age     { color: var(--sage); }

.filter-clear {
  margin-left: .25rem;
  padding: .18rem .55rem;
  background: transparent;
  border: 1.5px solid var(--cream-dark);
  border-radius: 99px;
  font-size: .7rem;
  font-weight: 500;
  color: var(--ink-light);
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  gap: .25rem;
}

.filter-clear:hover {
  border-color: var(--terra);
  color: var(--terra);
}

.results-count {
  margin-left: auto;
  font-size: .75rem;
  color: var(--ink-light);
  white-space: nowrap;
}

/* ── PRODUCT GRID ────────────────────────────────────────── */
.grid-container {
  max-width: 1280px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* ── PRODUCT CARD ────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--cream-dark);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}

.card:hover .card-img-wrap img {
  transform: scale(1.04);
}

.card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: linear-gradient(135deg, var(--cream-dark), #E8DACE);
}

.card-placeholder svg {
  opacity: .35;
  width: 42px;
  height: 42px;
}

.card-placeholder span {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.badge-coming {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: rgba(42,36,32,.65);
  color: var(--white);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .25rem .6rem;
  border-radius: 99px;
  backdrop-filter: blur(4px);
}

.badge-pedido {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: var(--sage);
  color: var(--white);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .6rem;
  border-radius: 99px;
}

.photo-count {
  position: absolute;
  bottom: .6rem;
  right: .6rem;
  background: rgba(42,36,32,.55);
  color: var(--white);
  font-size: .65rem;
  padding: .2rem .55rem;
  border-radius: 99px;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: .25rem;
}

.card-body {
  padding: .9rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.card-category {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--terra);
}

.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.card-id {
  font-size: .7rem;
  color: var(--ink-light);
  font-weight: 400;
}

.card-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--terra);
  margin-top: .1rem;
}
.card-price-ask {
  font-size: .82rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--ink-light);
}

.modal-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--terra);
  line-height: 1.3;
}
.modal-price-ask,
.product-price-ask {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-light);
}

.product-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--terra);
  line-height: 1.3;
}

.sizes-row {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .2rem;
}

.size-tag {
  font-size: .68rem;
  font-weight: 500;
  padding: .18rem .5rem;
  border-radius: var(--radius-sm);
  background: var(--cream-dark);
  color: var(--ink-mid);
  border: 1px solid rgba(42,36,32,.1);
}

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--ink-light);
}
.empty-state svg { opacity: .3; margin-bottom: 1rem; }
.empty-state p { font-size: .9rem; }

/* ── MODAL ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,20,16,.72);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  backdrop-filter: blur(4px);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow-lg);
  transform: scale(.96) translateY(12px);
  transition: transform .3s ease;
  position: relative;
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

@media (max-width: 640px) {
  .modal { grid-template-columns: 1fr; }
}

.modal-gallery {
  position: relative;
  background: var(--cream-dark);
  border-radius: 16px 0 0 16px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .modal-gallery { border-radius: 16px 16px 0 0; min-height: 300px; }
}

.modal-main-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.modal-main-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  background: linear-gradient(135deg, var(--cream-dark), #E8DACE);
}

.modal-main-placeholder svg { opacity: .3; width: 64px; height: 64px; }
.modal-main-placeholder p {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-light);
  text-align: center;
  padding: 0 2rem;
}

.modal-thumbs {
  display: flex;
  gap: .4rem;
  padding: .6rem;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--white);
}
.modal-thumbs::-webkit-scrollbar { display: none; }

.modal-thumb {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s;
  background: var(--cream-dark);
}

.modal-thumb.active { border-color: var(--terra); }

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

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.85);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(42,36,32,.2);
  transition: background .2s;
  z-index: 5;
}
.gallery-arrow:hover { background: var(--white); }
.gallery-arrow.prev { left: .6rem; }
.gallery-arrow.next { right: .6rem; }
.gallery-arrow svg { width: 14px; height: 14px; color: var(--ink); }

.modal-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border: none;
  background: rgba(42,36,32,.12);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background .2s;
}
.modal-close:hover { background: rgba(42,36,32,.25); }
.modal-close svg { width: 14px; height: 14px; color: var(--ink); }

.modal-section-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--terra);
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.modal-code {
  font-size: .75rem;
  color: var(--ink-light);
  font-weight: 400;
}

.modal-divider {
  height: 1px;
  background: var(--cream-dark);
}

.modal-desc {
  font-size: .9rem;
  color: var(--ink-mid);
  line-height: 1.7;
  font-weight: 300;
}

.modal-section-title {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: .4rem;
}

.modal-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.modal-size-tag {
  font-size: .8rem;
  font-weight: 500;
  padding: .35rem .8rem;
  border-radius: 6px;
  background: var(--cream-dark);
  color: var(--ink);
  border: 1.5px solid rgba(42,36,32,.1);
}

.modal-pedido-box {
  background: #F0F7F2;
  border: 1.5px solid var(--sage-light);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font-size: .82rem;
  color: var(--ink);
  line-height: 1.5;
}

.modal-pedido-box strong {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: .2rem;
}

.modal-contact-btn {
  margin-top: auto;
  padding: .85rem 1.5rem;
  background: var(--terra);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .2s, transform .15s;
  text-align: center;
}
.modal-contact-btn:hover {
  background: #A85A3C;
  transform: translateY(-1px);
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 2rem;
  font-size: .78rem;
  letter-spacing: .06em;
}

footer strong {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: .95rem;
  display: block;
  margin-bottom: .4rem;
}

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--cream-dark); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-light); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .mega-dropdown { min-width: 280px; }
  .mega-cols { gap: 1.25rem; }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 1rem; }
  .header-tagline { display: none; }
  .hero { padding: 2.5rem 1rem 2rem; }
  .mega-nav-inner { padding: 0 .5rem; }
  .mega-btn { padding: .9rem 1rem; font-size: .75rem; }
  .active-filter-bar { padding: .75rem 1rem; }
  .grid-container { padding: 0 1rem; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
  .modal { max-height: 95vh; }
  .modal-info { padding: 1.25rem; }
  .modal-title { font-size: 1.3rem; }
}

/* ── TOP NAV ─────────────────────────────────────────────── */
.top-nav {
  display: flex;
  align-items: center;
  gap: .3rem;
}

.top-nav-link {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-decoration: none;
  padding: .5rem .85rem;
  border-radius: 99px;
  transition: color .18s, background .18s;
  white-space: nowrap;
}

.top-nav-link:hover,
.top-nav-link.active {
  color: var(--terra);
  background: var(--cream);
}

/* Hamburger (hidden on desktop, shown on mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── CONTENT PAGES (Sobre nosotras / genéricas) ──────────── */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem 2rem 4.5rem;
}

.page-band {
  position: relative;
  height: 240px;
  background-image: url('../images/hero-banner.jpg?v=2');
  background-size: cover;
  background-position: center 35%;
}
.page-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250, 244, 235, 0.45);
}

.page-eyebrow {
  display: block;
  text-align: center;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: .9rem;
}

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  line-height: 1.15;
  margin-bottom: 2rem;
}
.page-title em { font-style: italic; color: var(--terra); }

.page-prose p {
  font-size: 1.02rem;
  line-height: 1.95;
  color: var(--ink-mid);
  margin-bottom: 1.3rem;
  font-weight: 400;
}
.page-prose p:last-child { margin-bottom: 0; }

.page-signature {
  margin-top: 2.5rem;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--terra);
}

/* ── BLOG ────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.blog-empty {
  text-align: center;
  padding: 3rem 1rem 1rem;
  color: var(--ink-light);
}
.blog-empty svg { opacity: .3; margin-bottom: 1.25rem; }
.blog-empty h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--ink-mid);
  margin-bottom: .6rem;
  font-weight: 600;
}
.blog-empty p { font-size: .92rem; line-height: 1.7; max-width: 440px; margin: 0 auto; }

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-img { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--cream-dark); }
.blog-card-body { padding: 1.1rem 1.25rem 1.4rem; }
.blog-card-date {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--terra); font-weight: 600;
}
.blog-card-title {
  font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 600;
  color: var(--ink); margin: .4rem 0 .5rem; line-height: 1.3;
}
.blog-card-excerpt { font-size: .85rem; color: var(--ink-mid); line-height: 1.6; }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 4.8vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  line-height: 1.12;
  margin-bottom: .7rem;
}
.contact-hero-title em { font-style: italic; color: var(--terra); }

.contact-sub {
  text-align: center;
  color: var(--ink-mid);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  font-size: .95rem;
}

/* Instagram alternative CTA */
.contact-instagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 0 auto 2.5rem;
  max-width: 600px;
}

.instagram-btn {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  background: linear-gradient(45deg, #F58529 0%, #DD2A7B 45%, #8134AF 75%, #515BD4 100%);
  color: #fff;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 1rem 2rem;
  border-radius: 99px;
  box-shadow: 0 6px 22px rgba(221, 42, 123, .35);
  transition: transform .15s ease, box-shadow .2s ease;
  text-align: center;
}
.instagram-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(221, 42, 123, .45);
}
.instagram-btn svg { width: 22px; height: 22px; flex-shrink: 0; }

.contact-or {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-row { display: flex; flex-direction: column; gap: .4rem; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
@media (max-width: 520px) { .form-grid-2 { grid-template-columns: 1fr; } }

.form-row label {
  font-size: .7rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-light);
}
.form-row input,
.form-row textarea,
.form-row select {
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  color: var(--ink);
  padding: .7rem .9rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  background: var(--cream);
  transition: border-color .18s;
  width: 100%;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus { outline: none; border-color: var(--terra); }
.form-row textarea { resize: vertical; min-height: 130px; }

.contact-submit {
  margin-top: .4rem;
  padding: .95rem 1.5rem;
  background: var(--terra);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .2s, transform .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
}
.contact-submit:hover { background: #A85A3C; transform: translateY(-1px); }
.contact-submit svg { width: 18px; height: 18px; }

.contact-alt {
  text-align: center;
  margin-top: 1.6rem;
  font-size: .88rem;
  color: var(--ink-mid);
  line-height: 1.9;
}
.contact-alt a { color: var(--terra); text-decoration: none; font-weight: 600; }
.contact-alt a:hover { text-decoration: underline; }

/* ── CONTACT BUTTONS (WhatsApp + Instagram) ──────────────── */
.contact-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 420px;
  margin: 0 auto;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  width: 100%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 1rem 2rem;
  border-radius: 99px;
  box-shadow: 0 6px 22px rgba(18, 140, 126, .35);
  transition: transform .15s ease, box-shadow .2s ease;
}
.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(18, 140, 126, .45);
}
.whatsapp-btn svg { width: 22px; height: 22px; flex-shrink: 0; }

/* make the Instagram button match the WhatsApp one in this layout */
.contact-buttons .instagram-btn {
  width: 100%;
  justify-content: center;
}

/* ── CONTACT PHONE (visible number) ──────────────────────── */
.contact-phone {
  text-align: center;
  margin-top: 2rem;
}
.contact-phone-label {
  display: block;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: .4rem;
}
.contact-phone-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  color: var(--terra);
  text-decoration: none;
  letter-spacing: .01em;
}
.contact-phone-number:hover { text-decoration: underline; }

/* ── PRODUCT PAGE ────────────────────────────────────────── */
a.card { text-decoration: none; color: inherit; }

.product-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.75rem 2rem 4.5rem;
}

.breadcrumb-nav {
  font-size: .78rem;
  color: var(--ink-light);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
}
.breadcrumb-nav a { color: var(--ink-mid); text-decoration: none; }
.breadcrumb-nav a:hover { color: var(--terra); }
.breadcrumb-nav .sep { color: var(--ink-light); }
.breadcrumb-nav .current { color: var(--terra); font-weight: 600; }

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 820px) {
  .product-layout { grid-template-columns: 1fr; gap: 1.75rem; }
}

.product-gallery { position: sticky; top: 88px; }
@media (max-width: 820px) { .product-gallery { position: static; } }

.product-main-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-dark);
  box-shadow: var(--shadow);
}
.product-main-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }

.product-thumbs { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.product-thumb {
  width: 66px; height: 66px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: var(--cream-dark);
  flex-shrink: 0;
}
.product-thumb.active { border-color: var(--terra); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info { display: flex; flex-direction: column; gap: 1rem; padding-top: .25rem; }
.product-section-badge {
  font-size: .72rem; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--terra);
}
.product-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700; color: var(--ink); line-height: 1.15;
}
.product-code { font-size: .8rem; color: var(--ink-light); }
.product-desc { font-size: .96rem; color: var(--ink-mid); line-height: 1.8; font-weight: 400; }
.product-info .modal-contact-btn { margin-top: .75rem; }

/* Mini guía de tamaño (medidas de accesorios) */
.size-guide-box {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: #F0F7F2;
  border: 1.5px solid var(--sage-light);
  border-radius: var(--radius-sm);
  padding: .85rem 1.1rem;
}
.sg-diagram { flex-shrink: 0; display: block; }
.sg-num {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 600;
  fill: var(--ink-mid);
}
.sg-text { font-size: .95rem; color: var(--ink); font-weight: 600; }

.product-notfound {
  max-width: 600px; margin: 0 auto; text-align: center; padding: 5rem 2rem;
}
.product-notfound h1 {
  font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--ink); margin-bottom: 1rem;
}
.product-notfound p { color: var(--ink-mid); margin-bottom: 1.75rem; }
.product-back-link {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--terra); text-decoration: none; font-weight: 600; font-size: .9rem;
}
.product-back-link:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .logo-main { font-size: 1.3rem; }
  .page { padding: 2.5rem 1.25rem 3rem; }
  .product-page { padding: 1.25rem 1.25rem 3rem; }
  .contact-form { padding: 1.5rem; }

  /* Hamburger menu */
  .nav-toggle { display: flex; }
  .top-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    background: var(--white);
    border-bottom: 2px solid var(--cream-dark);
    box-shadow: var(--shadow-lg);
    padding: .5rem .75rem .85rem;
    display: none;
  }
  .top-nav.open { display: flex; }
  .top-nav-link {
    padding: .9rem 1rem;
    font-size: .82rem;
    letter-spacing: .08em;
    border-radius: var(--radius-sm);
  }

  /* Instagram button: let long label wrap and shrink slightly */
  .instagram-btn {
    font-size: .9rem;
    padding: .9rem 1.4rem;
    white-space: normal;
    max-width: 100%;
  }
}

/* ── CATEGORY-CIRCLE DROPDOWN POSITIONING (centred under each circle) ─────── */
.cat-circle .mega-dropdown {
  left: 50%;
  right: auto;
  transform: translateX(-50%) translateY(-6px);
  max-width: 90vw;
  z-index: 400;
}
.cat-circle:hover .mega-dropdown,
.cat-circle.open .mega-dropdown {
  transform: translateX(-50%) translateY(0);
}

/* On phones the dropdown can't centre under a side circle without clipping —
   anchor it to the full-width circle row instead. */
@media (max-width: 600px) {
  .cat-circles { position: relative; }
  .cat-circle { position: static; }
  .cat-circle .mega-dropdown {
    left: 0;
    right: 0;
    width: auto;
    min-width: 0;
    max-width: none;
    max-height: 72vh;
    overflow-y: auto;
    transform: translateY(-6px);
  }
  .cat-circle:hover .mega-dropdown,
  .cat-circle.open .mega-dropdown {
    transform: translateY(0);
  }
}

/* ── CATEGORY MENU COLOURS (niña = rosa, niño = azul) ────────────────────── */
.cat-circle[data-section="ninas"] .mega-dropdown {
  background: #FCEDF2;
  border-top-color: #E59CB6;
}
.cat-circle[data-section="ninos"] .mega-dropdown {
  background: #EAF2FB;
  border-top-color: #9CBDDC;
}
.cat-circle[data-section="ninas"] .mega-col-title,
.cat-circle[data-section="ninos"] .mega-col-title {
  border-bottom-color: rgba(42, 36, 32, .14);
}

/* ── CATEGORY PAGE HEADER (deja claro el cambio de "página") ─────────────── */
.category-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  border-left: 4px solid var(--terra);
  padding-left: 1rem;
  animation: catHeaderIn .35s ease;
}
.category-header[data-section="ninas"] { border-left-color: #E59CB6; }
.category-header[data-section="ninos"] { border-left-color: #9CBDDC; }
@keyframes catHeaderIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.cat-back-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-mid);
  padding: 0;
  transition: color .15s;
}
.cat-back-btn:hover { color: var(--terra); }
.category-page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.category-page-meta {
  font-size: .8rem;
  color: var(--ink-light);
  letter-spacing: .02em;
}
