/* ============================================================
   TEMA KAMALEON · tecnología (Unilago, Bogotá)
   UX: comprador que compara specs y precio; ticket alto; modelo
   cotización + asesoría humana. Cards con specs, precio claro,
   CTA Cotizar. Sin franja TRM (decisión 13-jul-2026).
   ============================================================ */

:root {
  --bg:          #F4F6F8;
  --surface:     #FFFFFF;
  --ink:         #15221B;
  --ink-soft:    #46554C;
  --ink-mute:    #8A978E;
  --header:      #101915;
  --accent:      #78BE20;
  --accent-dark: #4C7C14; /* verde AA para texto pequeño sobre blanco (5.00:1); antes #5C9418=3.68:1 fallaba WCAG AA. Ver ESTANDARES-UX §? / plan Q7 */
  --line:        rgba(21,34,27,0.12);
  --line-soft:   rgba(21,34,27,0.07);

  --font-sans: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--bg); color: var(--ink); line-height: 1.55; font-size: 15px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 14px; } }
/* Imagen de card menos alta (tech): la ficha se ve completa en un pantallazo. */
:root { --card-img-ratio: 4 / 3; }
/* Iconos del header adecuados a la marca KAMALEON (tech oscuro + verde). */
.hdr-actions { --hdr-act-border: rgba(255,255,255,0.28); --hdr-act-color: #fff; --hdr-wa-bg: #78BE20; --hdr-badge-bg: #78BE20; --hdr-act-radius: 10px; }

/* ─── HEADER oscuro tech ─── */
.site-header { background: var(--header); position: sticky; top: 0; z-index: 200; }
.km-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 66px; }
.km-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: 0.02em; color: #fff; }
.km-logo img { height: 40px; width: auto; }
.km-logo em { color: var(--accent); font-style: normal; }
.km-nav { display: flex; gap: 20px; align-items: center; flex: 1; justify-content: center; min-width: 0; }
.km-nav a { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.75); white-space: nowrap; }
.km-nav a:hover { color: var(--accent); }
/* Flechas ‹ › del carrusel de chips: afluencia SOLO para móvil (nav scrolleable).
   En desktop el menú es centrado y no scrollea → ocultarlas (evita las cajitas sueltas). */
