:root {
  --primary-color: #0055a4;
  /* Blue */
  --secondary-color: #ffd700;
  /* Yellow */
  --accent-color: #ef3340;
  /* Red */
  --background-color: #f4f7fc;
  --text-color: #333;
  --light-gray: #e9ecef;
  --dark-gray: #495057;
  --font-family: "Montserrat", sans-serif;
  --azul-gov: #004884;
}

body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}



a.service-card-link {
  text-decoration: none;
  color: inherit;
  /* Hereda el color del texto para que no se vea azul */
  display: block;
  /* Asegura que el enlace ocupe todo el espacio de la tarjeta */
}

/* Efecto visual al pasar el cursor sobre la tarjeta */
a.service-card-link .service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease-in-out;
}

/*
 * Estilos para las Tarjetas del Directorio de Dependencias
 */
.directory-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
}

.directory-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 72, 132, 0.1);
  border-color: #004884;
}

.directory-card .card-title {
  color: #004884;
  font-weight: 700;
  margin-bottom: 1rem;
}

.directory-card .list-unstyled i {
  color: #004884;
  width: 20px; /* Alinea los iconos y el texto */
  text-align: center;
}

.directory-card .list-unstyled a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.directory-card .list-unstyled a:hover {
  text-decoration: underline;
  color: #004884;
}

/*
 * Estilos personalizados para el botón principal de la VUD
 */
.btn-vud-primary {
  background-color: #004884; /* Tu color personalizado */
  color: #ffffff;
  font-weight: 600;
  padding: 10px 30px; /* Ajusta el tamaño del botón */
  border: none;
  border-radius: 8px;
  transition: all 0.2s ease-in-out; /* Transición suave para el hover */
}

.btn-vud-primary:hover {
  background-color: #003366; /* Un tono más oscuro para el hover */
  color: #ffffff;
  transform: scale(1.05); /* Agranda ligeramente el botón */
  box-shadow: 0 4px 15px rgba(0, 72, 132, 0.4); /* Sombra sutil */
}

/*
 * Estilos para el Breadcrumb Personalizado
 */
.custom-breadcrumb .breadcrumb {
  background-color: #e9ecef; /* Un fondo gris claro */
  padding: 0.75rem 1.5rem;
  border-radius: 0.35rem;
  margin-bottom: 0; /* Quitamos el margen inferior por defecto */
}

.custom-breadcrumb .breadcrumb-item a {
  color: #004884; /* Color primario para los enlaces */
  text-decoration: none;
  font-weight: 500;
}

.custom-breadcrumb .breadcrumb-item a:hover {
  text-decoration: underline;
}

.custom-breadcrumb .breadcrumb-item.active {
  color: #495057; /* Un color más oscuro para la página actual */
  font-weight: 600;
}

/* Estilo para el separador (>) */
.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: #6c757d;
}

