/* Colores institucionales basados en el logo R&Z */
:root {
  --primary-color: #0724df; /* Actualizado al color correcto de la empresa */
  --secondary-color: #051cb6; /* Versión más oscura para efectos y gradientes */
  --accent-color: #ffffff;
  --dark-color: #1f2937;
  --light-color: #f8fafc;
  --text-color: #374151;
  --logo-blue: #0724df; /* Color específico del logo */
}

/* Navbar siempre visible (sticky) */
.navbar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  transition: all 0.4s ease;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 3px solid var(--primary-color); /* Línea separadora */
}

/* Ajustar el body para compensar el navbar fijo */
body {
  padding-top: 90px; /* Aumentado por el navbar más alto */
}

.navbar::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  z-index: 10;
}
/* Estado inicial del navbar (fondo blanco) */
.navbar.bg-white {
  background-color: #ffffff !important;
  border-bottom: 3px solid var(--primary-color);
}

.navbar.bg-white .navbar-nav .nav-link {
  color: #333 !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar.bg-white .navbar-nav .nav-link:hover {
  color: var(--linea-color) !important;
}
/* Estado scrolled del navbar (fondo negro) */
.navbar.navbar-scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.navbar.navbar-scrolled::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
}

.navbar.navbar-scrolled .navbar-nav .nav-link {
  color: #ffffff !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar.navbar-scrolled .navbar-nav .nav-link:hover,
.navbar.navbar-scrolled .navbar-nav .nav-link.active {
  color: #f8f9fa !important;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* Estilos para la marca y slogan en el navbar */
.navbar-brand {
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.brand-text {
  line-height: 1.2;
}

.company-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color); /* Color del logo */
  margin-bottom: 0;
  transition: color 0.4s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.company-slogan {
  font-size: 0.75rem;
  font-weight: 400;
  color: #6b7280; /* Color más apagado */
  margin-bottom: 0;
  transition: color 0.4s ease;
  opacity: 0.8;
}

/* Cuando el navbar está en modo scrolled - TEXTO EN NEGRO */
.navbar.navbar-scrolled .company-name {
  color: #fff !important; /* Negro en lugar de blanco */
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5); /* Sombra blanca para contraste */
}

.navbar.navbar-scrolled .company-slogan {
  color: #fff; /* Negro semitransparente */
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3); /* Sombra blanca sutil */
}

/* Efecto hover en la marca */
.navbar-brand:hover .company-name {
  color: var(--secondary-color);
}

.navbar.navbar-scrolled .navbar-brand:hover .company-name {
  color: #f8f9fa;/* #333333 !important; /* Gris oscuro al hover en modo scrolled */
}

.navbar.navbar-scrolled .navbar-brand:hover .company-slogan {
  color: #f8f9fa; /*rgba(0, 0, 0, 0.9) !important; /* Más opaco al hover */
}

/* Transición suave para los logos */
#navbarLogo,
#navbarLogoWhite {
  transition: opacity 0.4s ease;
}

/* Estilos para el toggler en modo oscuro */
.navbar.navbar-scrolled .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}

.navbar.navbar-scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Botón de volver arriba mejorado */
.btn-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border: none;
  color: white;
  font-size: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(7, 36, 223, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-back-to-top:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(7, 36, 223, 0.4);
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.btn-back-to-top:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .btn-back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 16px;
  }
}

/* Carousel con altura reducida */
.carousel-item {
  height: 20vh; /* Reducido de 70vh a 50vh */
  min-height: 400px; /* Reducido de 500px a 400px */
  position: relative;
  margin-bottom: 0 !important;
}

/* NUEVAS LÍNEAS AGREGADAS POR EL USUARIO - Eliminar overlays */
.carousel-item::before,
.carousel-item::after {
  content: none !important;
}

.carousel-item img {
  filter: none !important;
  opacity: 1 !important;
  background-image: repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.3) 0,
      rgba(255, 255, 255, 0.3) 1px,
      transparent 1px,
      transparent 20px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.3) 0,
      rgba(255, 255, 255, 0.3) 1px,
      transparent 1px,
      transparent 20px
    );
  background-size: 40px 40px;
  
}

