/* ==========================================
   DNPC UNIVERSITY CRM - DESIGN SYSTEM
   Palette: Navy (#0F172A), Slate (#1E293B), Gold (#D4AF37)
============================================= */

/* Fuente de Google Fonts para dar una apariencia moderna y premium */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

.dnpc-wrap, .dnpc-portal-wrap, #dnpc-lead-capture-form {
    font-family: 'Outfit', sans-serif !important;
}

/* Colores de Fondo y Contenedores */
.bg-navy {
    background-color: #0F172A !important;
}

.bg-slate {
    background-color: #1E293B !important;
}

.bg-slate-light {
    background-color: #334155 !important;
}

.border-slate {
    border-color: #334155 !important;
}

.border-slate-light {
    border-color: #475569 !important;
}

/* Tipografía de Dorado y Resaltes */
.dnpc-title-gold {
    color: #D4AF37 !important;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.text-muted-gold {
    color: #94A3B8 !important;
}

.text-warning {
    color: #F1C40F !important;
}

/* Botones Premium */
.btn-gold {
    background-color: #D4AF37 !important;
    color: #0F172A !important;
    border: none !important;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-gold:hover {
    background-color: #F1C40F !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-outline-gold {
    color: #D4AF37 !important;
    border-color: #D4AF37 !important;
    background-color: transparent !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover, .btn-outline-gold.active {
    background-color: #D4AF37 !important;
    color: #0F172A !important;
    border-color: #D4AF37 !important;
}

/* Tarjetas y Elementos */
.dnpc-card {
    background-color: #1E293B;
    border: 1px solid #334155;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dnpc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.5);
    border-color: #D4AF37;
}

/* Formulario Inputs */
.dnpc-input {
    background-color: #0F172A !important;
    border: 1px solid #334155 !important;
    color: #FFFFFF !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
}

.dnpc-input:focus {
    border-color: #D4AF37 !important;
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25) !important;
    outline: none !important;
}

/* Alertas de color Dorado */
.alert-info-gold {
    background-color: #2B2515 !important;
    border: 1px solid #D4AF37 !important;
    color: #F1C40F !important;
}

/* ==========================================
   TABLERO KANBAN ESTILOS
============================================= */
.dnpc-kanban-column {
    min-width: 280px;
    max-width: 320px;
}

.dnpc-kanban-cards-container {
    background-color: #111827;
    border-radius: 0 0 8px 8px;
    padding: 8px;
    transition: background-color 0.2s ease;
}

.dnpc-kanban-cards-container.dragover {
    background-color: #1F2937;
    border: 2px dashed #D4AF37;
}

.dnpc-kanban-card {
    cursor: grab;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 3px solid #334155 !important;
}

.dnpc-kanban-card:active {
    cursor: grabbing;
}

.dnpc-kanban-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-left-color: #D4AF37 !important;
}

.dnpc-kanban-card.dragging {
    opacity: 0.4;
    transform: scale(0.98);
}

.dnpc-empty-card {
    border: 2px dashed #1E293B;
    border-radius: 8px;
    color: #4B5563;
}

.hover-gold:hover {
    color: #D4AF37 !important;
}

/* ==========================================
   LÍNEAS DE TIEMPO / TIMELINES
============================================= */
.dnpc-activity-timeline, .dnpc-activity-timeline-extended {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid #334155;
}

.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #D4AF37;
    border: 2px solid #0F172A;
}

/* Animación rápida de Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* ==========================================
   ANCHO DE TABLAS Y CONTENEDORES ADMIN
============================================= */
.dnpc-wrap {
    width: 100% !important;
    max-width: 100% !important;
}

.dnpc-wrap .card {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important; /* Evita colapsos de flexbox en admin */
}

.dnpc-wrap .table-responsive {
    width: 100% !important;
    display: block !important;
}

.dnpc-wrap table {
    width: 100% !important;
    table-layout: auto !important;
}

/* ==========================================
   FASE 3: ESTILOS DE EXPEDIENTES, ACORDEONES Y CHAT
============================================= */

/* Acordeón Premium */
.dnpc-accordion .accordion-item {
    background-color: #0F172A !important;
    border-color: #334155 !important;
}

.dnpc-accordion .accordion-button {
    background-color: #1E293B !important;
    color: #FFFFFF !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600;
}

.dnpc-accordion .accordion-button:not(.collapsed) {
    background-color: #334155 !important;
    color: #D4AF37 !important;
    box-shadow: none !important;
}

.dnpc-accordion .accordion-button::after {
    filter: invert(1);
}

.dnpc-accordion .accordion-button:focus {
    box-shadow: none !important;
    border-color: #D4AF37 !important;
}

/* Chat de tickets y documentos */
#modal-ticket-chat-messages::-webkit-scrollbar,
#modal-doc-comments-chat::-webkit-scrollbar {
    width: 6px;
}

#modal-ticket-chat-messages::-webkit-scrollbar-thumb,
#modal-doc-comments-chat::-webkit-scrollbar-thumb {
    background-color: #334155;
    border-radius: 3px;
}

/* Estilo para los range sliders */
.form-range::-webkit-slider-thumb {
    background: #D4AF37 !important;
}
.form-range::-moz-range-thumb {
    background: #D4AF37 !important;
}
.form-range::-ms-thumb {
    background: #D4AF37 !important;
}

/* Ficha Única - Profesores List */
.cif-prof-row {
    animation: fadeIn 0.3s ease-in-out;
}

.fs-7 {
    font-size: 0.8rem !important;
}

/* ==========================================
   FASE 4: ESTILOS DE LANDING PAGE PREMIUM
   Efectos visuales y micro-interacciones
   ============================================= */
html {
    scroll-behavior: smooth !important;
}

.text-gold-gradient {
    background: linear-gradient(135deg, #FFE082 0%, #D4AF37 50%, #B38F24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tracking-wide {
    letter-spacing: 0.1em;
}

.max-w-2xl {
    max-width: 42rem;
}


.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================
   ESTILOS PARA EL TABLERO KANBAN DEL CRM
   ============================================= */
#dnpc-kanban-view {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-bottom: 1.5rem !important;
    -webkit-overflow-scrolling: touch;
}

/* Personalizar barra de desplazamiento del Kanban */
#dnpc-kanban-view::-webkit-scrollbar {
    height: 10px;
    background-color: #0F172A;
}

#dnpc-kanban-view::-webkit-scrollbar-thumb {
    background-color: #334155;
    border-radius: 6px;
    border: 2px solid #0F172A;
}

#dnpc-kanban-view::-webkit-scrollbar-thumb:hover {
    background-color: #D4AF37;
}

/* Forzar ancho exacto de las columnas del Kanban */
.dnpc-kanban-column {
    min-width: 300px !important;
    max-width: 300px !important;
    width: 300px !important;
    flex: 0 0 300px !important;
}

