/* ============================================
   BLGNET SRL - Estilos SEO-Optimizados
   Infraestructura IT para Empresas
   ============================================ */

/* --- Variables de Diseño --- */
:root {
  --blg-primary: #0d6efd;
  --blg-primary-dark: #0a58ca;
  --blg-dark: #212529;
  --blg-dark-light: #343a40;
  --blg-gray: #6c757d;
  --blg-light: #f8f9fa;
  --blg-white: #ffffff;
  --blg-success: #198754;
  --blg-whatsapp: #25D366;
  --blg-font: 'Open Sans', 'Segoe UI', Roboto, sans-serif;
  --blg-transition: all 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--blg-font);
  color: var(--blg-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blg-primary);
  text-decoration: none;
  transition: var(--blg-transition);
}
a:hover { color: var(--blg-primary-dark); }

/* --- Animaciones (Ligeras - Performance) --- */
.fade-in {
  animation: fadeInUp 0.6s ease-out both;
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(15px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Lazy reveal con IntersectionObserver */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Header & Navegación --- */
.site-header {
  background: var(--blg-dark) !important;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-header .navbar-brand img {
  max-width: 140px;
  transition: var(--blg-transition);
}

.site-header .nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem !important;
  transition: var(--blg-transition);
}
.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--blg-primary) !important;
}

.dropdown-menu-dark {
  background: var(--blg-dark-light);
  border: 1px solid rgba(255,255,255,0.1);
}

/* --- Hero Sections --- */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  max-height: 600px;
}

.hero-section img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--blg-white);
  background: rgba(0, 0, 0, 0.5);
  padding: 2rem 1rem;
}

.hero-overlay h1 {
  font-weight: 800;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
  margin-bottom: 1rem;
}

.hero-overlay .lead {
  max-width: 700px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* --- Secciones --- */
.section-title {
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--blg-primary);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* --- Cards de Servicios --- */
.service-card {
  border: 1px solid #dee2e6;
  border-radius: 1rem;
  padding: 1.5rem;
  height: 100%;
  transition: var(--blg-transition);
  background: var(--blg-white);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.1);
  border-color: var(--blg-primary);
}
.service-card i {
  color: var(--blg-primary);
}

/* --- Proceso/Pasos --- */
.step-card {
  padding: 1rem;
  border: 1px solid #dee2e6;
  border-radius: 1rem;
  height: 100%;
  text-align: center;
  background: var(--blg-white);
  box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.06);
}
.step-card i { color: var(--blg-primary); }

/* --- Beneficios --- */
.benefit-item {
  padding: 0.75rem 1rem;
  border: none;
}
.benefit-item i { color: var(--blg-success); }

/* --- Sectores Badges --- */
.sector-badge {
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 0.5rem;
}

/* --- FAQ Accordion --- */
.accordion-button:not(.collapsed) {
  background-color: rgba(13, 110, 253, 0.08);
  color: var(--blg-primary-dark);
  font-weight: 600;
}
.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2);
}

/* --- CTA Sections --- */
.cta-section {
  padding: 3rem 0;
}
.cta-section h2 {
  font-weight: 700;
}

/* --- Clientes Carousel --- */
.client-carousel-wrapper {
  overflow: hidden;
  position: relative;
  height: 80px;
}
.client-carousel-track {
  display: flex;
  width: max-content;
  transition: transform 0.6s ease;
}
.client-carousel-track > div {
  min-width: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
}
.client-carousel-track img {
  filter: grayscale(100%);
  opacity: 0.6;
  max-height: 50px;
  transition: var(--blg-transition);
}
.client-carousel-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* --- WhatsApp Floating --- */
#whatsapp-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1040;
  display: flex;
  align-items: center;
  gap: 8px;
}
#whatsapp-container a {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: var(--blg-transition);
}
#whatsapp-container a:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
#whatsapp-container a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#whatsapp-tooltip {
  background: var(--blg-white);
  color: var(--blg-dark);
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

/* --- Footer --- */
.site-footer {
  background: var(--blg-dark);
  color: var(--blg-white);
  padding: 2rem 0 1rem;
}
.site-footer a {
  color: rgba(255,255,255,0.8);
  transition: var(--blg-transition);
}
.site-footer a:hover {
  color: var(--blg-white);
}
.site-footer hr {
  border-color: rgba(255,255,255,0.15);
}

/* --- Breadcrumb --- */
.breadcrumb-nav {
  background: var(--blg-light);
  padding: 0.5rem 0;
  font-size: 0.85rem;
}
.breadcrumb-nav .breadcrumb {
  margin-bottom: 0;
}
.breadcrumb-nav .breadcrumb-item a {
  color: var(--blg-primary);
}
.breadcrumb-nav .breadcrumb-item.active {
  color: var(--blg-gray);
}

/* --- Formulario de Contacto --- */
.contact-form-wrapper {
  background: var(--blg-white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 0.25rem 1rem rgba(0,0,0,0.08);
}

/* --- Tabla Comparativa --- */
.comparison-table th {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.comparison-table .table-success td {
  font-weight: 600;
}

/* --- Blog Listing --- */
.blog-card {
  border: 1px solid #dee2e6;
  border-radius: 1rem;
  overflow: hidden;
  transition: var(--blg-transition);
  background: var(--blg-white);
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}
.blog-card img {
  height: 200px;
  object-fit: cover;
}
.blog-card .badge {
  font-size: 0.75rem;
  font-weight: 600;
}

/* --- Compartir en Redes --- */
.share-bar {
  background: var(--blg-dark);
  color: var(--blg-white);
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* --- Responsive --- */
@media (max-width: 767.98px) {
  .hero-section {
    min-height: 350px;
    max-height: 450px;
  }
  .hero-overlay h1 {
    font-size: 1.5rem;
  }
  .hero-overlay .lead {
    font-size: 0.95rem;
  }
  .service-card {
    padding: 1rem;
  }
  #whatsapp-container {
    bottom: 15px;
    right: 15px;
  }
  #whatsapp-container a {
    width: 48px;
    height: 48px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 400px;
  }
  .hero-overlay h1 {
    font-size: 2rem;
  }
}

/* --- Print Styles --- */
@media print {
  .site-header,
  .site-footer,
  #whatsapp-container,
  .cta-section,
  .share-bar { display: none !important; }
  .hero-section { min-height: auto; max-height: none; }
  body { font-size: 12pt; }
}
