body {
  font: 16px "Lucida Grande", Helvetica, Arial, sans-serif;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  overflow-x: hidden; /* Prevenir scroll horizontal */
}

html {
  overflow-x: hidden; /* Prevenir scroll horizontal */
}

a {
  color: white !important;
}

#opaco {

  opacity: 1;


}
.miimg{
  max-width: 20%;
  border-radius: 20%;
  animation-name: fadeOutRight !important;
  animation-duration: 1s !important;
  animation-iteration-count: infinite;

}


.mih1 {
  padding-top: 2rem;
  font-family: "Lucida Grande", Helvetica, Arial, sans-serif;

  font-weight: 800;
  font-style: bold;
  font-size: 1.7rem;
  color: black;
  animation: bounceInLeft;
  animation-duration: 2s
}

.mih1f {
  padding-top: 2rem;
  font-family: "Lucida Grande", Helvetica, Arial, sans-serif;

  font-weight: 1000;
  font-stretch: semi-condensed;
  font-style: bold;
  font-size: 2rem;
  color: black;
}

.carousel-caption {
  position: absolute;
  right: 5%;
  top: 10px;
  /* Cambiar bottom por top y los píxeles que necesites */
  left: 5%;
  top: 5%;
  bottom: 5%;
  z-index: 10;
  padding-top: 130px;
  padding-bottom: 0px;
  color: #fff;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);

}


.mip {
  font: 1.2em "Lucida Grande", Helvetica, Arial, sans-serif;
  color: black;
  animation: backInRight;
  animation-duration: 2s
}

.mih2 {

  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: black;
}

.mip2 {
  font: 1.2em "Lucida Grande", Helvetica, Arial, sans-serif;
  color: black;
}

.mip3 {
  font: 1.2em "Lucida Grande", Helvetica, Arial, sans-serif;
  color: black;

}

.mip4 {
  font: 1.4em "Lucida Grande", Helvetica, Arial, sans-serif;
  color: black;

}

.navbar {
  width: 100%;
  /*  Ocupa todo el ancho de la pantalla  */
  position: fixed;
  /*  Fija la posición del navbar  */
  left: 0;
  /*  Lo coloca a la izquierda  */
  margin: 0;
  /*  Elimina los márgenes */
  padding: 0;
  /*  Elimina el padding */
  background-color: black;
  /*  Coloca un color de fondo */
  color: white;
}

.colocar-img {
  display: inline-block;
  margin-left: 10%;
  padding-left: 2rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}


.navbar-nav {

  justify-content: center;
  /* Centra los elementos horizontalmente */
  width: 100%;
  /* Ocupa todo el ancho disponible */
  padding: 0;
  margin: 0;

}

.nav-link:hover {
  color: rgb(238, 160, 96) !important;

}

.dropdown:hover .dropdown-menu {
  display: block !important;
}

.dropdown-item {
  color: black !important;
}

.nav-item {
  text-align: center;
  /* Asegura que el texto esté centrado */
}

.navbar-toggler-icon {
  border-radius: 5%;
  border-color: white !important;
  lighting-color: gray !important;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Navegación Responsiva */
@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 1rem;
  }
  
  .colocar-img {
    margin-left: 5%;
    padding-left: 1rem;
  }
  
  .navbar-nav {
    text-align: center;
    padding: 1rem 0;
  }
  
  .nav-item {
    margin: 0.5rem 0;
  }
  
  .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .colocar-img {
    margin-left: 2%;
    padding-left: 0.5rem;
  }
  
  .navbar-brand img {
    max-height: 40px;
  }
  
  .nav-link {
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
  }
}

