/* ============================================================
   TIENDA · Front público
   Minimalismo editorial refinado
   Fraunces (display serif) + Outfit (sans body)
   ============================================================ */

:root {
  --ink:       #1a1714;   /* texto principal, casi negro cálido */
  --ink-soft:  #5c554d;   /* texto secundario */
  --paper:     #fdfcfa;   /* fondo principal, blanco cálido */
  --paper-2:   #f5f3ee;   /* fondo secundario */
  --line:      #e6e2d9;   /* bordes sutiles */
  --accent:    #b54b32;   /* terracota — acento cálido y distintivo */
  --accent-dk: #973c28;
  --gold:      #c9a96e;
  --ok:        #4a7c59;
  --ok-bg:     #eef4ef;
  --warn:      #9a6a3c;
  --warn-bg:   #f7f0e6;

  --radius:    4px;
  --maxw:      1200px;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }

/* ============ HEADER ============ */
.hd {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,252,250,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.hd-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 24px; height: 72px;
  display: flex; align-items: center; gap: 32px;
}
.hd-logo {
  font-family: var(--serif); font-size: 24px; font-weight: 600;
  letter-spacing: -.01em; white-space: nowrap;
}
.hd-nav {
  display: flex; gap: 24px; flex: 1;
  font-size: 14px; font-weight: 400;
}
.hd-nav a {
  color: var(--ink-soft); transition: color .2s;
  position: relative; padding: 4px 0;
}
.hd-nav a:hover { color: var(--ink); }
.hd-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width .25s;
}
.hd-nav a:hover::after { width: 100%; }

.hd-search {
  display: flex; align-items: center;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0 4px 0 16px;
  transition: border-color .2s;
}
.hd-search:focus-within { border-color: var(--accent); }
.hd-search input {
  border: none; background: none; outline: none;
  font-family: var(--sans); font-size: 14px;
  padding: 9px 0; width: 160px; color: var(--ink);
}
.hd-search button {
  border: none; background: none; cursor: pointer;
  color: var(--ink-soft); padding: 8px; display: flex;
}
.hd-search button:hover { color: var(--accent); }

.hd-burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 4px; padding: 8px; }
.hd-burger span { width: 22px; height: 2px; background: var(--ink); transition: .2s; }

/* ============ HERO ============ */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: 80px 24px 64px;
}
.hero-inner { max-width: 720px; }
.hero-title { font-size: clamp(38px, 6vw, 68px); letter-spacing: -.02em; margin-bottom: 24px; }
.hero-line { display: block; }
.hero-line--accent { color: var(--accent); font-style: italic; }
.hero-sub { font-size: 19px; color: var(--ink-soft); max-width: 540px; margin-bottom: 32px; }

/* ============ BUTTONS ============ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper);
  padding: 14px 28px; border-radius: 100px;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  border: none; cursor: pointer; transition: all .2s;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-primary--full { width: 100%; }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--ink);
  padding: 14px 28px; border-radius: 100px;
  border: 1px solid var(--line);
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  cursor: pointer; transition: all .2s;
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-secondary--full { width: 100%; }

/* ============ SECTIONS ============ */
.section { max-width: var(--maxw); margin: 0 auto; padding: 48px 24px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 32px; gap: 16px;
}
.section-head h2 { font-size: 32px; letter-spacing: -.01em; }
.link-more { color: var(--accent); font-size: 14px; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

/* ============ PAGE HEAD ============ */
.page-head { max-width: var(--maxw); margin: 0 auto; padding: 48px 24px 0; }
.page-head--slim { padding-bottom: 0; }
.page-head h1 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -.02em; margin-bottom: 8px; }
.page-head-desc { color: var(--ink-soft); font-size: 17px; max-width: 600px; }
.breadcrumb-front { font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; }
.breadcrumb-front a:hover { color: var(--accent); }
.breadcrumb-front span { margin: 0 6px; opacity: .5; }

/* ============ CATEGORY GRID ============ */
.cat-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card-cat {
  position: relative; aspect-ratio: 4/3;
  border-radius: var(--radius); overflow: hidden;
  background: var(--paper-2);
}
.card-cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card-cat:hover img { transform: scale(1.04); }

