/* =====================================================
   RESET GENERAL
===================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-decoration: none;
  list-style: none;
}

body {
  background-color: beige;
  font-family: 'Poppins', sans-serif;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =====================================================
   HEADER Y MENÚ MODERNO
===================================================== */
.header-wrapper {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  display: flex;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  animation: fadeInDown 0.6s ease-out;
}

/* Efecto al hacer scroll */
.header-wrapper.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(25px) saturate(200%);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-menu {
  max-width: 1200px;
  width: 100%;
  min-height: 85px;
  padding: 15px 30px;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

/* ===== LOGO Y MARCA ===== */
.logo-group, .brand {
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-group:hover {
  transform: scale(1.02);
}

.logo-group img.logo,
.brand img.logo {
  height: 55px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-group:hover img.logo {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.brand-texts h1 {
  color: rgb(69, 206, 51);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  transition: color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.brand-texts h5 {
  color: rgb(70, 68, 68);
  font-size: 12px;
  margin-top: 2px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* ===== NAVEGACIÓN MODERNA ===== */
.nav-links ul {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
}

.nav-links ul li {
  list-style: none;
  position: relative;
  float: none;
}

.nav-links ul li a {
  font-size: 16px;
  font-weight: 600;
  padding: 12px 20px;
  color: rgb(27, 27, 54);
  display: block;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  letter-spacing: 0.3px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Efecto hover suave */
.nav-links ul li a:hover {
  color: #0171bb;
  background: rgba(1, 113, 187, 0.05);
  transform: translateY(-2px);
}

/* Línea animada debajo */
.nav-links ul li a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, #0171bb, #3e8ef7);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links ul li a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Item activo (página actual) */
.nav-links ul li a.active {
  color: #0171bb;
  font-weight: 700;
}

.nav-links ul li a.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* ===== BOTÓN HAMBURGUESA MEJORADO ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 32px;
  height: 24px;
  justify-content: space-between;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  transition: all 0.3s ease;
  z-index: 10000;
}

.menu-toggle:hover {
  transform: scale(1.1);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #0171bb, #59a2e7);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Animación hamburguesa a X */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
  background: #0171bb;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
  background: #0171bb;
}

/* =====================================================
   SLIDER DE IMÁGENES
===================================================== */
.slider {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: #0171bb;
  border: 2px solid transparent;
  font-size: 3.5rem;
  padding: 15px 20px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.prev:hover, .next:hover {
  background: rgba(1, 113, 187, 0.1);
  color: #fff;
  text-shadow: 0 0 10px rgba(1, 113, 187, 0.8);
}

.prev { left: 10px; }
.next { right: 10px; }

/* =====================================================
   ESTADÍSTICAS + BIENVENIDA
===================================================== */
.estadisticas {
  padding: 60px 20px;
  background: #f9f9f9;
}

.estadisticas-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: auto;
  gap: 30px;
  align-items: center;
}

.estadisticas-texto {
  flex: 1;
  padding: 20px;
}

.estadisticas-texto h2 {
  font-size: 2rem;
  color: #0171bb;
  margin-bottom: 10px;
}

.estadisticas-texto .experiencia {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

.estadisticas-texto h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #191a18;
}

.estadisticas-texto p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

.estadisticas-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.estadistica-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 12px transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.estadistica-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px #b7dbf3;
}

.estadistica-card .numero {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.corporativo .numero { color: #0171bb; }
.industrial .numero { color: #0171bb; }
.domiciliario .numero { color: #0171bb; }

.numero {
  font-size: 2.2rem;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

/* =====================================================
   SECCIONES SERVICIOS
===================================================== */
.secciones-servicios {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

.secciones-servicios .titulo-seccion {
  font-size: 32px;
  margin-bottom: 50px;
  color: #0171bb;
  font-weight: 700;
  position: relative;
}

.secciones-servicios .titulo-seccion::after {
  content: '';
  width: 80px;
  height: 3px;
  background-color: #0171bb;
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

.servicios-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.servicio-card {
  background: white;
  flex: 1 1 280px;
  max-width: 300px;
  min-width: 250px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  padding: 20px;
}

.servicio-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 12px 25px rgb(195, 212, 238);
}

.servicio-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.servicio-card h3 {
  font-size: 20px;
  color: #0171bb;
  margin: 15px 0 10px 0;
}

.servicio-card p {
  font-size: 14px;
  color: #555;
  padding: 0 15px 20px 15px;
}

.servicio-icon {
  font-size: 55px;
  color: #0171bb;
  margin-bottom: 15px;
}

/* =====================================================
   SERVICIOS CONTADOR
===================================================== */
.servicios-contador {
  padding: 60px 20px;
  background: linear-gradient(to bottom, #f0f0f0, #ffffff);
  text-align: center;
}

.titulo-seccion {
  font-size: 32px;
  margin-bottom: 50px;
  color: #333;
  font-weight: 700;
  position: relative;
}

.titulo-seccion::after {
  content: '';
  width: 80px;
  height: 3px;
  background-color: #0171bb;
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

.servicio {
  margin-bottom: 40px;
}

.servicio h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #555;
  text-transform: uppercase;
}

.contador {
  display: inline-block;
  background: radial-gradient(circle at top left, #ffffff, #e6e6e6);
  border-radius: 15px;
  padding: 30px 50px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* =====================================================
   SECCIONES GENERALES
===================================================== */
.secciones {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 40px 0;
  background: #f9f9f9;
  flex-wrap: wrap;
}

.opcion {
  flex: 1;
  max-width: 300px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.opcion h2 {
  margin-bottom: 10px;
  color: #333;
}

.opcion p {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.opcion a {
  display: inline-block;
  padding: 10px 15px;
  background: #007bff;
  color: white;
  border-radius: 8px;
  transition: background 0.3s;
}

.opcion a:hover { 
  background: #0056b3; 
}

/* =====================================================
   BOTONES FLOTANTES
===================================================== */
.social-floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.social-icon:hover {
  box-shadow: 0 6px 15px rgba(124, 126, 125, 0.7);
  transform: scale(1.1);
}

/* =====================================================
   CLIENTES SLIDER
===================================================== */
.titulo-cliente {
  text-align: center;
  font-size: 32px;
  color: #007bff;
  position: relative;
  margin: 40px 0 40px 0;
}

.titulo-cliente::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: #007bff;
  margin: 10px auto 0 auto;
  border-radius: 2px;
}

.clientes-slider-container {
  background-color: white;
  padding: 40px 20px;
}

.clientes-slider .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.clientes-slider .swiper-slide img {
  width: 180px;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 8px transparent;
}

.clientes-slider {
  position: relative;
}

.swiper-pagination {
  position: relative !important;
  margin-top: 15px;
  text-align: center;
  bottom: auto !important;
  left: auto !important;
  width: 100%;
  z-index: 10;
}

/* =====================================================
   FOOTER
===================================================== */
footer {
  text-align: center;
  padding: 30px 20px;
  background-color: #080707;
  color: white;
  margin-top: 0px;
}

footer h3, footer h4 {
  margin-bottom: 10px;
}

footer p {
  margin: 5px 0;
}

.footer a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover {
  color: #25D366;
  text-decoration: none;
}

.footer {
  background: #080707;
  color: #fff;
  padding: 40px 20px 20px;
  font-size: 14px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  gap: 20px;
}

.footer-info,
.footer-contacto,
.footer-redes {
  flex: 1;
  min-width: 250px;
}

.footer h3, .footer h4 {
  margin-bottom: 10px;
  color: #25D366;
}

.footer a {
  color: #bbb;
  transition: color 0.3s;
}

.footer a:hover { 
  color: #25D366; 
}

.footer-copy {
  text-align: center;
  border-top: 1px solid #444;
  margin-top: 20px;
  padding-top: 10px;
  font-size: 12px;
  color: #aaa;
}

/* =====================================================
   RESPONSIVE - MENÚ MÓVIL
===================================================== */
@media (max-width: 1065px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 85px;
    left: 0;
    width: 100%;
    height: calc(100vh - 85px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 30px 0;
    z-index: 9998;
    overflow-y: auto;
  }

  .nav-links.active {
    display: flex;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 0;
  }

  .nav-links ul li {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-links ul li:last-child {
    border-bottom: none;
  }

  .nav-links ul li a {
    padding: 18px 30px;
    font-size: 18px;
    width: 100%;
    text-align: left;
    border-radius: 0;
  }

  .nav-links ul li a::after {
    display: none;
  }

  .nav-links ul li a:hover {
    background: linear-gradient(90deg, rgba(1, 113, 187, 0.08), transparent);
    transform: translateX(5px);
  }

  .logo-group img.logo {
    height: 45px;
  }

  .brand-texts h1 {
    font-size: 18px;
  }

  .brand-texts h5 {
    font-size: 10px;
  }
}

@media (max-width: 900px) {
  .estadisticas-container {
    flex-direction: column;
    text-align: center;
  }

  .estadisticas-texto {
    order: 1;
  }

  .estadisticas-items {
    order: 2;
    flex-direction: row;
    justify-content: center;
  }

  .estadistica-card {
    flex: 1;
    min-width: 100px;
  }
}

@media (max-width: 844px) {
  .footer-social {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .main-menu {
    padding: 12px 20px;
    min-height: 75px;
  }

  .brand-texts h1 {
    font-size: 16px;
  }

  .brand-texts h5 {
    font-size: 9px;
  }

  .logo-group img.logo {
    height: 40px;
  }
}

@media (max-width: 600px) {
  .estadisticas-items {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .brand-texts h1 {
    font-size: 14px;
  }

  .brand-texts h5 {
    font-size: 8px;
  }

  .logo-group img.logo {
    height: 35px;
  }

  .logo-group {
    gap: 10px;
  }
}

@media (max-width: 360px) {
  .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    margin: 0 3px !important;
  }

  .swiper-pagination-bullet-active {
    transform: scale(1.1);
  }
}