@font-face {
  font-family: 'Unbounded';
  font-weight: 700 900;
  font-style: normal;
  src: url('../assets/fonts/unbounded.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Plex';
  font-weight: 300 700;
  font-style: normal;
  src: url('../assets/fonts/plexsans.woff2') format('woff2');
  font-display: swap;
}

/* Paleta única, crema y clara -- a propósito NO cambia con el modo oscuro del
   sistema ni con ningún toggle: ninguna página de este sitio debe verse
   negra bajo ninguna circunstancia. */
:root {
  --ink: #2B2620;
  --ink-soft: #6B6152;
  --paper: #F8F1E1;
  --paper-raised: #FFFCF4;
  --paper-sunken: #F0E6D0;
  --accent: #0B93B5;
  --accent-ink: #045066;
  --accent-soft: #E4F1EE;
  --magenta: #C81F72;
  --magenta-ink: #8A1150;
  --magenta-soft: #FBEAE9;
  --line: rgba(43, 38, 32, 0.10);
  --line-strong: rgba(43, 38, 32, 0.18);
  --whatsapp: #22B858;
  --whatsapp-ink: #0F7A38;
  --shadow: 0 1px 2px rgba(43, 38, 32, 0.06);
  --danger-soft: #FBE7E7;
  --danger-ink: #A32D2D;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background-color: var(--paper);
  background-image: radial-gradient(circle, rgba(255, 253, 245, 0.95) 1.4px, transparent 1.8px);
  background-size: 20px 20px;
  color: var(--ink);
  font-family: 'Plex', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.mono { font-family: ui-monospace, "SF Mono", "Cascadia Mono", "IBM Plex Mono", Consolas, monospace; font-variant-numeric: tabular-nums; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: 'Unbounded', 'Plex', sans-serif; font-weight: 800; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
.eyebrow { font-family: 'Plex'; font-weight: 600; font-size: 12px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-soft); }

/* utility bar */
.utility { border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-soft); }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 9px; padding-bottom: 9px; gap: 16px; flex-wrap: wrap; }
.utility-item { display: flex; align-items: center; gap: 6px; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--whatsapp); flex: none; }

