:root {
  --ink: #151515;
  --muted: #68645f;
  --paper: #ffffff;
  --canvas: #f6f2ec;
  --soft: #ebe5dc;
  --terracotta: #a6543b;
  --terracotta-dark: #7f3f2d;
  --sage: #657061;
  --rose: #d7b0a3;
  --border: #ded8d1;
  --success: #2f6a48;
  --shadow: 0 12px 40px rgba(28, 24, 20, 0.09);
  --radius: 18px;
  --page: min(1440px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.no-scroll { overflow: hidden; }

.announcement {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  letter-spacing: .03em;
  text-align: center;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-main {
  width: var(--page);
  min-height: 96px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 24px;
}
.wordmark {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: .14em;
  white-space: nowrap;
}
.nav { display: flex; justify-content: center; gap: 27px; }
.nav a { font-size: 14px; font-weight: 650; position: relative; }
.nav a::after {
  content: '';
  position: absolute;
  height: 2px;
  left: 0;
  right: 100%;
  bottom: -9px;
  background: var(--ink);
  transition: right .25s ease;
}
.nav a:hover::after, .nav a.active::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  border-radius: 50%;
  position: relative;
}
.icon-btn:hover { background: var(--canvas); }
.icon-btn svg { width: 21px; height: 21px; }
.count-badge {
  position: absolute;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  right: 0;
  top: 2px;
  border-radius: 9px;
  background: var(--terracotta);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.menu-btn { display: none; }

.page-shell { width: var(--page); margin: 0 auto; }
.hero {
  width: var(--page);
  margin: 22px auto 0;
  min-height: 600px;
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: var(--canvas);
}
.hero-copy {
  padding: clamp(48px, 7vw, 104px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.eyebrow {
  margin: 0 0 15px;
  font-size: 12px;
  letter-spacing: .16em;
  font-weight: 800;
  text-transform: uppercase;
}
.hero h1, .display-title {
  margin: 0;
  max-width: 750px;
  font-size: clamp(46px, 6vw, 86px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 850;
}
.hero-copy > p:not(.eyebrow) {
  max-width: 530px;
  margin: 25px 0 30px;
  font-size: clamp(17px, 1.6vw, 21px);
  color: #514d48;
}
.hero-art {
  position: relative;
  min-height: 600px;
  background:
    radial-gradient(circle at 68% 20%, rgba(255,255,255,.72) 0 12%, transparent 13%),
    linear-gradient(140deg, var(--rose), #b77e6c 58%, #9a624f);
}
.hero-art::before, .hero-art::after {
  content: '';
  position: absolute;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.hero-art::before {
  width: 46%;
  height: 37%;
  left: 12%;
  bottom: 16%;
  background: #f7efe4;
  transform: rotate(-7deg);
  border: 1px solid rgba(255,255,255,.7);
}
.hero-art::after {
  width: 41%;
  height: 29%;
  right: 10%;
  top: 22%;
  background: #302d2a;
  transform: rotate(8deg);
}
.gift-ribbon {
  position: absolute;
  width: 10%;
  height: 54%;
  left: 31%;
  bottom: 7%;
  background: var(--terracotta);
  transform: rotate(-7deg);
  z-index: 2;
  opacity: .86;
}
.gift-card {
  position: absolute;
  z-index: 3;
  right: 18%;
  bottom: 17%;
  width: 32%;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}
.gift-card span { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.gift-card strong { display: block; margin-top: 8px; font-size: 22px; line-height: 1.08; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--ink);
  color: #fff;
  font-weight: 750;
  font-size: 14px;
  transition: transform .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--ink); color: #fff; }
.btn.terracotta { background: var(--terracotta); border-color: var(--terracotta); }
.btn.terracotta:hover { background: var(--terracotta-dark); }

.section { padding: 86px 0; }
.section.compact { padding: 58px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 34px;
}
.section-head h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.03; letter-spacing: -.035em; }
.section-head p { max-width: 560px; margin: 8px 0 0; color: var(--muted); }
.text-link { font-size: 14px; font-weight: 750; border-bottom: 1px solid currentColor; padding-bottom: 3px; white-space: nowrap; }

.category-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.category-card {
  min-height: 245px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--canvas);
  display: flex;
  flex-direction: column;
  justify-content: end;
  transition: transform .2s ease;
}
.category-card:hover { transform: translateY(-3px); }
.category-card::before {
  content: '';
  position: absolute;
  width: 155px;
  height: 110px;
  border-radius: 16px;
  right: -10px;
  top: 30px;
  background: #fff;
  box-shadow: 0 15px 38px rgba(0,0,0,.10);
  transform: rotate(9deg);
}
.category-card:nth-child(2)::before { background: #d6c3ad; transform: rotate(-7deg); }
.category-card:nth-child(3)::before { border-radius: 50% 50% 42% 42%; width: 85px; height: 130px; right: 35px; background: #b46b58; }
.category-card:nth-child(4)::before { background: #252525; }
.category-card span { position: relative; font-size: 12px; color: var(--muted); }
.category-card strong { position: relative; font-size: 20px; margin-top: 4px; }

.products-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.product-card { min-width: 0; }
.product-media {
  position: relative;
  aspect-ratio: 1 / 1.12;
  overflow: hidden;
  border-radius: 18px;
  background: var(--canvas);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-media img { transform: scale(1.025); }
.product-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  background: rgba(255,255,255,.94);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.favorite-btn {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.94);
  display: grid;
  place-items: center;
}
.favorite-btn svg { width: 19px; height: 19px; }
.favorite-btn.active svg { fill: var(--terracotta); stroke: var(--terracotta); }
.quick-add {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 43px;
  height: 43px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.product-info { padding: 14px 3px 2px; }
.product-category { font-size: 12px; color: var(--muted); }
.product-name { display: block; margin: 4px 0 7px; font-size: 16px; font-weight: 750; }
.price { font-size: 14px; font-weight: 800; }
.price del { margin-left: 7px; color: #8f8a84; font-weight: 500; }

.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
  border-radius: 28px;
  overflow: hidden;
  background: #20201f;
  color: #fff;
}
.editorial-art {
  position: relative;
  min-height: 520px;
  background: linear-gradient(145deg, #7a846f, #414b40);
}
.editorial-art::before,
.editorial-art::after {
  content: '';
  position: absolute;
  background: #efe6d8;
  box-shadow: var(--shadow);
}
.editorial-art::before { width: 50%; height: 42%; left: 14%; top: 28%; transform: rotate(-8deg); border-radius: 20px; }
.editorial-art::after { width: 34%; height: 31%; right: 11%; top: 18%; transform: rotate(7deg); border-radius: 15px; background: #b05c42; }
.editorial-copy { padding: clamp(44px, 7vw, 94px); display: flex; flex-direction: column; justify-content: center; align-items: start; }
.editorial-copy h2 { margin: 0; font-size: clamp(38px, 5vw, 64px); line-height: 1; letter-spacing: -.04em; }
.editorial-copy p { max-width: 530px; color: #d9d5d0; font-size: 17px; }
.editorial .btn.secondary { color: #fff; border-color: #fff; }
.editorial .btn.secondary:hover { background:#fff; color:var(--ink); }

.benefits { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.benefit { border-top: 1px solid var(--ink); padding: 22px 0 0; }
.benefit strong { display:block; margin-bottom:8px; font-size:18px; }
.benefit p { margin:0; color:var(--muted); }

.page-hero { padding: 70px 0 45px; }
.page-hero h1 { margin: 0; font-size: clamp(44px,7vw,78px); line-height: 1; letter-spacing: -.04em; }
.page-hero p { max-width: 700px; margin: 18px 0 0; font-size: 18px; color: var(--muted); }

.catalog-toolbar {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 9px 14px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: 13px; }
.chip.active, .chip:hover { background: var(--ink); color:#fff; border-color:var(--ink); }
.catalog-search { min-width: min(100%, 360px); position:relative; }
.catalog-search input { width:100%; min-height:44px; border:1px solid var(--border); border-radius:999px; padding:0 44px 0 16px; outline:none; }
.catalog-search svg { position:absolute; right:15px; top:12px; width:20px; }

.about-grid { display:grid; grid-template-columns:.9fr 1.1fr; gap:70px; align-items:start; padding-bottom:90px; }
.about-card { padding:34px; border-radius:24px; background:var(--canvas); position:sticky; top:120px; }
.about-card .metric { font-size:56px; font-weight:850; letter-spacing:-.05em; }
.about-copy h2 { margin:0 0 16px; font-size:34px; }
.about-copy p { color:var(--muted); font-size:17px; }
.policy-copy { max-width: 880px; }
.values { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin-top:30px; }
.value-card { border:1px solid var(--border); border-radius:18px; padding:24px; }
.value-card strong { display:block; margin-bottom:8px; }

.form-layout { display:grid; grid-template-columns:.76fr 1.24fr; gap:45px; align-items:start; padding-bottom:90px; }
.form-aside { padding:32px; border-radius:24px; background:var(--canvas); }
.form-aside h2 { margin-top:0; font-size:30px; }
.form-card { border:1px solid var(--border); border-radius:24px; padding:34px; }
.form-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.field { display:flex; flex-direction:column; gap:7px; }
.field.full { grid-column:1 / -1; }
.field label { font-size:13px; font-weight:750; }
.field input, .field textarea, .field select {
  width:100%;
  border:1px solid var(--border);
  border-radius:12px;
  padding:13px 14px;
  background:#fff;
  outline:none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color:var(--ink); box-shadow:0 0 0 2px rgba(0,0,0,.04); }
.field textarea { min-height:120px; resize:vertical; }
.form-note { margin-top:16px; font-size:12px; color:var(--muted); }

.contact-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:80px; }
.contact-card { padding:28px; border:1px solid var(--border); border-radius:20px; }
.contact-card span { display:block; margin-bottom:6px; color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.11em; }
.contact-card strong { font-size:19px; }

.empty-state { padding:70px 24px; text-align:center; border:1px dashed var(--border); border-radius:24px; background:var(--canvas); }
.empty-state h2 { margin:0 0 10px; }
.empty-state p { color:var(--muted); max-width:530px; margin:0 auto 22px; }

.site-footer { margin-top: 80px; background: var(--ink); color:#fff; }
.footer-inner { width:var(--page); margin:0 auto; padding:64px 0 30px; }
.footer-grid { display:grid; grid-template-columns:1.45fr repeat(3,1fr); gap:42px; }
.footer-brand p { color:#bdb8b1; max-width:400px; }
.footer-title { display:block; margin-bottom:14px; font-size:12px; text-transform:uppercase; letter-spacing:.12em; color:#9e9993; }
.footer-links { display:flex; flex-direction:column; gap:10px; font-size:14px; }
.footer-links a:hover { color:#d7b0a3; }
.social-row { display:flex; gap:8px; margin-top:20px; }
.social-icon { width:38px; height:38px; border:1px solid #44413f; border-radius:50%; display:grid; place-items:center; font-size:12px; }
.footer-bottom { border-top:1px solid #373432; margin-top:45px; padding-top:22px; display:flex; justify-content:space-between; gap:20px; color:#99948e; font-size:12px; }

.overlay { position:fixed; inset:0; background:rgba(15,15,15,.48); z-index:90; opacity:0; pointer-events:none; transition:opacity .2s ease; }
.overlay.active { opacity:1; pointer-events:auto; }
.drawer { position:fixed; z-index:100; top:0; right:0; width:min(460px, 92vw); height:100dvh; background:#fff; transform:translateX(103%); transition:transform .28s ease; display:flex; flex-direction:column; box-shadow:-18px 0 50px rgba(0,0,0,.15); }
.drawer.active { transform:translateX(0); }
.drawer-head { padding:22px; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid var(--border); }
.drawer-head h2 { margin:0; font-size:21px; }
.drawer-body { padding:18px 22px; overflow:auto; flex:1; }
.drawer-footer { padding:20px 22px; border-top:1px solid var(--border); }
.cart-item { display:grid; grid-template-columns:78px 1fr auto; gap:13px; padding:13px 0; border-bottom:1px solid var(--border); }
.cart-item img { width:78px; height:86px; object-fit:cover; border-radius:10px; background:var(--canvas); }
.cart-item strong { font-size:14px; }
.cart-item p { margin:3px 0; font-size:12px; color:var(--muted); }
.cart-actions { display:flex; gap:8px; align-items:center; margin-top:8px; }
.cart-actions button { border:1px solid var(--border); background:#fff; width:28px; height:28px; border-radius:50%; }
.cart-remove { border:0!important; width:auto!important; color:#8b3f31; font-size:12px; padding:0 4px; }
.cart-total { display:flex; justify-content:space-between; font-size:18px; font-weight:850; margin-bottom:14px; }
.drawer .btn { width:100%; margin-top:8px; }

.search-panel { position:fixed; z-index:110; left:0; right:0; top:0; background:#fff; padding:24px 0 32px; transform:translateY(-105%); transition:transform .25s ease; box-shadow:0 20px 50px rgba(0,0,0,.12); }
.search-panel.active { transform:translateY(0); }
.search-inner { width:var(--page); margin:0 auto; }
.search-top { display:flex; gap:12px; align-items:center; }
.search-top input { flex:1; font-size:24px; border:0; border-bottom:2px solid var(--ink); padding:12px 2px; outline:none; }
.search-results { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-top:24px; }
.search-result { padding:14px; background:var(--canvas); border-radius:14px; }
.search-result strong { display:block; }
.search-result span { font-size:12px; color:var(--muted); }

.toast { position:fixed; left:50%; bottom:24px; z-index:150; transform:translate(-50%, 20px); opacity:0; pointer-events:none; background:var(--ink); color:#fff; padding:11px 16px; border-radius:999px; font-size:13px; transition:.2s ease; }
.toast.active { opacity:1; transform:translate(-50%,0); }

.mobile-menu { display:none; }

@media (max-width: 1050px) {
  :root { --page: min(100% - 30px, 980px); }
  .header-main { grid-template-columns:1fr auto; }
  .nav { display:none; }
  .menu-btn { display:grid; }
  .hero { grid-template-columns:1fr; }
  .hero-art { min-height:390px; }
  .category-grid, .products-grid { grid-template-columns:repeat(2,1fr); }
  .editorial { grid-template-columns:1fr; }
  .editorial-art { min-height:380px; }
  .footer-grid { grid-template-columns:1.2fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column:2 / -1; }
  .about-grid, .form-layout { grid-template-columns:1fr; gap:32px; }
  .about-card { position:static; }
  .search-results { grid-template-columns:repeat(2,1fr); }
  .mobile-menu { position:fixed; z-index:105; inset:0; background:#fff; padding:22px; display:block; transform:translateX(-103%); transition:transform .25s ease; }
  .mobile-menu.active { transform:translateX(0); }
  .mobile-menu-head { display:flex; justify-content:space-between; align-items:center; }
  .mobile-menu nav { display:flex; flex-direction:column; padding-top:45px; }
  .mobile-menu nav a { font-size:32px; font-weight:800; padding:12px 0; border-bottom:1px solid var(--border); }
}

@media (max-width: 680px) {
  :root { --page: calc(100% - 24px); }
  .header-main { min-height:76px; gap:8px; }
  .brand-logo { max-height:58px; max-width:150px; }
  .wordmark { font-size:18px; }
  .header-actions { gap:0; }
  .icon-btn { width:38px; height:38px; }
  .hero { margin-top:12px; min-height:0; border-radius:18px; }
  .hero-copy { padding:42px 24px; }
  .hero h1 { font-size:49px; }
  .hero-art { min-height:330px; }
  .gift-card { width:42%; right:10%; padding:15px; }
  .gift-card strong { font-size:17px; }
  .section { padding:58px 0; }
  .section-head { display:block; margin-bottom:24px; }
  .section-head .text-link { display:inline-block; margin-top:14px; }
  .category-grid, .products-grid { grid-template-columns:repeat(2,1fr); gap:10px; }
  .category-card { min-height:190px; padding:17px; }
  .category-card::before { width:105px; height:80px; }
  .product-media { border-radius:13px; }
  .product-info { padding-top:10px; }
  .product-name { font-size:14px; }
  .product-category { font-size:11px; }
  .favorite-btn { width:34px; height:34px; right:8px; top:8px; }
  .quick-add { width:38px; height:38px; right:8px; bottom:8px; }
  .product-badge { left:8px; top:8px; }
  .editorial { border-radius:18px; }
  .editorial-art { min-height:300px; }
  .editorial-copy { padding:38px 24px; }
  .benefits, .contact-cards { grid-template-columns:1fr; }
  .page-hero { padding-top:48px; }
  .form-grid { grid-template-columns:1fr; }
  .field.full { grid-column:auto; }
  .form-card { padding:22px; }
  .values { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; }
  .footer-grid > div:last-child { grid-column:auto; }
  .footer-bottom { flex-direction:column; }
  .search-top input { font-size:18px; }
  .search-results { grid-template-columns:1fr; }
}

/* ===== Entregable 2: comercio, producto y carrito ===== */
.product-card { position: relative; }
.product-card .product-media { display: block; }
.product-card .favorite-btn { z-index: 4; }
.product-card .quick-add { z-index: 4; }
.product-info { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; }
.product-info > div:first-child { min-width:0; }
.product-price { display:flex; flex-direction:column; align-items:flex-end; white-space:nowrap; font-size:14px; }
.product-price .old-price, .old-price { color:#918a83; text-decoration:line-through; font-weight:500; }
.stock-badge { position:absolute; left:12px; bottom:12px; z-index:2; padding:6px 9px; border-radius:999px; background:#fff4df; color:#7a5313; font-size:10px; font-weight:800; }
.toast.show { opacity:1; transform:translate(-50%,0); }
.full { width:100%; }
.grow { flex:1; }
.center { display:block; text-align:center; }
.button-link { border:0; background:none; cursor:pointer; }

.home-promo-grid { display:grid; grid-template-columns:1.15fr .85fr; gap:16px; }
.home-promo-card { min-height:320px; border-radius:24px; padding:34px; display:flex; flex-direction:column; justify-content:flex-end; position:relative; overflow:hidden; background:var(--canvas); }
.home-promo-card.dark { background:#252422; color:#fff; }
.home-promo-card.rose { background:#ead7d1; }
.home-promo-card::after { content:''; position:absolute; width:210px; height:160px; border-radius:28px; top:38px; right:42px; background:rgba(255,255,255,.72); transform:rotate(8deg); }
.home-promo-card h3 { position:relative; z-index:1; max-width:520px; margin:0 0 10px; font-size:34px; letter-spacing:-.03em; }
.home-promo-card p, .home-promo-card a { position:relative; z-index:1; }
.home-promo-card p { max-width:520px; color:inherit; opacity:.78; }

.catalog-page-toolbar { display:grid; grid-template-columns:1fr auto auto; gap:12px; align-items:center; margin-bottom:18px; }
.catalog-page-toolbar .catalog-search { min-width:0; }
.catalog-select { min-height:44px; border:1px solid var(--border); border-radius:999px; padding:0 36px 0 14px; background:#fff; color:var(--ink); }
.catalog-meta { display:flex; justify-content:space-between; align-items:center; gap:20px; margin:18px 0 28px; color:var(--muted); font-size:13px; }
.catalog-meta button { color:var(--ink); font-weight:750; }
.empty-catalog { grid-column:1/-1; }

.drawer-head { align-items:flex-start; }
.drawer-head .eyebrow { margin-bottom:3px; }
.drawer-body .empty-state.compact { padding:42px 18px; }
.drawer-body .empty-state.compact h3 { margin:4px 0 8px; }
.empty-icon { font-size:42px; line-height:1; margin-bottom:14px; }
.cart-line { display:grid; grid-template-columns:82px 1fr auto; gap:12px; padding:14px 0; border-bottom:1px solid var(--border); }
.cart-line img { width:82px; height:92px; object-fit:cover; border-radius:11px; background:var(--canvas); }
.cart-line-copy { min-width:0; }
.cart-line-name { display:block; font-weight:800; font-size:14px; margin:2px 0 3px; }
.cart-line-copy small { display:block; color:var(--muted); line-height:1.35; }
.cart-line-end { display:flex; flex-direction:column; align-items:flex-end; justify-content:space-between; gap:12px; font-size:13px; }
.mini-qty { display:flex; align-items:center; gap:7px; margin-top:9px; }
.mini-qty button { width:27px; height:27px; border:1px solid var(--border); background:#fff; border-radius:50%; }
.link-danger { border:0; background:none; color:#914839; padding:0; font-size:12px; cursor:pointer; }
.drawer-coupon { display:flex; justify-content:space-between; gap:12px; font-size:12px; padding-bottom:12px; color:var(--muted); }
.drawer-coupon a { color:var(--ink); font-weight:750; }
.summary-lines { display:flex; flex-direction:column; gap:8px; margin-bottom:14px; }
.summary-lines > div { display:flex; justify-content:space-between; gap:14px; font-size:13px; }
.summary-lines .discount { color:var(--success); }
.summary-lines .summary-total { margin-top:5px; padding-top:12px; border-top:1px solid var(--border); font-size:18px; }

.search-help { margin-top:8px; font-size:12px; color:var(--muted); }
.search-results { grid-template-columns:repeat(2,1fr); }
.search-result { display:grid; grid-template-columns:70px 1fr 22px; gap:12px; align-items:center; }
.search-result img { width:70px; height:76px; object-fit:cover; border-radius:9px; }
.search-result span { display:flex; flex-direction:column; min-width:0; }
.search-result small { color:var(--muted); }
.search-result strong { margin:2px 0; color:var(--ink); font-size:14px; }
.search-result em { font-style:normal; font-weight:800; color:var(--ink); }
.search-result svg { width:18px; }
.empty-search { grid-column:1/-1; padding:28px; background:var(--canvas); border-radius:16px; color:var(--muted); }

.breadcrumbs { display:flex; flex-wrap:wrap; gap:8px; padding:28px 0 20px; font-size:12px; color:var(--muted); }
.breadcrumbs strong { color:var(--ink); }
.product-detail-grid { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(390px,.85fr); gap:58px; align-items:start; padding-bottom:40px; }
.product-gallery { display:grid; grid-template-columns:92px 1fr; gap:12px; position:sticky; top:110px; }
.thumb-list { display:flex; flex-direction:column; gap:10px; }
.thumb { border:1px solid transparent; background:transparent; padding:0; border-radius:12px; overflow:hidden; }
.thumb.active { border-color:var(--ink); }
.thumb img { width:100%; aspect-ratio:1/1.12; object-fit:cover; }
.main-product-image { border-radius:24px; overflow:hidden; background:var(--canvas); }
.main-product-image img { width:100%; aspect-ratio:1/1.12; object-fit:cover; }
.product-detail-copy { padding-top:20px; }
.title-fav { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; }
.product-detail-copy h1 { margin:0; font-size:clamp(42px,5vw,68px); line-height:.98; letter-spacing:-.045em; }
.favorite-large { flex:0 0 auto; display:flex; align-items:center; gap:7px; border:1px solid var(--border); background:#fff; border-radius:999px; padding:9px 12px; }
.favorite-large svg { width:18px; height:18px; }
.favorite-large.active svg { fill:var(--terracotta); stroke:var(--terracotta); }
.detail-price { display:flex; gap:10px; align-items:center; margin:20px 0; font-size:20px; }
.detail-price strong { font-size:26px; }
.detail-lead { font-size:17px; color:var(--muted); }
.stock-note { display:inline-flex; margin:4px 0 20px; padding:8px 11px; border-radius:999px; background:#fff1df; color:#7a5313; font-size:12px; font-weight:750; }
.stock-note.ok { background:#e7f2eb; color:var(--success); }
.variant-groups { display:flex; flex-direction:column; gap:22px; padding:18px 0; border-top:1px solid var(--border); }
.variant-group { border:0; padding:0; margin:0; }
.variant-group legend { margin-bottom:10px; font-size:13px; font-weight:800; }
.option-row { display:flex; flex-wrap:wrap; gap:8px; }
.option-pill input { position:absolute; opacity:0; pointer-events:none; }
.option-pill span { display:block; padding:10px 13px; border:1px solid var(--border); border-radius:999px; font-size:13px; cursor:pointer; }
.option-pill input:checked + span { border-color:var(--ink); background:var(--ink); color:#fff; }
.option-pill small { opacity:.78; }
.buy-row { display:flex; gap:10px; margin-top:20px; }
.qty-control { display:grid; grid-template-columns:42px 48px 42px; height:50px; border:1px solid var(--border); border-radius:999px; overflow:hidden; }
.qty-control button, .qty-control input { border:0; background:#fff; text-align:center; outline:0; }
.qty-control.small { grid-template-columns:34px 38px 34px; height:38px; }
.detail-actions { margin-top:10px; }
.detail-accordion { margin-top:24px; border-top:1px solid var(--border); }
.detail-accordion details { border-bottom:1px solid var(--border); padding:16px 0; }
.detail-accordion summary { cursor:pointer; font-weight:800; }
.detail-accordion p { color:var(--muted); }

.cart-page-grid { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(330px,.7fr); gap:48px; align-items:start; padding:24px 0 90px; }
.cart-page-head { display:flex; justify-content:space-between; align-items:flex-end; gap:20px; padding-bottom:20px; }
.cart-page-head h1 { margin:0; font-size:54px; letter-spacing:-.04em; }
.cart-page-head p:not(.eyebrow) { margin:5px 0 0; color:var(--muted); }
.cart-list { border-top:1px solid var(--border); }
.cart-page-item { display:grid; grid-template-columns:150px 1fr auto; gap:20px; padding:22px 0; border-bottom:1px solid var(--border); }
.cart-page-image img { width:150px; height:168px; object-fit:cover; border-radius:14px; }
.cart-page-copy { min-width:0; }
.cart-page-name { font-size:21px; font-weight:850; }
.cart-page-copy > p:not(.product-category) { color:var(--muted); font-size:13px; }
.cart-page-end { display:flex; flex-direction:column; align-items:flex-end; justify-content:space-between; }
.cart-note { display:flex; flex-direction:column; gap:9px; margin-top:26px; font-size:13px; font-weight:800; }
.cart-note textarea { min-height:100px; resize:vertical; border:1px solid var(--border); border-radius:14px; padding:13px; }
.cart-summary-card { position:sticky; top:108px; border:1px solid var(--border); border-radius:24px; padding:28px; background:var(--canvas); }
.cart-summary-card h2 { margin-top:0; font-size:30px; }
.coupon-box { padding:17px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.coupon-box label { display:block; font-size:13px; font-weight:800; margin-bottom:8px; }
.coupon-input-row { display:flex; gap:8px; }
.coupon-input-row input { min-width:0; flex:1; border:1px solid var(--border); border-radius:999px; padding:0 13px; }
.coupon-input-row .btn { min-height:42px; padding:0 16px; }
.coupon-message { min-height:18px; margin:8px 4px 0; font-size:11px; color:#914839; }
.coupon-message.success { color:var(--success); }
.summary-lines.large { margin:22px 0; }
.summary-lines.large > div { font-size:14px; }
.summary-lines.large .summary-total { font-size:22px; }
.summary-disclaimer { color:var(--muted); font-size:12px; }
.cart-summary-card .btn { margin-top:9px; }
.cart-summary-card .text-link { margin-top:18px; }

.quote-selection { margin-bottom:18px; padding:22px; border-radius:18px; background:var(--canvas); }
.quote-selection-head { display:flex; justify-content:space-between; gap:20px; align-items:center; }
.quote-selection-head h3 { margin:0; }
.quote-selection-head > span { font-size:12px; color:var(--muted); }
.quote-selection-list { display:grid; gap:9px; margin-top:14px; }
.quote-selection-list > div { display:flex; flex-direction:column; padding-top:9px; border-top:1px solid var(--border); }
.quote-selection-list span { color:var(--muted); font-size:12px; }
.form-result { margin-top:18px; padding:16px; border-radius:14px; background:#e7f2eb; color:#285e3e; }
.form-result p { margin:5px 0 0; font-size:13px; }

@media (max-width: 1050px) {
  .product-detail-grid { grid-template-columns:1fr; gap:26px; }
  .product-gallery { position:static; }
  .cart-page-grid { grid-template-columns:1fr; }
  .cart-summary-card { position:static; }
  .home-promo-grid { grid-template-columns:1fr; }
}

@media (max-width: 680px) {
  .product-info { display:block; }
  .product-price { align-items:flex-start; flex-direction:row; gap:6px; }
  .stock-badge { left:8px; bottom:8px; }
  .catalog-page-toolbar { grid-template-columns:1fr; }
  .catalog-select { width:100%; }
  .search-results { grid-template-columns:1fr; }
  .product-gallery { grid-template-columns:1fr; }
  .thumb-list { order:2; flex-direction:row; overflow:auto; }
  .thumb { min-width:72px; width:72px; }
  .product-detail-copy h1 { font-size:43px; }
  .title-fav { display:block; }
  .favorite-large { margin-top:12px; }
  .buy-row { flex-direction:column; }
  .qty-control { width:132px; }
  .cart-page-head { display:block; }
  .cart-page-head button { margin-top:12px; }
  .cart-page-item { grid-template-columns:95px 1fr; gap:13px; }
  .cart-page-image img { width:95px; height:108px; }
  .cart-page-end { grid-column:2; flex-direction:row; align-items:center; }
  .cart-page-name { font-size:17px; }
  .coupon-input-row { flex-direction:column; }
  .home-promo-card { min-height:280px; padding:24px; }
  .home-promo-card h3 { font-size:29px; }
}

.quick-add:disabled { background:#8c8883; cursor:not-allowed; }
.stock-badge.sold-out { background:#2b2927; color:#fff; }
.btn:disabled { opacity:.5; cursor:not-allowed; transform:none; }
@media (min-width:681px){ .catalog-page-toolbar { grid-template-columns:1fr auto auto auto; } }

/* Entregable 3: carrusel administrable de portada */
.hero.hero-carousel{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) minmax(420px,.9fr);padding:0;min-height:620px;background:#ece7dc}.hero-slide-copy{padding:clamp(48px,7vw,110px);align-self:center;max-width:820px}.hero-slide-copy h1{font-size:clamp(48px,6vw,86px);line-height:.98;margin:10px 0 24px}.hero-slide-copy>p:not(.eyebrow){font-size:18px;line-height:1.65;max-width:650px;color:#4b564f}.hero-slide-media{height:100%;min-height:620px;background:#ddd}.hero-slide-media img{width:100%;height:100%;object-fit:cover;display:block}.hero-carousel-controls{position:absolute;left:clamp(24px,7vw,110px);bottom:28px;display:flex;align-items:center;gap:13px;background:rgba(255,255,255,.9);padding:8px 10px;border-radius:999px;box-shadow:0 8px 30px rgba(30,40,32,.12)}.hero-carousel-controls>button{border:0;background:transparent;width:30px;height:30px;border-radius:50%;cursor:pointer}.hero-dots{display:flex;gap:6px}.hero-dots button{border:0;width:8px;height:8px;border-radius:50%;background:#aeb7b1;padding:0;cursor:pointer}.hero-dots button.active{background:#263d32;width:20px;border-radius:999px}@media(max-width:900px){.hero.hero-carousel{grid-template-columns:1fr;min-height:0}.hero-slide-copy{padding:48px 24px 80px}.hero-slide-copy h1{font-size:clamp(42px,12vw,64px)}.hero-slide-media{min-height:360px;order:-1}.hero-carousel-controls{left:24px;bottom:20px}}
.wordmark .brand-logo,.wordmark.brand-with-logo{display:block}.brand-logo{display:block;max-width:190px;max-height:78px;width:auto;height:auto;object-fit:contain}.footer-brand .brand-logo{max-width:230px;max-height:120px}

.admin-login-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  margin-top: 12px;

  color: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;

  opacity: 0.65;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.admin-login-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}