/* ============================================
   Smart Systems IT — Custom CSS
   Paleta: #0A2540 navy | #0E6BFF blue | #00D9A3 green
   ============================================ */

/* Fuentes */
.font-space { font-family: 'Space Grotesk', sans-serif; }
.font-inter  { font-family: 'Inter', sans-serif; }

/* Colores de marca */
:root {
  --ss-navy:   #0A2540;
  --ss-blue:   #0E6BFF;
  --ss-green:  #00D9A3;
  --ss-cyan:   #29B6F6;
  --ss-dark:   #10131A;
  --ss-gray:   #6B7280;
  --ss-light:  #F3F6FA;
}

/* Navbar */
.navbar.bg-primary { background-color: var(--ss-navy) !important; }

/* Brand heading colors */
.text-fondo { color: var(--ss-navy); }

/* Botón Mesa de Ayuda */
.btn-helpdesk {
  background: linear-gradient(135deg, var(--ss-blue), #0052cc);
  color: #fff !important;
  border: none;
  padding: 8px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.3s;
  letter-spacing: 0.3px;
}
.btn-helpdesk:hover {
  background: linear-gradient(135deg, #0052cc, #003d99);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14,107,255,0.35);
}
.btn-portal {
  background: linear-gradient(135deg, var(--ss-green), #059669);
  color: #fff !important;
  border: none;
  padding: 8px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.3s;
  letter-spacing: 0.3px;
}
.btn-portal:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,217,163,0.35);
}

.btn-gps {
  background: linear-gradient(135deg, var(--ss-cyan), var(--ss-blue));
  color: #fff !important;
  border: none;
  padding: 8px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.3s;
  letter-spacing: 0.3px;
}
.btn-gps.btn-lg { padding: 12px 30px; font-size: 1rem; }
.btn-gps:hover {
  background: linear-gradient(135deg, var(--ss-blue), #0052cc);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(41,182,246,0.35);
}

/* Cards genéricas */
.shadow-card {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: none;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.shadow-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

/* Imágenes card */
.card-img-top { border-radius: 12px 12px 0 0; object-fit: cover; height: 180px; }

/* Íconos svg */
.h-60px { height: 60px; }
.icon-25 { width: 25px; height: 25px; }

/* Badge de sección */
.section-label {
  display: inline-block;
  background: var(--ss-blue);
  color: #fff;
  padding: 4px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-label.green { background: var(--ss-green); }

/* Stats */
.stat-card {
  text-align: center; padding: 28px 20px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.stat-card .stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  color: var(--ss-blue);
  line-height: 1;
  font-weight: 700;
}
.stat-card .stat-label { color: var(--ss-gray); font-size: 0.85rem; margin-top: 6px; }

/* Gradient text IT badge */
.it-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--ss-blue), var(--ss-green));
  color: #fff;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 8px;
  font-size: 0.85em;
  vertical-align: middle;
  margin-left: 6px;
}

/* WhatsApp float btn */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: #fff;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}
.wa-float:hover { color: #fff; transform: scale(1.1); box-shadow: 0 10px 32px rgba(37,211,102,0.5); }

/* brand-badge (reutilizado en cctv y tecnologia) */
.brand-badge {
  display:inline-flex; align-items:center; gap:8px;
  background:#f3f6fa; border:1px solid #e2e8f0;
  padding:10px 20px; border-radius:12px;
  font-weight:600; color:#0A2540; font-size:0.88rem;
  transition:all 0.2s;
}
.brand-badge:hover { background:#e8f0fe; border-color:#0E6BFF; color:#0E6BFF; }

/* ===== Alineación con las plataformas (marca compartida en /marca/marca.css) ===== */
.navbar .marca { font-size: 15px; }
.navbar .marca small { display: none; }
@media (min-width: 1200px) { .navbar .marca small { display: block; } }
footer .marca { font-size: 17px; }

/* Plataformas (index) */
.plataformas { background: linear-gradient(180deg, #F3F6FA 0%, #fff 100%); }
.plat-card { background: #fff; border-radius: 18px; overflow: hidden; height: 100%; box-shadow: 0 10px 34px rgba(10,37,64,.08); border: 1px solid #E3E8F0; display: flex; flex-direction: column; }
.plat-head { display: flex; align-items: center; gap: 16px; padding: 22px 26px; color: #fff; background: var(--ss-navy); position: relative; }
.plat-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, #0E6BFF, #00D9A3); }
.plat-head > i { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; flex: 0 0 54px; }
.plat-gps > i { background: linear-gradient(135deg, var(--ss-cyan), var(--ss-blue)); }
.plat-acceso > i { background: linear-gradient(135deg, var(--ss-green), #059669); }
.plat-head span { font-size: .75rem; text-transform: uppercase; letter-spacing: 1.2px; color: #5EF2CB; font-weight: 700; }
.plat-head h3 { font-family: 'Space Grotesk', sans-serif; margin: 2px 0 0; font-size: 1.45rem; }
.plat-body { padding: 22px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.plat-body ul { list-style: none; padding: 0; margin: 4px 0 20px; flex: 1; }
.plat-body li { padding: 5px 0; color: #374151; }
.plat-body li i, .plan-card li i { color: var(--ss-green); margin-right: 8px; }

/* Planes (gps) */
.planes { background: #F3F6FA; }
.plan-card { background: #fff; border-radius: 18px; padding: 28px; height: 100%; border: 1px solid #E3E8F0; box-shadow: 0 10px 30px rgba(10,37,64,.06); display: flex; flex-direction: column; }
.plan-card.destacado { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #0E6BFF, #00D9A3) border-box; }
.plan-tag { align-self: flex-start; background: #E8F0FF; color: var(--ss-blue); font-weight: 700; font-size: .78rem; padding: 4px 12px; border-radius: 50px; }
.plan-card.destacado .plan-tag { background: #DDFBF2; color: #047857; }
.plan-card h3 { color: var(--ss-navy); margin: 14px 0 6px; font-size: 1.4rem; }
.plan-cupo { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; color: var(--ss-blue); margin-bottom: 14px; }
.plan-cupo small { display: block; font-family: 'Inter', sans-serif; font-size: .85rem; font-weight: 500; color: var(--ss-gray); }
.plan-card ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.plan-card li { padding: 6px 0; color: #374151; border-bottom: 1px dashed #E3E8F0; }
.plat-mesa > i { background: linear-gradient(135deg, #0E6BFF, #0052cc); }

/* ---------- Barra: botón único "Ingresar" con los 3 portales ---------- */
.btn-ingresar { background: var(--ss-blue); color: #fff !important; border: 0; border-radius: 50px; padding: 8px 20px; font-weight: 700; font-size: .9rem; }
.btn-ingresar:hover, .btn-ingresar.show { background: #0052cc; }
.menu-portales { min-width: 290px; padding: 8px; border: 0; border-radius: 14px; box-shadow: 0 20px 50px rgba(10,37,64,.25); }
.menu-portales .dropdown-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; white-space: normal; }
.menu-portales .dropdown-item:hover, .menu-portales .dropdown-item:focus { background: #F3F6FA; }
.menu-portales b { display: block; color: var(--ss-navy); font-weight: 600; }
.menu-portales small { display: block; color: #64748B; font-size: .78rem; }
.mp-ico { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; display: grid; place-items: center; }
.mp-gps { background: #E7F0FF; color: var(--ss-blue); }
.mp-acceso { background: #DDF8F0; color: #047857; }
.mp-mesa { background: #E6EEFF; color: #0052cc; }
@media (max-width: 991.98px) { .navbar .btn-ingresar { width: 100%; } .menu-portales { box-shadow: none; } }

/* ---------- Plataformas en pestañas (un portal a la vez) ---------- */
.plat-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: fit-content; max-width: 100%; padding: 6px; background: #E9EEF5; border-radius: 50px; }
.plat-tabs .nav-link { border: 0; border-radius: 50px; min-height: 44px; padding: 0 22px; color: #475569; font-weight: 600; background: transparent; }
.plat-tabs .nav-link.active { background: #fff; box-shadow: 0 2px 8px rgba(10,37,64,.12); }
#tab-gps.active { color: var(--ss-blue); } #tab-acceso.active { color: #047857; } #tab-mesa.active { color: #0052cc; }
.plat-panel { background: #fff; border: 1px solid #E3E8F0; border-radius: 20px; padding: 34px; box-shadow: 0 10px 34px rgba(10,37,64,.06); }
.plat-panel h3 { font-family: 'Space Grotesk', sans-serif; color: var(--ss-navy); font-size: 1.7rem; margin: 6px 0 10px; }
.plat-panel p { color: #334155; }
.plat-panel ul { list-style: none; padding: 0; margin: 0; }
.plat-panel li { padding: 5px 0; color: #1E293B; }
.plat-panel li i { color: var(--ss-green); margin-right: 8px; }
.plat-kicker { font-size: .78rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.plat-k-gps { color: var(--ss-blue); } .plat-k-acceso { color: #047857; } .plat-k-mesa { color: #0052cc; }
.plat-ingreso { background: #F8FAFC; border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.plat-ingreso small { color: #64748B; }
.plat-host { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--ss-navy); font-size: 1.1rem; margin-bottom: 4px; word-break: break-all; }
.plat-ingreso .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 575.98px) {
  .plat-panel { padding: 22px; }
  .plat-tabs { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 16px; }
  .plat-tabs .nav-link { width: 100%; padding: 8px 4px; border-radius: 12px; font-size: .78rem; line-height: 1.2; display: flex; flex-direction: column; align-items: center; gap: 4px; }
  .plat-tabs .nav-link i { margin: 0 !important; font-size: 1rem; }
}

/* ---------- Menú: Servicios y Plataformas ---------- */
.mp-srv { background: #EEF3FA; color: var(--ss-navy); }
.menu-portales .dropdown-item.active, .menu-portales .dropdown-item:active { background: #E7F0FF; }
.navbar .dropdown-toggle.nav-link::after { vertical-align: .15em; }

/* ---------- Hero: tarjetas de las plataformas ---------- */
.hero-visual { position: relative; height: 380px; }
.hero-visual::before { content: ''; position: absolute; inset: 30px 20px; border-radius: 28px; border: 1px solid rgba(255,255,255,.08);
  background: radial-gradient(400px 260px at 70% 30%, rgba(14,107,255,.25), transparent 70%), radial-gradient(300px 220px at 20% 90%, rgba(0,217,163,.18), transparent 70%); }
.hv-card { position: absolute; display: flex; align-items: center; gap: 12px; min-width: 250px; padding: 14px 16px; border-radius: 16px;
  background: rgba(255,255,255,.96); color: #0F172A; box-shadow: 0 20px 50px rgba(0,0,0,.30); animation: hvFlotar 6s ease-in-out infinite; }
.hv-card b { display: block; font-size: .95rem; color: var(--ss-navy); }
.hv-card small { color: #64748B; font-size: .8rem; }
.hv-ico { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.hv-live { margin-left: auto; font-size: .7rem; font-weight: 700; color: #047857; background: #DDF8F0; padding: 3px 9px; border-radius: 50px; }
.hv-ok { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #00D9A3; color: #053B2D; font-size: .7rem; }
.hv-1 { top: 10px; left: 0; } .hv-2 { top: 100px; right: 0; animation-delay: -1.5s; }
.hv-3 { top: 200px; left: 30px; animation-delay: -3s; } .hv-4 { top: 290px; right: 20px; animation-delay: -4.5s; }
@keyframes hvFlotar { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hv-card { animation: none; } }

/* ---------- Proyectos (pon las fotos en img/proyectos/<nombre>.jpg; sin foto se ve el degradado) ---------- */
.proy-card { background: #fff; border-radius: 18px; overflow: hidden; height: 100%; border: 1px solid #E3E8F0; box-shadow: 0 10px 30px rgba(10,37,64,.07); transition: transform .3s, box-shadow .3s; }
.proy-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(10,37,64,.13); }
.proy-img { position: relative; height: 170px; display: grid; place-items: center; color: rgba(255,255,255,.9); font-size: 2.6rem; background-size: cover; background-position: center; }
.proy-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,37,64,.55)); }
.proy-img i { position: relative; z-index: 1; filter: drop-shadow(0 6px 14px rgba(0,0,0,.25)); }
.proy-conjuntos { background-image: url(../img/proyectos/conjuntos.jpg), linear-gradient(135deg, #0E6BFF, #0A2540); }
.proy-empresas { background-image: url(../img/proyectos/empresas.jpg), linear-gradient(135deg, #7c3aed, #0A2540); }
.proy-flotas { background-image: url(../img/proyectos/flotas.jpg), linear-gradient(135deg, #29B6F6, #0A2540); }
.proy-comercio { background-image: url(../img/proyectos/comercio.jpg), linear-gradient(135deg, #00D9A3, #0A2540); }
.proy-tag { position: absolute; left: 14px; bottom: 12px; z-index: 1; font-size: .78rem; font-weight: 700; color: #fff; letter-spacing: .3px; }
.proy-body { padding: 18px 20px 20px; }
.proy-body h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; color: var(--ss-navy); margin-bottom: 6px; }
.proy-body p { color: #475569; font-size: .9rem; margin-bottom: 12px; }
.proy-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.proy-chips span { font-size: .72rem; font-weight: 600; color: var(--ss-navy); background: #EEF3FA; padding: 3px 10px; border-radius: 50px; }

/* ---------- Servicios ---------- */
.srv-card { display: flex; flex-direction: column; height: 100%; padding: 22px 20px; border-radius: 16px; background: #fff; border: 1px solid #E3E8F0;
  text-decoration: none; transition: transform .3s, box-shadow .3s, border-color .3s; }
.srv-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(10,37,64,.10); border-color: var(--c); }
.srv-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; color: #fff; background: var(--c); margin-bottom: 14px; }
.srv-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; color: var(--ss-navy); margin-bottom: 6px; }
.srv-card p { color: #475569; font-size: .86rem; flex: 1; margin-bottom: 12px; }
.srv-mas { font-size: .85rem; font-weight: 600; color: var(--c); }
.srv-mas i { transition: transform .3s; } .srv-card:hover .srv-mas i { transform: translateX(4px); }

/* ---------- Pie de página (igual en todas las páginas) ---------- */
.site-footer { background: var(--ss-navy); color: #CBD5E1; padding: 56px 0 24px; }
.site-footer h6 { color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700; margin-bottom: 14px; }
.footer-txt { color: #94A3B8; font-size: .9rem; max-width: 340px; }
.footer-links, .footer-contacto { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 4px 0; }
.footer-links a, .footer-contacto a { color: #CBD5E1; text-decoration: none; font-size: .9rem; }
.footer-links a:hover, .footer-contacto a:hover { color: #00D9A3; }
.footer-contacto li { display: flex; gap: 10px; padding: 4px 0; font-size: .88rem; color: #CBD5E1; }
.footer-contacto i { color: #00D9A3; width: 16px; margin-top: 3px; }
.footer-wa { display: inline-flex; align-items: center; margin-top: 14px; padding: 8px 16px; border-radius: 50px; background: #25D366; color: #fff; text-decoration: none; font-weight: 600; font-size: .85rem; }
.footer-wa:hover { color: #fff; filter: brightness(1.05); }
.footer-pie { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: .8rem; color: #7C8BA1; text-align: center; }
.footer-pie a { color: #9FB0C6; text-decoration: none; } .footer-pie a:hover { color: #fff; text-decoration: underline; }

/* Adornos (círculos, marcos, degradados): nunca tapan enlaces ni botones */
.plat-head::after, .hero-visual::before, .proy-img::after { pointer-events: none; }

/* Barra superior fija al bajar: se compacta y toma sombra con el scroll */
.navbar.sticky-top { transition: padding .25s ease, box-shadow .25s ease, background-color .25s ease; z-index: 1030; }
.navbar.sticky-top.nav-scroll { padding-top: 4px; padding-bottom: 4px; box-shadow: 0 6px 24px rgba(10,37,64,.35); background-color: rgba(10,37,64,.97) !important; }
@supports (backdrop-filter: blur(6px)) { .navbar.sticky-top.nav-scroll { backdrop-filter: blur(6px); background-color: rgba(10,37,64,.9) !important; } }
@media (max-width: 991.98px) { .navbar.sticky-top .navbar-collapse { max-height: calc(100vh - 70px); overflow-y: auto; } }
/* Los enlaces a secciones (#contacto) no quedan escondidos debajo de la barra */
html { scroll-padding-top: 84px; }
