@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
  --bg: #FFFFFF;
  --bg-soft: #FDF6F4;
  --surface: #FFFFFF;
  --border: #EEE2DC;
  --ink: #241C18;
  --ink-soft: #8A7A70;
  --coral: #E15A4E;
  --coral-dark: #C6483E;
  --coral-soft: #FBDAD5;
  --caramel: #D9A876;
  --caramel-dark: #8A5A2A;
  --pink: #F7D9E0;
  --star: #D9A876;
  --success: #3F8F5F;
  --shadow: rgba(60, 40, 30, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Quicksand', system-ui, sans-serif;
}

.brand-word, h1, h2, .btn-add, .hero h1 { font-family: 'Baloo 2', system-ui, sans-serif; }

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

.frame { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Top announcement bar */
.announce {
  background: var(--coral);
  color: #FFF3EF;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 16px;
}

/* Header */
header.site { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30; }
nav.main { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.brand-word { font-size: 18px; font-weight: 700; color: var(--coral-dark); }
.nav-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; font-size: 14px; font-weight: 600; }
.nav-links a { text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 3px; }
.nav-links a.active, .nav-links a:hover { border-bottom-color: var(--coral); color: var(--coral-dark); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-soft); display: flex; align-items: center; justify-content: center; position: relative; cursor: pointer; }
.icon-btn svg { width: 17px; height: 17px; }
.cart-count { position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; padding: 0 3px; background: var(--coral); color: #fff; font-size: 9.5px; font-weight: 700; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 820px) { .nav-links { display: none; } }

/* Footer */
footer.site { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 32px 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.footer-brand img { width: 34px; height: 34px; border-radius: 50%; }
.footer-brand span { font-weight: 700; color: var(--coral-dark); font-family: 'Baloo 2'; }
footer.site h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin: 0 0 10px; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
footer.site p.tag { font-size: 12px; color: var(--ink-soft); margin: 0; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* Buttons */
.btn-add { border: none; border-radius: 10px; background: var(--coral); color: #FFF6F2; font-weight: 700; font-size: 15px; cursor: pointer; padding: 12px 22px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-add:hover { background: var(--coral-dark); }
.btn-outline { border: 2px solid var(--caramel); border-radius: 10px; background: transparent; color: var(--ink); font-weight: 700; font-family: 'Baloo 2'; font-size: 15px; padding: 10px 20px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }

/* Product card (shared by home + catalogo) */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: box-shadow 0.15s ease, transform 0.15s ease; }
.card:hover { box-shadow: 0 10px 26px var(--shadow); transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 1/1; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; }
.card-media svg { width: 58%; height: 58%; }
.badge { position: absolute; top: 10px; left: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; }
.badge--new { background: var(--caramel); color: #3A2A10; }
.badge--sale { background: var(--coral); color: #fff; }
.badge--best { background: var(--ink); color: var(--bg); }
.quick-add { position: absolute; bottom: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--surface); box-shadow: 0 4px 12px var(--shadow); display: flex; align-items: center; justify-content: center; color: var(--coral-dark); cursor: pointer; font-size: 18px; }
.card-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card-brand { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.card-name { font-size: 13.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.rating { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-soft); }
.stars { color: var(--star); letter-spacing: 1px; font-size: 12px; }
.price-row { display: flex; align-items: baseline; gap: 7px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.price { font-weight: 700; font-size: 15px; color: var(--ink); }
.price.on-sale { color: var(--coral-dark); }
.price-compare { font-size: 12px; color: var(--ink-soft); text-decoration: line-through; }
.swatches { display: flex; gap: 5px; margin-top: 2px; }
.swatch { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 1px var(--border), 0 0 0 2px var(--surface) inset; }

/* ===== HOME ===== */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; padding: 48px 20px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral-dark); background: var(--coral-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.1; margin: 0 0 14px; font-weight: 800; text-wrap: balance; }
.hero h1 span { color: var(--coral); }
.hero p.lead { font-size: 15.5px; color: var(--ink-soft); max-width: 46ch; margin: 0 0 24px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 280px; }
.blob { position: absolute; width: 260px; height: 260px; background: var(--pink); border-radius: 42% 58% 63% 37% / 45% 41% 59% 55%; }
.hero-art img { position: relative; width: 170px; height: 170px; border-radius: 50%; box-shadow: 0 18px 40px var(--shadow); border: 6px solid var(--surface); }

.section { padding: 8px 20px 48px; max-width: 1180px; margin: 0 auto; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { font-size: 21px; font-weight: 700; margin: 0; }
.section-head a { font-size: 13px; font-weight: 700; color: var(--coral-dark); text-decoration: none; }

.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 20px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; text-decoration: none; color: var(--ink); }
.cat-card:hover { box-shadow: 0 10px 26px var(--shadow); transform: translateY(-2px); }
.cat-icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cat-icon svg { width: 26px; height: 26px; }
.cat-card span { font-weight: 700; font-size: 14px; font-family: 'Baloo 2', sans-serif; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.promo-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--ink); color: var(--bg); border-radius: 20px; padding: 32px; flex-wrap: wrap; }
.promo-banner h2 { color: var(--bg); margin: 0 0 6px; font-size: 22px; }
.promo-banner p { margin: 0; color: #D8CCC3; font-size: 14px; }

.sucursales-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.suc-card { border: 1px solid var(--border); border-radius: 14px; padding: 16px; font-size: 13px; }
.suc-card strong { display: block; font-family: 'Baloo 2'; font-size: 14.5px; margin-bottom: 4px; }
.suc-card span { color: var(--ink-soft); }

/* ===== CATALOGO ===== */
.titlebar { padding: 20px 0 4px; }
.crumb { font-size: 12px; color: var(--ink-soft); margin-bottom: 8px; }
.crumb a { text-decoration: none; }
.titlebar-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.titlebar h1 { font-size: 26px; font-weight: 700; margin: 0; }
.result-count { font-size: 13px; color: var(--ink-soft); }

.plp { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 16px 0 56px; align-items: start; }
@media (max-width: 900px) { .plp { grid-template-columns: 1fr; } .sidebar { display: none; } }
.sidebar { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 74px; }
.filter-group h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin: 0 0 10px; font-weight: 700; }
.filter-opt { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 5px 0; cursor: pointer; }
.filter-opt input { accent-color: var(--coral); }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; min-height: 30px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 12.5px; background: var(--bg-soft); }
.chip button { border: none; background: none; color: var(--ink-soft); font-size: 13px; cursor: pointer; line-height: 1; }
.chip--clear { text-decoration: underline; border: none; background: none; color: var(--coral-dark); font-weight: 600; }

.toolbar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
select.sort { font-family: 'Quicksand'; font-size: 13px; font-weight: 600; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); }

@media (max-width: 1100px) { .grid, .cats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .grid, .cats, .sucursales-row { grid-template-columns: repeat(2, 1fr); } .hero { grid-template-columns: 1fr; } }

/* ===== PRODUCTO (PDP) ===== */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 20px 0 8px; align-items: start; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; gap: 20px; } }

