:root {
  --bg: #f8f3ef;
  --bg-2: #fffdfb;
  --paper: #ffffff;
  --ink: #3f2b2b;
  --muted: #756664;
  --accent: #8a5a63;
  --accent-dark: #5d3740;
  --accent-soft: #f1d8db;
  --line: rgba(63, 43, 43, .12);
  --shadow: 0 18px 45px rgba(63, 43, 43, .10);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, rgba(241,216,219,.6), transparent 28rem), var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
body.popup-open { overflow: hidden; }
.catalog-popup {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
}
.catalog-popup[hidden] { display: none; }
.catalog-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(63, 43, 43, .42);
  backdrop-filter: blur(5px);
}
.catalog-popup-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 2rem;
  box-shadow: 0 24px 70px rgba(63, 43, 43, .24);
  text-align: center;
}
.catalog-popup-card h2 { margin-bottom: .8rem; }
.catalog-popup-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 auto 1.25rem;
  max-width: 440px;
}
.catalog-popup-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 1.4rem;
}
.catalog-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(241,216,219,.6);
  color: var(--accent-dark);
  cursor: pointer;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}
.catalog-popup-close:hover { background: var(--accent-soft); }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.section-pad { padding: 84px 0; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}
h1, h2, h3 {
  margin: 0;
  line-height: 1.08;
  font-family: "Playfair Display", Georgia, serif;
  color: var(--ink);
}
h1 { font-size: clamp(2.7rem, 5vw, 4.7rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.2rem; }
.section-text, .hero-text, .section-head p:not(.eyebrow), .product-body p, .category-copy p, .contact-card, .stats-grid p, .check-list li { color: var(--muted); }
.topbar {
  background: var(--accent-dark);
  color: #fff;
  font-size: .9rem;
}
.topbar-wrap {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 8px 0;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar-address { justify-self: start; }
.topbar-phone { justify-self: center; font-weight: 700; white-space: nowrap; }
.topbar-social-icons { justify-self: end; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(248,243,239,.82);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}
.brand-text strong {
  display: block;
  font-size: 1.1rem;
  font-family: "Playfair Display", Georgia, serif;
}
.brand-text small {
  display: block;
  color: var(--muted);
  font-weight: 700;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-weight: 700;
}
.main-nav a { color: var(--muted); }
.main-nav a:hover, .main-nav .active-link { color: var(--accent-dark); }
.nav-button {
  color: #fff !important;
  background: var(--ink);
  padding: .85rem 1.05rem;
  border-radius: 999px;
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px auto;
  border-radius: 99px;
}
.hero-grid, .split-grid, .contact-grid, .catalog-hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 42px;
  align-items: center;
}
.hero-actions, .hero-pills, .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}
.hero-actions { margin-top: 28px; }
.hero-pills { margin-top: 24px; }
.hero-pills span {
  background: rgba(255,255,255,.76);
  padding: .7rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.35rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 14px 28px rgba(93,55,64,.18);
}
.btn-soft {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: var(--shadow);
}
.hero-media {
  position: relative;
  background: linear-gradient(145deg, #fff, #f7ece8);
  border-radius: 34px;
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-main-image {
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.hero-badge {
  position: absolute;
  right: 24px;
  bottom: 24px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: .9rem 1rem;
  box-shadow: var(--shadow);
}
.hero-badge strong, .hero-badge span { display: block; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stats-grid article, .category-card, .product-card, .contact-form, .catalog-highlight, .stacked-images, .contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.stats-grid article {
  padding: 1.25rem;
  border-radius: var(--radius-md);
}
.stats-grid strong { display: block; margin-bottom: .35rem; }
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 38px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}
.category-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.category-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.category-copy { padding: 1.1rem 1.1rem 1.25rem; }
.alt-bg { background: rgba(255,255,255,.46); }
.alt-bg-soft { background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(241,216,219,.45)); }
.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 30px;
  display: grid;
  gap: .75rem;
}
.check-list li::before {
  content: "✓";
  width: 1.35rem;
  height: 1.35rem;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  margin-right: .6rem;
  font-size: .8rem;
}
.stacked-images {
  border-radius: 34px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 16px;
  align-items: stretch;
}
.stack {
  position: static;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(63,43,43,.14);
}
.stack.large {
  grid-row: span 2;
  aspect-ratio: 3 / 4;
}
.stack.small.one,
.stack.small.two {
  aspect-ratio: 1 / 1;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}
.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.contact-grid { align-items: start; }
.contact-card {
  display: grid;
  gap: .5rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  margin-top: 1rem;
}
.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.3rem;
  border-radius: 28px;
}
.contact-form label {
  display: grid;
  gap: .4rem;
  font-weight: 700;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(63,43,43,.18);
  padding: .9rem 1rem;
  background: #fffdfc;
}
.catalog-highlight {
  overflow: hidden;
  border-radius: 30px;
  padding: 18px;
}
.catalog-highlight img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.filter-bar { justify-content: center; margin-bottom: 26px; }
.filter-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  padding: .78rem 1.05rem;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.product-card {
  overflow: hidden;
  border-radius: 24px;
}
.product-card.is-hidden { display: none; }
.product-card img {
  width: 100%;
  aspect-ratio: 4 / 4.1;
  object-fit: cover;
  background: #f2e8e5;
}
.product-body { padding: 1.15rem; }
.pill {
  display: inline-flex;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: .35rem .65rem;
}
.product-body h3 { margin: .8rem 0 .55rem; }
.text-btn {
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-weight: 800;
  padding: 0;
  cursor: pointer;
}
.site-footer {
  background: #2d2020;
  color: #fff;
  padding: 54px 0 24px;
}
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-logo {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: .75rem;
}
.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-links a { color: rgba(255,255,255,.8); }
.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  background: #25d366;
  color: #fff;
  padding: .9rem 1.05rem;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(37,211,102,.28);
}

