/* VARIABLES DE DISEÑO DARK NAVY & ACCENT YELLOW */
:root {
  --bg-primary: #0a0f1d;        /* Fondo azul noche muy oscuro */
  --bg-surface: #111827;        /* Tarjetas y contenedores */
  --bg-surface-hover: #1f2937;  /* Hover suave */
  --border-color: #1e293b;      /* Bordes discretos */
  
  --text-main: #f8fafc;         /* Texto principal brillante */
  --text-muted: #94a3b8;        /* Texto secundario gris */
  
  /* Acentos de Color */
  --accent-yellow: #fbbf24;     /* Amarillo dorado principal */
  --accent-yellow-hover: #d97706;/* Amarillo oscuro hover */
  --accent-cyan: #00f2fe;       /* Cian tecnológico para fibra/redes */
  --accent-blue: #0284c7;       /* Azul primario */
  --accent-green: #10b981;      /* Badges de stock disponible */

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

/* RESET GENERAL */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* NAVBAR SUPERIOR */
.navbar {
  background-color: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-yellow), #f59e0b);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  color: #0f172a;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: block;
}

.brand-title span {
  color: var(--accent-yellow);
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
}

/* BUSCADOR */
.search-bar {
  flex: 1;
  max-width: 500px;
  position: relative;
  display: flex;
}

.search-bar input {
  width: 100%;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 45px 10px 16px;
  color: var(--text-main);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--accent-yellow);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
}

.search-bar button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 6px;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.search-bar button:hover {
  color: var(--accent-yellow);
}

/* NAV ACTIONS */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
}

.cart-btn:hover {
  border-color: var(--accent-yellow);
  background-color: var(--bg-surface-hover);
}

.cart-badge {
  background-color: var(--accent-yellow);
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
}

.btn-admin {
  background-color: var(--bg-surface-hover);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-admin:hover {
  border-color: var(--accent-blue);
  background-color: var(--accent-blue);
}

/* NAVEGACIÓN DE CATEGORÍAS */
.category-nav {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}

.cat-flex {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cat-chip {
  background-color: var(--bg-primary);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.cat-chip:hover {
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
}

.cat-chip.active {
  background-color: var(--accent-yellow);
  color: #0f172a;
  border-color: var(--accent-yellow);
  font-weight: 700;
}

/* HERO SECTION */
.hero-section {
  padding: 60px 0;
  background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.08), transparent 50%);
  border-bottom: 1px solid var(--border-color);
}

.hero-content {
  max-width: 750px;
}

.badge-hero {
  display: inline-block;
  background-color: rgba(251, 191, 36, 0.1);
  color: var(--accent-yellow);
  border: 1px solid rgba(251, 191, 36, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
  background: linear-gradient(180deg, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-yellow), #f59e0b);
  color: #0f172a;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  color: var(--text-main);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--accent-yellow);
}

/* SECCIÓN DE SERVICIOS */
.services-section {
  padding: 50px 0;
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 25px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all 0.2s ease;
}

.service-card:hover {
  border-color: var(--accent-yellow);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* CATÁLOGO DE PRODUCTOS */
.catalog-section {
  padding: 50px 0;
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* TARJETA DE PRODUCTO */
.product-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s;
}

.product-card:hover {
  border-color: var(--accent-yellow);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  z-index: 2;
}

.product-img-box {
  width: 100%;
  height: 180px;
  background-color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
}

.product-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-info {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-cat {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}

.product-sku {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.product-price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.price-amount {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-yellow);
  display: block;
}

.price-tax {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: block;
}

.btn-add-cot {
  background-color: rgba(251, 191, 36, 0.12);
  color: var(--accent-yellow);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add-cot:hover {
  background-color: var(--accent-yellow);
  color: #0f172a;
  border-color: var(--accent-yellow);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

/* FOOTER */
.main-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 40px 0 20px 0;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h3, .footer-col h4 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.footer-col p, .footer-col li {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  list-style: none;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
}