/* SICSE Technology — Estilos con diseño TICSA + colores SICSE */

:root {
  --primary:    #00838F;
  --primary-dk: #005f6a;
  --cyan:       #29B6F6;
  --cyan-lt:    #e0f7ff;
  --navy:       #0d1f3c;
  --white:      #ffffff;
  --off-white:  #f4f6f8;
  --gray-100:   #f0f2f5;
  --gray-200:   #e0e4ea;
  --gray-400:   #9aa5b4;
  --gray-600:   #5a6472;
  --gray-800:   #2d3748;
  --success:    #16a34a;
  --danger:     #dc2626;
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.07);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.13);
  --radius:     8px;
  --radius-lg:  14px;
  --font-body:  'Poppins', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--off-white); color: var(--gray-800); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dk); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
input, button, select, textarea { font-family: inherit; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* TOPBAR */
.topbar { background: var(--navy); color: var(--gray-400); font-size: 0.78rem; padding: 0.4rem 0; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; }
.topbar-links { display: flex; gap: 1.5rem; }
.topbar-links a { color: var(--gray-400); transition: color 0.2s; }
.topbar-links a:hover { color: var(--cyan); }

/* HEADER */
.main-header { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 0.75rem 0; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; }
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; gap: 0.8rem; }
  .logo-img { flex: 1; }
  .header-actions { margin-left: auto; }
  .search-form { order: 3; width: 100%; max-width: none; }
}
.logo-img { flex-shrink: 0; }
.logo-img img { height: 70px; width: auto; }

.search-form { flex: 1; display: flex; max-width: 720px; }
.search-input { flex: 1; padding: 0.7rem 1.2rem; border: 1.5px solid var(--gray-200); border-right: none; border-radius: var(--radius) 0 0 var(--radius); font-size: 0.95rem; outline: none; background: var(--gray-100); transition: border-color 0.2s, background 0.2s; }
.search-input:focus { border-color: var(--primary); background: var(--white); }
.search-btn { background: var(--primary); color: var(--white); border: none; padding: 0 1.3rem; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; font-size: 1rem; transition: background 0.2s; }
.search-btn:hover { background: var(--primary-dk); }

.header-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.btn-wa-header { display: inline-flex; align-items: center; gap: 0.4rem; background: #25d366; color: var(--white) !important; padding: 0.55rem 1.1rem; border-radius: var(--radius); font-weight: 600; font-size: 0.85rem; transition: background 0.2s; }
.btn-wa-header:hover { background: #1ebe5a; }
.btn-login-header { display: inline-flex; align-items: center; padding: 0.55rem 1rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius); font-size: 0.85rem; font-weight: 600; color: var(--gray-800); transition: all 0.2s; }
.btn-login-header:hover { border-color: var(--primary); color: var(--primary); }
.btn-registro-header { display: inline-flex; align-items: center; padding: 0.55rem 1rem; background: var(--primary); border-radius: var(--radius); font-size: 0.85rem; font-weight: 600; color: var(--white) !important; transition: background 0.2s; }
.btn-registro-header:hover { background: var(--primary-dk); }
.btn-mi-cuenta { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 1rem; border: 1.5px solid var(--primary); border-radius: var(--radius); font-size: 0.85rem; font-weight: 600; color: var(--primary) !important; transition: all 0.2s; }
.btn-mi-cuenta:hover { background: var(--cyan-lt); }

.cart-trigger { position: relative; background: none; border: none; cursor: pointer; color: var(--gray-800); font-size: 1.5rem; display: flex; align-items: center; }
.cart-badge { position: absolute; top: -6px; right: -8px; background: var(--primary); color: var(--white); border-radius: 50%; width: 18px; height: 18px; font-size: 0.65rem; font-weight: 800; display: none; align-items: center; justify-content: center; }
.cart-badge.visible { display: flex; }

/* NAV CATEGORÍAS */
.cat-nav { background: var(--primary); overflow-x: auto; white-space: nowrap; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.3) transparent; padding: 0 1.5rem; }
.cat-nav::-webkit-scrollbar { height: 3px; }
.cat-nav::-webkit-scrollbar-track { background: transparent; }
.cat-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 3px; }
.cat-nav-inner { display: inline-flex; align-items: center; }
.cat-nav-item { display: inline-block; color: rgba(255,255,255,0.82); font-size: 0.85rem; font-weight: 500; padding: 0.75rem 1.1rem; border-bottom: 3px solid transparent; transition: color 0.2s, border-color 0.2s, background 0.2s; white-space: nowrap; }
.cat-nav-item:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.cat-nav-item.active { color: var(--white); border-bottom-color: var(--white); font-weight: 700; background: rgba(255,255,255,0.12); }

