/* ======= BASE ======= */
body {
    background-color: #f4f6f9;
    font-family: 'Segoe UI', sans-serif;
    color: #333;
  }
  
  .container {
    max-width: 1100px;
  }
  
  /* ======= AT&T COLORS ======= */
  .text-att {
    color: #00A8E0;
  }
  
  .bg-att {
    background-color: #00A8E0;
    color: white;
  }
  
  /* ======= NAV TABS ======= */
  .nav-tabs .nav-link {
    color: #003B6D;
    font-weight: 500;
    border: 1px solid #dee2e6;
    border-bottom: none;
    background-color: #DFF6FB;
    margin-right: 4px;
    transition: all 0.2s ease-in-out;
  }
  
  .nav-tabs .nav-link:hover {
    background-color: #00A8E0;
    color: white;
  }
  
  .nav-tabs .nav-link.active {
    background-color: #00A8E0;
    color: white;
    border-color: #00A8E0 #00A8E0 white;
  }
  
  /* ======= TAB CONTENT ======= */
  .tab-content {
    background-color: white;
    border: 1px solid #dee2e6;
    border-top: none;
    padding: 30px;
    border-radius: 0 0 6px 6px;
  }
  
  /* ======= EXPEDIENTE HEADER ======= */
  .expediente-header {
    border-left: 6px solid #00A8E0;
    padding-left: 15px;
    margin-bottom: 25px;
  }
  
  /* ======= DATA ROW STYLING ======= */
  .tab-content .row > div {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ccc;
  }
  
  .tab-content .row > div:last-child {
    border-bottom: none;
  }
  
  /* ======= MOBILE RESPONSIVE ======= */
  @media (max-width: 768px) {
    .tab-content .row > div {
      font-size: 14px;
    }
  
    .nav-tabs .nav-link {
      font-size: 14px;
      padding: 8px 10px;
    }
  }
  
  /* ======= ANIMACIONES ======= */

/* Fade + slide effect */
.tab-pane-animated {
    animation: fadeSlideIn 0.5s ease-in-out;
  }
  
  @keyframes fadeSlideIn {
    0% {
      opacity: 0;
      transform: translateY(15px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Transición suave en hover de tabs */
  .nav-tabs .nav-link {
    transition: all 0.3s ease-in-out;
  }
  
  /* ======= ANIMACIÓN ENTRE PESTAÑAS ======= */
.tab-transition {
    position: relative;
    overflow: hidden;
  }
  
  .tab-content-fade {
    animation: fadeTab 0.4s ease-in-out;
  }
  
  @keyframes fadeTab {
    0% {
      opacity: 0;
      transform: translateX(30px);
    }
    100% {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  /* ======= SUBTÍTULOS DE SECCIÓN (DATOS GENERALES) ======= */
.tab-content h5 {
  font-size: 1.1rem;
  font-weight: 600;
  border-left: 4px solid #00A8E0;
  padding-left: 12px;
  margin-top: 20px;
  margin-bottom: 20px;
  color: #003B6D;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-content h5 i {
  color: #00A8E0;
  font-size: 1rem;
}

/* ====== ESTILO PARA TABLA DE CAPACITACIONES ====== */
.tabla-capacitaciones th {
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
  font-weight: 600;
  font-size: 18px;
  background-color: #e6f7fb;
  color: #003B6D;
}

.tabla-capacitaciones td {
  font-size: 17px;
  vertical-align: middle;
  text-align: center;
}

/* Controlar largo del nombre de la sesión */
.tabla-capacitaciones td:first-child {
  max-width: 280px;
  word-wrap: break-word;
  white-space: normal;
}

/* ====== AJUSTES ESPECÍFICOS DE ANCHO EN ENCABEZADOS DE LA TABLA ====== */
.tabla-capacitaciones th:nth-child(2),
.tabla-capacitaciones th:nth-child(3),
.tabla-capacitaciones th:nth-child(4),
.tabla-capacitaciones th:nth-child(5),
.tabla-capacitaciones th:nth-child(6) {
  min-width: 120px;
}

/* ==== ELIMINAR SCROLL HORIZONTAL EN TAB DE CAPACITACIONES ==== */
body {
  overflow-x: hidden; /* Previene scroll horizontal en toda la página */
}

.tab-content {
  max-width: 100%;
  overflow-x: hidden; /* Asegura que no se desborde horizontalmente */
}

.table-responsive {
  overflow-x: auto;
}

/* Prevenir que tabla fuerce ancho mayor */
.tabla-capacitaciones {
  width: 100%;
  table-layout: auto;
}

/* REFORZAR eliminación de scroll horizontal */
body, html {
  overflow-x: hidden !important;
}

.tab-content,
.tab-transition,
.table-responsive {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.tabla-capacitaciones {
  width: 100% !important;
  table-layout: fixed !important;
  word-break: break-word;
}

