/********** Template CSS **********/
:root {
  --primary: #26457a;
  --secondary: #8D9297;
  --light: #F8F9FA;
  --dark: #182333;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 30px;
  bottom: 30px;
  z-index: 99;
  font-family: Arial, sans-serif;
}


/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease-out, visibility 0s linear .5s;
  z-index: 99999;
  font-family: Arial, sans-serif;
}

#spinner.show {
  transition: opacity .5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}


/*** Button ***/
.btn {
  font-weight: 500;
  transition: .5s;
  font-family: Arial, sans-serif;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
  color: #FFFFFF;
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 55px;
  height: 48px;
}










/*------------------------------------------------------------------------------ Navbar Styling */
/* Estilo original del navbar */
.navbar-custom {
  z-index: 1030;
  /* o mayor si es necesario */
}

/* Estilo cuando hace scroll */
.navbar-custom.scrolled {
  background-color: #26457a;
  /* puedes usar #26457a si quieres azul */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Color de enlaces en navbar cuando hace scroll */
.navbar-custom.scrolled .nav-link {
  color: #ffffff !important;
}

/* Color del logo (si es texto) al hacer scroll */
.navbar-custom.scrolled .navbar-brand {
  color: #ffffff !important;
}

/* Ajuste del contenedor */
.navbar .container-fluid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Estilo del logo */
.navbar-brand {
  flex-grow: 1;
  /* Permite que el logo ocupe su espacio sin empujar el menú */
  font-size: 1.8rem;
}

/* Ajuste del menú */
.navbar-collapse {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
}

/* Estilo de los enlaces */
.navbar-nav .nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: #1f2937;
  position: relative;
  padding-bottom: 5px;
  transition: all 0.3s ease-in-out;
}

/* Efecto de subrayado en hover */
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #26457a;
  transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* Enlace activo con subrayado permanente */
.navbar-nav .nav-link.active::after {
  width: 100%;
  left: 0;
}

/* Responsividad */
@media (max-width: 992px) {
  .navbar-collapse {
    text-align: center;
  }

  .navbar-nav {
    flex-direction: column;
    gap: 15px;
  }
}

/*** --------------------------------------------------------------Fin Navbar ***/










/* body {
        background-color: lightgray !important; 
      }/* Si el fondo cambia, el CSS se está aplicando */







/*-------------------------------Inicio css Logo------------------------*/
.logo-container {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

/* Icono Circular */
.logo-icon {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: black;
  /* Negro */
  color: white;
  font-size: 24px;
  font-weight: bold;
  border-radius: 50%;
}

/* Punto naranja en la esquina inferior derecha */
.logo-dot {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background-color: #f97316;
  /* Naranja */
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* Texto del logo */
.logo-text h1 {
  font-size: 20px;
  font-weight: bold;
  color: #1F2937;
  /* Gris oscuro */
  margin: 0;
}

.logo-text p {
  font-size: 14px;
  color: #6B7280;
  /* Gris claro */
  margin: 4px 0 0;
}

/*-------------------------------------------Fin css Logo------------------------*/


/*-------------------------------------------Video------------------------*/
.video-container {
  height: 100vh;
  overflow: hidden;
  position: relative;
}

#heroVideo {
  position: absolute;
  width: 100%;
  height: 50%;
  object-fit: cover;
  top: 0;
  left: 0;
  filter: brightness(50%);
}






/*--------------------------------------------------- Sección Introducción ----------------------*/
.introdu-section {
  position: relative;
  background-color: #f9f9f9;
  padding: 120px 20px;
  overflow: hidden;
}
.introdu-inner-wrapper {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}
.introdu-logo-bg {
  position: absolute;
  bottom: 30%; /* antes estaba centrado vertical, ahora se ubica más abajo */
  left: 60%;
  transform: translateX(-50%);
  opacity: 0.15;
  max-width: 30%;
  height: auto;
  z-index: 0;
}
.introdu-text-box {
  position: relative;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.9));
  padding: 100px 150px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.01);
  color: white;
  text-align: center;
}


.introdu-text-box h1,{
color: black;}

.introdu-text-box p {
  color: #ffffff;
  font-size: 1.2rem;
}