.gallery-main { aspect-ratio: 1/1; background: var(--bg-soft); border-radius: 16px; display: flex; align-items: center; justify-content: center; position: relative; }
.gallery-main svg { width: 62%; height: 62%; }
.gallery-badge { position: absolute; top: 14px; left: 14px; background: var(--caramel); color: #3A2A10; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 5px 10px; border-radius: 999px; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumb { width: 64px; height: 64px; border-radius: 10px; background: var(--bg-soft); border: 2px solid transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.thumb.active { border-color: var(--coral); }
.thumb svg { width: 60%; height: 60%; }

.pdp-brand { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.pdp-title { font-size: 24px; font-weight: 700; margin: 4px 0 8px; line-height: 1.2; text-wrap: balance; }
.pdp-rating { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.pdp-rating .stars { color: var(--star); font-size: 14px; letter-spacing: 1px; }
.pdp-rating a { text-decoration: underline; }

.price-block { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.price-now { font-size: 26px; font-weight: 700; color: var(--coral-dark); }
.price-was { font-size: 15px; color: var(--ink-soft); text-decoration: line-through; }
.price-save { font-size: 12px; font-weight: 700; color: #fff; background: var(--coral); padding: 3px 8px; border-radius: 6px; }
.price-note { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 16px; }

.pdp-desc { font-size: 14px; line-height: 1.6; margin-bottom: 16px; }

.includes { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.includes li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; }
.includes svg { width: 16px; height: 16px; color: var(--coral-dark); flex-shrink: 0; margin-top: 2px; }

.field-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin-bottom: 8px; display: block; }
.variant-row { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.variant-swatch { width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--border); cursor: pointer; }
.variant-swatch.selected { border-color: var(--coral); box-shadow: 0 0 0 1px var(--surface), 0 0 0 3px var(--coral); }

.qty-add-row { display: flex; gap: 12px; margin-bottom: 14px; }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.qty-stepper button { width: 36px; height: 44px; border: none; background: var(--bg-soft); font-size: 16px; cursor: pointer; color: var(--ink); }
.qty-stepper span { width: 36px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.stock-alert { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--coral-dark); margin-bottom: 14px; }
.stock-alert::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }

.wa-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--success); text-decoration: none; margin-bottom: 16px; }
.wa-link svg { width: 16px; height: 16px; }

.pickup { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.pickup strong { display: block; margin-bottom: 4px; }
.pickup select { font-family: 'Quicksand'; width: 100%; margin-top: 6px; padding: 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); }

.sections { margin-top: 40px; display: flex; flex-direction: column; gap: 30px; padding-bottom: 40px; }
.sec h2 { font-size: 19px; font-weight: 700; margin: 0 0 14px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: var(--bg-soft); border-radius: 12px; padding: 16px; font-size: 13.5px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--coral); color: #fff; font-weight: 700; font-size: 12px; margin-bottom: 8px; }

.reviews { display: flex; flex-direction: column; gap: 14px; }
.review { border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.review-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.review-head .stars { color: var(--star); font-size: 13px; }
.review p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }

.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 700px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
.r-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); }
.r-media { aspect-ratio: 1/1; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; }
.r-media svg { width: 55%; height: 55%; }
.r-body { padding: 10px 12px 12px; }
.r-name { font-size: 12.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.r-price { font-size: 13.5px; font-weight: 700; color: var(--coral-dark); margin-top: 4px; }

.sticky-bar { display: none; }
@media (max-width: 860px) {
  .sticky-bar {
    display: flex; align-items: center; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }
  .sticky-bar .price-now { font-size: 17px; }
  body.has-sticky-bar { padding-bottom: 76px; }
}

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