@media (max-width: 980px) {
  .hero-grid, .split-grid, .contact-grid, .catalog-hero-grid { grid-template-columns: 1fr; }
  .stats-grid, .category-grid, .gallery-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .stacked-images { grid-template-columns: 1.15fr .85fr; }
}

@media (max-width: 760px) {
  .topbar-wrap { flex-direction: column; align-items: flex-start; }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 84px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem;
    border-radius: 24px;
    background: rgba(255,255,255,.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: .9rem 1rem; }
  .nav-button { text-align: center; margin-top: .3rem; }
  .stats-grid, .category-grid, .product-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid img { height: 180px; }
  .category-card img { height: auto; }
  .stacked-images { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .stack.large { grid-row: auto; aspect-ratio: 1 / 1; }
  .stack { width: 100% !important; height: auto; }
  .footer-wrap { flex-direction: column; align-items: flex-start; }
  .floating-whatsapp { left: 18px; right: auto; }
}


/* Espacios temporales sin fotografías */
.image-placeholder {
  width: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  border-radius: inherit;
  border: 1px dashed rgba(63, 43, 43, .22);
  background:
    linear-gradient(135deg, rgba(255,255,255,.76), rgba(241,216,219,.42)),
    repeating-linear-gradient(45deg, rgba(63,43,43,.035) 0 10px, rgba(255,255,255,.25) 10px 20px);
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}
.image-placeholder span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
}
.hero-main-image.image-placeholder,
.catalog-highlight .image-placeholder {
  aspect-ratio: 4 / 5;
  min-height: 420px;
  border-radius: 22px;
}
.category-card .image-placeholder {
  height: 240px;
  border-radius: 0;
  box-shadow: none;
}
.product-card .image-placeholder {
  aspect-ratio: 4 / 4.1;
  min-height: 250px;
  border-radius: 0;
  box-shadow: none;
}
.gallery-grid figure .image-placeholder {
  height: 340px;
  border-radius: 0;
  box-shadow: none;
}
.stack.image-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff, #f6e9e7);
}
.stack.large.image-placeholder { min-height: 300px; }
.stack.small.image-placeholder { min-height: 190px; }

/* Catálogo autoadministrable */
.card-bottom-public {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
}
.empty-catalog {
  max-width: 680px;
  margin: 28px auto 0;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px;
}
.empty-catalog h3 { margin-bottom: .4rem; }
.empty-catalog p { color: var(--muted); }
.loading-card { pointer-events: none; }

.cart-count {
  display: inline-grid;
  min-width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 900;
  padding: 0 .35rem;
}
.product-actions {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 28px;
  align-items: start;
}
.align-left { text-align: left; margin-left: 0; }
.cart-items {
  display: grid;
  gap: 14px;
}
.cart-item {
  display: grid;
  grid-template-columns: 92px 1fr auto auto;
  gap: 14px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 22px;
  padding: 14px;
}
.cart-item img,
.image-placeholder.mini {
  width: 92px;
  height: 92px;
  border-radius: 16px;
  object-fit: cover;
}
.qty-control {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  background: #fffdfb;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .3rem .45rem;
}
.qty-control button {
  border: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 900;
  cursor: pointer;
}
.cart-summary {
  position: sticky;
  top: 110px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 28px;
  padding: 22px;
}
.total-box {
  display: grid;
  gap: .35rem;
  background: #fbf7f5;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  margin: 1rem 0;
}
.total-box strong {
  font-size: 1.7rem;
  color: var(--accent-dark);
}
.total-box small,
.muted { color: var(--muted); }
.payment-flow-card {
  padding: 26px;
}
.payment-flow-card ol {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
  display: grid;
  gap: .45rem;
}
.thanks-card {
  width: min(760px, calc(100% - 32px));
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 34px;
  padding: 38px;
  text-align: center;
}
.thanks-card .footer-logo { margin: 0 auto 1rem; }

@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item .qty-control,
  .cart-item .text-btn { grid-column: 2; justify-self: start; }
}


