/* Centra el contenido en la página */
.vh-100 {
    min-height: 100vh;
}

/* Ajuste de ancho máximo para el formulario */
.card {
    width: 100%;
}

.item-preguntas{
    display: flex;
    gap: 15px;
    margin-top: 9.5vh;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}


.item-pregunta {
    padding: 18px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    border-radius: 12px;
    transition: .3s ease;
}

.title-size {
  font-size: 1vw;
}

.btn-tech-modern {
    background: linear-gradient(135deg, #052c33 0%, #02161a 100%);
    border: 2px solid #0dcaf0;
    border-radius: 15px;
    color: white;
    padding: 15px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-tech-modern:hover {
    box-shadow: 0 0 20px rgba(13, 202, 240, 0.4);
    transform: scale(1.01);
    background: linear-gradient(135deg, #083d47 0%, #03242b 100%);
}

.icon-box-tech {
    background: rgba(13, 202, 240, 0.2);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #0dcaf0;
    font-size: 1.4rem;
    border: 1px solid rgba(13, 202, 240, 0.3);
}

.btn-tech-modern:hover .icon-box-tech {
    background: #0dcaf0;
    color: #02161a;
    transform: rotate(10deg);
}

.arrow-toggle {
    font-size: 1.2rem;
    color: #0dcaf0;
    transition: transform 0.3s ease;
}

/* Animación de la flecha cuando se abre */
.btn-tech-modern[aria-expanded="true"] .arrow-toggle {
    transform: rotate(180deg);
}

.tracking-wider {
    letter-spacing: 1.5px;
}

.op-70 {
    opacity: 0.7;
}

.btn-ai-insight {
    background: rgba(13, 202, 240, 0.1) !important;
    border: 1px solid #0dcaf0 !important;
    color: #0dcaf0 !important;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-ai-insight:hover {
    background: #0dcaf0 !important;
    color: #000 !important;
    box-shadow: 0 0 15px rgba(13, 202, 240, 0.5);
}

@keyframes brainPulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}
.fa-brain {
    animation: brainPulse 2s infinite ease-in-out;
}

.btn-ai-insight:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 42, 108, 0.4);
    filter: brightness(1.2);
}

/* Efecto hover para el selector */
#responseSelector:focus {
    border-color: #2a48ad;
    box-shadow: 0 0 0 0.25rem rgba(42, 72, 173, 0.1);
}

/* Efecto hover para el botón de Ver Detalles */
#btnVerDetalles:hover {
    background-color: #f8f9fa !important;
    border-color: #2a48ad !important;
    transform: translateX(5px);
}

/* Efecto hover para el botón de IA */
#btnGenerarReporteIA {
    position: relative;
    overflow: hidden;
}

#btnGenerarReporteIA:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(26, 42, 108, 0.4);
}

#btnGenerarReporteIA::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(45deg);
    transition: 0.5s;
}

#btnGenerarReporteIA:hover::after {
    left: 120%;
}

/* Estilos Premium para Controles */
.premium-card {
    background: rgba(15, 23, 42, 0.9); /* Fondo oscuro profundo */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    color: #fff;
}

/* Efecto de borde neón similar a tu imagen */
.premium-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 20px;
    padding: 1.5px; 
    background: linear-gradient(45deg, transparent, #00d2ff, #3a7bd5, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
}

.premium-select {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #00d2ff !important;
    border-radius: 12px;
}

.premium-btn-ai {
    background: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 100%);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.premium-btn-ai:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.6);
}

.control-icon-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 10px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.control-icon-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    color: #00d2ff;
}

/* Alerta Roja Pulsante para casos Críticos (Acoso, Renuncia) */
.alert-critical-glow {
    border: 2px solid #ff0000 !important;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

.badge-critical {
    background: #000;
    color: #ff4d4d;
    border: 1px solid #ff4d4d;
    text-transform: uppercase;
    font-weight: 900;
}

/* Efecto de foco cuando se localiza una respuesta */
.highlight-alert {
    animation: glow-pulse 1.5s infinite alternate;
    transition: all 0.5s ease;
}

@keyframes glow-pulse {
    from {
        border-color: #0dcaf0;
        box-shadow: 0 0 5px rgba(13, 202, 240, 0.2);
    }
    to {
        border-color: #007bff;
        box-shadow: 0 0 20px rgba(0, 123, 255, 0.6);
    }
}

/* Estilo para las secciones del reporte IA */
.report-content br + br {
    display: block;
    content: "";
    margin-top: 10px;
}

dotlottie-player {
    display: block;
    margin: 0 auto;
    max-width: 100% !important;
}

/* Arreglo para el botón de la matriz */
.custom-detail-btn:hover {
    background-color: #212529 !important; /* Fondo oscuro al pasar el mouse */
    color: #ffffff !important;           /* Texto blanco */
    border-color: #212529 !important;
}

.custom-detail-btn:hover i {
    color: #0dcaf0 !important;           /* El icono se pone cian en hover para el toque pro */
}

/* Opcional: Para que el ID completo no rompa el diseño en pantallas muy pequeñas */
.font-monospace {
    word-break: break-all;
}

.contenedorRespuestasTema .card {
    transition: transform 0.2s;
    border-left: 4px solid #dee2e6;
}

.contenedorRespuestasTema .card:hover {
    transform: translateX(5px);
    border-left-color: #007bff;
}

.modal-dialog-scrollable .modal-body {
    max-height: 70vh;
    /* Ajuste para que no se pierda en pantallas pequeñas */
    overflow-y: auto;
}


/* Evita que las tarjetas se corten entre páginas del PDF */
.action-card-pdf, .card {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
}

/* Asegura que el fondo sea blanco en la exportación */
#actionPlanArea {
    background-color: white !important;
}