@media (min-width: 761px) { .km-nav-arrow { display: none !important; } }
.btn-wa { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #0E1A08; font-weight: 700; font-size: 13.5px; padding: 10px 18px; border-radius: 8px; white-space: nowrap; }
.btn-wa:hover { background: #8ACD35; }
/* Botón CARRITO del header ("Cotización actual" = carrito). Reemplaza el botón WhatsApp. */
.km-cart { position: relative; display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #0E1A08; font-weight: 700; font-size: 13.5px; padding: 9px 15px; border-radius: 8px; white-space: nowrap; flex: none; }
.km-cart:hover { background: #8ACD35; }
.km-cart svg { display: block; }
.km-cart-count { position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: #b3452f; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ─── HERO tech ─── */
.km-hero { background: linear-gradient(135deg, #101915 0%, #1C2E22 60%, #24422A 100%); color: #fff; padding: 64px 0 56px; }
.km-hero-eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent); margin-bottom: 14px; }
.km-hero h1 { font-size: clamp(30px, 4.5vw, 48px); font-weight: 800; line-height: 1.1; max-width: 640px; margin-bottom: 16px; }
.km-hero p { color: rgba(255,255,255,0.65); max-width: 560px; margin-bottom: 28px; }
.km-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.btn-primary { display: inline-block; background: var(--accent); color: #0E1A08; font-weight: 700; font-size: 14px; padding: 13px 28px; border-radius: 8px; }
.btn-primary:hover { background: #8ACD35; }
.btn-ghost { display: inline-block; border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.85); font-weight: 600; font-size: 13.5px; padding: 12px 24px; border-radius: 8px; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.km-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.km-chips span { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.18); padding: 6px 12px; border-radius: 20px; }
.km-chips span::before { content: '✓ '; color: var(--accent); }

/* ─── CATÁLOGO editorial (cards con specs) ─── */
.collection { padding: 56px 0 72px; }
.section-intro { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; gap: 16px; }
.section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent-dark); margin-bottom: 6px; }
.section-intro h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.collection .btn-ghost { border-color: var(--line); color: var(--ink-soft); }
.collection .btn-ghost:hover { border-color: var(--accent-dark); color: var(--accent-dark); }

.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: 0 8px 28px rgba(21,34,27,0.1); transform: translateY(-2px); }
.product-img-wrap { display: block; aspect-ratio: var(--card-img-ratio, 1 / 1); background: #fff; padding: 14px; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: contain; }
.product-info { padding: 14px 16px 18px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 7px; flex: 1; }
.product-badge-cat { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-dark); }
.product-info h3 { font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.product-specs { list-style: none; font-size: 12px; color: var(--ink-soft); }
.product-specs li { padding-left: 12px; position: relative; margin-bottom: 2px; }
.product-specs li::before { content: '·'; position: absolute; left: 2px; color: var(--accent); font-weight: 800; }
.price { font-size: 17px; font-weight: 800; color: var(--ink); margin-top: auto; }
.btn-cotizar { display: inline-block; text-align: center; background: var(--accent); color: #0E1A08; font-weight: 700; font-size: 13px; padding: 9px 14px; border-radius: 8px; }
.btn-cotizar:hover { background: #8ACD35; }
.product-agotado { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-mute); border: 1px solid var(--line); padding: 6px 10px; border-radius: 8px; text-align: center; }
.catalogo-vacio { color: var(--ink-mute); padding: 24px 0; }

/* ─── FOOTER ─── */
.site-footer { background: var(--header); color: rgba(255,255,255,0.8); margin-top: 40px; padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo { font-size: 19px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-logo em { color: var(--accent); font-style: normal; }
.footer-grid p { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.7; max-width: 320px; margin-bottom: 8px; }
.footer-contact { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.9; }
.footer-col h5 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 13.5px; color: rgba(255,255,255,0.55); }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding: 18px 0; font-size: 12px; color: rgba(255,255,255,0.3); }

/* ─── WHATSAPP FLOAT ─── */
.float-wha { position: fixed; bottom: 24px; right: 24px; width: 52px; height: 52px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,0.35); z-index: 500; }
.float-wha svg { width: 24px; height: 24px; fill: #fff; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1000px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  /* Nav no desaparece en mobile: pasa a tira horizontal desplazable bajo la barra
     (reduce fricción; el usuario sigue pudiendo navegar categorías). */
  .km-bar { flex-wrap: wrap; height: auto; padding: 8px 0; row-gap: 8px; }
  .km-hero { padding: 28px 0 24px; }  /* hero más bajo en móvil: deja asomar los carruseles */
  .km-hero h1 { font-size: clamp(24px, 6vw, 30px); margin-bottom: 12px; }
  .km-hero p { margin-bottom: 18px; font-size: 14px; }
  .km-logo { order: 1; }
  .km-cart { order: 2; margin-left: auto; }
  .hdr-actions { order: 2; margin-left: auto; }  /* logo izquierda, acciones derecha */
  /* Carrusel de CHIPS: botones swipeables/clickeables, sin scrollbar visible. */
  .km-nav { order: 3; flex-basis: 100%; justify-content: flex-start; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 2px 0 2px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .km-nav::-webkit-scrollbar { display: none; }
  .km-nav a { flex: none; scroll-snap-align: start; padding: 8px 15px; border: 1px solid rgba(255,255,255,0.22); border-radius: 999px; color: #fff; background: rgba(255,255,255,0.04); }
  .km-nav a:hover { border-color: var(--accent); color: var(--accent); }
  /* Flechas indicadoras de "hay más chips" (aparecen según el scroll; al tocar, desplazan). */
  .km-nav-arrow { position: absolute; bottom: 2px; width: 34px; height: 40px; display: none; align-items: center; justify-content: center; border: 0; cursor: pointer; z-index: 3; color: #fff; font-size: 22px; line-height: 1; padding: 0; }
  .km-nav-arrow--left { left: 0; background: linear-gradient(90deg, #101915 62%, rgba(16,25,21,0)); }
  .km-nav-arrow--right { right: 0; background: linear-gradient(270deg, #101915 62%, rgba(16,25,21,0)); }
  .km-bar.has-left .km-nav-arrow--left { display: flex; }
  .km-bar.has-right .km-nav-arrow--right { display: flex; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .section-intro { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 440px) { .products-grid { grid-template-columns: 1fr; } }