.footer-social-icons {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.social-icon {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.social-icon svg {
  width: 22px;
  height: 22px;
}
.social-icon:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.38);
}
@media (max-width: 760px) {
  .footer-social-icons {
    width: auto;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

.topbar-social-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.mini-social-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.08);
}
.mini-social-icon svg { width: 16px; height: 16px; }
.mini-social-icon:hover { background: rgba(255,255,255,.15); }


/* Captcha delicado para formularios */
.captcha-field {
  display: grid;
  gap: .45rem;
}
.captcha-field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.captcha-question {
  color: var(--accent-dark);
  background: rgba(241, 216, 219, .48);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .32rem .62rem;
  font-size: .84rem;
  font-weight: 800;
  white-space: nowrap;
}
.captcha-row {
  display: grid;
  grid-template-columns: 1fr 34px;
  align-items: center;
  gap: .55rem;
}
.captcha-status {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: .95rem;
  line-height: 1;
  opacity: 0;
  transform: scale(.9);
  transition: opacity .18s ease, transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  border: 1px solid transparent;
}
.captcha-status.is-ok {
  opacity: 1;
  transform: scale(1);
  color: #5d7d62;
  background: rgba(93, 125, 98, .10);
  border-color: rgba(93, 125, 98, .20);
}
.captcha-status.is-error {
  opacity: 1;
  transform: scale(1);
  color: #9f5b5b;
  background: rgba(159, 91, 91, .10);
  border-color: rgba(159, 91, 91, .20);
}
.captcha-row input.is-error {
  border-color: rgba(159, 91, 91, .42);
  box-shadow: 0 0 0 4px rgba(159, 91, 91, .08);
}
.captcha-row input.is-ok {
  border-color: rgba(93, 125, 98, .40);
  box-shadow: 0 0 0 4px rgba(93, 125, 98, .08);
}
@media (max-width: 520px) {
  .captcha-field label { align-items: flex-start; flex-direction: column; }
}

.product-meta {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  margin: .8rem 0 .55rem;
}
.product-meta span {
  background: #fff8f6;
  border: 1px solid var(--line);
  color: var(--accent-dark);
  border-radius: 999px;
  padding: .35rem .55rem;
  font-size: .76rem;
  font-weight: 800;
}
.product-includes {
  font-size: .86rem;
  line-height: 1.45;
  background: rgba(241,216,219,.35);
  border: 1px solid rgba(138,90,99,.15);
  padding: .7rem .75rem;
  border-radius: 14px;
}
.small-cart {
  margin: .2rem 0 0;
  color: var(--muted);
  font-size: .86rem;
}
.kit-callout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: center;
}
.kit-callout img {
  width: 100%;
  max-width: 480px;
  height: 360px;
  object-fit: cover;
  object-position: center;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  justify-self: center;
}
@media (max-width: 760px) {
  .kit-callout { grid-template-columns: 1fr; }
  .kit-callout img { height: 260px; max-width: 100%; }
}


.product-variant-box {
  display: grid;
  gap: .38rem;
  margin: .85rem 0 .35rem;
}
.product-variant-box label {
  color: var(--accent-dark);
  font-size: .8rem;
  font-weight: 800;
}
.product-option-select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdfb;
  color: var(--text);
  padding: .68rem .78rem;
  font: inherit;
}
.variant-note {
  margin: .55rem 0 .3rem;
  color: var(--accent-dark);
  font-size: .84rem;
  font-weight: 700;
}
.product-price {
  white-space: nowrap;
}
@media (max-width: 640px) {
  .card-bottom-public {
    flex-direction: column;
    align-items: flex-start;
  }
}


.shipping-box {
  display: grid;
  gap: .85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fbf7f5;
}
.shipping-box[hidden] { display: none; }
.shipping-box h3 { margin: 0; }
.shipping-box p { margin: 0; color: var(--muted); }
.shipping-note {
  font-size: .9rem;
  padding: .8rem;
  border-radius: 14px;
  background: #fff;
  border: 1px dashed var(--line);
  line-height: 1.45;
}


.address-search-box {
  display: grid;
  gap: .75rem;
  background: #fff8f6;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
}
.address-search-box[hidden] { display: none; }
.address-search-box h3 { margin: 0; }
.address-search-box p { margin: 0; color: var(--muted); }
.address-suggestions {
  display: grid;
  gap: .5rem;
  max-height: 270px;
  overflow: auto;
  padding-right: .2rem;
}
.address-suggestions[hidden] { display: none; }
.address-suggestion {
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: .75rem .85rem;
  cursor: pointer;
  color: var(--text);
}
.address-suggestion:hover {
  border-color: var(--accent-dark);
  box-shadow: 0 8px 20px rgba(63,43,43,.08);
}
.address-suggestion strong,
.address-suggestion span {
  display: block;
}
.address-suggestion span {
  margin-top: .25rem;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.35;
}


