/* =====================================================================
   KING PC ALGODONES - tema claro y moderno
   Se carga DESPUES de los estilos heredados para pisarlos.
   ===================================================================== */
:root {
  --alg-accent: #e8262c;
  --alg-accent-2: #ff7a1a;
  --alg-grad: linear-gradient(135deg, #ff7a1a 0%, #e8262c 100%);
  --alg-ink: #111827;
  --alg-text: #374151;
  --alg-muted: #6b7280;
  --alg-line: #e5e7eb;
  --alg-bg: #ffffff;
  --alg-soft: #f6f7f9;
  --alg-radius: 16px;
  --alg-shadow: 0 1px 2px rgba(17,24,39,.06), 0 8px 24px rgba(17,24,39,.06);
}

/* ---------- base ---------- */
html, body, body.kpc-home-portal, body.kpc-logged-in {
  background: var(--alg-bg) !important;
  color: var(--alg-text);
  font-family: Montserrat, "Segoe UI", Arial, sans-serif;
}
a { color: var(--alg-accent); }
a:hover { color: #b91c1c; }

/* esconder adornos del tema anterior (logo con fuego, portal oscuro) */
.kpc-logo-stage, .kpc-hero-fire, canvas.kpc-fire, .kpc-fire-canvas { display: none !important; }

/* ---------- header ---------- */
header, header .header-middle, header .header-top, header .header-bottom,
header nav, .header-middle, .header-bottom, .header-top,
.mobile-header-top, .mobile-header-search-row, .sticky-header, .is-sticky {
  background: #ffffff !important;
  background-image: none !important;
  color: var(--alg-ink) !important;
  border-color: var(--alg-line) !important;
}
header { border-bottom: 1px solid var(--alg-line); box-shadow: 0 2px 10px rgba(17,24,39,.04); position: relative; z-index: 50; }
header a, header .main-menu a, header nav a, .mobile-header-top a { color: var(--alg-ink) !important; }
header .main-menu > ul > li > a:hover, header nav a:hover { color: var(--alg-accent) !important; }
header i, header .fa, header .fas { color: inherit; }
header .main-menu > ul > li > a i, header nav > div ul > li > a > i { color: var(--alg-accent) !important; }
.mega-menu, .sub-menu, .acceso-menu, .categoria-menu {
  background: #fff !important; border: 1px solid var(--alg-line) !important;
  box-shadow: var(--alg-shadow) !important; border-radius: 12px !important;
}
.mega-menu h5 { color: var(--alg-accent) !important; }
.mega-menu a, .sub-menu a, .acceso-menu a, .categoria-menu a { color: var(--alg-text) !important; }
.mega-menu a:hover, .acceso-menu a:hover, .categoria-menu a:hover { color: var(--alg-accent) !important; }

/* logo */
.kpc-nav-logo-img, .header-middle .logo img, .mobile-logo img { max-height: 58px !important; width: auto !important; filter: none !important; animation: none !important; }
.kpc-nav-logo-stage { background: none !important; box-shadow: none !important; }

/* buscadores */
header input[type="search"], header input[type="text"], .mobile-search-form input {
  background: var(--alg-soft) !important; color: var(--alg-ink) !important;
  border: 1px solid var(--alg-line) !important; border-radius: 999px !important;
}
header form button, .mobile-search-form button, .search-form button {
  background: var(--alg-grad) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important;
}

/* franja de contacto superior */
.kpc-top-bar { background: var(--alg-ink) !important; color: #fff !important; }
.kpc-top-bar a, .kpc-top-bar span, .kpc-top-bar strong { color: #fff !important; }

/* ---------- secciones heredadas (paginas internas) ---------- */
.bg-bluee, .bg-blue, .static-media-section, .breadcrumb-section, .bg-dark-blue {
  background: var(--alg-soft) !important; background-image: none !important; color: var(--alg-ink) !important;
}
.static-media-section .text-white, .static-media-section h4, .static-media-section p { color: var(--alg-ink) !important; }
.btn-primary, .btn-dark, .theme-btn, .btn.theme--btn1, .add-to-cart, .btn-carrito {
  background: var(--alg-grad) !important; border-color: transparent !important; color: #fff !important; border-radius: 10px !important;
}
.product-price .regular-price, .product-price, .precio, .price { color: var(--alg-accent) !important; }
.badge-danger, .badge.bg-danger { background: var(--alg-accent) !important; }

/* ---------- HOME ---------- */
.alg-home { background: #fff; }
.alg-hero { padding: 64px 0 56px; background:
  radial-gradient(900px 400px at 85% -10%, rgba(255,122,26,.16), transparent 60%),
  radial-gradient(700px 360px at -10% 110%, rgba(232,38,44,.10), transparent 60%), #fff; }
.alg-pill { display: inline-flex; gap: 8px; align-items: center; background: #fff1ec; color: var(--alg-accent);
  font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 999px; }
.alg-hero-title { font-size: clamp(32px, 5vw, 54px); font-weight: 800; line-height: 1.08; color: var(--alg-ink); margin: 18px 0 14px; letter-spacing: -.5px; }
.alg-hero-title span { background: var(--alg-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.alg-hero-text { font-size: 18px; color: var(--alg-muted); max-width: 560px; }
.alg-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.alg-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.alg-btn:hover { transform: translateY(-1px); }
.alg-btn-primary { background: var(--alg-grad); color: #fff !important; box-shadow: 0 8px 20px rgba(232,38,44,.25); }
.alg-btn-ghost { background: #fff; color: var(--alg-ink) !important; border: 1px solid var(--alg-line); }
.alg-btn-light { background: #fff; color: var(--alg-accent) !important; }
.alg-hero-search { display: flex; align-items: center; gap: 10px; max-width: 560px; background: #fff; border: 1px solid var(--alg-line);
  border-radius: 14px; padding: 6px 6px 6px 16px; box-shadow: var(--alg-shadow); }
.alg-hero-search i { color: var(--alg-muted); }
.alg-hero-search input { flex: 1; border: 0; outline: 0; font-size: 15px; background: transparent; min-width: 0; }
.alg-hero-search button { background: var(--alg-ink); color: #fff; border: 0; border-radius: 10px; padding: 10px 20px; font-weight: 700; }
.alg-hero-card { background: #fff; border: 1px solid var(--alg-line); border-radius: 24px; padding: 26px; box-shadow: var(--alg-shadow); }
.alg-hero-badge { display: inline-flex; gap: 8px; align-items: center; background: var(--alg-grad); color: #fff; font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 999px; }
.alg-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.alg-hero-grid div { background: var(--alg-soft); border-radius: 16px; padding: 26px 12px; text-align: center; }
.alg-hero-grid i { font-size: 34px; color: var(--alg-accent); display: block; margin-bottom: 8px; }
.alg-hero-grid span { font-weight: 700; color: var(--alg-ink); }

.alg-benefits { border-top: 1px solid var(--alg-line); border-bottom: 1px solid var(--alg-line); background: #fff; }
.alg-benefits-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.alg-benefit { display: flex; gap: 12px; align-items: center; padding: 20px 16px; }
.alg-benefit + .alg-benefit { border-left: 1px solid var(--alg-line); }
.alg-benefit i { font-size: 26px; color: var(--alg-accent); width: 30px; text-align: center; }
.alg-benefit strong { display: block; color: var(--alg-ink); font-size: 14px; }
.alg-benefit span { color: var(--alg-muted); font-size: 13px; }

.alg-section { padding: 56px 0; }
.alg-section-alt { background: var(--alg-soft); }
.alg-section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 22px; gap: 12px; }
.alg-section-head h2 { font-size: 28px; font-weight: 800; color: var(--alg-ink); margin: 0; }
.alg-link { font-weight: 700; }

.alg-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.alg-cat { background: #fff; border: 1px solid var(--alg-line); border-radius: var(--alg-radius); padding: 22px 14px; text-align: center;
  text-decoration: none !important; transition: border-color .15s, box-shadow .15s, transform .15s; }
.alg-cat:hover { border-color: #fbc4b3; box-shadow: var(--alg-shadow); transform: translateY(-2px); }
.alg-cat-icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; background: #fff1ec; display: flex; align-items: center; justify-content: center; }
.alg-cat-icon i { font-size: 24px; color: var(--alg-accent); }
.alg-cat strong { display: block; color: var(--alg-ink); font-size: 15px; }
.alg-cat small { color: var(--alg-muted); font-size: 12px; }

.alg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.alg-card { background: #fff; border: 1px solid var(--alg-line); border-radius: var(--alg-radius); overflow: hidden; display: flex; flex-direction: column;
  text-decoration: none !important; transition: box-shadow .15s, transform .15s; }
.alg-card:hover { box-shadow: var(--alg-shadow); transform: translateY(-3px); }
.alg-card-img { aspect-ratio: 1 / 1; background: #fff; display: flex; align-items: center; justify-content: center; padding: 16px; border-bottom: 1px solid var(--alg-line); }
.alg-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.alg-card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.alg-card-body h3 { font-size: 14px; font-weight: 600; color: var(--alg-ink); line-height: 1.35; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.alg-card-price { font-size: 22px; font-weight: 800; color: var(--alg-ink); margin-top: auto; }
.alg-card-cta { font-size: 13px; font-weight: 700; color: var(--alg-accent); }

.alg-empty { background: #fff; border: 1px dashed #f3b7a3; border-radius: 20px; padding: 48px 20px; text-align: center; }
.alg-empty-icon { width: 72px; height: 72px; border-radius: 20px; background: #fff1ec; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; }
.alg-empty-icon i { font-size: 32px; color: var(--alg-accent); }
.alg-empty h3 { color: var(--alg-ink); font-weight: 800; }
.alg-empty p { color: var(--alg-muted); max-width: 520px; margin: 8px auto 20px; }

.alg-contact { padding: 0 0 56px; background: var(--alg-soft); }
.alg-contact-box { background: var(--alg-grad); color: #fff; border-radius: 24px; padding: 36px 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.alg-contact-box h2 { color: #fff; font-weight: 800; margin: 0 0 6px; }
.alg-contact-box p { color: rgba(255,255,255,.9); margin: 0; }
.alg-contact-data { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.alg-contact-data span { color: #fff; font-weight: 600; }

/* ---------- footer ---------- */
.alg-footer { background: var(--alg-ink); color: #cbd5e1; padding: 40px 0 26px; }
.alg-footer a { color: #fff; }
.alg-footer-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.1); }
.alg-footer-brand img { height: 46px; background: #fff; border-radius: 12px; padding: 6px 10px; }
.alg-footer-brand p { margin: 10px 0 0; color: #94a3b8; max-width: 340px; }
.alg-footer-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.alg-footer-copy { padding-top: 18px; text-align: center; color: #94a3b8; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .alg-cats { grid-template-columns: repeat(2, 1fr); }
  .alg-grid { grid-template-columns: repeat(3, 1fr); }
  .alg-benefits-row { grid-template-columns: repeat(2, 1fr); }
  .alg-benefit:nth-child(3) { border-left: 0; }
}
@media (max-width: 600px) {
  .alg-hero { padding: 36px 0 32px; }
  .alg-cats { grid-template-columns: repeat(2, 1fr); }
  .alg-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .alg-benefits-row { grid-template-columns: 1fr; }
  .alg-benefit + .alg-benefit { border-left: 0; border-top: 1px solid var(--alg-line); }
  .alg-contact-box { padding: 26px 22px; }
  .alg-section { padding: 40px 0; }
  .alg-section-head h2 { font-size: 22px; }
  .alg-card-price { font-size: 18px; }
}

/* anular adorno heredado del tema viejo (bloque negro) */
footer::after, footer::before, .alg-footer::after, .alg-footer::before { content: none !important; display: none !important; }
.alg-footer { position: relative; }
/* franja superior vacia del header heredado */
.header-top, .header-top * { color: var(--alg-ink) !important; } .header-top { border-bottom: 1px solid var(--alg-line); font-size: 13px; } .header-top a:hover { color: var(--alg-accent) !important; }
.cart-block-links .count, .cart-count, .badge-cart { background: var(--alg-accent) !important; color: #fff !important; }
.mobile-menu-toggle-new a, .mobile-menu-toggle-new .offcanvas-toggle { background: var(--alg-ink) !important; border-color: var(--alg-ink) !important; }
.offcanvas, .offcanvas-mobile-menu, .offcanvas .inner { background: #fff !important; }
.offcanvas-menu a, .offcanvas-menu .menu-text { color: var(--alg-ink) !important; }

/* =====================================================================
   COLORES DE MARCA KING PC (azul + amarillo) - pedido de Josue 14/11
   Header y banner en NEGRO para que resalte el logo.
   ===================================================================== */
:root {
  --alg-accent: #1565ff;
  --alg-accent-2: #f5c518;
  --alg-yellow: #f5c518;
  --alg-blue: #1565ff;
  --alg-grad: linear-gradient(135deg, #1e88ff 0%, #0a3dbd 100%);
  --alg-black: #000000;
}
a:hover { color: #0a3dbd; }

/* ---- header negro ---- */
header, header .header-middle, header .header-top, header .header-bottom, header nav,
.header-middle, .header-bottom, .header-top, .mobile-header-top, .mobile-header-search-row,
.sticky-header, .is-sticky, #sticky {
  background: var(--alg-black) !important; border-color: #1c1c1c !important;
}
header { border-bottom: 0; box-shadow: none; }
header a, header .main-menu a, header nav a, .mobile-header-top a,
.header-top, .header-top *, header .phone a, header .theme-color { color: #ffffff !important; }
header .main-menu > ul > li > a:hover, header nav a:hover, .header-top a:hover { color: var(--alg-yellow) !important; }
header .main-menu > ul > li > a i, header nav > div ul > li > a > i, header .main-menu i.fa { color: var(--alg-yellow) !important; }
/* desplegables: fondo blanco, texto oscuro */
header .mega-menu, header .sub-menu, .acceso-menu, .categoria-menu { background: #fff !important; }
header .mega-menu a, header .sub-menu a, .acceso-menu a, .categoria-menu a, header .mega-menu li, header .mega-menu h5 { color: var(--alg-ink) !important; }
header .mega-menu a:hover, .acceso-menu a:hover, .categoria-menu a:hover { color: var(--alg-blue) !important; }
header .mega-menu h5 { color: var(--alg-blue) !important; }
/* buscador del header */
header input[type="search"], header input[type="text"], .mobile-search-form input {
  background: #161616 !important; color: #fff !important; border-color: #2a2a2a !important;
}
header input::placeholder, .mobile-search-form input::placeholder { color: #8a8a8a !important; }
header form button, .mobile-search-form button, .search-form button { background: var(--alg-yellow) !important; color: #000 !important; }
header form button i, .mobile-search-form button i { color: #000 !important; }
.cart-block-links .count, .cart-count, .badge-cart, header .count { background: var(--alg-yellow) !important; color: #000 !important; }
.mobile-menu-toggle-new a, .mobile-menu-toggle-new .offcanvas-toggle { background: var(--alg-yellow) !important; border-color: var(--alg-yellow) !important; }
.mobile-menu-toggle-new .menu-bars, .mobile-menu-toggle-new .menu-bars::before, .mobile-menu-toggle-new .menu-bars::after { background: #000 !important; }
.mobile-user-icon, .mobile-user-icon i { color: #fff !important; }
.mobile-category-dropdown .categoria-toggle { background: #161616 !important; color: #fff !important; border-color: #2a2a2a !important; }

/* franja de contacto: azul de marca */
.kpc-top-bar { background: var(--alg-blue) !important; }

/* ---- banner (hero) negro ---- */
.alg-hero { background:
  radial-gradient(800px 380px at 88% -5%, rgba(21,101,255,.35), transparent 60%),
  radial-gradient(600px 300px at -5% 105%, rgba(245,197,24,.16), transparent 60%), #000 !important; }
.alg-hero-title { color: #fff; }
.alg-hero-title span { background: linear-gradient(135deg, #ffe066 0%, #f5c518 55%, #e0a800 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.alg-hero-text { color: #b8bcc6; }
.alg-pill { background: rgba(21,101,255,.18); color: #8fb6ff; }
.alg-btn-primary { background: var(--alg-yellow); color: #000 !important; box-shadow: 0 8px 22px rgba(245,197,24,.28); }
.alg-btn-ghost { background: transparent; color: #fff !important; border-color: #333; }
.alg-hero-search { background: #fff; border-color: #fff; }
.alg-hero-search button { background: var(--alg-blue); }
.alg-hero-card { background: #0d0d0d; border-color: #222; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.alg-hero-badge { background: var(--alg-yellow); color: #000; }
.alg-hero-grid div { background: #161616; border: 1px solid #222; }
.alg-hero-grid i { color: var(--alg-yellow); }
.alg-hero-grid span { color: #fff; }

/* ---- resto del sitio: acentos azul/amarillo ---- */
.alg-benefit i, .alg-cat-icon i, .alg-empty-icon i, .alg-card-cta { color: var(--alg-blue); }
.alg-cat-icon, .alg-empty-icon { background: #eaf1ff; }
.alg-cat:hover { border-color: #b9d0ff; }
.alg-empty { border-color: #b9d0ff; }
.alg-contact-box { background: var(--alg-grad); }
.alg-btn-light { color: var(--alg-blue) !important; }
.alg-contact-box .alg-btn-light { background: var(--alg-yellow); color: #000 !important; }
.btn-primary, .btn-dark, .theme-btn, .btn.theme--btn1, .add-to-cart, .btn-carrito { background: var(--alg-yellow) !important; color: #000 !important; }
.product-price .regular-price, .product-price, .precio, .price { color: var(--alg-blue) !important; }
.badge-danger, .badge.bg-danger { background: var(--alg-blue) !important; }

/* ---- footer ---- */
.alg-footer { background: #000; }
.alg-footer-brand img { background: transparent; padding: 0; height: 52px; }

/* ---- slider de banners (tavl_banner PRINCIPAL) dentro del banner negro ---- */
.alg-hero-slider { position: relative; overflow: hidden; min-height: 560px; display: flex; align-items: center; padding: 70px 0; }
.alg-slides { position: absolute; inset: 0; }
.alg-slide { position: absolute; inset: 0; background-size: cover; background-position: center right; opacity: 0; transition: opacity 1s ease; }
.alg-slide.activo { opacity: 1; }
.alg-hero-shade { position: absolute; inset: 0;
  background: linear-gradient(90deg, #000 0%, rgba(0,0,0,.92) 32%, rgba(0,0,0,.55) 55%, rgba(0,0,0,0) 78%); }
.alg-hero-inner { position: relative; z-index: 2; }
.alg-dots { position: absolute; z-index: 3; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 8px; }
.alg-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: width .25s, background .25s; }
.alg-dots button.activo { width: 28px; background: var(--alg-yellow); }
@media (max-width: 991px) {
  .alg-hero-slider { min-height: 0; padding: 0 0 36px; display: block; }
  .alg-slides { position: relative; height: 0; padding-top: 37.5%; }
  .alg-hero-shade { top: auto; height: 60px; bottom: auto; background: linear-gradient(180deg, rgba(0,0,0,0), #000); margin-top: -60px; position: relative; inset: auto; }
  .alg-hero-inner { padding-top: 22px; }
  .alg-dots { bottom: auto; top: calc(37.5vw - 26px); }
}

/* ---- 14/11: banner en AZUL / CELESTE (no negro) + bandera de Uruguay ---- */
.alg-hero { background: linear-gradient(120deg, #0a3d91 0%, #1565ff 55%, #4fb3ff 100%) !important; }
.alg-hero-shade { background: linear-gradient(90deg, rgba(10,61,145,.97) 0%, rgba(16,92,214,.9) 30%, rgba(41,140,255,.55) 55%, rgba(79,179,255,0) 80%); }
.alg-hero-text { color: #e6f0ff; }
.alg-pill { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.25); }
.alg-pill img, .alg-flag { height: 16px; width: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); vertical-align: -3px; }
.alg-hero-search button { background: #0a3d91; }
.alg-dots button { background: rgba(255,255,255,.55); }
.kpc-top-bar .alg-flag { margin-right: 6px; }
.alg-footer-copy .alg-flag { margin-right: 6px; }
@media (max-width: 991px) {
  .alg-hero-shade { background: linear-gradient(180deg, rgba(10,61,145,0), #0a3d91); }
  .alg-hero-slider { background: #0a3d91 !important; }
}
.alg-pill { font-size: 15px; padding: 8px 16px 8px 10px; }
.alg-pill img { height: 22px; }
.kpc-top-bar .alg-flag { height: 18px; }

/* ---- 14/11: header limpio + menu centrado con iconos parados ---- */
header .header-top, header .header-middle, header .header-bottom, header nav, #sticky,
header .header-top *, header .header-middle > .container, header .header-bottom > .container { border-top: 0 !important; border-bottom: 0 !important; box-shadow: none !important; }
header .header-top { padding: 4px 0 !important; min-height: 0 !important; }
header .header-middle { padding: 14px 0 !important; }
header .header-bottom { border-top: 1px solid #1d1d1d !important; }
header .main-menu { justify-content: center !important; align-items: stretch; gap: 6px; flex-wrap: wrap; width: 100%; }
header .main-menu > li { margin: 0 !important; padding: 0 !important; float: none !important; }
header .main-menu > li > a {
  display: flex !important; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-width: 128px; padding: 12px 16px !important; gap: 6px; border-radius: 12px; line-height: 1.1;
  font-size: 13px; letter-spacing: .4px; transition: background .2s, color .2s;
}
header .main-menu > li > a br { display: none; }
header .main-menu > li > a i.fa { font-size: 22px !important; margin: 0 !important; display: block; }
header .main-menu > li > a:hover, header .main-menu > li.active > a { background: #141414; }
header .main-menu > li > a .ion-ios-arrow-down { display: none; }
header .header-bottom .container > .row > [class*="col"] { flex: 0 0 100%; max-width: 100%; }