/* MAIN */
.main-content { min-height: 60vh; padding-bottom: 0; }

/* HERO */
.home-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--primary-dk) 60%, var(--primary) 100%); color: var(--white); padding: 5rem 0; position: relative; overflow: hidden; }
.home-hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 80% 50%, rgba(41,182,246,0.12) 0%, transparent 60%); }
.home-hero .container { position: relative; z-index: 1; }
.home-hero-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--cyan); margin-bottom: 1rem; }
.home-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; max-width: 700px; }
.home-hero h1 span { color: var(--cyan); }
.home-hero p { color: rgba(255,255,255,0.72); font-size: 1rem; margin-bottom: 2rem; max-width: 540px; }
.home-hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-hero-primary { background: var(--primary); color: var(--white); padding: 0.85rem 2rem; border-radius: var(--radius); font-weight: 700; font-size: 0.95rem; transition: background 0.2s, transform 0.2s; border: none; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-hero-primary:hover { background: var(--cyan); color: var(--navy); transform: translateY(-1px); }
.btn-hero-secondary { border: 2px solid rgba(255,255,255,0.4); color: var(--white); padding: 0.85rem 2rem; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; transition: background 0.2s; background: transparent; cursor: pointer; display: inline-block; }
.btn-hero-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); color: var(--white); }

/* SECCIONES HOME */
.home-section { padding: 3rem 0; }
.home-section-gray { background: var(--gray-100); }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.section-header h2 { font-size: 1.5rem; font-weight: 700; color: var(--gray-800); }
.section-header a { font-size: 0.875rem; font-weight: 600; color: var(--primary); }
.section-header a:hover { color: var(--primary-dk); }

/* CATEGORÍAS GRID HOME */
.cats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.2rem; }
.cat-card { background: var(--white); border: 1.5px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.8rem 1rem 1.4rem; text-align: center; text-decoration: none; color: var(--gray-800); transition: all 0.2s; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; cursor: pointer; }
.cat-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); color: var(--primary); transform: translateY(-3px); }
.cat-card-icon { font-size: 2.4rem; }
.cat-card-name { font-size: 0.85rem; font-weight: 600; line-height: 1.3; color: var(--gray-800); }
.cat-card:hover .cat-card-name { color: var(--primary); }
.cat-card-count { font-size: 0.75rem; color: var(--gray-400); }

/* PRODUCTOS GRID */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.2rem; }
.product-card { background: var(--white); border: 1.5px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--primary); }
.product-card a { color: inherit; }
.product-card-img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--white); padding: 1rem; border-bottom: 1px solid var(--gray-100); }
.product-card-img-placeholder { width: 100%; aspect-ratio: 1; background: var(--gray-100); display: flex; align-items: center; justify-content: center; font-size: 3.5rem; color: var(--gray-400); border-bottom: 1px solid var(--gray-200); }
.product-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: 0.3rem; }
.product-card-brand { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); font-weight: 700; }
.product-card-name { font-size: 0.85rem; color: var(--gray-800); line-height: 1.4; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-model { font-size: 0.72rem; color: var(--gray-400); font-family: monospace; }
.product-card-price { font-weight: 800; font-size: 1.25rem; color: var(--gray-800); margin-top: 0.4rem; }
.product-card-stock { font-size: 0.75rem; font-weight: 600; }
.stock-yes { color: var(--success); }
.stock-no  { color: var(--danger); }

/* Botones de tarjeta */
.product-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; padding: 0 1rem 1rem; }
.btn-detail { display: flex; align-items: center; justify-content: center; padding: 0.5rem; border: 1.5px solid var(--primary); border-radius: var(--radius); color: var(--primary); font-size: 0.8rem; font-weight: 600; transition: all 0.2s; background: transparent; cursor: pointer; text-decoration: none; }
.btn-detail:hover { background: var(--primary); color: var(--white); }
.btn-add { display: flex; align-items: center; justify-content: center; gap: 0.3rem; padding: 0.5rem; background: var(--primary); border: 1.5px solid var(--primary); border-radius: var(--radius); color: var(--white); font-size: 0.8rem; font-weight: 600; transition: all 0.2s; cursor: pointer; }
.btn-add:hover { background: var(--primary-dk); border-color: var(--primary-dk); }
.btn-add:disabled { background: var(--gray-200); border-color: var(--gray-200); color: var(--gray-400); cursor: not-allowed; }