.payment-box,
.payment-method-box,
.payment-status-card {
  display: grid;
  gap: .85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff8f6;
}
.payment-box h3,
.payment-method-box h4,
.payment-status-card h2 {
  margin: 0;
}
.payment-box p,
.payment-method-box p,
.payment-status-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.payment-method-box {
  background: #fbf7f5;
}
.payment-method-box[hidden] {
  display: none;
}
.payment-warning {
  color: var(--accent-dark) !important;
  font-weight: 700;
}
.bank-data-box {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: .85rem;
}
.bank-data-box p {
  margin-top: .25rem;
}
.check-line {
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row;
  align-items: flex-start;
  gap: .65rem !important;
  font-weight: 700;
  line-height: 1.45;
}
.check-line input {
  width: auto;
  margin-top: .2rem;
}


.mobile-upload-field {
  display: grid;
  gap: .45rem;
}
.upload-label {
  font-weight: 800;
  color: var(--ink);
}
.upload-button {
  display: inline-flex !important;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-dark);
  background: #fff;
  color: var(--accent-dark);
  border-radius: 999px;
  padding: .75rem 1rem;
  font-weight: 900 !important;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(63,43,43,.08);
}
.upload-button::before {
  content: '📎';
  margin-right: .45rem;
}
.mobile-upload-field input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.upload-help {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}
.upload-file-name {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  color: var(--accent-dark);
  background: rgba(241,216,219,.38);
  border: 1px solid rgba(138,90,99,.12);
  border-radius: 999px;
  padding: .35rem .65rem;
  font-size: .78rem;
  font-weight: 800;
  word-break: break-word;
}
@media (max-width: 640px) {
  .upload-button {
    width: 100%;
    min-height: 48px;
  }
}


/* Ajuste catálogo: tarjetas más pequeñas y carga por tandas */
.filter-bar {
  gap: .5rem;
  margin-bottom: 20px;
}
.filter-btn {
  padding: .56rem .82rem;
  font-size: .84rem;
}
.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
.category-card {
  border-radius: 20px;
}
.category-card img {
  height: 170px;
  object-fit: cover;
}
.category-copy {
  padding: .85rem .9rem 1rem;
}
.category-copy h3 {
  font-size: 1rem;
}
.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.product-card {
  border-radius: 18px;
}
.product-card img {
  width: 100%;
  height: 210px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center center;
  background: #f8f1ee;
  padding: 10px;
}
.product-body {
  padding: .85rem;
}
.product-body h3 {
  font-size: 1rem;
  margin: .58rem 0 .38rem;
}
.product-body p {
  font-size: .86rem;
  line-height: 1.45;
}
.pill {
  font-size: .66rem;
  padding: .28rem .5rem;
}
.product-meta {
  gap: .32rem;
  margin: .55rem 0 .4rem;
}
.product-meta span {
  font-size: .68rem;
  padding: .28rem .45rem;
}
.product-includes {
  font-size: .76rem;
  padding: .55rem .6rem;
  border-radius: 12px;
}
.product-variant-box {
  margin: .6rem 0 .25rem;
}
.product-option-select {
  padding: .55rem .62rem;
  border-radius: 10px;
  font-size: .82rem;
}
.card-bottom-public {
  margin-top: .7rem;
  padding-top: .65rem;
  align-items: flex-start;
  gap: .55rem;
}
.product-price {
  font-size: .98rem;
}
.product-actions {
  gap: .5rem;
  justify-content: flex-start;
}
.catalog-load-more {
  display: grid;
  justify-items: center;
  gap: .7rem;
  margin: 28px auto 0;
  text-align: center;
}
.catalog-more-note {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}
.catalog-load-more[hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-card img { height: 205px; }
}
@media (max-width: 760px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card img { height: 190px; }
  .category-card img { height: 145px; }
}
@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card img { height: 260px; }
}


/* Sección emocional de tienda */
.atelier-space {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 15%, rgba(241,216,219,.56), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.54), rgba(255,248,245,.76));
}
.atelier-story-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 34px;
  align-items: center;
}
.atelier-story-copy {
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 32px;
  padding: clamp(24px, 4vw, 42px);
}
.atelier-story-copy .section-text {
  margin-top: 18px;
}
.atelier-mini-cards {
  display: grid;
  gap: 12px;
  margin: 24px 0 28px;
}
.atelier-mini-cards article {
  display: grid;
  gap: 4px;
  background: #fffaf8;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px 15px;
}
.atelier-mini-cards strong {
  color: var(--ink);
}
.atelier-mini-cards span {
  color: var(--muted);
  font-size: .92rem;
}
.atelier-photo-mosaic {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  grid-auto-rows: 185px;
  gap: 14px;
}
.atelier-photo-mosaic figure {
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 34px rgba(63,43,43,.16);
  background: #f8f1ee;
}
.atelier-photo-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.atelier-photo-mosaic .mosaic-wide {
  grid-column: 1 / -1;
}
.atelier-photo-mosaic .mosaic-tall {
  grid-row: span 2;
}
.atelier-quote-strip {
  margin-top: 28px;
  background: var(--ink);
  color: #fff;
  border-radius: 28px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--shadow);
}
.atelier-quote-strip span {
  color: rgba(255,255,255,.82);
  font-weight: 700;
}
.atelier-quote-strip strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  max-width: 680px;
}
@media (max-width: 980px) {
  .atelier-story-grid { grid-template-columns: 1fr; }
  .atelier-photo-mosaic { grid-auto-rows: 180px; }
  .atelier-quote-strip { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 620px) {
  .atelier-photo-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }
  .atelier-photo-mosaic .mosaic-wide,
  .atelier-photo-mosaic .mosaic-tall {
    grid-column: auto;
    grid-row: auto;
  }
}


