    /* Iconos de Bootstrap Icons */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.3/font/bootstrap-icons.css");

/* ---  --- */
    :root {
      /* Paleta de colores basada en #4B3C8C */
      --color-primary: #4B3C8C;
      --color-primary-light: #6A5F9C;
      --color-primary-dark: #2E2465;
      --color-secondary: #8C3C72;
      --color-accent: #3C8C6E;
      --color-light: #F8F9FA;
      --color-dark: #212529;
    }
  
    body {
            font-family: 'Nunito', sans-serif;
        }
        .catalog-container {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            padding: 20px;
            margin-top: 20px;
        }

    /* Navbar */
    .bg-primary {
      background-color: var(--color-primary) !important;
    }

    .text-primary{
      color: var(--color-primary) !important;
    }

    .bg-color-light {
      background-color: var(--color-light) !important;
    }

    /* Botones */
    .btn-primary {
      background-color: var(--color-primary);
      border-color: var(--color-primary);
    }
    .btn-primary:hover {
      background-color: var(--color-primary-dark);
      border-color: var(--color-primary-dark);
    }
    .btn-outline-primary {
      color: var(--color-primary);
      border-color: var(--color-primary);
    }
    .btn-outline-primary:hover {
      background-color: var(--color-primary);
    }
    
    .main-container {
      width: 90%;
      max-width: 1500px;
      margin: 0 auto;
    }
    
/* inicio hero header */
.hero-section {
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.1));
  min-height: 50vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/banner1.png') center/cover no-repeat;
  animation: slideshow 24s infinite;
  z-index: -1;
}

@keyframes slideshow {
  0% {
    opacity: 1;
    background-image: url('../img/banner1.png');
  }
  25% {
    opacity: 1;
  }
  28% {
    opacity: 0;
  }
  28.1% {
    background-image: url('../img/banner2.png');
  }
  30% {
    opacity: 1;
  }
  55% {
    opacity: 1;
  }
  58% {
    opacity: 0;
  }
  58.1% {
    background-image: url('../img/banner3.png');
  }
  60% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  88% {
    opacity: 0;
  }
  88.1% {
    background-image: url('../img/banner1.png');
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

.hero-section::before {
  animation: slideshow 30s infinite ease-in-out;
}
/* fin hero header */
    
    .navbar {
      background-color: white;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .navbar-nav .nav-link {
      color: var(--dark-color);
      font-weight: 500;
      transition: all 0.3s ease;
    }
    
    .navbar-nav .nav-link:hover {
      color: var(--primary-color);
    }
    
    .card-feature {
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      height: 100%;
    }
    
    .card-feature:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .icon-feature {
      width: 60px;
      height: 60px;
      background-color: var(--primary-color);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 1rem;
    }
    
    footer {
      background-color: var(--dark-color);
      color: white;
    }
    
    footer a {
      color: #ddd;
      text-decoration: none;
      transition: color 0.3s ease;
    }
    
    footer a:hover {
      color: white;
    }
    
    @media (max-width: 992px) {
      .main-container {
        width: 90%;
      }
    }
    
    @media (max-width: 768px) {
      .main-container {
        width: 95%;
      }
    }

#lista-departamentos-1 li:hover i.icono {
  transform: scale(1.3);   /* aumenta el tamaño del icono */
}

#lista-departamentos-1 li:hover * {
  transform: scale(1.2);   /* escala los elementos hijos en general menos el ícono más grande */
  cursor: pointer;        /* cambia el cursor al pasar por encima del elemento */
}

.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(5px) brightness(0.7); /* Aumenté el oscurecimiento para mejor contraste */
  z-index: 1;
}

.card-feature {
  background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro semitransparente */
  color: white !important; /* Texto blanco forzado */
}

.card-feature .icon-feature i,
.card-feature .card-title,
.card-feature .card-text {
  color: white !important; /* Asegura que todos los textos sean blancos */
}

.card-feature:hover {
  transform: translateY(-5px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3); /* Sombra más pronunciada en hover */
}



/*-- cinta --*/
        .logos-container {
            width: 100%;
            max-width: 1250px;
            margin: 0 auto;
            padding: 20px 40px; /* Añadido padding para los botones */
            position: relative;
            overflow: hidden;
        }

        .logos-carousel {
            display: flex;
            overflow: visible; /* Cambiado a visible */
            justify-content: flex-start; /* Cambiado de center a flex-start */
            align-items: center;
            gap: 40px;
            padding: 20px 0;
            transition: transform 0.5s ease;
            will-change: transform;
        }

        .logo-item {
            flex: 0 0 auto; /* Cambiado para que no fuerce el tamaño */
            width: 250px; /* Definido ancho fijo */
            height: 150px;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            margin: 0 10px; /* Añadido margen para mejor espaciado */
        }

        .logo-item img {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            object-fit: contain;
            transition: transform 0.3s ease;
        }

        .logo-item:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        }

        .logo-item:hover img {
            transform: scale(1.1);
        }

        .nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0,0,0,0.6);
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 20px;
            cursor: pointer;
            z-index: 10;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .nav-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            background: rgba(0,0,0,0.3);
        }

        .prev-btn {
            left: 10px;
        }

        .next-btn {
            right: 10px;
        }

        @media (max-width: 768px) {
            .logos-carousel {
                gap: 20px;
            }
            
            .logo-item {
                flex: 0 0 180px;
                height: 120px;
            }
        }



/*-- fin cinta --*/