.introdu-text-box .btn {
  border-radius: 10px;
  padding: 10px 24px;
  transition: all 0.3s ease;
  font-weight: 500;
}
/* Botón */
.introdu-text-box .btn {
  border-radius: 10px;
  padding: 10px 24px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.introdu-text-box .btn:hover,
.introdu-text-box .btn:focus {
  background-color: #26457a;
  color: #ffffff;
  border-color: #ffffff;
}

@media (max-width: 768px) {
  .introdu-text-box {
    padding: 30px 20px;
  }
}
/* Animación de aparición suave */
.fade-in-logo {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.fade-in-logo.visible {
  opacity: 0.45; /* para conservar la transparencia actual */
  transform: scale(1);
}

/*--------------------------------------------------Fin Estilo del título de la sección de introducción */








/* ---------------- Sección Información de la Compañía - Estilo Moderno ---------------- */

.company-info-section-modern {
  background: linear-gradient(135deg, #1b263b, #26457a);
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  position: relative;
  overflow: hidden;

}

.glass-container {
  background: rgba(18, 26, 36, 0.55);
  /* vidrio ahumado elegante */
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 16px;
  padding: 50px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  color: #e0e0e0;
  /* gris claro elegante */
  max-width: 800px;
  margin: auto;
  transition: all 0.4s ease;
}

.glass-container i {
  color: #fdfdfd;
  /* dorado elegante */
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.glass-container h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #ffffff;
}





.icon-pulse {
  font-size: 40px;
  color: #FFD700;
  margin-bottom: 20px;
  animation: pulse 1.8s infinite ease-in-out;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.modern-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.modern-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #e2e8f0;
}

/* Scroll Animation */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .glass-container {
    padding: 30px 20px;
  }

  .modern-title {
    font-size: 1.5rem;
  }

  .modern-text {
    font-size: 1rem;
  }
}

/* --------------------------------------------------Fin Sección Información de la Compañía */



/* --------------------------------------------------------------------OUR SERVICES SECTION */
/* --- OUR SERVICES SECTION (Compacta real de 3 cm) --- */

.services-section {
  background-color: #f8f9fa;
  padding: 60px 0;
  text-align: center;
}

.services-title {
  font-size: 2rem;
  font-weight: bold;
  color: #26457a;
  margin-bottom: 30px;
}

.service-card {
  background-color: white;
  height: 115px;
  /* 3cm visual aprox */
  max-height: 115px;
  padding: 12px 15px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  border-top: 4px solid #26457a;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

/* Ícono reducido */
.service-icon {
  width: 42px;
  height: 42px;
  background-color: #e8edf5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.service-icon i {
  font-size: 18px;
  color: #26457a;
}

/* Título */
.service-card h3 {
  font-size: 0.95rem;
  color: #26457a;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Descripción corta */
.service-card p {
  font-size: 0.8rem;
  color: #444;
  margin: 0;
  line-height: 1.2;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

/* Hover */
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

/* Botón */
.services-button {
  margin-top: 25px;
}

.services-button .btn {
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 5px;
  border: 2px solid #26457a;
  color: #26457a;
  background-color: white;
  transition: 0.3s;
}

.services-button .btn:hover {
  background-color: #26457a;
  color: white;
}

/* Responsivo */
@media (max-width: 768px) {
  .service-card {
    height: auto;
    max-height: none;
    padding: 15px;
  }

  .service-card h3,
  .service-card p {
    white-space: normal;
  }
}

/* --------------------------------------------------------------------FIN OUR SERVICES SECTION */





/*---------------------------------------------------------------------------- CONTACT SECTION */
/* CONTACT SECTION */
.contact-section {
  background-color: #26457a;
  /* Azul corporativo */
  padding: 60px 0;
  text-align: center;
}

/* Título */
.contact-title {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  /* Texto en blanco */
  margin-bottom: 15px;
  text-align: center;
}

/* Texto */
.contact-text {
  font-size: 1.1rem;
  color: white;
  /* Asegurar que el texto sea blanco */
  margin-bottom: 30px;
  text-align: center;
  opacity: 0.9;
}

/* Botón */
.contact-btn {
  font-size: 1.2rem;
  padding: 12px 25px;
  border-radius: 8px;
  transition: 0.3s;
  border: 2px solid white;
  color: #26457a;
  background-color: white;
  font-weight: bold;
  text-align: center;
}

.contact-btn:hover {
  background-color: #1b365d;
  color: white;
  border-color: white;
}

/* Responsividad */
@media (max-width: 768px) {
  .contact-title {
    font-size: 1.8rem;
  }

  .contact-text {
    font-size: 1rem;
  }

  .contact-btn {
    font-size: 1rem;
    padding: 10px 20px;
  }
}

/*---------------------------------------------------------------------------- FIN CONTACT SECTION */


/* --------------------------------------------------------------------------Footer Styling */
/* Footer Styling */
.footer {
  background-color: #1b263b;
  /* Azul oscuro */
  color: white;
  padding: 50px 0;
}

/* Títulos del Footer */
.footer h4 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: white;
  /* Asegura que los títulos sean blancos */
}

/* Company Info */
.footer-about p {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 15px;
}

/* Social Media Icons */
.footer-social {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 10px;
}

.footer-social a {
  color: white;
  font-size: 1.4rem;
  transition: 0.3s;
}

.footer-social a:hover {
  color: #FFD700;
  /* Amarillo dorado */
}

/* Quick Links */
.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links ul li a:hover {
  color: #FFD700;
  /* Amarillo dorado */
}

/* Contact Info */
.footer-contact p {
  font-size: 1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.footer-contact i {
  color: #FFD700;
  margin-right: 10px;
  font-size: 1.2rem;
}

/* Equilibrar el espacio entre columnas */
.footer .row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsividad */
@media (max-width: 992px) {
  .footer .row {
    flex-direction: column;
    text-align: center;
  }

  .footer-about,
  .footer-links,
  .footer-contact {
    margin-bottom: 30px;
  }

  .footer-social {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------Fin Footer Styling */


/* -------------------------------------------------------------------------- HERO ACERCA CON PARALLAX + BLUR */

.hero-acerca.parallax-blur {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 100px 20px;
  z-index: 1;
}

/* Fondo con imagen fija en ::before */
.hero-acerca.parallax-blur::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url('https://images.unsplash.com/photo-1507679799987-c73779587ccf?auto=format&fit=crop&w=1600&q=80') center center fixed;
  background-size: cover;
  z-index: -1;
  filter: blur(0px);
  transition: filter 0.4s ease;
}

.hero-acerca.parallax-blur.scrolled::before {
  filter: blur(5px);
  /* Puedes ajustar a 4px, 6px, etc. */
}

/* Contenido animado */
.hero-acerca h1 {
  color: white;
  font-size: 2.8rem;
  font-weight: 700;
  animation: fadeInDown 1s ease-out;
}

.hero-acerca p {
  color: white;
  text-align: center;
  font-size: 1.2rem;
  margin-top: 20px;
  animation: fadeInUp 1s ease-out;
  animation-delay: 0.3s;
  animation-fill-mode: both;
}


/* Responsive */
@media (max-width: 768px) {
  .hero-acerca h1 {
    font-size: 2rem;
  }

  .hero-acerca p {
    font-size: 1rem;
  }
}

/* Animaciones */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


.btn-hero {
  margin-top: 40px;
  display: inline-block;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background-color: transparent;
  border: 2px solid white;
  border-radius: 8px;
  /* Ligeramente redondeado */
  transition: all 0.3s ease-in-out;
  text-decoration: none;
  animation: fadeInUp 1s ease-out;
  animation-delay: 0.6s;
  animation-fill-mode: both;
}

.btn-hero:hover {
  background-color: #26457a;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(38, 69, 122, 0.25);
  transform: translateY(-2px);
}



/* ---------------- FIN HERO ACERCA ---------------- */





/* --------------------------------------------------------------------------Our Story */


.story-section {
  background-color: #f9f9f9;
  padding: 80px 20px;
}

.story-container {
  max-width: 1200px;
  margin: 0 auto;
}

.story-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.story-col {
  flex: 1 1 450px;
}

.story-col-logo {
  text-align: center;
}

.story-logo-img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.story-title {
  color: #26457a;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.story-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .story-row {
    flex-direction: column;
    text-align: center;
  }

  .story-title {
    font-size: 1.6rem;
  }
}


/* --------------------------------------------------------------------------Fin Our Story */


/* -------------------------------------------------------------------------- Mission & Vision */

.mission-vision-section {
  background-color: #f9f9f9;
}

.mission-vision-box {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-vision-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.mission-vision-box h3 {
  font-weight: 700;
  margin-bottom: 10px;
  color: #26457a;
}

.mission-vision-box p {
  color: #000000;
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 10px;
}

.mission-vision-box i {
  color: #26457a;
  margin-bottom: 15px;
  /* Eliminar efecto de escala */
}

/* Responsive Fix */
@media (max-width: 768px) {
  .mission-vision-box {
    min-height: auto;
    padding: 30px 20px;
    text-align: center;
  }
}




/* -------------------------------------------------------------------------- Core Values */

.core-values-section {
  background-color: #ffffff;
  padding: 60px 0;
}

.core-values-section .container {
  max-width: 75%;
  margin: 0 auto;
}

.core-values-section h2 {
  font-size: 2rem;
  text-align: center;
  color: #26457a;
  margin-bottom: 40px;
}

.core-value-box {
  text-align: center;
  padding: 20px;
}

.core-value-icon {
  background-color: #e9edf3;
  border-radius: 50%;
  width: 90px;
  height: 90px;
  margin: 0 auto 15px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease-in-out;
}

.core-value-icon i {
  font-size: 28px;
  color: #26457a;
  transition: transform 0.3s ease-in-out;
}

/* Hover Animation */
.core-value-box:hover .core-value-icon {
  transform: scale(1.15);
}

.core-value-box:hover .core-value-icon i {
  transform: scale(1.15);
}

.core-value-box h5 {
  color: #26457a;
  margin-top: 10px;
  font-weight: 600;
}

.core-value-box p {
  margin-top: 10px;
  font-size: 1rem;
  color: #000000;
  line-height: 1.6;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .core-values-section .container {
    max-width: 90%;
  }

  .core-value-box {
    padding: 10px 20px;
  }

  .core-value-icon {
    width: 80px;
    height: 80px;
  }

  .core-value-icon i {
    font-size: 24px;
  }
}

/* -------------------------------------------------------------------------- Fin Core Values */



/* -------------------------- Hero Banner - Soporte -------------------------- */
.hero-soporte {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px;
  overflow: hidden;
  color: #fff;
  z-index: 1;
}

/* Fondo con imagen + overlay con gradiente + control de brillo y blur */
.hero-soporte::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: linear-gradient(
    rgba(38, 69, 122, 0.7), 
    rgba(0, 0, 0, 0.7)
  ),
    url('https://images.unsplash.com/photo-1517336714731-489689fd1ca8?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(80%) blur(0px);
  transition: filter 0.4s ease;
  z-index: -1;
}

/* Activación del desenfoque en scroll */
.hero-soporte.scrolled::before {
  filter: brightness(80%) blur(5px);
}

/* Título y párrafo */
.hero-soporte h1 {
  color:white;
  font-size: 2.8rem;
  font-weight: 700;
  animation: fadeInDown 1s ease-out;
}
.hero-soporte p {
  font-size: 1.2rem;
  margin-top: 20px;
  animation: fadeInUp 1s ease-out;
  animation-delay: 0.3s;
  animation-fill-mode: both;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-soporte h1 {
    font-size: 2rem;
  }
  .hero-soporte p {
    font-size: 1rem;
  }
}

/* Animaciones */
@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------Fin hero banner soporte---------------- */



/* -------------------------------------------------------------------------- Título services Section */

.services-intro {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 80px;
  /* más espacio arriba */
  background-color: #f9f9f9;
}

.services-intro p.lead {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.7;
  background-color: #f9f9f9;
}


/* -------------------------------------------------------------------------- Services Section */
.services-section {
  background-color: #f9f9f9;
  padding: 80px 20px;
}

.services-section .row {
  row-gap: 40px;
  column-gap: 30px;
}

.tarjeta {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  border-top: 6px solid #26457a;
  text-align: center;
  padding: 40px 30px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  height: 100%;
  position: relative;
}

.tarjeta:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  /* sombra más fuerte */
}

/* Ícono circular */
.tarjeta-icon {
  background-color: #e9edf3;
  border-radius: 50%;
  width: 90px;
  height: 90px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.tarjeta:hover .tarjeta-icon {
  background-color: #26457a;
  transform: scale(1.1);
}

.tarjeta-icon i {
  font-size: 30px;
  color: #26457a;
  transition: color 0.3s ease;
}

.tarjeta:hover .tarjeta-icon i {
  color: #fff;
}

/* Título */
.tarjeta h5 {
  color: #26457a;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 15px;
  margin-bottom: 10px;
  position: relative;
}

/* Separador decorativo bajo el título */
.tarjeta h5::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: #26457a;
  margin: 10px auto 20px auto;
  border-radius: 3px;
}

/* Texto */
.tarjeta p {
  font-size: 1rem;
  color: #000;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Lista */
.tarjeta ul {
  padding-left: 1.5rem;
  margin-bottom: 0;
  text-align: left;
}

.tarjeta li {
  margin-bottom: 10px;
  font-size: 0.98rem;
  color: #444;
  line-height: 1.6;
}

/* Responsive spacing */
@media (min-width: 768px) {
  .row.g-4>div[class^="col-"] {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (min-width: 1200px) {
  .tarjeta {
    padding: 50px 40px;
  }
}


/* Mejora de sombra y separación */
.tarjeta {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  /* sombra más fuerte */
  border-top: 6px solid #26457a;
  text-align: center;
  padding: 40px 30px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  height: 100%;
  margin-bottom: 30px;
  /* separación entre tarjetas */
}

.tarjeta:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  /* sombra al hacer hover */
}

/* Separadores entre columnas */
@media (min-width: 992px) {
  .tarjeta:not(:last-child) {
    margin-right: 20px;
  }
}

/* Animación pulso */
@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

.tarjeta:hover .tarjeta-icon {
  animation: pulse 0.6s ease-in-out;
}

/* -------------------------------------------------------------------------- Fin Services Section */








.services-section {
  background-color: #f9f9f9;
  padding: 80px 0;
}

.services-section h2 {
  font-size: 2.2rem;
  color: #26457a;
}

.service-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(30px);
  min-height: 320px;
}

.service-card.animate-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.service-icon {
  font-size: 2.5rem;
  color: #0d6efd;
}

.service-card h5 {
  font-weight: 600;
  margin-bottom: 15px;
}

.service-card p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
}

.toggle-btn {
  font-size: 0.9rem;
  padding: 8px 20px;
}

/* Responsive spacing */
@media (max-width: 768px) {
  .service-card {
    margin-bottom: 20px;
  }
}



/* --------------------------------------------------------------Fin Service Cards Styling === */



/* -------------------------------------------------------------------------- Why Choose Us */

.why-choose-us-section {
  background-color: #ffffff;
  padding: 60px 0;
}

.why-choose-us-section .container {
  max-width: 75%;
  margin: 0 auto;
}

.why-choose-us-section h2 {
  font-size: 2rem;
  text-align: center;
  color: #26457a;
  margin-bottom: 40px;
}

.why-box {
  text-align: center;
  padding: 20px;
}

.choose-icon {
  background-color: #e9edf3;
  border-radius: 50%;
  width: 90px;
  height: 90px;
  margin: 0 auto 15px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease-in-out;
}

.choose-icon i {
  font-size: 28px;
  color: #26457a;
  transition: transform 0.3s ease-in-out;
}

/* Hover Animation */
.why-box:hover .choose-icon {
  transform: scale(1.15);
}

.why-box:hover .choose-icon i {
  transform: scale(1.15);
}

.why-box h5 {
  color: #26457a;
  margin-top: 10px;
  font-weight: 600;
}

.why-box p {
  margin-top: 10px;
  font-size: 1rem;
  color: #000000;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .why-choose-us-section .container {
    max-width: 90%;
  }

  .choose-icon {
    width: 80px;
    height: 80px;
  }

  .choose-icon i {
    font-size: 24px;
  }
}

/* -------------------------------------------------------------------------- End Why Choose Us */


/* Sección Hero Contact */
.hero-contact {
  position: relative;
  height: 50vh;
  background: linear-gradient(
      rgba(0, 0, 0, 0.65),
      rgba(0, 0, 0, 0.65)
    ),
    url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1600&q=80') center center / cover no-repeat fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 60px 20px 20px;
  overflow: hidden;
  z-index: 1;
}

.hero-contact h1 {
  animation: fadeInDown 1s ease-out;
  font-size: 3rem;
  color: #ffffff;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 10px;
}

.hero-contact p {
  animation: fadeInUp 1s ease-out;
  animation-delay: 0.3s;
  animation-fill-mode: both;
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 40px;
}

/* Corte diagonal hacia la derecha (delgado izquierda, ancho derecha) */
.hero-contact::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background-color: #ffffff;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  z-index: 2;
  margin-bottom: -1px;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}

/* Ajuste de tarjetas flotantes */
.contact-card-overlay {
  position: absolute;
  top: 55%;
  
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1280px;
  z-index: 5;
}

/* Estilo de tarjetas */
.glass-card {
  background: rgba(255, 255, 255,100);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.15);
  padding: 40px 30px;
  border-radius: 18px;
  border: 1px solid #ddd;
}
.contact-box-form {
    background: rgba(255, 255, 255,100);
}

/* Get in Touch */
.contact-box-info {
  background-color: #f1f1f1; /* gris muy claro */
  border: 1px solid #ddd;
}

.contact-box {
  text-align: left;
  color: #000;
  margin: 0 15px;
  max-width: 550px;
  flex: 1 1 45%;
}

.contact-box h3,
.contact-box h6 {
  color: #26457a;
  font-weight: 700;
}

.contact-box p {
  color: #333;
}
.form-control:focus {
  border-color: #26457a;
  box-shadow: 0 0 0 3px rgba(38, 69, 122, 0.15);
  transition: 0.3s ease-in-out;
}
.form-control, .btn {
  transition: all 0.3s ease-in-out;
}


/* Responsive */
@media (max-width: 768px) {
  .hero-contact {
    padding-bottom: 220px;
  }

  .contact-card-overlay {
    position: static;
    transform: none;
    margin-top: 30px;
    padding: 0 15px;
  }

  .glass-card {
    margin-bottom: 20px;
  }
}
.contact-placeholder {
  height: 350px; /* o lo que mida visualmente el bloque de tarjetas */


}




.map-section {
  position: relative;
  z-index: 0;
  margin-top: 100px; /* espacio desde las tarjetas */
  overflow: hidden;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}








/*SOAG----------------------------------------------------------------------------------------------*/


.cusa-form-actions {
  display: flex;
  align-items: center;
  gap: 20px; /* espacio entre checkbox y botones */
  margin-top: 10px;
  flex-wrap: wrap; /* permite que en pantallas pequeñas se apilen */
}

.cusa-form-actions .form-check {
  margin-bottom: 0;
}

.cusa-form-actions .btn {
  white-space: nowrap;
}

/* -------------------------------------------------------------------------- Estilos para vistas.php */

table thead th,
table tbody td {
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* Compactar tabla general */
table.table td, 
table.table th {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  vertical-align: middle !important;

}



thead th.header-store {
  background-color: #A1343C !important;
  color: white !important;
}

thead th.header-actual {
  background-color: #2CAE44 !important;
  color: white !important;
  text-align: center;
  border-left: 3px solid #093a15 !important; /* línea izquierda, verde oscuro */
}

/* Celdas del cuerpo */
tbody td.header-actual {
  border-left: 3px solid #093a15 !important;
}

thead th.header-budget {
  background-color: #000 !important;
  color: white !important;
  text-align: center;
}

thead th.header-var,
thead th.header-pct {
  background-color: #6c757d !important;
  color: white !important;
  text-align: center;
}

tfoot tr {
  background-color: #094780 !important;
  color: white !important;
  font-weight: bold;
}

td.text-positive { color: #61a17e; font-weight: bold; } /* celeste */
        td.text-negative { color: #b35e5e; font-weight: bold; } /* rojo */


/* ====== Estilos para el modo oscuro - Headers ====== */
body.dark-mode thead th.header-store {
  background-color: #7e2831 !important; /* rojo oscuro */
  color: #ffffff !important;
}

body.dark-mode thead th.header-actual {
  background-color: #248f3d !important; /* verde oscuro */
  color: #ffffff !important;
  text-align: center;
  border-left: 3px solid #093a15 !important;
}

body.dark-mode thead th.header-budget {
  background-color: #111111 !important; /* casi negro */
  color: #ffffff !important;
  text-align: center;
}

body.dark-mode thead th.header-var,
body.dark-mode thead th.header-pct {
  background-color: #4b4b4b !important; /* gris oscuro */
  color: #ffffff !important;
  text-align: center;
}





/* -------------------------------------------------------------------------- Estilos para span.php */
.badge-custom-cumulative {
  background-color: #26457a !important;  /* azul institucional */
  color: white !important;
  padding: 0.6em 1em !important;
  font-size: 0.95rem !important;
  border-radius: 0.75rem !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
  display: inline-block !important;
}



.vistas-logo-bg {
  position: absolute;
  bottom: 20px; /* antes estaba centrado vertical, ahora se ubica más abajo */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.05;
  max-width: 50%;
  height: auto;
  z-index: 0;
}


@media (max-width: 768px) {
  form.row.g-3.mb-4 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .cusa-form-actions {
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
  }

  .cusa-form-actions .btn {
    width: 100%;
  }

  .cusa-form-actions .form-check {
    margin-bottom: 10px;
  }

  .select2-container {
    width: 100% !important;
  }
}


/* ========== MAIN CONTENT ========== */
.cusa-main-content {
  margin-top: 60px;
  padding: 20px 30px;
  flex: 1;
  transition: margin-left 0.3s ease;
  background-color: #fff;
  color: #000;
}

body.dark-mode .cusa-main-content {
  background-color: #191b1a !important;
  color: #e0e0e0 !important;
}

body.dark-mode .cusa-main-content h1,
body.dark-mode .cusa-main-content h2,
body.dark-mode .cusa-main-content h3,
body.dark-mode .cusa-main-content h4,
body.dark-mode .cusa-main-content p,
body.dark-mode .cusa-main-content span,
body.dark-mode .cusa-main-content label {
  color: #f0f0f0 !important;
}

body.dark-mode .cusa-main-content table {
  background-color: #ffffff !important;
  color: #fff !important;
}

body.dark-mode .cusa-main-content table th {
  background-color: #000000 !important;
  color: #ddd !important;
}

body.dark-mode .cusa-main-content table td {
  background-color: #6b747e !important;
  color: #ffffff !important;
}

body.dark-mode .cusa-main-content table,
body.dark-mode .cusa-main-content th,
body.dark-mode .cusa-main-content td {
  border-color: #444 !important;
}

/* Toast visual para feedback de modo */
.cusa-toast {
  position: fixed;
  top: 80px;
  right: 30px;
  background-color: #987c53;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cusa-toast.show {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}



/* MODO OSCURO - Select2: Contenedor de selección */
body.dark-mode .select2-container--default .select2-selection--single,
body.dark-mode .select2-container--default .select2-selection--multiple {
  background-color: #ece7e7 !important;
  color: #f0f0f0 !important;
  border: 1px solid #555 !important;
}

/* Texto renderizado en el select */
body.dark-mode .select2-selection__rendered {
  color: #e0e0e0 !important;
}

/* Chips (cuando es multiple) */
body.dark-mode .select2-container--default .select2-selection__choice {
  background-color: #333 !important;
  border: 1px solid #555 !important;
  color: #fff !important;
}

/* Botón "x" para eliminar una opción */
body.dark-mode .select2-selection__choice__remove {
  color: #ccc !important;
}

/* Dropdown - opciones */
body.dark-mode .select2-container--default .select2-results > .select2-results__options {
  background-color: #f0f0f0 !important;
  color: #8b8787 !important;
}

/* Hover en opciones del dropdown */
body.dark-mode .select2-container--default .select2-results__option--highlighted {
  background-color: #8b8787 !important;
  color: #ffffff !important;
}

/* Etiquetas del formulario */
body.dark-mode .form-label {
  color: #f0f0f0 !important;
}

/* -------------------------------------------------------------------------- Estilos para resaltar fila.php */
/* Resaltar fila en modo claro */
.table-hover tbody tr:hover {
  background-color: #e9f1fa !important; /* Azul clarito */
  color:#22296e;
  cursor: pointer !important;
  transition: background-color 0.2s ease-in-out !important;
  border-left: 5px solid #26457a !important;
}

/* Resaltar fila en modo oscuro */
body.dark-mode .table-hover tbody tr:hover {
  cursor: pointer !important;
  border-left: 6px solid #c7c755 !important;
  border-right: 5px solid #c7c755 !important;
}



/* ------------------------------------------------------ Estilos para operaciones filas seleccionadas */
#cusa-summary-bar {
  position: fixed;
  bottom: 0;
  left: 280px; /* espacio del sidebar expandido */
  right: 0;
  background-color: #f0f0f0;
  color: #333;
  padding: 10px 20px;
  font-weight: bold;
  font-size: 14px;
  border-top: 1px solid #ccc;
  box-shadow: 0 -1px 4px rgba(0,0,0,0.1);
  z-index: 9999;
  justify-content: center;
  display: flex;
  gap: 25px;
}

.cusa-wrapper.collapsed #cusa-summary-bar {
  left: 90px;
}

body.dark-mode #cusa-summary-bar {
  background-color: #1e1e1e;
  color: #f0f0f0;
  border-top: 1px solid #555;
}
tr.selected-row {
  background-color: #fff3cd !important;
}

body.dark-mode tr.selected-row {
  background-color: #333c2a !important;
}

.cusa-summary-multibar {
  background-color: #f8f9fa;
  border-top: 1px solid #ccc;
  padding: 10px 20px;
  font-size: 0.95rem;
  margin-top: 10px;
}

body.dark-mode .cusa-summary-multibar {
  background-color: #2a2a2a;
  color: #f0f0f0;
  border-top: 1px solid #555;
}

.resumen-mes-row {
  display: flex;
  gap: 20px;
  margin-bottom: 5px;
}

.resumen-mes-row span {
  font-weight: 500;
}

.sort-arrow {
  margin-left: 5px;
  font-size: 0.8em;
}

/* Siempre mostrar ícono en columnas ordenables */
th.sortable::after {
  content: '\25B4'; /* flecha hacia arriba ▴ como predeterminado */
  font-size: 30px;
  margin-left: 5px;
  color: #e6dfdf;
  opacity: 0.3;
  transition: transform 0.2s;
}

/* Cuando está activamente ordenando ascendente */
th.sortable.sorted-asc::after {
  content: '\25B4';
  opacity: 1;
  color: #26457a;
}

/* Cuando está activamente ordenando descendente */
th.sortable.sorted-desc::after {
  content: '\25BE'; /* flecha hacia abajo ▾ */
  opacity: 1;
  color: #26457a;
}


/* Estilo para resaltar columna activa al ordenar */
th.sortable.sorted-asc,
th.sortable.sorted-desc {
  background-color: #f1f7ff;
  transition: background-color 0.4s ease;
}

/* Dark mode */
body.dark-mode th.sortable.sorted-asc,
body.dark-mode th.sortable.sorted-desc {
  background-color: #2f2f3a;
}

/* Efecto en la flecha del icono */
th.sortable::after {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animación de filas reordenadas */
tr.sorted-transition {
  animation: fade-in-row 0.1s ease;
}

@keyframes fade-in-row {
  from {
    opacity: 0;
    transform: translateY(2px); /* Menor desplazamiento vertical */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

tr.sorted-transition {
  animation: fade-in-row 0.2s ease-in-out; /* Más lento y fluido */
}









/* ========== GENERAL RESET ========== */
.cusa-body, .cusa-container, .cusa-container-fluid {
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Segoe UI', sans-serif !important;
}

/* ========== NAVBAR ========== */
.cusa-navbar {
  width: 100%;
  height: 60px;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  padding: 0 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.3s ease;
}

.cusa-navbar span {
  font-size: 20px;
  font-weight: 600;
  color: #111;
}


/* DARK MODE TOGGLE SWITCH CON ICONOS */
.dark-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  margin-left: 15px;
}

.dark-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 2px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #26457a;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

body.dark-mode #iconLight {
  opacity: 0.2;
}

body.dark-mode #iconDark {
  opacity: 1;
}

body:not(.dark-mode) #iconDark {
  opacity: 0.2;
}

/* ========== WRAPPER ========== */
.cusa-wrapper {
  display: flex;
  flex-direction: row;
}

.cusa-wrapper .cusa-main-content {
  margin-left: 280px;
  transition: margin-left 0.3s ease;
}

.cusa-wrapper.collapsed .cusa-main-content {
  margin-left: 90px;
}

/* ========== SIDEBAR ========== */
.cusa-sidebar {
  padding-top: 70px;
  background-color: #ffffff;
  border-right: 1px solid #e5e5e5;
  transition: width 0.3s ease, background-color 0.4s ease, border-color 0.4s ease;
  position: fixed;
  top: 60px;
  left: 0;
  height: calc(100vh - 60px);
  width: 280px;
  z-index: 1000;
  overflow-y: auto;
  box-shadow: 2px 0 8px rgba(0,0,0,0.05);
  padding-right: 20px; /* espacio para que el botón no se corte */
  overflow: visible;
}



.cusa-sidebar.collapsed {
  width: 70px;
  background-color: #f5f5f5;
  overflow: visible;
}

/* TOGGLE BUTTON */
.cusa-toggle-btn {
  position: absolute;
  top: 15px;
  left: calc(100% - 15px); /* Se posiciona justo fuera del sidebar */
  transform: translateX(-50%);
  background-color: #000000;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: left 0.3s ease;
}

.cusa-wrapper.collapsed .cusa-toggle-btn {
  left: 70px; /* Posición dentro del sidebar cuando está colapsado */
}


.cusa-toggle-btn:hover {
  background-color: #f0f0f0;
  border-color: #e71818;
}


/* Cuando el sidebar está expandido */
.cusa-sidebar:not(.collapsed) .cusa-toggle-btn {
  right: -15px;
  transform: translateX(50%);
}

body.dark-mode .cusa-toggle-btn {
  background-color: #333;
  border-color: #555;
}

.cusa-sidebar.collapsed .cusa-toggle-btn {
  left: 100%;
  transform: translateX(-50%);
}

/* ========== NIVEL 1: MODULE SIDEBAR ========== */
.cusa-module-title,
.cusa-module h2 {
  background-color: #e9ecef;
  font-weight: bold;
  padding: 10px 14px;
  font-size: 13px;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 5px;
  border-left: 3px solid #000000;
}


.cusa-sidebar.collapsed .cusa-module-title .cusa-icon-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.cusa-sidebar.collapsed .cusa-module-title {
  justify-content: center;
}

/* ========== NIVEL 2: SECTIONS SIDEBAR ========== */
.cusa-section > button {
  width: 100%;
  background: none;
  border: none;
  color: #111;
  font-weight: 500;
  font-size: 14px;
  text-align: left;
  padding: 10px 20px;
  margin: 2px 0;
  display: block;
  border-radius: 6px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.cusa-section > button:hover {
  background-color: #cfd1d4;
  color: #000000;
}

body.dark-mode .cusa-section > button {
  color: #111;
}

body.dark-mode .cusa-section > button:hover {
  background-color: #333;
  color: #ffffff;
}

/* ========== NIVEL 3: VIEWS SIDEBAR========== */
.cusa-views {
  display: none;
  margin-left: 10px;
  margin-bottom: 8px;
}

.cusa-views a {
  display: block;
  font-size: 13px;
  padding: 6px 20px;
  color: #444;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cusa-views a:hover {
  background-color: #26457a;
  color: #ffffff;
}

body.dark-mode .cusa-views a {
  color: #111;
}

body.dark-mode .cusa-views a:hover {
  background-color: #26457a;
  color: #fff;
}

.cusa-section.open .cusa-views {
  display: block;
}

.cusa-sidebar.collapsed .cusa-views {
  display: none;
}

/* ========== ICON TEXT ========== */
.cusa-icon-text {
  margin-left: 10px;
  display: inline;
  transition: opacity 0.2s ease;
}

.cusa-sidebar.collapsed .cusa-icon-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

/* ========== TOOLTIP EN COLAPSO ========== */
.cusa-sidebar.collapsed .cusa-section > button[title]:hover::after {
  content: attr(title);
  position: absolute;
  top: 50%;
  left: 80px;
  transform: translateY(-50%);
  background-color: #333;
  color: #fff;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 5px;
  white-space: nowrap;
  z-index: 2000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}








/* ---------- NIVEL 1 (Módulo) SIDEBAR ---------- */
.cusa-module-title {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #e9ecef;
  font-weight: bold;
  padding: 10px 14px;
  font-size: 13px;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 5px;
  border-left: 3px solid #007bff;
  transition: all 0.3s ease;
  position: relative;
}

.cusa-module-title i {
  font-size: 16px;
  color: #26457a;
  min-width: 20px;
  text-align: center;
}

.cusa-module-title .cusa-icon-text {
  display: inline-block;
  transition: opacity 0.2s ease, width 0.2s ease;
}

/* Al colapsar: ocultar texto, mantener ícono */
.cusa-sidebar.collapsed .cusa-module-title .cusa-icon-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

/* Tooltip al pasar el mouse */
.cusa-sidebar.collapsed .cusa-module-title[title]:hover::after {
  content: attr(title);
  position: absolute;
  top: 50%;
  left: 60px;
  transform: translateY(-50%);
  background-color: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 2000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}


/* ---------- NIVEL 2 y 3 (Section + Views) ---------- */
.cusa-sidebar.collapsed .cusa-section,
.cusa-sidebar.collapsed .cusa-views {
  display: none !important;
}










/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .cusa-sidebar {
    left: -280px;
  }
  .cusa-sidebar.open {
    left: 0;
  }
  .cusa-main-content {
    margin-left: 0;
  }
  .cusa-sidebar.open ~ .cusa-main-content {
    margin-left: 280px;
  }
}