/* Corrección sección tienda: diseño ordenado, fotos controladas y sin mosaico gigante */
.atelier-space-clean {
  background:
    radial-gradient(circle at 10% 12%, rgba(241,216,219,.42), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,248,245,.78));
}
.atelier-showcase {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
}
.atelier-showcase-copy {
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 30px;
  padding: clamp(22px, 4vw, 40px);
}
.atelier-showcase-copy h2 {
  max-width: 740px;
}
.atelier-showcase-copy .section-text {
  margin-top: 16px;
}
.clean-cards {
  display: grid;
  gap: 10px;
  margin: 22px 0 26px;
}
.clean-cards article {
  display: grid;
  gap: 3px;
  background: #fffaf8;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
}
.clean-cards span {
  color: var(--muted);
  font-size: .92rem;
}
.atelier-main-photo {
  position: relative;
  margin: 0;
  height: clamp(360px, 42vw, 520px);
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 45px rgba(63,43,43,.16);
  background: #f8f1ee;
}
.atelier-main-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}
.atelier-main-photo figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .75rem 1rem;
  font-weight: 800;
  box-shadow: var(--shadow);
  text-align: center;
}
.atelier-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.atelier-detail-grid article {
  overflow: hidden;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.atelier-detail-grid img {
  width: 100%;
  height: 210px;
  display: block;
  object-fit: cover;
  object-position: center center;
  background: #f8f1ee;
}
.atelier-detail-grid div {
  padding: 15px 16px 18px;
}
.atelier-detail-grid strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}
.atelier-detail-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.45;
}
@media (max-width: 980px) {
  .atelier-showcase {
    grid-template-columns: 1fr;
  }
  .atelier-main-photo {
    height: 420px;
  }
}
@media (max-width: 760px) {
  .atelier-detail-grid {
    grid-template-columns: 1fr;
  }
  .atelier-detail-grid img {
    height: 240px;
  }
}
@media (max-width: 520px) {
  .atelier-main-photo {
    height: 340px;
    border-radius: 24px;
  }
  .atelier-main-photo figcaption {
    position: static;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }
}


/* Mejora del botón de compra en las tarjetas del catálogo */
.product-actions-shop {
  width: 100%;
  align-items: stretch;
  justify-content: flex-start;
  gap: .55rem;
}

.cart-button {
  width: 100%;
  min-height: 44px;
  padding: .78rem 1rem;
  font-size: .92rem;
  line-height: 1;
  box-shadow: 0 10px 20px rgba(93,55,64,.16);
}

.quick-consult {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-weight: 800;
  font-size: .82rem;
  cursor: pointer;
  padding: .2rem 0 0;
  text-align: center;
}

.quick-consult:hover {
  text-decoration: underline;
}

.card-bottom-public {
  align-items: flex-start;
}

@media (max-width: 760px) {
  .card-bottom-public {
    flex-direction: column;
    align-items: stretch;
  }
  .product-actions-shop {
    width: 100%;
  }
}


/* Corrección carrito visible: el botón principal de cada producto ahora es comprar/carrito */
.product-actions-shop,
.product-actions {
  width: 100%;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: .55rem !important;
  justify-content: stretch !important;
}

.cart-button,
.product-card .add-cart {
  width: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--accent-dark, #4b2f33) !important;
  color: #fff !important;
  font-weight: 900 !important;
  padding: .78rem 1rem !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

.product-card .quick-consult,
.product-card .quote-product {
  width: 100% !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--muted, #7d6666) !important;
  font-size: .82rem !important;
  font-weight: 700 !important;
  padding: .2rem 0 0 !important;
  text-align: center !important;
  cursor: pointer !important;
}

.nav-cart-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: .4rem !important;
}

.nav-cart-button .cart-count {
  background: rgba(255,255,255,.22) !important;
  color: inherit !important;
}


/* Carrito de navegación: solo ícono + contador */
.cart-icon-only {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .42rem !important;
  padding: .72rem .86rem !important;
  min-width: 58px;
  line-height: 1 !important;
}
.cart-icon-only .cart-symbol {
  font-size: 1.15rem;
  line-height: 1;
  display: inline-flex;
}
.cart-icon-only .cart-count {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 .36rem;
  background: rgba(255,255,255,.24) !important;
  color: #fff !important;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 900;
}
.main-nav > a:not(.cart-icon-only) .cart-count {
  display: none !important;
}