.carousel-item .foto {
  filter: none !important;
  opacity: 1 !important;
  background-image: repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.3) 0,
      rgba(255, 255, 255, 0.3) 1px,
      transparent 1px,
      transparent 20px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.3) 0,
      rgba(255, 255, 255, 0.3) 1px,
      transparent 1px,
      transparent 20px
    );
  background-size: 40px 40px;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: rgba(0, 0, 0, 0.6); /* Más opaco para mejor legibilidad */
  padding: 2rem;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  z-index: 2;
  width: 650px;
  max-width: 90%;
}

  .carousel-caption h1 {
    font-size: 1.9rem;
  }

  .carousel-caption p {
    font-size: 0.9rem;
  }

  .carousel-caption .btn {
    font-size: 0.9rem;
  }

/* Responsive para carousel */
@media (max-width: 768px) {
  .carousel-item {
    height: 20vh;
    min-height: 80px;
  }

  .carousel-caption {
    padding: 1rem;
    border-radius: 10px;
  }

  .carousel-caption h1 {
    font-size: 1.8rem;
  }

  .carousel-caption p {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .carousel-item {
    height: 20vh;
    min-height: 80px;
  }
  .carousel-caption {
    width: 250px;
    height: 80px;
  }
  .carousel-caption h1 {
    font-size: 0.8rem;
  }

  .carousel-caption p {
    font-size: 0.5rem;
  }

  .carousel-caption .btn {
    font-size: 0.3rem;
  }
}

/* Estilos para carousels de servicios simplificados */
.service-carousel-simple {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  /*box-shadow: 0 10px 10px rgba(0, 0, 0, 0.15);*/
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-carousel-simple:hover {
  /*transform: translateY(-2px);*/
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
}

/* Imagen original con tamaño natural */
.service-img-original {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
  border-radius: 5px;
}

.service-carousel-simple:hover .service-img-original {
  transform: scale(1.02);
}

/* Controles minimalistas para servicios */
.service-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(7, 36, 223, 0.8);
  border: none;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
}

.service-carousel-simple:hover .service-control {
  opacity: 1;
}

.carousel-control-prev.service-control {
  left: 15px;
}

.carousel-control-next.service-control {
  right: 15px;
}

.service-control:hover {
  background: rgba(7, 36, 223, 1);
  transform: translateY(-50%) scale(1.1);
}

.service-control .carousel-control-prev-icon,
.service-control .carousel-control-next-icon {
  width: 16px;
  height: 16px;
}

/* Indicadores discretos para servicios */
.service-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  z-index: 10;
}

.service-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  cursor: pointer;
  text-indent: -9999px;
  overflow: hidden;
}

.service-indicators button.active {
  background: var(--primary-color);
  transform: scale(1.3);
}

.service-indicators button:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Responsive para carousels de servicios */
@media (max-width: 768px) {
  .service-control {
    width: 35px;
    height: 35px;
  }

  .carousel-control-prev.service-control {
    left: 10px;
  }

  .carousel-control-next.service-control {
    right: 15px;
  }

  .service-control .carousel-control-prev-icon,
  .service-control .carousel-control-next-icon {
    width: 14px;
    height: 14px;
  }

  .service-indicators {
    bottom: 10px;
  }

  .service-indicators button {
    width: 6px;
    height: 6px;
  }
}

/* Estilos para estadísticas */
.stat-counter {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0;
  line-height: 1;
  font-family: "Arial", sans-serif;
  color: #ffffff;
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.stat-icon-container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: all 0.3s ease;
}