/* ¿POR QUÉ ELEGIRNOS? */
.features-section { background: var(--gray-100); padding: 4rem 0; text-align: center; }
.features-section h2 { font-size: 1.6rem; font-weight: 700; color: var(--gray-800); margin-bottom: 2.5rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; text-align: left; }
.feature-item { background: var(--white); border: 1.5px solid var(--gray-200); border-radius: var(--radius-lg); padding: 2rem 1.5rem; text-align: center; transition: box-shadow 0.2s, transform 0.2s; }
.feature-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.4rem; color: var(--gray-800); }
.feature-desc { font-size: 0.82rem; color: var(--gray-600); line-height: 1.6; }

/* CTA WHATSAPP */
.cta-wa-section { background: var(--primary-dk); padding: 3.5rem 0; text-align: center; color: var(--white); }
.cta-wa-section h2 { font-size: 1.7rem; font-weight: 700; margin-bottom: 0.5rem; }
.cta-wa-section p { color: rgba(255,255,255,0.75); margin-bottom: 1.8rem; font-size: 0.95rem; }
.btn-cta-wa { display: inline-flex; align-items: center; gap: 0.6rem; background: #25d366; color: var(--white); padding: 0.9rem 2.2rem; border-radius: var(--radius); font-weight: 700; font-size: 1rem; transition: background 0.2s, transform 0.2s; text-decoration: none; }
.btn-cta-wa:hover { background: #1ebe5a; transform: translateY(-1px); color: var(--white); }

/* BREADCRUMB */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem; font-size: 0.82rem; color: var(--gray-400); margin-bottom: 1.5rem; padding: 0.8rem 0; border-bottom: 1px solid var(--gray-200); }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--gray-400); }
.breadcrumb .current { color: var(--gray-600); }

/* LAYOUT CATEGORÍA */
.store-layout { display: grid; grid-template-columns: 230px 1fr; gap: 2rem; align-items: start; }
.sidebar { background: var(--white); border: 1.5px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; }
.sidebar-section { border-bottom: 1px solid var(--gray-200); }
.sidebar-section:last-child { border-bottom: none; }
.sidebar-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gray-600); padding: 0.8rem 1rem; background: var(--gray-100); border-bottom: 1px solid var(--gray-200); }
.sidebar-item { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 1rem; font-size: 0.875rem; color: var(--gray-800); cursor: pointer; transition: background 0.15s; border-bottom: 1px solid var(--gray-100); text-decoration: none; }
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item:hover { background: var(--gray-100); color: var(--primary); }
.sidebar-item.active { background: var(--cyan-lt); color: var(--primary); font-weight: 600; border-left: 3px solid var(--primary); }
.sidebar-subitem { padding-left: 1.8rem; font-size: 0.84rem; }

.products-area {}
.products-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.products-count { font-size: 0.85rem; color: var(--gray-600); }
.products-count strong { color: var(--gray-800); }

/* CATEGORY HERO */
.category-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--primary-dk) 100%); color: var(--white); padding: 2.2rem; border-radius: var(--radius-lg); margin-bottom: 1.8rem; }
.category-hero h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.3rem; }
.category-hero p { color: rgba(255,255,255,0.65); font-size: 0.9rem; }

/* PAGINACIÓN */
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.page-btn { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--gray-200); border-radius: var(--radius); font-size: 0.88rem; color: var(--gray-800); background: var(--white); cursor: pointer; transition: all 0.15s; padding: 0 0.9rem; text-decoration: none; }
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); font-weight: 700; }

/* PÁGINA DE PRODUCTO */
.product-page { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; border: 1.5px solid var(--gray-200); }
.product-top { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.gallery-main { border: 1.5px solid var(--gray-200); border-radius: var(--radius-lg); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: var(--white); margin-bottom: 0.8rem; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 1.5rem; }
.gallery-thumbs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.gallery-thumb { width: 64px; height: 64px; border: 2px solid var(--gray-200); border-radius: var(--radius); cursor: pointer; overflow: hidden; padding: 4px; transition: border-color 0.2s; background: var(--white); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--primary); }