/* Estilos para la sección de noticias */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.featured-news {
  grid-column: 1;
}

.secondary-news {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.news-card.featured {
  height: 100%;
}

.news-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #e74c3c;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
}

.news-content {
  padding: 25px;
}

.news-card.featured .news-content {
  padding: 30px;
}

.news-date {
  display: block;
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.news-title {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.news-card.secondary .news-title {
  font-size: 1.2rem;
}

.news-excerpt {
  color: #34495e;
  margin-bottom: 20px;
  line-height: 1.6;
}

.read-more {
  color: #3498db;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.read-more i {
  transition: transform 0.3s ease;
}

.read-more:hover i {
  transform: translateX(3px);
}

/* Responsive */
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-news, .secondary-news {
    grid-column: 1;
  }
  
  .news-image {
    height: 200px;
  }
}

/* -------------- Tabla -------------------------*/


/* -------------- Tabla -------------------------*/

/* --------------  ficha tecnica -----------------*/
    .modal-ficha-container {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        color: var(--color-dark);
    }

    .ficha-section {
        background: var(--color-light);
        border-radius: 8px;
        padding: 15px;
        margin-bottom: 20px;
        border-left: 4px solid var(--color-primary);
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .section-title {
        color: var(--color-primary);
        font-weight: 600;
        margin-bottom: 15px;
        padding-bottom: 8px;
        border-bottom: 1px solid #dee2e6;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .detail-item {
        display: flex;
        flex-direction: column;
        margin-bottom: 12px;
        padding: 8px;
        background: white;
        border-radius: 6px;
        border: 1px solid rgba(0,0,0,0.08);
    }

    .detail-item-full {
        display: flex;
        flex-direction: column;
    }

    .detail-label {
        font-weight: 600;
        color: var(--color-primary-dark);
        font-size: 0.85rem;
        text-transform: uppercase;
        margin-bottom: 4px;
        letter-spacing: 0.5px;
    }

    .detail-value {
        color: var(--color-dark);
        font-size: 1rem;
    }

    .content-scrollable {
        max-height: 120px;
        overflow-y: auto;
        padding: 10px;
        background: white;
        border-radius: 4px;
        border: 1px solid #dee2e6;
        margin-top: 5px;
    }

    .btn-outline-primary {
        color: var(--color-primary);
        border-color: var(--color-primary);
    }

    .btn-outline-primary:hover {
        background-color: var(--color-primary);
        border-color: var(--color-primary);
        color: white;
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .ficha-section {
            padding: 10px;
        }
        
        .detail-item {
            margin-bottom: 10px;
        }
    }



/* --------------Fin Ficha tecnica------------------ */


.btn-pulse {
    animation: pulse-custom 2s infinite;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border: none;
}

@keyframes pulse-custom {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(75, 60, 140, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(75, 60, 140, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(75, 60, 140, 0);
    }
}




/* Estilos para mejorar la accesibilidad del modal */
.modal {
    /* Asegurar que el modal maneje correctamente el focus */
    outline: none;
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
}

/* Mejorar el focus para elementos de botón */
.btn:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Estilo específico para el botón de cerrar */
.btn-close:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}






/* Estilos compactos para el slider de periodos */
#sliderSiglos {
    height: 6px;
    margin: 10px 0;
}

#sliderSiglos .noUi-handle {
    height: 16px;
    width: 16px;
    right: -8px;
    top: -6px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: pointer;
}

#sliderSiglos .noUi-handle:after, 
#sliderSiglos .noUi-handle:before {
    display: none;
}

#sliderSiglos .noUi-tooltip {
    font-size: 10px;
    padding: 2px 5px;
    bottom: -25px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 3px;
}

#sliderSiglos .noUi-connect {
    background: var(--color-primary);
    opacity: 0.6;
}

#sliderSiglos .noUi-target {
    border: none;
    background: #dee2e6;
    border-radius: 3px;
}

#rangoSiglosValor {
    font-size: 0.8rem;
    padding: 4px 8px;
}

/* Responsive */
@media (max-width: 768px) {
    #sliderSiglos {
        margin: 12px 0;
    }
    
    #sliderSiglos .noUi-tooltip {
        font-size: 9px;
        padding: 1px 3px;
        bottom: -22px;
    }
    
    .d-flex.justify-content-between small {
        font-size: 0.7rem;
    }
}





        .fechas-container {
            display: flex;
            gap: 10px;
            align-items: center;
        }
        .fecha-input {
            flex: 1;
        }
        .separador {
            font-weight: bold;
        }
        .feedback-error {
            color: #dc3545;
            font-size: 0.875em;
        }
        .feedback-ok {
            color: #198754;
            font-size: 0.875em;
        }



.tags-container {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 0.5rem;
            min-height: 40px;
        }
        .tag {
            background-color: #e9ecef;
            padding: 0.25rem 0.5rem;
            border-radius: 0.25rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .tag-close {
            cursor: pointer;
            color: #6c757d;
        }
        .tag-close:hover {
            color: #dc3545;
        }
        .hidden-input {
            display: none;
        }      


.linknavegacion {
    color: rgba(255, 255, 255, 0.8) !important;
    border: 2px solid transparent;
    margin: 0 0.25rem;
}

.linknavegacion:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.linknavegacion.active {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-weight: 600 !important;
}

.linknavegacion i {
    font-size: 1.1em;
    vertical-align: middle;
}



.btn[href="/reparacionhistorica/admin/logout"]:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-1px);
}


/* fin ------------