.bank-data-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .7rem;
}
.copy-bank-button {
  border: 0;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: .6rem .85rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.copy-bank-button:hover {
  filter: brightness(.96);
}
.bank-data-list {
  display: grid;
  gap: .45rem;
  margin: 0;
}
.bank-data-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: .6rem;
  align-items: start;
  padding-bottom: .45rem;
  border-bottom: 1px solid rgba(63, 43, 43, .08);
}
.bank-data-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.bank-data-list dt {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}
.bank-data-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
  word-break: break-word;
}
.copy-feedback {
  display: block;
  min-height: 1.1rem;
  margin-top: .65rem;
  color: var(--accent-dark);
  font-size: .8rem;
  font-weight: 700;
}
@media (max-width: 560px) {
  .bank-data-head { align-items: flex-start; flex-direction: column; }
  .copy-bank-button { width: 100%; }
  .bank-data-list div { grid-template-columns: 1fr; gap: .12rem; }
}


/* Ajuste tipográfico global - versión más fina y menos grande */
html { font-size: 93%; }
body { font-size: .95rem; line-height: 1.52; }
p, li { font-size: .94rem; line-height: 1.52; }
.hero-copy h1,
.hero-text h1,
.hero h1,
.page-hero h1,
.catalog-hero h1,
h1 {
  font-size: clamp(2rem, 4.8vw, 3.85rem) !important;
  line-height: .98 !important;
  letter-spacing: -0.025em;
}
.section-head h2,
.section-title,
h2 {
  font-size: clamp(1.55rem, 3vw, 2.45rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.012em;
}
h3 { font-size: 1.08rem; line-height: 1.18; }
.lead, .hero-copy p, .hero-text p, .section-head p { font-size: .98rem !important; line-height: 1.55; }
.main-nav, .topbar, .brand-text small { font-size: .88rem; }
.btn, .text-btn, button, input, select, textarea, label {
  font-size: .9rem;
}
.btn {
  padding: .78rem 1.08rem !important;
  font-weight: 800;
}
.filter-btn { padding: .62rem .86rem !important; font-size: .86rem; }
.product-body { padding: .92rem !important; }
.product-body h3 { font-size: .98rem !important; line-height: 1.18; margin: .62rem 0 .38rem !important; }
.product-body p { font-size: .82rem !important; line-height: 1.42; }
.product-includes { font-size: .76rem !important; line-height: 1.36; padding: .55rem .62rem !important; }
.product-meta span, .pill, .variant-note, .small-cart { font-size: .70rem !important; }
.product-option-select { font-size: .82rem !important; padding: .52rem .62rem !important; }
.card-bottom-public strong, .product-price { font-size: .95rem !important; }
.product-actions .text-btn { font-size: .82rem !important; }
.category-copy h3 { font-size: 1rem !important; }
.category-copy p { font-size: .84rem !important; }
.stats-grid strong { font-size: 1.05rem; }
.stats-grid span, .stats-grid p { font-size: .84rem; }
.footer-links, .site-footer p, .footer-wrap { font-size: .86rem; }
.cart-item h3 { font-size: 1rem !important; }
.cart-summary h2, .contact-form h2 { font-size: 1.35rem !important; }
.catalog-popup h2 { font-size: 1.45rem !important; }
.catalog-popup p { font-size: .9rem !important; }
@media (max-width: 760px) {
  html { font-size: 91%; }
  .hero-copy h1, .hero-text h1, .hero h1, h1 { font-size: clamp(1.85rem, 9vw, 2.75rem) !important; }
  h2 { font-size: clamp(1.35rem, 6vw, 2rem) !important; }
  .btn { padding: .72rem .95rem !important; }
}


/* Navegación suave hacia secciones desde el menú */
#contacto,
#tienda,
#categorias,
#galeria {
  scroll-margin-top: 110px;
}


/* Ajuste de espacios entre secciones - más compacto y elegante */
.section-pad {
  padding-top: 54px !important;
  padding-bottom: 54px !important;
}
.section-head {
  margin-bottom: 28px !important;
}
.hero-grid,
.split-grid,
.contact-grid,
.catalog-hero-grid {
  gap: 28px !important;
}
#contacto,
#tienda,
#categorias,
#galeria {
  scroll-margin-top: 92px !important;
}
@media (max-width: 760px) {
  .section-pad {
    padding-top: 38px !important;
    padding-bottom: 38px !important;
  }
  .section-head {
    margin-bottom: 22px !important;
  }
}

