/* ============================================================
   APPCONTROL SOLUCIONES — Tema oscuro estilo EDteam
   Fuentes: Outfit (títulos bold) + Inter (cuerpo)
   Paleta: Azul marino oscuro + azul brillante como acento
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0b1120;
  --bg2:       #111827;
  --bg3:       #1a2540;
  --bg4:       #1e2d4a;
  --blue:      #3b82f6;
  --blue-dark: #2563eb;
  --blue-glow: rgba(59,130,246,0.15);
  --blue-light:#93c5fd;
  --white:     #ffffff;
  --gray:      #94a3b8;
  --gray2:     #64748b;
  --border:    rgba(255,255,255,0.08);
  --border2:   rgba(59,130,246,0.3);
  --green:     #22c55e;
  --font-title: 'Inter', sans-serif;
  --font-body:  'Inter', sans-serif;
  --nav-h: 68px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }

/* ── Tipografía ── */
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.1; }

.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
}

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 96px 0; }

/* ── Navbar ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(11,17,32,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.nav-logo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-logo .logo-icon {
  width: 32px; height: 32px;
  background: var(--blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray);
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--white); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.btn-ghost {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.btn-ghost:hover { color: var(--white); background: var(--bg3); }

.btn-primary {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--blue);
  padding: 10px 22px;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
}

.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }

.btn-outline {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  background: transparent;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border2);
  transition: background 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-outline:hover { background: var(--blue-glow); border-color: var(--blue); }

/* ── Tarjetas de producto ── */
.product-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border2);
  box-shadow: 0 0 30px var(--blue-glow);
}

.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg3);
}

.card-body { padding: 20px 24px 24px; }

.card-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.card-name {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
  color: var(--white);
}

.card-desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-price {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
}

.card-price span {
  font-size: 13px;
  font-weight: 400;
  color: var(--gray);
}

.card-arrow {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--gray);
  transition: all 0.2s;
}

.product-card:hover .card-arrow {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* ── Grid de productos ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* ── Filtros ── */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.filter-btn {
  font-size: 13px;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--gray);
  transition: all 0.2s;
  cursor: pointer;
  font-family: var(--font-body);
}

.filter-btn:hover { color: var(--white); border-color: rgba(255,255,255,0.2); }

.filter-btn.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* ── Sección header ── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

/* ── Badge ── */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(59,130,246,0.15);
  color: var(--blue);
  border: 1px solid rgba(59,130,246,0.3);
}

/* ── Glow line ── */
.glow-line {
  width: 48px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
  margin-bottom: 20px;
  box-shadow: 0 0 12px var(--blue);
}

/* ── Animaciones ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s ease forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}

.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.3s; }
.d4 { animation-delay: 0.4s; }
.d5 { animation-delay: 0.5s; }

/* ── Blog cards ── */
.blog-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border2);
  box-shadow: 0 0 30px var(--blue-glow);
}

.blog-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.blog-body { padding: 20px 24px 24px; }

.blog-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.blog-title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--white);
}

.blog-summary {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gray2);
}

.blog-date { display: flex; align-items: center; gap: 6px; }

/* ── Footer ── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-logo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo .logo-icon {
  width: 28px; height: 28px;
  background: var(--blue);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--gray);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--gray2);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: background 0.2s, border-color 0.2s;
  color: var(--gray);
}

.social-btn:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 52px; height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 99;
  transition: transform 0.2s, box-shadow 0.2s;
}

.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.6); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .products-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