.stat-item:hover .stat-icon-container {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.stat-desc {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.icon-bullet {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
}

.icon-square {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin: 0 auto;
}

/* Estilos para proveedores */
.provider-logo {
  padding: 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.provider-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.provider-img {
  max-height: 60px;
  width: auto;
  filter: grayscale(0%);
  transition: all 0.3s ease;
}

.provider-logo:hover .provider-img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.provider-placeholder {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #6c757d;
  text-align: center;
  padding: 0.5rem;
}

/* Estilos para sección de noticias */
.news-title {
  font-weight: 700 !important;
  color: #1f2937 !important;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.news-title:hover {
  color: var(--primary-color) !important;
  text-decoration: none;
}

.news-meta {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.news-excerpt {
  color: #4b5563;
  line-height: 1.6;
}

/* Estilos para imágenes por defecto */
.default-image {
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 3rem;
}

.client-img,
.provider-img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.card-img-top {
  object-fit: cover;
}

/* Ajustar espaciado para el navbar fijo */
.page-banner {
  margin-top: 0;
  /* NUEVA LÍNEA AGREGADA POR EL USUARIO - Patrón diagonal para banners */
  background-image: repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.3) 0,
      rgba(255, 255, 255, 0.3) 1px,
      transparent 1px,
      transparent 20px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.3) 0,
      rgba(255, 255, 255, 0.3) 1px,
      transparent 1px,
      transparent 20px
    );
  background-size: 40px 40px;
}

/* Responsive para navbar fijo */
@media (max-width: 768px) {
  body {
    padding-top: 80px;
  }

  .navbar {
    padding: 0.5rem 0;
  }

  .company-name {
    font-size: 1.2rem;
    color: var(--primary-color); /* Color del logo */
  }

  .company-slogan {
    font-size: 0.65rem;
  }

  .navbar-brand img {
    height: 40px !important;
  }

  .stat-icon-container {
    width: 60px;
    height: 60px;
  }

  .stat-icon {
    font-size: 1.8rem;
  }

  .stat-counter {
    font-size: 2rem;
  }

  /* Ajustes para texto de marca en móviles */
  .navbar.navbar-scrolled .company-name {
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
  }

  .navbar.navbar-scrolled .company-slogan {
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
  }
}

@media (max-width: 576px) {
  .brand-text {
    display: none; /* Ocultar texto en pantallas muy pequeñas */
  }

  body {
    padding-top: 70px;
  }
}

/* Botones */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

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

/* Colores de texto y fondo */
.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-secondary {
  background-color: var(--secondary-color) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

/* Enlaces */
a {
  color: var(--primary-color);
}

a:hover {
  color: var(--secondary-color);
}

/* Estilos para nombres de clientes y proveedores */
.client-name,
.provider-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.logo-container {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.client-logo:hover .client-name,
.provider-logo:hover .provider-name {
  color: #0724df;
}

.client-logo a:hover .client-name,
.provider-logo a:hover .provider-name {
  color: #0724df;
  text-decoration: none;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
  .client-name,
  .provider-name {
    font-size: 0.75rem;
  }

  .logo-container {
    height: 50px;
    margin-bottom: 6px;
  }
}

/* Mejoras para placeholders */
.provider-placeholder {
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed #ddd;
  border-radius: 8px;
  color: #999;
  transition: all 0.3s ease;
}

.provider-placeholder:hover {
  border-color: #0724df;
  color: #0724df;
}

.provider-placeholder i {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  .provider-placeholder {
    height: 50px;
  }

  .provider-placeholder i {
    font-size: 1.2rem;
    margin-bottom: 2px;
  }
}

/* Espaciado mejorado para las secciones */
.client-logo,
.provider-logo {
  padding: 15px 10px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.client-logo:hover,
.provider-logo:hover {
  background-color: rgba(7, 36, 223, 0.05);
}

/* Ajustes para los logos */
.client-img,
.provider-img {
  max-height: 60px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(0%);
  transition: filter 0.3s ease;
}

.client-logo:hover .client-img,
.provider-logo:hover .provider-img {
  filter: grayscale(0%);
}

@media (max-width: 768px) {
  .client-img,
  .provider-img {
    max-height: 50px;
  }
}

/* Estilos específicos para logos de clientes */
.client-img {
  max-height: 80px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0%);
  transition: all 0.3s ease;
}

.provider-logo:hover .client-img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Mejorar el placeholder para clientes */
.provider-placeholder {
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #6c757d;
  text-align: center;
  padding: 0.5rem;
  border: 2px dashed #dee2e6;
  transition: all 0.3s ease;
}

.provider-logo:hover .provider-placeholder {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(7, 36, 223, 0.05);
}

.provider-placeholder i {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

/* Responsive para logos de clientes */
@media (max-width: 768px) {
  .client-img {
    max-height: 60px;
  }

  .provider-placeholder {
    height: 60px;
    font-size: 0.7rem;
  }

  .provider-placeholder i {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .client-img {
    max-height: 50px;
  }

  .provider-placeholder {
    height: 50px;
    font-size: 0.65rem;
  }

  .provider-placeholder i {
    font-size: 1rem;
  }
}

#navbarLogo,
#navbarLogoWhite {
  transition: opacity 0.4s ease;
}


.service-img-original {
    max-width: 95%; /* Reduce el ancho al 80% del contenedor */
    height: auto;
    margin: 0 auto; /* Centrar la imagen */
    display: block;
}

.carruv {
    height: auto;
    margin: 0 auto; /* Centrar la imagen */
}

.carruv .carousel-item {
  height: auto;
  
}