/* Secciones Principales Responsivas */
@media (max-width: 768px) {
  .mih1 {
    font-size: 1.4rem;
    padding-top: 1.5rem;
  }
  
  .mih1f {
    font-size: 1.6rem;
    padding-top: 1.5rem;
  }
  
  .mih2 {
    font-size: 2rem;
  }
  
  .mip, .mip2, .mip3 {
    font-size: 1rem;
  }
  
  .mip4 {
    font-size: 1.2rem;
  }
  
  .carousel-caption {
    padding-top: 80px;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .miimg {
    max-width: 30%;
  }
}

@media (max-width: 576px) {
  .mih1 {
    font-size: 1.2rem;
    padding-top: 1rem;
  }
  
  .mih1f {
    font-size: 1.4rem;
    padding-top: 1rem;
  }
  
  .mih2 {
    font-size: 1.8rem;
  }
  
  .mip, .mip2, .mip3 {
    font-size: 0.9rem;
  }
  
  .mip4 {
    font-size: 1.1rem;
  }
  
  .carousel-caption {
    padding-top: 60px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .miimg {
    max-width: 40%;
  }
}


#micard {
  background-color: black !important;
  max-width: 100% !important;
  max-height: 100% !important;
  animation: fadeInUp !important;
  animation-duration: 3s !important;
}

#mia {
  max-width: 10%;
  border-radius: 10%;
  animation-name: fadeInUp !important;
  animation-duration: 3s !important;


}

.table {
  max-width: 100%;
  max-height: 100%;
}

.table-bordered {
  border: 0.3rem solid rgb(8, 6, 94) !important;
  border-radius: 0.3rem !important;
}

.tr,
td,
th {
  background-color: white !important;
  color: black !important;


}

.toast-center-center {
  top: 60% !important;
  left: 53% !important;
  transform: translate(-50%, -50%) !important;
}

.toast-success {
  background-color: yellowgreen !important;
  color: black !important;

}

.service-card {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
}

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 25px rgba(0, 0, 0, 0.1);
  background: linear-gradient(145deg, #ffffff 0%, #f0f2f5 100%);
}

.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.icon-circle:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.gradient-custom {
  background: linear-gradient(135deg, #050505 0%, #676768 100%);
}

.text-gradient {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  -webkit-text-fill-color: transparent;
}

/* Estilos para las cards de productos */
.product-card .card {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  overflow: hidden;
}

.product-card .card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 15px 35px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.1);
  background: linear-gradient(145deg, #ffffff 0%, #f0f2f5 100%);
}

.product-card .card-img-container {
  height: 180px;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
  background: #ffffff;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card .card img {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  object-fit: contain;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
  background-color: #ffffff;
}

.product-card .card:hover img {
  transform: scale(1.05);
}

.product-card .card-body {
  transition: all 0.3s ease;
  padding: 1rem 1.25rem;
}

.product-card .card:hover .card-body {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
}

.product-card .card-title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.product-card .card-text {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.product-card .btn-primary {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  border: none;
  box-shadow: 0 2px 10px rgba(44, 62, 80, 0.3);
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

.product-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(44, 62, 80, 0.4);
  background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
}

/* Estilos para las cards del carrusel "Cómo trabajamos" */
.carousel .card {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  overflow: hidden;
}

.carousel .card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 25px rgba(0, 0, 0, 0.1);
  background: linear-gradient(145deg, #ffffff 0%, #f0f2f5 100%);
}

.carousel .card img {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel .card:hover img {
  transform: scale(1.08);
}

.carousel .card-body {
  transition: all 0.3s ease;
}

.carousel .card:hover .card-body {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
}

/* Estilos para las cards de la sección CCTV */
#cctv .card {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  overflow: hidden;
}

#cctv .card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 10px 30px rgba(0, 0, 0, 0.1);
  background: linear-gradient(145deg, #ffffff 0%, #f0f2f5 100%);
}

#cctv .card img {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#cctv .card:hover img {
  transform: scale(1.05);
}

#cctv .card-body {
  transition: all 0.3s ease;
}

#cctv .card:hover .card-body {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
}

/* Estilos para el Slider de Proceso de Trabajo */
.workflow-slider-container {
  position: relative;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.workflow-slider {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
}

.workflow-slide {
  display: none;
  padding: 2rem 2rem;
  text-align: center;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  transform: translateX(50px);
}

.workflow-slide.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.workflow-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.workflow-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 3px solid #333;
  box-sizing: border-box;
  overflow: hidden;
}