.payment-approved-card { border-color: rgba(69, 122, 86, .28); background: linear-gradient(180deg, rgba(247, 252, 248, .96), rgba(255,255,255,.96)); }
.payment-approved-card h2 { color: #315f43; }


/* Mejora visual forma de pago: transferencia ordenada y Mercado Pago claro */
.bank-data-box {
  border: 1px solid rgba(138, 90, 99, .18);
  border-radius: 18px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 10px 26px rgba(63,43,43,.05);
}
.bank-data-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .85rem;
}
.bank-data-head strong {
  font-size: .98rem;
  color: var(--ink);
}
.bank-data-list {
  display: grid;
  gap: .55rem;
  margin: 0;
}
.bank-data-list div {
  display: grid;
  grid-template-columns: minmax(115px, 38%) 1fr;
  gap: .75rem;
  align-items: start;
  padding: .55rem .65rem;
  border-radius: 12px;
  background: #fbf7f5;
}
.bank-data-list dt {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.bank-data-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  text-align: right;
  word-break: break-word;
}
.copy-bank-button,
.upload-button {
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--accent-dark) !important;
  color: #fff !important;
  padding: .72rem 1rem !important;
  font-size: .82rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  box-shadow: 0 12px 22px rgba(111,80,76,.18) !important;
  cursor: pointer;
}
.copy-bank-button:hover,
.upload-button:hover {
  transform: translateY(-1px);
  filter: brightness(.98);
}
.upload-card {
  background: #fff;
  border: 1px solid rgba(138, 90, 99, .16);
  border-radius: 18px;
  padding: 1rem;
}
.upload-button::before {
  content: '📎';
  margin-right: .45rem;
}
.upload-file-name {
  background: rgba(241,216,219,.44);
  color: var(--accent-dark);
}
.transfer-confirm {
  background: #fff;
  border: 1px solid rgba(138, 90, 99, .16);
  border-radius: 16px;
  padding: .85rem .95rem;
}
.mercado-card {
  border-color: rgba(69,122,86,.22);
  background: linear-gradient(180deg, rgba(247,252,248,.98), rgba(255,255,255,.98));
}
.mercado-card h4 { color: #315f43; }
@media (max-width: 640px) {
  .bank-data-head {
    align-items: stretch;
    flex-direction: column;
  }
  .copy-bank-button,
  .upload-button {
    width: 100% !important;
    justify-content: center;
    min-height: 46px;
  }
  .bank-data-list div {
    grid-template-columns: 1fr;
    gap: .25rem;
  }
  .bank-data-list dd {
    text-align: left;
  }
}


/* Cupones de descuento */
.coupon-box{background:#fffdfb;border:1px solid rgba(63,43,43,.14);border-radius:22px;padding:16px;margin:16px 0;box-shadow:0 12px 28px rgba(63,43,43,.06)}
.coupon-box h3{margin:.1rem 0 .35rem;font-family:var(--font-serif, Georgia, serif)}
.coupon-box p{margin:.2rem 0 .8rem;color:#756664;line-height:1.5}
.coupon-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}
.coupon-row input{text-transform:uppercase;letter-spacing:.06em;font-weight:800}
.coupon-message{font-weight:800;margin:.65rem 0 0!important}.coupon-message.is-ok{color:#2f7b55}.coupon-message.is-error{color:#9b2f2f}
@media(max-width:640px){.coupon-row{grid-template-columns:1fr}.coupon-row .btn{justify-content:center}}


/* Ajuste final: verificación más ordenada */
.captcha-field label {
  justify-content: flex-start;
  gap: .55rem;
  flex-wrap: wrap;
}
.captcha-question {
  margin-left: 0;
}
@media (max-width: 520px) {
  .captcha-field label {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .topbar-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: .55rem;
  }
  .topbar-address,
  .topbar-phone,
  .topbar-social-icons {
    justify-self: center;
  }
}

.contact-card a { color: var(--accent-dark); font-weight: 700; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }


.stock-label{font-weight:800}.stock-ok{color:#2f7b55}.stock-out{color:#9b2f2f}.cart-button:disabled{opacity:.55;cursor:not-allowed;filter:grayscale(.25)}.qty-control button:disabled{opacity:.35;cursor:not-allowed}

.form-alert {
  padding: 12px 14px;
  border: 1px solid #eadbd6;
  border-radius: 16px;
  background: #fff8f3;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.45;
}

/* Corrección final Nuestro espacio: evita fotos gigantes o desordenadas */
#tienda.atelier-space,
.atelier-space-clean {
  overflow: hidden !important;
}

/* Corrección catálogo: la carga progresiva debe ocultar las tarjetas no visibles. */
#catalogo-grid .product-card.is-hidden {
  display: none !important;
}

#tienda .atelier-showcase {
  display: grid !important;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr) !important;
  align-items: center !important;
  gap: clamp(22px, 4vw, 42px) !important;
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
#tienda .atelier-showcase-copy {
  width: 100% !important;
  max-width: none !important;
}
#tienda .atelier-main-photo {
  width: 100% !important;
  height: clamp(320px, 36vw, 470px) !important;
  max-height: 470px !important;
  margin: 0 !important;
  overflow: hidden !important;
}
#tienda .atelier-main-photo img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}
#tienda .atelier-detail-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  max-width: 1120px !important;
  margin: 22px auto 0 !important;
}
#tienda .atelier-detail-grid article {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
#tienda .atelier-detail-grid img {
  width: 100% !important;
  height: 210px !important;
  max-height: 210px !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}