.product-brand-row { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.4rem; }
.product-brand-name { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--primary); font-weight: 700; }
.product-brand-logo { height: 22px; width: auto; object-fit: contain; }
.product-title { font-size: 1.2rem; font-weight: 700; color: var(--gray-800); line-height: 1.4; margin-bottom: 0.5rem; }
.product-model { font-family: monospace; font-size: 0.85rem; color: var(--gray-600); background: var(--gray-100); display: inline-block; padding: 0.2rem 0.6rem; border-radius: var(--radius); margin-bottom: 0.4rem; }
.product-warranty { font-size: 0.82rem; color: var(--success); font-weight: 600; margin-bottom: 1rem; }
.product-price-box { background: var(--gray-100); border-radius: var(--radius-lg); padding: 1.2rem; margin-bottom: 1.2rem; }
.product-price-main { font-weight: 900; font-size: 2.2rem; color: var(--gray-800); line-height: 1; }
.product-price-note { font-size: 0.78rem; color: var(--gray-400); margin-top: 0.3rem; }
.product-stock-badge { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; margin-top: 0.6rem; padding: 0.3rem 0.8rem; border-radius: 20px; }
.product-stock-badge.yes { background: #dcfce7; color: var(--success); }
.product-stock-badge.no  { background: #fee2e2; color: var(--danger); }

.product-actions { display: flex; flex-direction: column; gap: 0.8rem; }
.qty-row { display: flex; align-items: center; gap: 0.8rem; }
.qty-label { font-size: 0.82rem; color: var(--gray-600); }
.qty-control { display: flex; align-items: center; }
.qty-btn { width: 36px; height: 36px; background: var(--gray-100); border: 1px solid var(--gray-200); color: var(--gray-800); font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.qty-btn:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.qty-btn:last-child  { border-radius: 0 var(--radius) var(--radius) 0; }
.qty-btn:hover { background: var(--gray-200); }
.qty-input { width: 50px; height: 36px; border: 1px solid var(--gray-200); border-left: none; border-right: none; text-align: center; font-size: 0.95rem; outline: none; }

.btn-primary { display: flex; align-items: center; justify-content: center; gap: 0.5rem; background: var(--primary); color: var(--white); border: none; border-radius: var(--radius); padding: 0.85rem 1.5rem; font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: background 0.2s; width: 100%; }
.btn-primary:hover { background: var(--primary-dk); color: var(--white); }
.btn-primary:disabled { background: var(--gray-200); color: var(--gray-400); cursor: not-allowed; }
.btn-secondary { display: flex; align-items: center; justify-content: center; gap: 0.5rem; background: var(--white); color: var(--primary); border: 2px solid var(--primary); border-radius: var(--radius); padding: 0.75rem 1.5rem; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: background 0.2s; width: 100%; }
.btn-secondary:hover { background: var(--cyan-lt); }
.btn-whatsapp { display: flex; align-items: center; justify-content: center; gap: 0.5rem; background: #25d366; color: var(--white); border: none; border-radius: var(--radius); padding: 0.75rem 1.5rem; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: background 0.2s; width: 100%; text-decoration: none; }
.btn-whatsapp:hover { background: #1ebe5a; color: var(--white); }

.product-sections { display: flex; flex-direction: column; gap: 1.5rem; }
.product-section { border: 1.5px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.product-section-title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gray-600); padding: 0.8rem 1.2rem; background: var(--gray-100); border-bottom: 1px solid var(--gray-200); }
.product-section-body { padding: 1.2rem; }
.carac-list { display: flex; flex-direction: column; gap: 0.4rem; }
.carac-list li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; padding: 0.3rem 0; border-bottom: 1px solid var(--gray-100); }
.carac-list li:last-child { border-bottom: none; }
.carac-list li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.specs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.8rem; }
.spec-item { background: var(--gray-100); border-radius: var(--radius); padding: 0.7rem; }
.spec-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-400); margin-bottom: 0.2rem; }
.spec-value { font-size: 0.92rem; font-weight: 600; color: var(--gray-800); }
.recursos-list { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.recurso-btn { display: inline-flex; align-items: center; gap: 0.5rem; border: 1.5px solid var(--primary); color: var(--primary); padding: 0.6rem 1.2rem; border-radius: var(--radius); font-size: 0.85rem; font-weight: 600; transition: background 0.2s; }
.recurso-btn:hover { background: var(--cyan-lt); }
.product-description { font-size: 0.9rem; line-height: 1.8; color: var(--gray-800); }
.product-description img { max-width: 100%; border-radius: var(--radius); margin: 1rem 0; }
.product-description h1, .product-description h2, .product-description h3 { margin: 1rem 0 0.5rem; color: var(--navy); }
.product-description ul { padding-left: 1.5rem; list-style: disc; }
.product-description li { margin-bottom: 0.3rem; }

/* BÚSQUEDA */
.search-header { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--gray-200); }
.search-header h1 { font-size: 1.5rem; font-weight: 700; color: var(--gray-800); }
.search-header p { color: var(--gray-600); font-size: 0.9rem; }