/* Colores profesionales para cada paso - bordes de colores */
.workflow-slide:nth-child(1) .workflow-icon {
  border-color: #007bff;
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.workflow-slide:nth-child(2) .workflow-icon {
  border-color: #28a745;
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.workflow-slide:nth-child(3) .workflow-icon {
  border-color: #ffc107;
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

.workflow-slide:nth-child(4) .workflow-icon {
  border-color: #6f42c1;
  box-shadow: 0 8px 25px rgba(111, 66, 193, 0.3);
}

.workflow-slide:nth-child(5) .workflow-icon {
  border-color: #dc3545;
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.workflow-slide.active .workflow-icon {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border-color: #fff;
  border-width: 4px;
}

.workflow-icon-fa {
  font-size: 3rem;
  color: #333;
  transition: all 0.3s ease;
  opacity: 0.9;
  display: block;
  line-height: 1;
  text-align: center;
}

/* Colores específicos para cada icono */
.workflow-slide:nth-child(1) .workflow-icon-fa {
  color: #007bff;
}

.workflow-slide:nth-child(2) .workflow-icon-fa {
  color: #28a745;
}

.workflow-slide:nth-child(3) .workflow-icon-fa {
  color: #ffc107;
}

.workflow-slide:nth-child(4) .workflow-icon-fa {
  color: #6f42c1;
}

.workflow-slide:nth-child(5) .workflow-icon-fa {
  color: #dc3545;
  display: block !important;
  visibility: visible !important;
  font-size: 4rem !important;
}

.workflow-slide.active .workflow-icon-fa {
  transform: scale(1.1);
  opacity: 1;
}

.step-number {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.4rem;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
  animation: pulse 2s infinite;
  border: 2px solid #ffffff;
  z-index: 10;
  line-height: 1;
  text-align: center;
  font-family: Arial, sans-serif;
}

/* Asegurar que todos los números de paso se vean */
.workflow-slide .step-number {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Colores específicos para cada número de paso */
.workflow-slide:nth-child(1) .step-number {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.workflow-slide:nth-child(2) .step-number {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.workflow-slide:nth-child(3) .step-number {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.workflow-slide:nth-child(4) .step-number {
  background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
  box-shadow: 0 4px 15px rgba(111, 66, 193, 0.4);
}

.workflow-slide:nth-child(5) .step-number {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.workflow-text h3 {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  transition: all 0.3s ease;
}

.workflow-slide.active .workflow-text h3 {
  color: #007bff;
  transform: translateY(-5px);
  text-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.workflow-text p {
  color: #cccccc;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 450px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.workflow-slide.active .workflow-text p {
  color: #ffffff;
  transform: translateY(-3px);
  font-weight: 500;
}

.workflow-btn {
  margin-top: 1rem;
  padding: 10px 25px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 25px;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border: none;
  color: white;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.workflow-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.6);
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

.workflow-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.workflow-btn-prev,
.workflow-btn-next {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.workflow-btn-prev:hover,
.workflow-btn-next:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.workflow-dots {
  display: flex;
  gap: 1rem;
}

.workflow-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #6c757d;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.workflow-dot.active {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  transform: scale(1.3);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.5);
}

.workflow-dot:hover {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  transform: scale(1.2);
}

/* Responsive Design - Workflow Slider */
@media (max-width: 768px) {
  .workflow-slider-container {
    padding: 2rem 1rem;
  }
  
  .workflow-slide {
    padding: 1.5rem 1rem;
    flex-direction: column;
    text-align: center;
  }
  
  .workflow-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .workflow-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }
  
  .workflow-icon-fa {
    font-size: 2.5rem;
  }
  
  .workflow-text h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }
  
  .workflow-text p {
    font-size: 0.9rem;
    max-width: 100%;
  }
  
  .workflow-controls {
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .workflow-btn-prev,
  .workflow-btn-next {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    top: 15px;
    right: 15px;
  }
}

@media (max-width: 576px) {
  .workflow-slider-container {
    padding: 1.5rem 0.5rem;
  }
  
  .workflow-slide {
    padding: 1rem 0.5rem;
  }
  
  .workflow-icon {
    width: 80px;
    height: 80px;
  }
  
  .workflow-icon-fa {
    font-size: 2rem;
  }
  
  .workflow-text h3 {
    font-size: 1.2rem;
  }
  
  .workflow-text p {
    font-size: 0.8rem;
  }
  
  .workflow-btn-prev,
  .workflow-btn-next {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  .step-number {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    top: 10px;
    right: 10px;
  }
}

/* Responsive Design - Catálogo de Productos */
@media (max-width: 992px) {
  .product-card .card {
    margin-bottom: 1.5rem;
  }
  
  .product-card .card-img-container {
    height: 200px;
    padding: 10px;
  }
}

@media (max-width: 768px) {
  .product-card .card {
    margin-bottom: 1.5rem;
  }
  
  .product-card .card-img-container {
    height: 220px;
    padding: 8px;
  }
  
  .product-card .card-body {
    padding: 1rem;
  }
  
  .product-card .card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .product-card .card-text {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }
  
  .product-card .btn-primary {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 576px) {
  .product-card .card {
    margin-bottom: 1rem;
  }
  
  .product-card .card-img-container {
    height: 200px;
    padding: 6px;
  }
  
  .product-card .card-body {
    padding: 0.75rem;
  }
  
  .product-card .card-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
  
  .product-card .card-text {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }
  
  .product-card .btn-primary {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
  }
  
  .product-card .card:hover {
    transform: translateY(-8px) scale(1.02);
  }
}

/* Botón flotante para subir arriba */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
}

.scroll-to-top.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 12px 35px rgba(0, 123, 255, 0.6);
}

.scroll-to-top:active {
  transform: translateY(-2px) scale(1.05);
}

/* Responsive para el botón flotante */
@media (max-width: 768px) {
  .scroll-to-top {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 1.2rem;
  }
}

/* Sección de Marcas Líderes */
.brands-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.brands-title {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brands-subtitle {
  color: #6c757d;
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.brands-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  padding: 2rem 0;
  border: 1px solid #333;
}

.brands-slider {
  width: 100%;
  overflow: hidden;
}

.brands-track {
  display: flex;
  animation: brandsSlide 40s linear infinite;
  gap: 2rem;
  align-items: center;
}

.brands-container:hover .brands-track {
            animation-play-state: paused;
        }

.brand-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid #333;
}

.brand-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
  border-color: #007bff;
  background: linear-gradient(145deg, #ffffff 0%, #e3f2fd 100%);
}

.brand-logo {
  width: 120px;
  height: 60px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.7);
  transition: all 0.3s ease;
}

.brand-item:hover .brand-logo {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

@keyframes brandsSlide {
  0% {
                transform: translateX(0);
            }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive Design - Sección de Marcas */
@media (max-width: 768px) {
  .brands-section {
    padding: 2rem 0;
  }
  
  .brands-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }
  
  .brands-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .brands-container {
    padding: 1.5rem;
  }
  
  .brand-logo {
    width: 100px;
    height: 50px;
  }
  
  .brand-item {
    padding: 0.8rem;
  }
  
  .brands-track {
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  .brands-section {
    padding: 1.5rem 0;
  }
  
  .brands-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }
  
  .brands-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  .brands-container {
    padding: 1rem;
  }
  
  .brand-logo {
    width: 80px;
    height: 40px;
  }
  
  .brand-item {
    padding: 0.6rem;
  }
  
  .brands-track {
    gap: 1rem;
  }
}

.flip-box {
  width: 100%;
  max-width: 400px;
  height: 450px; /* Aumentar altura para acomodar más contenido */
  perspective: 1000px;
  position: relative;
  margin: 0 auto;
}

.flip-box-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-box:hover .flip-box-inner,
.flip-box.hovered .flip-box-inner {
  transform: rotateY(180deg);
}

.flip-box.flipped .flip-box-inner {
  transform: rotateY(180deg) !important;
}

/* Asegurar que los botones en las tarjetas flip sean clickeables */
.flip-card-btn {
  position: relative;
  z-index: 10;
  pointer-events: auto !important;
  cursor: pointer !important;
}

.flip-box-back {
  pointer-events: auto;
}

.flip-box-back * {
  pointer-events: auto;
}

/* Estilos para el contenido de las tarjetas flip */
.flip-box-content {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.flip-box-button-container {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}

/* Espaciado forzado entre icono y texto en botones */
.btn i + span {
  margin-left: 8px !important;
}

/* Asegurar que todos los botones tengan el mismo estilo */
.btn-primary {
  background-color: #007bff !important;
  border-color: #007bff !important;
  color: white !important;
}

.btn-primary:hover {
  background-color: #0056b3 !important;
  border-color: #0056b3 !important;
  color: white !important;
}

.flip-box-front, .flip-box-back {
  position: absolute;
  width: 100%;
  height: 100%;
   border-radius: 25px;
 
 
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-box-front { 
    color: white;
  display: grid;
  place-items: center;
}

.flip-box-back {
  color: white;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  overflow-y: auto; /* Permitir scroll si el contenido es muy largo */
}

#tabla-servicios{

    border: 2px solid grey !important; /* Color personalizado */
   
  
}

/* ===== SECCIÓN DE CONTACTO MODERNA ===== */
.contact-section {
  background-color: white;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(0,0,0,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(0,0,0,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(0,0,0,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(0,0,0,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(0,0,0,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.2;
  z-index: 1;
}

.contact-section .container {
  position: relative;
  z-index: 2;
}

.contact-title {
  color: #333333;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  font-weight: 700;
}

.contact-subtitle {
  color: #666666;
  font-size: 1.2rem;
  font-weight: 400;
  text-shadow: none;
}

/* Tarjeta de Información de Contacto */
.contact-info-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.contact-header {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-icon i {
  font-size: 2rem;
  color: #007bff;
}

.contact-info-title {
  color: #333;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0;
}

.contact-description {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 2rem;
}

/* Métodos de Contacto */
.contact-methods {
  margin-bottom: 2rem;
}

.contact-method {
  display: flex;
  align-items: center;
  padding: 1rem;
  margin-bottom: 1rem;
  background: rgba(243, 156, 18, 0.05);
  border-radius: 12px;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.contact-method:hover {
  background: rgba(0, 123, 255, 0.1);
  border-left-color: #007bff;
  transform: translateX(5px);
}

.method-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.method-icon i {
  font-size: 1.2rem;
  color: #ffffff;
}

.method-info h5 {
  color: #333;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.method-info p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.4;
}

/* Botón de Contacto */
.contact-cta {
  text-align: center;
}

.contact-btn {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border: none;
  border-radius: 50px;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
  transition: all 0.3s ease;
  color: #ffffff;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
  color: #ffffff;
}

/* Sección QR */
.qr-section {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  text-align: center;
}

.qr-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.qr-header {
  margin-bottom: 2rem;
}

.qr-title {
  color: #333;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.qr-subtitle {
  color: #666;
  font-size: 1rem;
  margin-bottom: 0;
}

/* Contenedor QR */
.qr-container {
  margin-bottom: 2rem;
}

.qr-code-wrapper {
  position: relative;
  display: inline-block;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.qr-code-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.qr-code {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

.qr-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(37, 211, 102, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  border-radius: 20px;
}

.qr-code-wrapper:hover .qr-overlay {
  opacity: 1;
}

.qr-overlay i {
  font-size: 3rem;
  color: #ffffff;
}

/* Redes Sociales */
.social-links {
  margin-top: 2rem;
}

.social-title {
  color: #333;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.social-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.social-btn.disabled:hover {
  transform: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
}

.whatsapp-btn:hover {
  background: linear-gradient(135deg, #20ba5a 0%, #0f7a6b 100%);
  color: #ffffff;
}

.instagram-btn {
  background: linear-gradient(135deg, #e4405f 0%, #c13584 100%);
  color: #ffffff;
}

.instagram-btn:hover {
  background: linear-gradient(135deg, #d6304a 0%, #a02a6b 100%);
  color: #ffffff;
}

.facebook-btn {
  background: linear-gradient(135deg, #1877f2 0%, #0d47a1 100%);
  color: #ffffff;
}

.facebook-btn:hover {
  background: linear-gradient(135deg, #166fe5 0%, #0b3d91 100%);
  color: #ffffff;
}

/* Responsive Design - Sección de Contacto */
@media (max-width: 768px) {
  .contact-section {
    padding: 3rem 0;
  }
  
  .contact-title {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
  }
  
  .contact-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .contact-info-card,
  .qr-section {
    padding: 2rem;
    margin-bottom: 2rem;
  }
  
  .contact-icon {
    width: 60px;
    height: 60px;
  }
  
  .contact-icon i {
    font-size: 1.5rem;
  }
  
  .contact-info-title,
  .qr-title {
    font-size: 1.5rem;
  }
  
  .contact-method {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .method-icon {
    width: 40px;
    height: 40px;
  }
  
  .method-icon i {
    font-size: 1rem;
  }
  
  .contact-btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
  
  .qr-code {
    width: 150px;
    height: 150px;
  }
  
  .social-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .social-btn {
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .contact-section {
    padding: 2rem 0;
  }
  
  .contact-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .contact-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  .contact-info-card,
  .qr-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .contact-icon {
    width: 50px;
    height: 50px;
  }
  
  .contact-icon i {
    font-size: 1.2rem;
  }
  
  .contact-info-title,
  .qr-title {
    font-size: 1.3rem;
  }
  
  .contact-method {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
  }
  
  .method-icon {
    width: 35px;
    height: 35px;
  }
  
  .method-icon i {
    font-size: 0.9rem;
  }
  
  .contact-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .qr-code {
    width: 120px;
    height: 120px;
  }
  
  .social-buttons {
    gap: 0.5rem;
  }
  
  .social-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

/* ===== SECCIÓN CCTV MODERNA ===== */
.cctv-section {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cctv-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cctv-pattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="0" cy="0" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23cctv-pattern)"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

.cctv-section .container {
  position: relative;
  z-index: 2;
}

/* Header de la sección */
.cctv-header {
  text-align: center;
  margin-bottom: 3rem;
}

.cctv-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  box-shadow: 0 10px 30px rgba(243, 156, 18, 0.3);
  animation: pulse 2s infinite;
}

.cctv-icon i {
  font-size: 2.5rem;
  color: #ffffff;
}

.cctv-title {
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

.cctv-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  font-weight: 300;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Timeline */
.cctv-timeline {
  position: relative;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

.cctv-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #f39c12, #e67e22);
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 50%;
  padding-right: 3rem;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 50%;
  padding-left: 3rem;
  text-align: left;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.marker-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
  border: 4px solid #ffffff;
}

.marker-icon i {
  font-size: 1.5rem;
  color: #ffffff;
}

.marker-number {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  background: #ffffff;
  color: #f39c12;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Timeline Cards */
.timeline-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.timeline-image {
  position: relative;
  width: 200px;
  height: 150px;
  border-radius: 15px;
  overflow: hidden;
  flex-shrink: 0;
}

.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(243, 156, 18, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.timeline-image:hover .image-overlay {
  opacity: 1;
}

.image-overlay i {
  font-size: 2rem;
  color: #ffffff;
}

.timeline-text h3 {
  color: #2c3e50;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.timeline-text p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: #666;
  font-size: 0.9rem;
}

.feature-list i {
  color: #27ae60;
  font-size: 0.8rem;
}

/* Características destacadas */
.cctv-features {
  text-align: center;
  margin-top: 4rem;
}

.features-title {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 3rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

.feature-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.feature-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
}

.feature-icon i {
  font-size: 1.5rem;
  color: #ffffff;
}

.feature-item h4 {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin: 0;
}

/* Responsive Design - Sección CCTV */
@media (max-width: 768px) {
  .cctv-section {
    padding: 3rem 0;
  }
  
  .cctv-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }
  
  .cctv-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .cctv-timeline::before {
    left: 30px;
  }
  
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 60px;
    margin-right: 0;
    padding-left: 2rem;
    padding-right: 0;
    text-align: left;
  }
  
  .timeline-marker {
    left: 30px;
    width: 60px;
    height: 60px;
  }
  
  .marker-icon {
    width: 40px;
    height: 40px;
  }
  
  .marker-icon i {
    font-size: 1.2rem;
  }
  
  .marker-number {
    font-size: 1rem;
  }
  
  .timeline-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }
  
  .timeline-image {
    width: 100%;
    height: 200px;
  }
  
  .timeline-text h3 {
    font-size: 1.3rem;
  }
  
  .timeline-text p {
    font-size: 0.9rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-item {
    padding: 1.5rem;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
  }
  
  .feature-icon i {
    font-size: 1.2rem;
  }
  
  .feature-item h4 {
    font-size: 1.1rem;
  }
  
  .feature-item p {
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .cctv-section {
    padding: 2rem 0;
  }
  
  .cctv-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }
  
  .cctv-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  .cctv-timeline::before {
    left: 20px;
  }
  
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 50px;
    padding-left: 1.5rem;
  }
  
  .timeline-marker {
    left: 20px;
    width: 50px;
    height: 50px;
  }
  
  .marker-icon {
    width: 35px;
    height: 35px;
  }
  
  .marker-icon i {
    font-size: 1rem;
  }
  
  .marker-number {
    font-size: 0.9rem;
  }
  
  .timeline-card {
    padding: 1rem;
  }
  
  .timeline-image {
    height: 150px;
  }
  
  .timeline-text h3 {
    font-size: 1.2rem;
  }
  
  .timeline-text p {
    font-size: 0.8rem;
  }
  
  .features-grid {
    gap: 1rem;
  }
  
  .feature-item {
    padding: 1rem;
  }
  
  .feature-icon {
    width: 45px;
    height: 45px;
  }
  
  .feature-icon i {
    font-size: 1rem;
  }
  
  .feature-item h4 {
    font-size: 1rem;
  }
  
  .feature-item p {
    font-size: 0.8rem;
  }
}

/* Responsive Design - Botón Flotante y Elementos Generales */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  
  .scroll-to-top i {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .scroll-to-top {
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }
  
  .scroll-to-top i {
    font-size: 1rem;
  }
}

/* Responsive Design - Tarjetas Flip */
@media (max-width: 992px) {
  .flip-box {
    max-width: 350px;
    height: 420px;
  }
}

@media (max-width: 768px) {
  .flip-box {
    max-width: 300px;
    height: 380px;
  }
}

@media (max-width: 576px) {
  .flip-box {
    max-width: 280px;
    height: 360px;
  }
}

/* ===== FOOTER PROFESIONAL ===== */
.footer-professional {
  background: linear-gradient(145deg, #000000 0%, #1a1a1a 100%);
  color: #ffffff;
  padding: 3rem 0 1.5rem 0;
  margin-top: 2rem;
  position: relative;
}

.footer-professional::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #007bff 0%, #17a2b8 50%, #007bff 100%);
}

.footer-section {
  margin-bottom: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-img {
  width: 40px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-brand {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.5px;
}

.footer-description {
  color: #cccccc;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #007bff 0%, #17a2b8 100%);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #cccccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: block;
  padding: 0.25rem 0;
}

.footer-links a:hover {
  color: #007bff;
  transform: translateX(5px);
}

.footer-contact p {
  color: #cccccc;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact i {
  color: #007bff;
  width: 16px;
  text-align: center;
}

.footer-schedule p {
  color: #cccccc;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.footer-schedule strong {
  color: #ffffff;
  font-weight: 600;
}


.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #333333 20%, #666666 50%, #333333 80%, transparent 100%);
  margin: 2rem 0 1.5rem 0;
}

.footer-copyright {
  color: #999999;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
}

.footer-copyright i {
  color: #ff6b6b;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Responsive Design - Footer */
@media (max-width: 768px) {
  .footer-professional {
    padding: 2rem 0 1rem 0;
  }
  
  .footer-brand {
    font-size: 1.3rem;
  }
  
  .footer-description {
    font-size: 0.85rem;
  }
  
  .footer-title {
    font-size: 1rem;
  }
  
  
  .footer-copyright {
    text-align: center;
    margin-top: 1rem;
  }
}

@media (max-width: 576px) {
  .footer-professional {
    padding: 1.5rem 0 1rem 0;
  }
  
  .footer-logo {
    justify-content: center;
    margin-bottom: 1rem;
  }
  
  .footer-brand {
    font-size: 1.2rem;
  }
  
  .footer-section {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
}

/* Responsive Design - Secciones Generales */
@media (max-width: 768px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  .col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
  .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
  .col-auto, .col-sm, .col-sm-1, .col-sm-2, .col-sm-3,
  .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8,
  .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-auto,
  .col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4,
  .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9,
  .col-md-10, .col-md-11, .col-md-12, .col-md-auto {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

@media (max-width: 576px) {
  .container-fluid {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .row {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
  }
  
  .col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
  .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
  .col-auto, .col-sm, .col-sm-1, .col-sm-2, .col-sm-3,
  .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8,
  .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-auto,
  .col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4,
  .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9,
  .col-md-10, .col-md-11, .col-md-12, .col-md-auto {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
}