#tienda .atelier-detail-grid div {
  padding: 15px 16px 18px !important;
}
@media (max-width: 980px) {
  #tienda .atelier-showcase {
    grid-template-columns: 1fr !important;
  }
  #tienda .atelier-main-photo {
    height: 360px !important;
    max-height: 360px !important;
  }
  #tienda .atelier-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 620px) {
  #tienda .atelier-main-photo {
    height: 250px !important;
    max-height: 250px !important;
  }
  #tienda .atelier-detail-grid {
    grid-template-columns: 1fr !important;
  }
  #tienda .atelier-detail-grid img {
    height: 210px !important;
    max-height: 210px !important;
  }
}

/* Ajuste final: catálogo vuelve a formato cuadrado y 'Nuestro espacio' queda ordenado */
#catalogo-grid.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
#catalogo-grid .product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
#catalogo-grid .product-card > img,
#catalogo-grid .product-card > .image-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 0;
  display: block;
  background: #f2e8e5;
}
#catalogo-grid .product-card > img {
  object-fit: cover;
  object-position: center;
}
#catalogo-grid .product-body {
  flex: 1;
}
#catalogo-grid .product-card .product-body {
  padding: 14px 14px 16px;
}
#catalogo-grid .product-card h3 {
  font-size: 1rem;
  line-height: 1.25;
}
#catalogo-grid .product-card p,
#catalogo-grid .product-card li,
#catalogo-grid .product-card .product-note {
  font-size: 0.88rem;
}
#catalogo-grid .product-card .product-price {
  font-size: 1rem;
}
#catalogo-grid .product-card .primary-button,
#catalogo-grid .product-card .secondary-button,
#catalogo-grid .product-card button {
  font-size: 0.88rem;
  padding: 0.7rem 0.95rem;
}

#tienda .atelier-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
}
#tienda .atelier-main-photo {
  height: clamp(300px, 36vw, 440px);
  max-height: 440px;
}
#tienda .atelier-main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
#tienda .atelier-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
#tienda .atelier-detail-grid article {
  display: flex;
  flex-direction: column;
}
#tienda .atelier-detail-grid img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 1100px) {
  #catalogo-grid.product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  #catalogo-grid.product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  #tienda .atelier-showcase {
    grid-template-columns: 1fr;
  }
  #tienda .atelier-main-photo {
    height: 340px;
    max-height: 340px;
  }
  #tienda .atelier-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #tienda .atelier-detail-grid article:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  #catalogo-grid.product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  #catalogo-grid .product-card .product-body {
    padding: 12px 12px 14px;
  }
  #catalogo-grid .product-card h3 {
    font-size: 0.94rem;
  }
  #catalogo-grid .product-card p,
  #catalogo-grid .product-card li,
  #catalogo-grid .product-card .product-note,
  #catalogo-grid .product-card .product-price {
    font-size: 0.82rem;
  }
  #catalogo-grid .product-card .primary-button,
  #catalogo-grid .product-card .secondary-button,
  #catalogo-grid .product-card button {
    font-size: 0.8rem;
    padding: 0.62rem 0.82rem;
  }
  #tienda .atelier-showcase-copy {
    padding: 18px;
    border-radius: 22px;
  }
  #tienda .atelier-main-photo {
    height: 250px;
    max-height: 250px;
    border-radius: 20px;
  }
  #tienda .atelier-main-photo figcaption {
    font-size: .84rem;
    padding: .65rem .8rem;
  }
  #tienda .atelier-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  #tienda .atelier-detail-grid article:last-child {
    grid-column: 1 / -1;
  }
  #tienda .atelier-detail-grid img {
    height: 150px;
  }
  #tienda .atelier-detail-grid div {
    padding: 12px 12px 14px;
  }
  #tienda .atelier-detail-grid p {
    font-size: .88rem;
  }
}

/* Subcategorías del catálogo */
.subfilter-bar { margin-top: -14px; margin-bottom: 28px; gap: 8px; }
.subfilter-bar[hidden] { display: none !important; }
.subfilter-bar .filter-btn { padding: .58rem .86rem; font-size: .88rem; background: #fffaf8; }
.subfilter-bar .filter-btn.active { background: #8a5a63; border-color: #8a5a63; color: #fff; }

/* Tercer nivel de filtros: temas flotantes, no empuja el catálogo */
.subfilter-wrap { position: relative; display: inline-flex; }
.catalog-theme-overlay {
  position: absolute;
  z-index: 80;
  min-width: 210px;
  display: grid;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 250, 248, .98);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(63,43,43,.18);
}
.theme-filter-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: .6rem .85rem;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}
.theme-filter-btn:hover, .theme-filter-btn.active { background: #8a5a63; border-color: #8a5a63; color: #fff; }
@media(max-width:640px){ .catalog-theme-overlay { left: 12px !important; right: 12px; min-width: auto; } }
