/* ==========================================================================
   ESTILOS PERSONALIZADOS PARA TABS 
   ========================================================================== */
   .custom-tabs .nav-link {
    color: #32508C;
    font-weight: 600;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 20px;
    transition: all 0.3s ease;
    background: transparent;
  }
  
  .custom-tabs .nav-link:hover {
    color: #232A40;
    border-color: transparent;
  }
  
  .custom-tabs .nav-link.active {
    color: #c29367;
    background-color: transparent;
    border-color: transparent;
    border-bottom: 3px solid #c29367;
  }
  
  /* ==========================================================================
     EFECTO FLIP CARD (CARTA GIRATORIA 3D) 
     ========================================================================== */
  .flip-card {
    background-color: transparent;
    width: 100%;
    max-width: 600px;
    height: 400px;
    perspective: 1000px;
  }
  
  .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: 8px;
  }
  
  #exampleModalCenter:not(.zoom-active) .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
  
  .flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    cursor: zoom-in;
  }
  
  .flip-card-front {
    z-index: 2;
    transform: rotateY(0deg);
  }
  
  .flip-card-back {
    transform: rotateY(180deg);
  }
  
  .flip-card img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    pointer-events: none;
  }
  
  #imgHoverDocente img {
    cursor: zoom-in;
  }
  
  /* ==========================================================================
     ESTILOS PARA EL ZOOM OVERLAY (LIGHTBOX)
     ========================================================================== */
  .zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; 
  }
  
  .zoom-overlay.visible {
    opacity: 1;
    pointer-events: auto; 
  }
  
  .zoom-overlay img {
    max-width: 85%;
    max-height: 80vh; 
    object-fit: contain;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: zoom-out; 
  }
  
  .zoom-overlay .close-zoom {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 50px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10001;
  }
  
  .zoom-overlay .close-zoom:hover {
    color: #c29367; 
  }
  
  .zoom-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10002;
  }
  
  .zoom-nav-btn:hover {
    background: #c29367;
    color: #000;
    border-color: #c29367;
    box-shadow: 0 0 15px #c29367;
  }
  
  .zoom-prev { left: 40px; }
  .zoom-next { right: 40px; }
  
  .zoom-overlay .zoom-caption {
    margin-top: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
  }
  
  /* ==========================================================================
     ANULACIÓN FORZADA DEL BLUR EN EL MODAL (PREVIENE BUG DE NAVEGADOR)
     ========================================================================== */
  #exampleModalCenter.zoom-active .flip-card-inner {
    transform: none !important; 
    transition: none !important; 
  }
  
  #exampleModalCenter .modal-content,
  #exampleModalCenter .modal-body,
  #exampleModalCenter.zoom-active .modal-content,
  #exampleModalCenter.zoom-active .modal-body {
    filter: none !important;
    -webkit-filter: none !important;
  }