/* Estilos generales */

:root {
  --gam-color: #7d2735;
  --gam-secondary: #bc955c;
}

/* Estilos de los tabs principales */
.custom-tab {
  color: #333;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  transition: all 0.3s ease;
  padding: 1rem;
  font-weight: 500;
}

.custom-tab:hover,
.nav-tabs .nav-link.active.custom-tab {
  background: #7d2735;
  color: white;
}

.custom-tab2 {
  color: #7d2735;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  transition: all 0.3s ease;
  padding: 1rem;
  font-weight: 500;
}

.tab-title {
  font-size: 1.1rem;
  text-align: center;
  line-height: 1.4;
}

/* Estilos para los años y documentos */
.year-link {
  transition: all 0.3s ease;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
}

.year-link:hover {
  background-color: var(--gam-color);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--gam-color);
}

/* Estilos para los sub-tabs y documentos */
.year-tab {
  color: #495057;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  margin: 0 4px;
  transition: all 0.3s ease;
}

.year-tab:hover,
.year-tab.active {
  background-color: var(--gam-color);
  color: white;
  border-color: var(--gam-color);
}

.program-section {
  background-color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}

.document-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.document-link {
  display: flex;
  align-items: center;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #495057;
}

.document-link:hover {
  background-color: var(--gam-color);
  color: white;
  transform: translateY(-2px);
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff !important;
  background-color: var(--gam-color) !important;
}

.nav-pills .nav-link:hover {
  background-color: var(--gam-color);
  color: white;
}

/* Si también quieres modificar el estilo del hover */
.year-tab:hover,
.year-tab.active {
  background-color: var(--gam-color) !important;
  color: white !important;
  border-color: var(--gam-color) !important;
}

.text-manual {
  position: relative;
  display: inline-block;
  text-decoration: none;
  /* por si acaso */
  color: inherit;
  /* para mantener el color original */
}

.text-manual::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #bc955c;
  transition: width 0.3s ease;
}

.text-manual:hover::after {
  width: 100%;
}

.category-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 10px;
  border-left: 4px solid var(--gam-color);
}

.category-title {
  color: var(--gam-color);
  margin-bottom: 1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.document-card {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.document-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(125, 39, 53, 0.2);
  text-decoration: none;
  color: inherit;
  border-color: var(--gam-secondary);
}

.document-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gam-color);
  margin: 0;
  line-height: 1.4;
}

.document-icon {
  color: var(--gam-secondary);
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.manual-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px solid #dee2e6;
    transition: border-color 0.3s ease;
}

.manual-section:hover {
    border-color: var(--gam-secondary);
}

.manual-title {
  color: var(--gam-color);
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
}

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

.custom-tab {
  border-color: var(--gam-color);
}

.custom-tab.active {
  background-color: var(--gam-color);
  color: white;
}

.year-tab {
  background-color: var(--gam-secondary);
  color: white;
  border-color: var(--gam-secondary);
}

.year-tab.active {
  background-color: var(--gam-color);
  border-color: var(--gam-color);
}

.section-title {
  color: var(--gam-color);
}

.program-title {
  color: var(--gam-color);
  border-bottom: 2px solid var(--gam-secondary);
  padding-bottom: 0.5rem;
}

.document-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: var(--gam-color);
  transition: all 0.3s ease;
}

.document-link:hover {
  background: var(--gam-color);
  color: white;
  text-decoration: none;
}

.year-link {
  border-color: var(--gam-secondary);
}

.year-link:hover {
  background-color: var(--gam-color);
  color: white;
}