/* header */
header.site { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); z-index: 20; }
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 54px; height: 54px; border-radius: 13px; }
.brand img.brand-header-logo { width: auto; height: 68px; border-radius: 0; }
.brand-word { font-family: 'Unbounded'; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; line-height: 1.15; }
.brand-word span { display: block; font-family: 'Plex'; font-weight: 500; font-size: 10.5px; letter-spacing: 0.13em; color: var(--accent-ink); text-transform: uppercase; }
nav.main { display: flex; align-items: center; gap: 30px; }
nav.main a { text-decoration: none; font-weight: 500; font-size: 14.5px; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
nav.main a:hover, nav.main a.active { border-bottom-color: var(--accent); }
.cta-wa { display: inline-flex; align-items: center; gap: 8px; background: var(--whatsapp); color: #06210F; font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 999px; text-decoration: none; white-space: nowrap; border: none; cursor: pointer; }
.cta-wa svg { width: 16px; height: 16px; flex: none; }
.nav-toggle { display: none; }

/* hero */
.hero { padding: 68px 0 56px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 44px; line-height: 1.08; }
.hero p.lead { font-size: 17px; color: var(--ink-soft); margin: 20px 0 0; max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14.5px; padding: 11px 20px; border-radius: 999px; }
.hero-stats { display: flex; gap: 28px; margin-top: 36px; }
.stat b { display: block; font-family: 'Unbounded'; font-size: 22px; }
.stat span { font-size: 12.5px; color: var(--ink-soft); }

.device-stage { position: relative; height: 300px; }
.chip { position: absolute; border-radius: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; overflow: hidden; }
.chip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.chip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,16,10,0.62) 0%, rgba(20,16,10,0.12) 55%, transparent 72%); z-index: 1; }
.chip .tag, .chip b { position: relative; z-index: 2; color: #fff; }
.chip .tag { font-family: 'Plex'; font-weight: 600; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.chip-apple { width: 150px; height: 210px; left: 10%; top: 10px; background: var(--paper-raised); border: 1px solid var(--line); transform: rotate(-6deg); }
.chip-samsung { width: 150px; height: 210px; left: 34%; top: 60px; background: var(--accent); border: 1px solid var(--accent); transform: rotate(3deg); z-index: 2; }
.chip-xiaomi { width: 150px; height: 210px; left: 58%; top: 0; background: var(--magenta-soft); border: 1px solid var(--magenta); transform: rotate(10deg); }
.chip b { font-family: 'Unbounded'; font-size: 15px; display: block; margin-top: 4px; }

/* brand strip */
.brands { padding: 48px 0; border-bottom: 1px solid var(--line); }
.brands-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.brand-tile { border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 20px; background: var(--paper-raised); text-decoration: none; color: inherit; display: block; }
.brand-tile .eyebrow { margin-bottom: 10px; }
.brand-tile h3 { font-size: 21px; }
.brand-tile .subs { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.brand-tile .subs li { font-size: 11.5px; font-weight: 500; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.brand-tile.acc-apple { border-top: 3px solid var(--ink); }
.brand-tile.acc-samsung { border-top: 3px solid var(--accent); }
.brand-tile.acc-xiaomi { border-top: 3px solid var(--magenta); }

/* products */
.products { padding: 52px 0; border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 26px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 26px; }
.see-all { font-size: 13.5px; font-weight: 500; color: var(--accent-ink); text-decoration: none; white-space: nowrap; }
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pcard { border: 1px solid var(--line); border-radius: 14px; background: var(--paper-raised); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.pcard .tag-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pcard .badge { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.badge-nuevo { background: var(--accent-soft); color: var(--accent-ink); }
.badge-usado { background: var(--danger-soft); color: var(--danger-ink); }
.device-plate { height: 110px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.device-plate img { width: 100%; height: 100%; object-fit: cover; }
.device-plate .glyph { width: 34px; height: 54px; border-radius: 7px; border: 2.5px solid var(--ink-soft); opacity: 0.55; position: relative; }
.device-plate .glyph::after { content: ""; position: absolute; bottom: 4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; border: 2px solid var(--ink-soft); }
.pcard h4 { font-family: 'Plex'; font-weight: 600; font-size: 14.5px; margin: 0; line-height: 1.3; }
.pcard .cond { font-size: 11.5px; color: var(--ink-soft); margin: -6px 0 0; }
.swatches { display: flex; gap: 5px; flex-wrap: wrap; }
.swatch { width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--paper); }
.pcard .price-row { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pcard .price { font-family: 'Unbounded'; font-size: 19px; }
.pcard .mini-wa { font-size: 12px; font-weight: 600; color: var(--whatsapp-ink); text-decoration: none; white-space: nowrap; }

/* tarjeta compacta: sin foto, mas angosta, para productos fuera de la lista de fotos */
.pcard-compact { padding: 14px 16px; gap: 7px; }
.pcard-compact h4 { font-size: 13.5px; }
.pcard-compact .price { font-size: 17px; }
.swatch-sm { width: 10px; height: 10px; }
.pcard-compact-foto { padding: 16px; gap: 9px; }
.pcard-compact-foto h4 { font-size: 14px; }
.device-plate-sm { height: 92px; }
/* Las fotos de usados (plantilla + celular) son retrato alto, no cuadradas
   como las de modelos agrupados -- con "cover" quedaban recortadas y
   deformadas. "contain" muestra la foto completa, sin recortar. */
.device-plate-sm img { object-fit: contain; }

/* tarjeta con modelo agrupado: selector de capacidad + color */
.opt-block { display: flex; gap: 6px; flex-wrap: wrap; }
.opt-block:empty { display: none; }
.pill { font-family: 'Plex'; font-size: 11.5px; font-weight: 600; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink-soft); border-radius: 7px; padding: 4px 10px; cursor: pointer; }
.pill.active { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.swatch-btn { border: none; background: none; padding: 2px; cursor: pointer; border-radius: 50%; line-height: 0; }
.swatch-btn .swatch { width: 16px; height: 16px; display: block; }
.swatch-btn.active { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--accent); border-radius: 50%; }

/* ---- carrusel de promociones (home) ---- */
.promo-carousel { position: relative; overflow: hidden; border-radius: 20px; box-shadow: 0 16px 40px rgba(43,38,32,0.16); }
.promo-track { display: flex; transition: transform 0.55s cubic-bezier(.65,0,.35,1); }
.promo-slide { flex: 0 0 100%; display: flex; height: 340px; }
.promo-slide .photo-half { flex: 0 0 42%; position: relative; overflow: hidden; background: var(--paper-sunken); }
.promo-slide .photo-half img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-slide .photo-half.contain img { object-fit: contain; }
.promo-slide .content-half { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px 48px; color: #fff; }
.promo-slide-1 .content-half { background: linear-gradient(135deg, var(--magenta) 0%, #7A3FA0 100%); }
.promo-slide-2 .content-half { background: linear-gradient(135deg, #1A1611 0%, #3A322380 100%), var(--ink); }
.promo-slide-3 .content-half { background: linear-gradient(135deg, #B8860B 0%, var(--gold, #E8A317) 100%); }
.promo-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.35); color: #fff; font-family: 'Plex'; font-weight: 700; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; width: fit-content; }
.promo-slide .content-half h2 { color: #fff; font-size: 30px; margin-bottom: 8px; max-width: 16ch; }
.promo-slide .content-half p { color: rgba(255,255,255,0.9); font-size: 14px; margin: 0 0 18px; max-width: 40ch; }
.promo-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.promo-price-row .from { font-family: 'Plex'; font-size: 13px; color: rgba(255,255,255,0.8); }
.promo-price-row .price { font-family: 'Unbounded'; font-size: 34px; color: #fff; }
.promo-slide .btn-solid { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); font-weight: 700; font-size: 13.5px; padding: 12px 22px; border-radius: 999px; text-decoration: none; width: fit-content; }

.promo-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.9); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.18); z-index: 3; color: var(--ink); }
.promo-arrow:hover { background: #fff; }
.promo-arrow.prev { left: 16px; }
.promo-arrow.next { right: 16px; }
.promo-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.promo-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,0.5); cursor: pointer; padding: 0; }
.promo-dots button.active { background: #fff; width: 22px; border-radius: 5px; transition: width 0.3s; }

/* ---- vitrinas por marca (home) ---- */
.showcase { padding: 56px 0; border-bottom: 1px solid var(--line); }
.showcase-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.showcase-head h2 { font-size: 28px; }
.showcase-head p { font-size: 14.5px; color: var(--ink-soft); margin: 6px 0 0; }

/* Apple: fila de tarjetas tipo carrusel, imagen grande arriba, dos botones abajo */
.apple-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.acard { display: flex; flex-direction: column; gap: 14px; }
.acard .plate { aspect-ratio: 1 / 1.05; border-radius: 18px; background: var(--paper-sunken); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--ink-soft); }
.acard .plate img { width: 100%; height: 100%; object-fit: cover; }
.glyph-lg { width: 40%; opacity: 0.55; flex: none; }
.acard .plate .glyph-lg { width: 46%; }
.acard .info { text-align: center; }
.acard h3 { font-size: 18px; margin-bottom: 4px; }
.acard .tagline { font-size: 13px; color: var(--ink-soft); margin: 0; min-height: 34px; }
.acard .price { display: block; font-family: 'Unbounded'; font-size: 15px; margin-top: 8px; }
.acard .actions { display: flex; justify-content: center; gap: 14px; margin-top: 4px; font-size: 13.5px; }
.acard .actions a { text-decoration: none; font-weight: 500; }
.acard .actions .more { color: var(--ink); }
.acard .actions .buy { color: var(--accent-ink); }
.acard .actions .buy::after { content: " →"; }

/* Samsung: tarjetas blancas con swatches + storage pills */
.samsung-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.scard { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: var(--paper-raised); display: flex; flex-direction: column; gap: 10px; }
.scard .plate { height: 150px; border-radius: 12px; background: var(--paper-sunken); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--ink-soft); }
.scard .plate img { width: 100%; height: 100%; object-fit: cover; }
.scard h3 { font-size: 15.5px; margin: 0; }
.scard .storage-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.scard .pill { font-size: 11px; font-weight: 600; border: 1px solid var(--line-strong); border-radius: 7px; padding: 3px 8px; color: var(--ink-soft); }
.scard .price-block { margin-top: auto; }
.scard .price-block .from { font-size: 11px; color: var(--ink-soft); display: block; }
.scard .price-block .price { font-family: 'Unbounded'; font-size: 18px; }
.scard .two-btn { display: flex; gap: 8px; margin-top: 6px; }
.scard .two-btn a { flex: 1; text-align: center; font-size: 12.5px; font-weight: 600; padding: 9px 8px; border-radius: 8px; text-decoration: none; }
.scard .btn-dark { background: var(--ink); color: var(--paper); }
.scard .btn-outline { border: 1px solid var(--line-strong); color: var(--ink); }

/* Xiaomi: hero destacado + grid debajo */
.xiaomi-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 20px; overflow: hidden; margin-bottom: 14px; border: 1px solid var(--line); }
.xiaomi-hero .photo {
  background-color: var(--paper-sunken);
  background-image: radial-gradient(circle, rgba(200, 31, 114, 0.16) 1.6px, transparent 2px);
  background-size: 16px 16px;
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
}
.xiaomi-hero .photo .glyph-lg { width: 34%; }
.xiaomi-hero .copy { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.xiaomi-hero .eyebrow { color: var(--magenta-ink); }
.xiaomi-hero h3 { font-size: 30px; margin: 10px 0 8px; }
.xiaomi-hero p { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 16px; max-width: 34ch; }
.xiaomi-hero .price { font-family: 'Unbounded'; font-size: 22px; display: block; margin-bottom: 18px; }
.xiaomi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.xcard { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--paper-raised); display: flex; flex-direction: column; gap: 8px; }
.xcard .plate { height: 110px; border-radius: 10px; background: var(--paper-sunken); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--ink-soft); }
.xcard .plate img { width: 100%; height: 100%; object-fit: cover; }
.xcard h4 { font-size: 14px; margin: 0; }
.xcard .price-row { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; }
.xcard .price { font-family: 'Unbounded'; font-size: 16px; }
.xcard .mini-wa { font-size: 11.5px; font-weight: 600; color: var(--whatsapp-ink); text-decoration: none; }

.glyph-generic { display: block; }

/* reviews */
.reviews { padding: 52px 0; border-bottom: 1px solid var(--line); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.rcard { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--paper-raised); }
.stars { color: var(--magenta); font-size: 13px; letter-spacing: 1px; }
.rcard p { font-size: 14px; color: var(--ink); margin: 10px 0 14px; }
.rcard .who { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); display: flex; justify-content: space-between; align-items: center; }

/* footer */
footer { padding: 44px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.foot-brand .brand-word { margin-bottom: 10px; }
.foot-col h5 { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 12px; }
.foot-col a, .foot-col p { display: block; font-size: 14px; text-decoration: none; color: var(--ink); margin: 0 0 8px; }
.foot-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---- catalogo.html ---- */
.catalog-head { padding: 40px 0 24px; border-bottom: 1px solid var(--line); }
.catalog-head h1 { font-size: 32px; }
.catalog-body { padding: 32px 0 60px; display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; }
.filters { position: sticky; top: 90px; border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--paper-raised); }
.filters h5 { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin: 18px 0 10px; }
.filters h5:first-child { margin-top: 0; }
.filter-group label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 4px 0; cursor: pointer; }
.filter-group input { accent-color: var(--accent); }
.search-box { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 12px; margin-bottom: 4px; }
.search-box input { border: none; outline: none; background: transparent; font-family: 'Plex'; font-size: 14px; color: var(--ink); width: 100%; }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: 13.5px; color: var(--ink-soft); }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.empty-state { padding: 60px 20px; text-align: center; color: var(--ink-soft); border: 1px dashed var(--line-strong); border-radius: 14px; }

.catalog-brand-block + .catalog-brand-block { margin-top: 72px; padding-top: 44px; border-top: 3px solid var(--line-strong); }
.catalog-brand-head { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.catalog-brand-head .bar { width: 8px; height: 34px; border-radius: 4px; flex: none; }
.catalog-brand-head.acc-apple .bar { background: var(--ink); }
.catalog-brand-head.acc-samsung .bar { background: var(--accent); }
.catalog-brand-head.acc-xiaomi .bar { background: var(--magenta); }
.catalog-brand-title { font-size: 36px; text-transform: uppercase; }
.catalog-brand-head.acc-apple .catalog-brand-title { color: var(--ink); }
.catalog-brand-head.acc-samsung .catalog-brand-title { color: var(--accent-ink); }
.catalog-brand-head.acc-xiaomi .catalog-brand-title { color: var(--magenta-ink); }
.catalog-cat-block + .catalog-cat-block { margin-top: 46px; padding-top: 34px; border-top: 2px dashed var(--line-strong); }
.catalog-cat-title { font-size: 21px; margin: 0 0 18px; }
.catalog-subgroup-label { font-size: 12px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-soft); margin: 22px 0 14px; }

/* ---- blog.html (listado) ---- */
.blog-head { padding: 40px 0 24px; border-bottom: 1px solid var(--line); }
.blog-head h1 { font-size: 32px; }
.blog-head p { color: var(--ink-soft); font-size: 14.5px; margin-top: 10px; max-width: 60ch; }
.blog-grid { padding: 40px 0 60px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.blog-card { display: block; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: 16px; background: var(--paper-raised); overflow: hidden; }
.blog-card .plate { height: 170px; background: var(--paper-sunken); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.blog-card .plate img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .body { padding: 20px 22px 22px; }
.blog-card .eyebrow { color: var(--accent-ink); }
.blog-card h3 { font-size: 18.5px; margin: 8px 0 8px; line-height: 1.25; }
.blog-card p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.blog-card .read-more { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--accent-ink); }

/* ---- artículo individual ---- */
.article-head { padding: 44px 0 32px; border-bottom: 1px solid var(--line); }
.article-head .eyebrow { color: var(--magenta-ink); }
.article-head h1 { font-size: 34px; margin-top: 10px; max-width: 22ch; }
.article-head .meta { font-size: 13px; color: var(--ink-soft); margin-top: 14px; }
.article-body { padding: 40px 0 20px; }
.article-body .prose { max-width: 66ch; font-size: 16px; }
.article-body .prose p { margin: 0 0 20px; }
.article-body .prose h2 { font-size: 23px; margin: 40px 0 14px; }
.article-body .prose h2:first-child { margin-top: 0; }
.article-body .prose h3 { font-size: 18px; margin: 28px 0 10px; }
.article-body .prose ul, .article-body .prose ol { margin: 0 0 20px; padding-left: 22px; }
.article-body .prose li { margin-bottom: 8px; }
.article-body .prose strong { color: var(--ink); }
.article-body .prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 14px; }
.article-body .prose th, .article-body .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.article-body .prose th { font-family: 'Unbounded'; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }
.article-cta { max-width: 66ch; margin: 8px 0 32px; padding: 22px 24px; border-radius: 16px; background: var(--accent-soft); border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.article-cta p { margin: 0; font-family: 'Unbounded'; font-size: 15px; color: var(--accent-ink); }
.article-cta a { flex: none; display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #04222B; font-weight: 700; font-size: 13.5px; padding: 10px 18px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.article-foot { max-width: 66ch; padding: 24px 0 56px; border-top: 1px solid var(--line); margin-top: 8px; }
.article-foot a { font-size: 13.5px; font-weight: 600; }

/* ---- bloque "del blog" en portada ---- */
.blog-teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

@media (max-width: 860px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-teaser-grid { grid-template-columns: 1fr; }
}

/* ---- precios.html ---- */
.precios-head { padding: 40px 0 22px; border-bottom: 1px solid var(--line); }
.precios-head h1 { font-size: 32px; }
.precios-head p.lead { color: var(--ink-soft); font-size: 14.5px; margin: 10px 0 20px; max-width: 60ch; }
.precios-stats { display: flex; gap: 26px; flex-wrap: wrap; }
.precios-stats .stat b { font-size: 19px; }

.precios-toolbar { position: sticky; top: 73px; z-index: 15; background: var(--paper); padding: 16px 0; border-bottom: 1px solid var(--line); }
.precios-toolbar.raised { box-shadow: 0 10px 24px -18px rgba(43,38,32,0.4); }
.precios-toolbar .search-box { max-width: 460px; margin-bottom: 12px; }
.precios-controls-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.precios-pills { display: flex; gap: 7px; flex-wrap: wrap; }
.precios-pills .pill { background: var(--paper-raised); }
.precios-brand-pills {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
}
.precios-brand-pills[hidden] { display: none; }
.precios-brand-pills .pill-sub {
  background: transparent; border-color: var(--line); color: var(--ink-soft);
  font-size: 12px; padding: 6px 12px;
}
.precios-brand-pills .pill-sub.active { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.precios-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.precios-sort { font-family: 'Plex'; font-weight: 600; font-size: 12.5px; color: var(--ink); background: var(--paper-raised); border: 1px solid var(--line-strong); border-radius: 9px; padding: 7px 10px; cursor: pointer; }

.precios-body { padding: 30px 0 60px; }
.precios-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-soft); margin-bottom: 6px; }
.precios-meta b { font-family: 'Plex'; color: var(--ink); }
.precios-section { margin-top: 30px; }
.precios-section-title { font-size: 22px; text-transform: uppercase; padding-bottom: 10px; border-bottom: 3px solid var(--cat-color, var(--accent)); margin-bottom: 4px; }
.precios-brand { display: inline-flex; align-items: center; gap: 8px; font-family: 'Plex'; font-weight: 700; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin: 18px 0 4px; }
.precios-brand::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cat-color, var(--accent)); }

ul.precios-list { list-style: none; margin: 0; padding: 0; }
li.precios-row { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
li.precios-row:last-child { border-bottom: none; }
.precios-row-main { flex: 1; min-width: 0; }
.precios-row-name { font-weight: 600; font-size: 14.5px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.precios-cap { font-family: 'Plex'; font-size: 11px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 1px 7px; border-radius: 5px; }
.precios-cat-badge { font-size: 10.5px; font-weight: 600; color: var(--ink-soft); border: 1px solid var(--line-strong); border-radius: 5px; padding: 1px 6px; }
.precios-usado-badge { font-size: 10px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #fff; background: var(--magenta); border-radius: 5px; padding: 1px 7px; }
.precios-row-sub { display: flex; align-items: center; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.precios-swatch { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line-strong); flex: none; }
.precios-color-label { font-size: 11.5px; color: var(--ink-soft); }
.precios-row-price { font-family: 'Unbounded'; font-size: 16px; text-align: right; flex: none; white-space: nowrap; }
.precios-empty { padding: 60px 20px; text-align: center; color: var(--ink-soft); border: 1px dashed var(--line-strong); border-radius: 14px; }

@media (max-width: 860px) {
  .precios-toolbar { top: 0; }
  .precios-row-price { font-size: 14.5px; }
}

/* ---- widget "Pregúntale a TTT" ---- */
/* Splash inicial: la imagen COMPLETA de TTT (no el ícono recortado) aparece
   grande un momento, en el mismo lugar donde después queda el botón chico,
   y se desvanece para dar paso al botón + globo de siempre. */
#ttt-intro {
  position: fixed; right: 14px; bottom: 10px; z-index: 60;
  width: 130px; height: auto; pointer-events: none;
  filter: drop-shadow(0 14px 30px rgba(43,38,32,.35));
  opacity: 0; transform: translateY(14px) scale(.9);
  transition: transform .35s cubic-bezier(.2,.9,.3,1.2), opacity .3s ease;
}
#ttt-intro.show { opacity: 1; transform: translateY(0) scale(1); }

#ttt-greeting {
  position: fixed; right: 22px; bottom: 92px; z-index: 59;
  width: 260px; max-width: calc(100vw - 44px);
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 30px 14px 14px; box-shadow: 0 16px 34px -12px rgba(43,38,32,.4);
  cursor: pointer;
  opacity: 0; transform: translateY(10px) scale(.95); pointer-events: none;
  transition: transform .22s cubic-bezier(.2,.9,.3,1.1), opacity .18s ease;
}
#ttt-greeting.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
#ttt-greeting::after {
  content: ""; position: absolute; right: 24px; bottom: -7px;
  width: 14px; height: 14px; background: var(--paper-raised);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.ttt-greeting-row { display: flex; align-items: flex-start; gap: 10px; }
.ttt-greeting-row img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.ttt-greeting-row p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink); }
#ttt-greeting-close {
  position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%;
  border: none; background: rgba(43,38,32,.08); color: var(--ink-soft); font-size: 14px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
}
#ttt-greeting-close:hover { background: rgba(43,38,32,.15); }