/* Mosaico automático de miniaturas */
.card-cat-mosaico {
  width: 100%; height: 100%;
  display: grid; gap: 2px;
  background: var(--line);
  transition: transform .5s;
}
.card-cat:hover .card-cat-mosaico { transform: scale(1.04); }
.card-cat-mosaico--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.card-cat-mosaico--2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.card-cat-mosaico--3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.card-cat-mosaico--3 .mos-cell:first-child { grid-row: span 2; }
.card-cat-mosaico--4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.mos-cell {
  background-size: cover; background-position: center;
  background-color: var(--paper-2);
  display: block;
}

/* Patrón decorativo (sin imágenes) */
.card-cat-pattern {
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 20% 30%, rgba(181,75,50,.12), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(201,169,110,.18), transparent 45%),
    linear-gradient(135deg, var(--paper-2), var(--line));
  display: flex; align-items: center; justify-content: center;
  transition: transform .5s;
}
.card-cat:hover .card-cat-pattern { transform: scale(1.04); }
.pattern-letter {
  font-family: var(--serif); font-size: 72px; font-weight: 500;
  color: rgba(26,23,20,.12);
}
.card-cat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,23,20,.82) 0%, rgba(26,23,20,.35) 45%, rgba(26,23,20,.05) 75%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px; color: #fff;
}
.card-cat-overlay h3 { font-size: 22px; color: #fff; }
.card-cat-overlay span { font-size: 13px; opacity: .85; }

/* ============ PRODUCT GRID & CARD ============ */
.prod-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.card-prod { display: block; group: card; transition: transform .2s; }
.card-prod:hover { transform: translateY(-3px); }
.card-prod-img {
  position: relative; aspect-ratio: 1;
  background: var(--paper-2);
  border-radius: var(--radius); overflow: hidden;
  margin-bottom: 14px;
}
.card-prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card-prod:hover .card-prod-img img { transform: scale(1.05); }
.card-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 100px;
}
.card-badge--star { left: auto; right: 12px; background: var(--gold); color: var(--ink); }
.card-badge--big { font-size: 14px; padding: 6px 14px; top: 16px; left: 16px; }
.card-prod-marca { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
.card-prod-nombre { font-size: 18px; font-weight: 500; margin: 4px 0 8px; line-height: 1.25; }
.card-prod-precio { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.precio-now { font-size: 18px; font-weight: 600; font-family: var(--serif); }
.precio-old { font-size: 14px; color: var(--ink-soft); text-decoration: line-through; }
.card-prod-nota { font-size: 13px; font-style: italic; color: var(--ink-soft); margin-top: 8px; }

/* ============ FRANJA (home features) ============ */
.franja {
  max-width: var(--maxw); margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  border-top: 1px solid var(--line);
}
.franja-item { text-align: center; }
.franja-ic { font-size: 32px; margin-bottom: 12px; }
.franja-item h3 { font-size: 20px; margin-bottom: 8px; }
.franja-item p { color: var(--ink-soft); font-size: 15px; }

/* ============ LIST TOOLBAR ============ */
.list-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.list-count { font-size: 14px; color: var(--ink-soft); }
.list-orden label { font-size: 14px; color: var(--ink-soft); }
.list-orden select {
  font-family: var(--sans); font-size: 14px;
  border: none; background: none; color: var(--ink);
  cursor: pointer; padding: 4px;
}

/* ============ PRODUCT PAGE ============ */
.prod {
  max-width: var(--maxw); margin: 0 auto;
  padding: 24px 24px 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
}
.prod-gallery { position: sticky; top: 96px; align-self: start; }
.gallery-main {
  position: relative; aspect-ratio: 1;
  background: var(--paper-2); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 12px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery-thumb {
  width: 72px; height: 72px; border-radius: var(--radius);
  overflow: hidden; border: 2px solid transparent;
  cursor: pointer; padding: 0; background: var(--paper-2);
  transition: border-color .2s;
}
.gallery-thumb.is-active { border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.prod-marca-label { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); margin-bottom: 8px; }
.prod-titulo { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; margin-bottom: 20px; }
.prod-precio-box { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.precio-now-big { font-size: 34px; font-weight: 600; font-family: var(--serif); }
.precio-old-big { font-size: 20px; color: var(--ink-soft); text-decoration: line-through; }
.precio-desc-tag { background: var(--accent); color: #fff; font-size: 13px; padding: 4px 12px; border-radius: 100px; font-weight: 500; }

.prod-stock { font-size: 14px; margin-bottom: 20px; font-weight: 400; }
.prod-stock.in { color: var(--ok); }
.prod-stock.out { color: var(--accent); }
.prod-desc-corta { font-size: 17px; color: var(--ink-soft); margin-bottom: 28px; }

/* VENTAJAS / DESVENTAJAS BOX */
.vd-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  margin-bottom: 28px;
}
.vd-col { padding: 20px; background: var(--paper); }
.vd-col--pro { background: var(--ok-bg); }
.vd-col--con { background: var(--warn-bg); }
.vd-col h4 { font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.vd-col--pro h4 { color: var(--ok); }
.vd-col--con h4 { color: var(--warn); }
.vd-col ul { list-style: none; }
.vd-col li { font-size: 14px; padding-left: 22px; position: relative; margin-bottom: 8px; line-height: 1.45; }
.vd-col--pro li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 600; }
.vd-col--con li::before { content: '!'; position: absolute; left: 6px; color: var(--warn); font-weight: 600; }

.prod-cta { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }

.prod-digital-info {
  background: var(--paper-2); border-radius: var(--radius);
  padding: 16px 20px; font-size: 14px;
}
.prod-digital-info div { margin-bottom: 6px; }
.prod-digital-info div:last-child { margin-bottom: 0; }

/* DESCRIPCIÓN LARGA + SPECS */
.prod-detalle-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; }
.prod-detalle h2 { font-size: 24px; margin-bottom: 20px; }
.prose { color: var(--ink-soft); font-size: 16px; line-height: 1.75; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--line); }
.specs-table th { text-align: left; padding: 12px 0; font-family: var(--sans); font-weight: 400; font-size: 14px; color: var(--ink-soft); width: 45%; }
.specs-table td { padding: 12px 0; font-size: 15px; font-weight: 400; }
.spec-unidad { color: var(--ink-soft); font-size: 13px; }

/* ============ ALTERNATIVAS ============ */
.alternativas { border-top: 1px solid var(--line); }
.alt-bloque { margin-bottom: 48px; }
.alt-bloque:last-child { margin-bottom: 0; }
.alt-titulo {
  font-size: 26px; margin-bottom: 24px;
  padding-left: 16px; border-left: 3px solid var(--ink);
}
.alt-titulo--alternativa_superior { border-left-color: var(--ok); }
.alt-titulo--alternativa_economica { border-left-color: var(--accent); }
.alt-titulo--complementario { border-left-color: var(--gold); }
.card-prod--rel .card-prod-img { aspect-ratio: 4/3; }

/* ============ BUSCAR ============ */
.buscar-grande { display: flex; gap: 12px; max-width: 560px; }
.buscar-grande input {
  flex: 1; font-family: var(--sans); font-size: 17px;
  border: 1px solid var(--line); border-radius: 100px;
  padding: 14px 24px; outline: none;
}
.buscar-grande input:focus { border-color: var(--accent); }

/* ============ EMPTY / ERROR ============ */
.empty-msg { color: var(--ink-soft); font-size: 17px; text-align: center; padding: 48px 0; }
.error-page { max-width: 560px; margin: 0 auto; padding: 100px 24px; text-align: center; }
.error-code { font-family: var(--serif); font-size: 90px; color: var(--accent); line-height: 1; }
.error-page h1 { font-size: 32px; margin: 16px 0 12px; }
.error-page p { color: var(--ink-soft); margin-bottom: 28px; }

/* ============ PAGINATION ============ */
.pag-front {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; margin-top: 48px; font-size: 15px;
}
.pag-front a { color: var(--accent); }
.pag-front a:hover { text-decoration: underline; }
.pag-front span { color: var(--ink-soft); }

/* ============ FOOTER ============ */
.ft { background: var(--ink); color: var(--paper); margin-top: 80px; }
.ft-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
.ft-logo { font-family: var(--serif); font-size: 24px; font-weight: 600; margin-bottom: 12px; }
.ft-desc { color: rgba(253,252,250,.6); font-size: 15px; max-width: 320px; }
.ft-links h4 { font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; color: rgba(253,252,250,.5); }
.ft-links a { display: block; color: rgba(253,252,250,.85); font-size: 15px; margin-bottom: 10px; transition: color .2s; }
.ft-links a:hover { color: #fff; }
.ft-bottom {
  max-width: var(--maxw); margin: 0 auto;
  padding: 20px 24px; border-top: 1px solid rgba(253,252,250,.1);
  font-size: 13px; color: rgba(253,252,250,.5);
}

/* WHATSAPP FLOAT */
.wsp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  transition: transform .2s;
}
.wsp-float:hover { transform: scale(1.08); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .prod { grid-template-columns: 1fr; gap: 32px; }
  .prod-gallery { position: static; }
  .prod-detalle-grid { grid-template-columns: 1fr; gap: 40px; }
  .franja { grid-template-columns: 1fr; gap: 32px; }
  .ft-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .hd-nav { display: none; }
  .hd-inner { gap: 16px; }
  .hd-search input { width: 120px; }
  .hd-burger { display: flex; }
  body.nav-open .hd-nav {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; background: var(--paper);
    padding: 16px 24px; border-bottom: 1px solid var(--line); gap: 12px;
  }
  .vd-box { grid-template-columns: 1fr; }
  .ft-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 48px 24px 40px; }
}

/* ============ COMPARADOR ============ */

/* Checkbox en card de producto */
.card-prod-wrap { position: relative; }
.card-cmp {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px; cursor: pointer;
  font-size: 13px; color: var(--ink-soft);
  user-select: none;
}
.card-cmp input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
.card-cmp:hover { color: var(--ink); }

/* Botón comparar en ficha */
.btn-compare {
  width: 100%;
  background: transparent; color: var(--ink-soft);
  padding: 12px 28px; border-radius: 100px;
  border: 1px dashed var(--line);
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all .2s;
}
.btn-compare:hover { border-color: var(--accent); color: var(--accent); border-style: solid; }

/* Barra flotante */
.cmp-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 -4px 24px rgba(0,0,0,.25);
  animation: cmpUp .3s ease;
}
@keyframes cmpUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cmp-bar-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cmp-bar-items { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; min-width: 0; }
.cmp-bar-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(253,252,250,.1);
  padding: 6px 8px 6px 14px; border-radius: 100px;
  font-size: 13px; white-space: nowrap;
  max-width: 200px; overflow: hidden; text-overflow: ellipsis;
}
.cmp-bar-chip button {
  background: rgba(253,252,250,.15); border: none; color: var(--paper);
  width: 18px; height: 18px; border-radius: 50%; cursor: pointer;
  font-size: 13px; line-height: 1; flex-shrink: 0;
}
.cmp-bar-chip button:hover { background: var(--accent); }
.cmp-bar-actions { display: flex; align-items: center; gap: 12px; }
.cmp-bar-clear {
  background: none; border: none; color: rgba(253,252,250,.6);
  cursor: pointer; font-family: var(--sans); font-size: 13px;
}
.cmp-bar-clear:hover { color: var(--paper); }
.cmp-bar-go.is-disabled { opacity: .4; pointer-events: none; }
.cmp-bar-go { background: var(--accent); }
.cmp-bar-go:hover { background: #fff; color: var(--ink); }

/* Empty state del comparador */
.cmp-empty { text-align: center; padding: 64px 24px; max-width: 520px; margin: 0 auto; }
.cmp-empty-ic { font-size: 48px; margin-bottom: 16px; }
.cmp-empty h2 { font-size: 28px; margin-bottom: 12px; }
.cmp-empty p { color: var(--ink-soft); margin-bottom: 28px; }

.cmp-aviso {
  background: var(--warn-bg); color: var(--warn);
  padding: 12px 18px; border-radius: var(--radius);
  font-size: 14px; margin-bottom: 24px;
}

/* Tabla comparativa */
.cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -24px; padding: 0 24px; }
.cmp-table {
  width: 100%; border-collapse: collapse;
  min-width: 600px;
}
.cmp-table th, .cmp-table td {
  padding: 16px; text-align: center;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cmp-rowhead {
  text-align: left !important;
  font-family: var(--sans); font-weight: 500; font-size: 14px;
  color: var(--ink-soft);
  width: 160px; min-width: 140px;
  background: var(--paper);
  position: sticky; left: 0; z-index: 2;
}
.cmp-hint { color: var(--ink-soft); font-size: 10px; margin-left: 4px; opacity: .7; }

/* Encabezado de producto */
.cmp-prod { position: relative; min-width: 180px; }
.cmp-remove {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--paper-2); border: 1px solid var(--line);
  cursor: pointer; color: var(--ink-soft); font-size: 14px; line-height: 1;
}
.cmp-remove:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.cmp-prod-link { display: block; }
.cmp-prod-img {
  display: block; width: 120px; height: 120px; margin: 0 auto 12px;
  border-radius: var(--radius); overflow: hidden; background: var(--paper-2);
}
.cmp-prod-img img { width: 100%; height: 100%; object-fit: cover; }
.cmp-prod-marca { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); display: block; }
.cmp-prod-nombre { font-family: var(--serif); font-size: 17px; font-weight: 500; display: block; margin-top: 2px; line-height: 1.2; }