/* ESTADOS */
.state-box { text-align: center; padding: 4rem 2rem; color: var(--gray-400); }
.state-box .state-icon { font-size: 3.5rem; margin-bottom: 1rem; opacity: 0.4; }
.state-box h3 { font-size: 1.1rem; color: var(--gray-600); margin-bottom: 0.5rem; }

/* CARRITO */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 300; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer { position: fixed; top: 0; right: -440px; width: 440px; max-width: 100vw; height: 100vh; background: var(--white); border-left: 1.5px solid var(--gray-200); z-index: 301; transition: right 0.3s ease; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.cart-drawer.open { right: 0; }
.cart-header { padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; background: var(--primary); color: var(--white); }
.cart-header h3 { font-weight: 700; font-size: 1.1rem; }
.cart-close { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: rgba(255,255,255,0.8); transition: color 0.2s; }
.cart-close:hover { color: var(--white); }
.cart-body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--gray-100); }
.cart-item-img { width: 64px; height: 64px; border: 1.5px solid var(--gray-200); border-radius: var(--radius); object-fit: contain; padding: 4px; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 0.84rem; color: var(--gray-800); line-height: 1.3; margin-bottom: 0.3rem; }
.cart-item-price { font-weight: 800; font-size: 1rem; color: var(--primary); }
.cart-item-controls { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; }
.ci-qty-btn { width: 24px; height: 24px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--gray-100); cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.ci-qty-btn:hover { background: var(--gray-200); }
.ci-qty { font-size: 0.85rem; min-width: 20px; text-align: center; }
.ci-remove { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 0.75rem; margin-left: auto; }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--gray-400); }
.cart-empty .empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.3; }
.cart-footer { padding: 1.2rem 1.5rem; border-top: 1px solid var(--gray-200); }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.cart-total-label { font-size: 0.85rem; color: var(--gray-600); text-transform: uppercase; letter-spacing: 1px; }
.cart-total-value { font-weight: 900; font-size: 1.6rem; color: var(--primary); }
.cart-actions { display: flex; flex-direction: column; gap: 0.6rem; }

/* TOAST */
.toast { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 500; background: var(--navy); color: var(--white); padding: 0.8rem 1.2rem; border-radius: var(--radius); font-size: 0.875rem; box-shadow: var(--shadow-lg); transform: translateY(80px); opacity: 0; transition: all 0.3s; pointer-events: none; max-width: 300px; border-left: 3px solid var(--primary); }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--danger); }

/* WHATSAPP FLOTANTE */
.whatsapp-float { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 200; background: #25d366; width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 4px 16px rgba(37,211,102,0.4); transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37,211,102,0.5); }

/* FOOTER */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding: 3rem 1.5rem 2rem; }
.footer-logo { font-weight: 900; font-size: 1.5rem; letter-spacing: 1px; text-transform: uppercase; color: var(--white); margin-bottom: 0.8rem; }
.footer-logo span { color: var(--cyan); }
.footer-col p { font-size: 0.85rem; line-height: 1.7; margin-bottom: 1rem; }
.footer-col h3 { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--white); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a { font-size: 0.85rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--cyan); }
.footer-contact li { font-size: 0.85rem; color: rgba(255,255,255,0.6); display: flex; align-items: center; gap: 0.5rem; }
.footer-contact li a { color: rgba(255,255,255,0.6); }
.footer-contact li a:hover { color: var(--cyan); }
.footer-social { display: flex; gap: 1rem; margin-top: 0.5rem; }
.footer-social a { font-size: 0.82rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-social a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1.2rem 1.5rem; }
.footer-bottom .container { display: flex; flex-direction: column; gap: 0.2rem; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.4); }
.footer-bottom strong { color: rgba(255,255,255,0.7); }

/* RESPONSIVE */
@media (max-width: 1024px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; gap: 0.8rem; }
  .logo-img { flex: 1; }
  .header-actions { margin-left: auto; }
  .search-form { order: 3; width: 100%; max-width: none; }
  .store-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; max-height: none; }
  .product-top { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .topbar { display: none; }
  .home-hero { padding: 3rem 0; }
  .btn-wa-header { display: none; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .cart-drawer { width: 100vw; }
  .product-card-actions { grid-template-columns: 1fr; }
}