/* Header */
.gov-header {
  background-color: #fff;
  padding: 10px 0;
  border-bottom: 3px solid var(--primary-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-logos {
  display: flex;
  align-items: center;
}

.logo-gov {
  height: 40px;
}

.logo-entity {
  height: 45px;
  margin-left: 15px;
}

.divider {
  border-left: 2px solid var(--light-gray);
  height: 35px;
  margin-left: 15px;
}

.header-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  text-align: center;
}


/* Main Content */
.main-container {
  flex-grow: 1;
  display: flex;
  align-items: center;
  padding: 40px 0;
  background-image: url("../img/background.png");
  background-size: cover;
  background-position: center;
}

.login-card {
  background-color: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  backdrop-filter: blur(5px);
}

.card-body {
  padding: 2.5rem;
}

.card-title {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.card-subtitle {
  color: var(--dark-gray);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.form-label {
  font-weight: 600;
  color: var(--dark-gray);
}

.form-control,
.form-select {
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #ced4da;
  transition: all 0.3s;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(0, 85, 164, 0.25);
}

.btn-login {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
  padding: 12px;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.btn-login:hover {
  background-color: #004182;
}

.forgot-password-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
}

.separator {
  display: flex;
  align-items: center;
  text-align: center;
  color: #aaa;
  margin: 1.5rem 0;
}

.separator::before,
.separator::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ddd;
}

.separator:not(:empty)::before {
  margin-right: 0.5em;
}

.separator:not(:empty)::after {
  margin-left: 0.5em;
}

.btn-digital-id {
  background-color: #fff;
  border: 1px solid #ddd;
  color: var(--text-color);
  font-weight: 600;
  padding: 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.btn-digital-id:hover {
  background-color: var(--light-gray);
}

.btn-digital-id img {
  height: 24px;
}

.register-text {
  font-size: 0.9rem;
}

.register-text a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

.back-to-home {
  display: inline-block;
  color: var(--dark-gray);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.back-to-home:hover {
  color: var(--primary-color);
}

/* Portal Page Styles */
.portal-header {
  background-color: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.welcome-message {
  font-size: 1.2rem;
}

.welcome-message span {
  font-weight: 600;
  color: var(--primary-color);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.search-bar {
  position: relative;
}

.search-bar .form-control {
  padding-left: 2.5rem;
  border-radius: 20px;
  background-color: var(--background-color);
}

.search-bar .fa-search {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.btn-logout {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.btn-logout:hover {
  background-color: #c82333;
  color: white;
  border-color: #bd2130;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  padding: 2rem 0;
}

.dashboard-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  padding: 1.5rem;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: var(--text-color);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 85, 164, 0.15);
  color: var(--text-color);
}

.card-icon-wrapper {
  background-color: rgba(0, 85, 164, 0.1);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.dashboard-card .icon {
  font-size: 1.8rem;
  color: var(--primary-color);
  transition: color 0.3s;
  margin: 0;
}

.dashboard-card:hover .card-icon-wrapper {
  background-color: var(--primary-color);
}

.dashboard-card:hover .icon {
  color: #fff;
}

.card-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--primary-color);
}

.card-content p {
  font-size: 0.85rem;
  margin-bottom: 0;
  color: var(--dark-gray);
  line-height: 1.4;
}

/* Gallery Slider Section */
.gallery-section {
  background-color: #fff;
}

.carousel-inner {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-item img {
  height: 500px;
  object-fit: cover;
  width: 100%;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  padding: 1rem;
}

/* New Home Page Styles */
.hero-section {
  background: linear-gradient(rgba(0, 85, 164, 0.7), rgba(0, 41, 82, 0.8)),
    url("../img/background.png") no-repeat center center;
  background-size: cover;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}

.btn-hero {
  padding: 0.8rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.section-title {
  color: var(--primary-color);
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
}

.features-section {
  background-color: #fff;
}

.feature-icon-wrapper {
  width: 90px;
  height: 90px;
  margin: 0 auto;
  background-color: rgba(0, 85, 164, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 2rem;
  transition: all 0.3s ease;
}

.features-section .col-md-4:hover .feature-icon-wrapper {
  background-color: var(--primary-color);
  color: #fff;
  transform: scale(1.1);
}

.services-section {
  background-color: var(--background-color);
}

.service-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 85, 164, 0.12);
}

.service-card .service-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-card h5 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--dark-gray);
}

/* Footer */
.gov-footer {
  background-color: var(--azul-gov);
  color: #fff;
  padding: 20px 0;
  font-size: 0.85rem;
}

.social-media-links {
  padding-top: 10px;
}

.social-icon {
  color: #fff;
  margin: 0 10px;
  font-size: 1.5rem;
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
}

.social-icon:hover {
  color: var(--secondary-color);
  transform: scale(1.2);
}

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: transform 0.3s ease;
  z-index: 1000;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  color: #fff;
}

@media (max-width: 767px) {
  .gov-header .container {
    flex-direction: column;
    gap: 10px;
  }

  .header-logos {
    width: 100%;
    justify-content: center;
  }

  .header-title {
    font-size: 1rem;
    text-align: center;
  }

  .logo-gov {
    height: 35px;
  }

  .logo-entity {
    height: 40px;
  }

  .hero-section {
    padding: 60px 0;
    min-height: auto;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .main-container {
    padding: 20px 0;
  }

  .card-body {
    padding: 1.5rem;
  }

  .card-title {
    font-size: 1.75rem;
  }

  .card-subtitle {
    font-size: 0.9rem;
  }

  .carousel-item img {
    height: 300px;
  }

  .gov-footer {
    font-size: 0.8rem;
  }

  .user-info {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .btn-logout {
    width: 100%;
  }
}