/* Celdas de valores */
.cmp-table td { font-size: 15px; }
.cmp-precio { font-family: var(--serif); font-size: 18px; font-weight: 600; display: block; }
.cmp-precio-old { font-size: 13px; color: var(--ink-soft); text-decoration: line-through; }
.cmp-unidad { color: var(--ink-soft); font-size: 13px; }
.cmp-na { color: var(--line); }

/* Mejor valor resaltado */
.cmp-best {
  background: var(--ok-bg);
  position: relative;
  font-weight: 600;
}
.cmp-check { color: var(--ok); font-weight: 700; margin-left: 4px; }
.cmp-row-precio .cmp-best { background: var(--ok-bg); }

/* Ventajas/desventajas en tabla */
.cmp-vd-cell { text-align: left !important; }
.cmp-vd { list-style: none; font-size: 13px; }
.cmp-vd li { padding-left: 18px; position: relative; margin-bottom: 5px; line-height: 1.4; }
.cmp-vd--pro li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); }
.cmp-vd--con li::before { content: '!'; position: absolute; left: 4px; color: var(--warn); }

.cmp-btn { display: block; width: 100%; margin-bottom: 8px; padding: 10px; font-size: 13px; }
.cmp-row-cta td { border-bottom: none; }

.cmp-acciones { margin-top: 24px; text-align: center; }