#ttt-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--accent);
  border: none; cursor: pointer; box-shadow: 0 12px 28px -10px rgba(43,38,32,0.35);
  padding: 0; overflow: hidden; animation: ttt-fab-in .5s cubic-bezier(.2,.9,.3,1.3) .4s both;
  transition: transform .18s ease;
}
/* Mientras se ve el splash grande (#ttt-intro), el botón chico queda
   invisible -- reaparece con su propia animación cuando el splash termina. */
#ttt-fab.ttt-fab-pending { opacity: 0; pointer-events: none; animation: none; }
#ttt-fab.ttt-fab-reveal { animation: ttt-fab-in .45s cubic-bezier(.2,.9,.3,1.3) both; }
#ttt-fab:hover { transform: scale(1.06); }
#ttt-fab:active { transform: scale(0.96); }
#ttt-fab img { width: 100%; height: 100%; object-fit: cover; display: block; }
#ttt-fab .ttt-fab-pulse {
  position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent);
  animation: ttt-pulse 2.4s cubic-bezier(.4,0,.3,1) infinite 1.4s; pointer-events: none;
}
@keyframes ttt-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes ttt-fab-in { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

#ttt-panel {
  position: fixed; right: 22px; bottom: 92px; z-index: 61;
  width: 350px; max-width: calc(100vw - 32px); height: 460px; max-height: calc(100vh - 140px);
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 20px 48px -14px rgba(43,38,32,0.4); display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(16px) scale(.97); opacity: 0; pointer-events: none;
  transition: transform .22s cubic-bezier(.2,.9,.3,1.1), opacity .18s ease;
}
#ttt-panel.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }

.ttt-head { background: var(--accent); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.ttt-avatar { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none; background: rgba(255,255,255,.25); }
.ttt-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ttt-who { flex: 1; min-width: 0; }
.ttt-who b { display: block; font-family: 'Unbounded'; font-size: 13.5px; }
.ttt-who span { font-size: 11px; opacity: .85; display: flex; align-items: center; gap: 5px; }
.ttt-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--whatsapp); display: inline-block; }
.ttt-head button { background: none; border: none; color: #fff; opacity: .85; cursor: pointer; padding: 4px; }
.ttt-head button:hover { opacity: 1; }
.ttt-head button svg { width: 18px; height: 18px; }

.ttt-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.ttt-msg { max-width: 84%; font-size: 13px; line-height: 1.5; padding: 9px 12px; border-radius: 14px; }
.ttt-msg.bot { background: var(--paper-raised); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.ttt-msg.user { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.ttt-disclaimer {
  align-self: center; max-width: 96%; font-size: 11px; line-height: 1.5; text-align: center;
  color: var(--ink-soft); background: var(--paper-sunken); border: 1px dashed var(--line-strong);
  border-radius: 10px; padding: 8px 12px; margin-bottom: 2px;
}
.ttt-typing { display: flex; gap: 4px; align-items: center; padding: 12px; }
.ttt-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-soft); animation: ttt-bounce 1.1s infinite; }
.ttt-typing span:nth-child(2) { animation-delay: .15s; }
.ttt-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes ttt-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.ttt-wa-cta {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 7px;
  background: var(--whatsapp); color: #06210F; font-weight: 600; font-size: 12.5px;
  padding: 9px 14px; border-radius: 999px; text-decoration: none; margin-top: -2px;
}
.ttt-wa-cta svg { width: 14px; height: 14px; }

.ttt-foot { border-top: 1px solid var(--line); padding: 10px; display: flex; gap: 8px; background: var(--paper-raised); }
.ttt-foot input {
  flex: 1; border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 14px;
  font-family: 'Plex'; font-size: 13px; background: var(--paper); color: var(--ink); outline: none;
}
.ttt-foot input:focus { border-color: var(--accent); }
.ttt-foot input:disabled { opacity: .6; }
.ttt-foot button {
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none;
}
.ttt-foot button:disabled { opacity: .5; cursor: default; }
.ttt-foot button svg { width: 16px; height: 16px; }

@media (prefers-reduced-motion: reduce) {
  #ttt-fab, #ttt-panel, #ttt-greeting, #ttt-intro, .ttt-fab-pulse, .ttt-typing span { animation: none !important; }
}
@media (max-width: 640px) {
  #ttt-panel { right: 12px; left: 12px; width: auto; bottom: 86px; }
  #ttt-fab { right: 16px; bottom: 16px; }
  #ttt-greeting { right: 12px; bottom: 82px; width: auto; left: 12px; }
  #ttt-intro { right: 10px; bottom: 6px; width: 105px; }
}

/* ---- contacto.html ---- */
.contact-hero { padding: 52px 0 40px; border-bottom: 1px solid var(--line); }
.contact-hero h1 { font-size: 34px; }
.contact-body { padding: 44px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-card { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--paper-raised); }
.contact-card h3 { font-size: 18px; margin-bottom: 16px; }
.contact-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.contact-row:last-child { border-bottom: none; }
.contact-row a { text-decoration: none; color: var(--accent-ink); font-weight: 500; }
.map-embed { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); height: 320px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.faq { padding: 0 0 56px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 10px 0 0; color: var(--ink-soft); font-size: 14px; max-width: 60ch; }

@media (max-width: 860px) {
  .brand img.brand-header-logo { height: 46px; }
  nav.main { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 10px; background: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .device-stage { height: 220px; }
  .brands-grid, .grid-products, .reviews-grid, .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .apple-row, .samsung-grid, .xiaomi-grid { grid-template-columns: repeat(2, 1fr); }
  .xiaomi-hero { grid-template-columns: 1fr; }
  .promo-slide { flex-direction: column; height: auto; }
  .promo-slide .photo-half { flex: 0 0 150px; }
  .promo-slide .content-half { padding: 18px 20px 20px; align-items: flex-start; }
  .promo-badge { font-size: 10.5px; padding: 5px 11px; margin-bottom: 8px; }
  .promo-slide .content-half h2 { font-size: 21px; max-width: 20ch; margin-bottom: 5px; }
  .promo-slide .content-half p { font-size: 12.5px; margin-bottom: 8px; }
  .promo-price-row { margin-bottom: 10px; }
  .promo-slide .btn-solid { padding: 9px 18px; font-size: 12.5px; }
  /* Las flechas se centran solas en la foto (150px), no en toda la tarjeta
     apilada -- si no, quedan flotando encima del texto promocional. */
  .promo-arrow { top: 75px; width: 34px; height: 34px; }
  .promo-dots { bottom: 10px; }
  .promo-price-row .price { font-size: 22px; }
  .xiaomi-hero .photo { min-height: 200px; }
  .xiaomi-hero .copy { padding: 28px; }
  .foot-grid { grid-template-columns: 1fr; }
  .contact-body { grid-template-columns: 1fr; }
  .catalog-body { grid-template-columns: 1fr; }
  .filters { position: static; }
  .hero h1 { font-size: 32px; }
}
@media (max-width: 520px) {
  .grid-products, .catalog-grid, .brands-grid, .reviews-grid { grid-template-columns: 1fr; }
  .apple-row, .samsung-grid, .xiaomi-grid { grid-template-columns: 1fr; }
}

/* ---- Lightbox: ampliar foto de producto al hacer click ---- */
.device-plate img, .plate img { cursor: zoom-in; }
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 14, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 32px;
  cursor: zoom-out;
}
.lightbox-overlay.abierto { display: flex; }
.lightbox-overlay img {
  max-width: min(90vw, 640px);
  max-height: 86vh;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}