@media (max-width: 680px) {
  .cmp-bar-inner { padding: 12px 16px; gap: 12px; }
  .cmp-bar-chip { max-width: 130px; }
  .cmp-prod-img { width: 90px; height: 90px; }
}

/* ============ CARRITO / CHECKOUT ============ */

/* Ícono carrito en header */
.hd-cart { position: relative; color: var(--ink); display: flex; padding: 4px; }
.hd-cart:hover { color: var(--accent); }
.hd-cart-count {
  position: absolute; top: -4px; right: -6px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 600;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}

/* Cantidad (ficha + carrito) */
.prod-qty, .cart-item-qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 100px; overflow: hidden;
}
.prod-qty { margin-bottom: 12px; }
.qty-btn {
  background: var(--paper-2); border: none; cursor: pointer;
  width: 38px; height: 40px; font-size: 18px; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--line); }
.qty-input {
  width: 48px; height: 40px; border: none; text-align: center;
  font-family: var(--sans); font-size: 15px; outline: none;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.prod-add-form { display: flex; flex-direction: column; gap: 0; }
.prod-add-form .prod-qty { align-self: flex-start; }

/* Layout carrito */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.cart-items { display: flex; flex-direction: column; }
.cart-item {
  display: grid; grid-template-columns: 80px 1fr auto auto auto;
  gap: 16px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.cart-item-img { width: 80px; height: 80px; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-marca { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); display: block; }
.cart-item-nombre { font-family: var(--serif); font-size: 17px; font-weight: 500; display: block; margin: 2px 0; }
.cart-item-precio { font-size: 13px; color: var(--ink-soft); }
.cart-item-subtotal { font-family: var(--serif); font-size: 17px; font-weight: 600; white-space: nowrap; }
.cart-item-remove {
  background: none; border: none; cursor: pointer;
  color: var(--ink-soft); font-size: 22px; line-height: 1;
  width: 32px; height: 32px; border-radius: 50%;
}
.cart-item-remove:hover { background: var(--paper-2); color: var(--accent); }

/* Resumen carrito */
.cart-summary { background: var(--paper-2); border-radius: var(--radius); padding: 24px; position: sticky; top: 96px; }
.cart-summary h3 { font-size: 18px; margin-bottom: 16px; }
.cart-sum-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: 15px; }
.cart-sum-row strong { font-family: var(--serif); font-size: 22px; }
.cart-sum-nota { font-size: 13px; color: var(--ink-soft); margin-bottom: 20px; }
.cart-seguir { display: block; text-align: center; margin-top: 16px; font-size: 14px; color: var(--accent); }
.cart-seguir:hover { text-decoration: underline; }

/* Checkout */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.panel-front { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel-front h3 { font-size: 20px; margin-bottom: 20px; }
.checkout-resumen .panel-front { background: var(--paper-2); border: none; position: sticky; top: 96px; }
.f { display: block; margin-bottom: 18px; }
.f > span { display: block; font-size: 14px; font-weight: 400; margin-bottom: 6px; }
.f input, .f textarea {
  width: 100%; font-family: var(--sans); font-size: 15px;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  outline: none; background: var(--paper);
}
.f input:focus, .f textarea:focus { border-color: var(--accent); }
.f-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-err { color: var(--accent); font-size: 12px; display: block; margin-top: 4px; }

.co-line { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.co-line-cant { color: var(--ink-soft); }
.co-line-nombre { flex: 1; }
.co-line-sub { font-weight: 500; white-space: nowrap; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; margin-bottom: 16px; }
.co-total strong { font-family: var(--serif); font-size: 24px; }
.co-nota { font-size: 12px; color: var(--ink-soft); margin-top: 14px; line-height: 1.5; }

/* Confirmado */
.confirmado { max-width: 520px; margin: 0 auto; padding: 80px 24px; text-align: center; }
.confirmado-ic {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--ok-bg); color: var(--ok);
  font-size: 36px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.confirmado h1 { font-size: 32px; margin-bottom: 12px; }
.confirmado-codigo { font-size: 16px; margin-bottom: 16px; }
.confirmado-codigo strong { font-family: var(--serif); color: var(--accent); }
.confirmado p { color: var(--ink-soft); margin-bottom: 24px; }
.confirmado .cart-seguir { margin-top: 24px; }

@media (max-width: 900px) {
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary, .checkout-resumen .panel-front { position: static; }
}
@media (max-width: 680px) {
  .cart-item { grid-template-columns: 64px 1fr auto; grid-template-areas: "img info remove" "img qty sub"; gap: 10px 12px; }
  .cart-item-img { grid-area: img; width: 64px; height: 64px; }
  .cart-item-info { grid-area: info; }
  .cart-item-qty { grid-area: qty; }
  .cart-item-subtotal { grid-area: sub; text-align: right; }
  .cart-item-remove { grid-area: remove; justify-self: end; }
  .f-row2 { grid-template-columns: 1fr; }
}
