/* VARIABLES DE COLOR */

:root {
    --primary-blue: #0056b3;
    --light-blue: #e7f1ff;
    --bg-body: #f8f9fa;
    --text-main: #334155;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    
}
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    border-top: 1px solid #CCC;
    margin-top: 1rem;
    background-color: #fff
}

footer p {
    text-align: center;
    font-size: 1rem;
    color: #000
}

footer p a {
    text-decoration: none;
    color: #000
}
body {
    background-color: var(--bg-body);
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    margin: 0;

}
/*Estilos para los filtros de estado del cliente*/
/* Estilos para los mini filtros de estado */
.mini-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.2s;
}
.stat-pill.selected {
    border-color: #007bff !important; /* Azul marcado */
    background-color: #f0f7ff !important; /* Fondo suave azul */
    color: #0056b3 !important;
    transform: translateY(-2px); /* Un pequeño salto hacia arriba */
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2) !important;
}

.mini-stat .num {
    background: rgba(0,0,0,0.05);
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 700;
}

.mini-stat.active .dot { background: #28a745; width: 8px; height: 8px; border-radius: 50%; }
.mini-stat.pending .dot { background: #ffc107; width: 8px; height: 8px; border-radius: 50%; }
.mini-stat.closed .dot { background: #dc3545; width: 8px; height: 8px; border-radius: 50%; }

/* Efecto seleccionado / activo */
.mini-stat.selected {
    background: #fff;
    border-color: #007bff;
    color: #007bff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.mini-stat:hover {
    background: #fff;
    border-color: #adb5bd;
    color: #333;
}

/* NAVBAR */
/* Ajuste del logo en el Nav */
.nav-logo {
    height: 35px; /* Altura contenida para que el header no sea gigante */
    width: auto;  /* Mantiene la proporción */
    display: block;
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.8;
}

/* Asegurar que el contenido del nav esté alineado */
.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 70px; /* Altura estándar profesional */
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Estilo para el perfil de usuario para que se vea más pro */
.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f1f5f9;
    padding: 5px 15px;
    border-radius: 50px; /* Estilo píldora */
    margin-left: 20px;
}

.user-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.logout-btn {
    color: #ef4444; /* Rojo suave para salir */
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.logout-btn:hover {
    color: #b91c1c;
}
.main-nav {
    background: var(--white);
    height: 70px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-content {
    width: 95%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    color: var(--primary-blue);
}
.brand-link {
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px; /* Espacio entre Usuarios y el Perfil */
}

.nav-item {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-item:hover {
    color: var(--primary-blue);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 20px;
    border-left: 1px solid #eee; /* Línea divisoria suave */
}

.user-name {
    font-size: 0.9rem;
    color: #64748b;
}

.logout-btn {
    background: #fee2e2; /* Rojo muy suave */
    color: #ef4444;      /* Rojo alerta */
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #ef4444;
    color: #ffffff;
}

/* Ajuste para iconos */
.nav-links i {
    margin-right: 5px;
}
/* Botón de ver incidencia */
.btn-view-ticket {
    background-color: #2563eb; /* Tu azul corporativo */
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-view-ticket i {
    font-size: 0.9rem;
}

.btn-view-ticket:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-view-ticket:active {
    transform: translateY(0);
}

/* Alineación de la celda de acciones */
.gap-2 {
    gap: 0.5rem !important;
}

/* LAYOUT CON SIDEBAR */
.layout {
    display: flex;
    margin-top: 70px;
}

.sidebar {
    width: 260px;
    background: var(--white);
    height: calc(100vh - 70px);
    padding: 20px;
    position: fixed;
    border-right: 1px solid var(--border-color);
}

.nav-link {
    display: block;
    padding: 12px 15px;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: 0.3s;
}

.nav-link:hover {
    background: var(--light-blue);
    color: var(--primary-blue);
}

.contenedor-principal {
    margin-left: 260px;
    width: calc(100% - 260px);
    padding: 30px;
}

/* DASHBOARD STATS */
.dashboard-header {
    margin-bottom: 40px;
}
.stats-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    margin-top: 20px;
}
.chart-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}
.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}
.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    border-bottom: 4px solid #cbd5e1;
}
.stat-card:hover { transform: translateY(-5px); }
.stat-card.active { border-color: #007bff; }
.stat-card.pending { border-color: #ffc107; }
.stat-card.closed { border-color: #28a745; }

.stat-card .label { display: block; font-size: 0.9rem; opacity: 0.7; }
.stat-card .value { font-size: 1.8rem; font-weight: bold; }

/* CARDS DE INCIDENCIAS */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.ticket-card {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    box-shadow: var(--shadow);
    border: 1px solid transparent;
    transition: 0.3s;
}

.ticket-card:hover { border-color: var(--primary-blue); }

.ticket-card.unread {
    border-left: 5px solid var(--primary-blue);
}

.card-tag {
    font-size: 0.8rem;
    font-weight: bold;
    color: #94a3b8;
    margin-bottom: 10px;
}

.ticket-subject {
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    color: #1e293b;
}

.ticket-email { font-size: 0.85rem; color: #64748b; }

.ticket-info {
    margin: 15px 0;
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.card-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: white;
}

.bg-active { background: #007bff; }
.bg-pending { background: #ffc107; color: #000; }
.bg-closed { background: #28a745; }

.btn-open {
    width: 100%;
    margin-top: 20px;
    background: var(--light-blue);
    border: none;
    padding: 10px;
    border-radius: 8px;
    color: var(--primary-blue);
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-open:hover { background: var(--primary-blue); color: white; }

/* PAGINACIÓN */
.pagination-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-btn {
    border: 1px solid var(--border-color);
    background: white;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
}

.page-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}
/* Contenedor de Detalle */
.ticket-detail-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Header y Toolbar */
.ticket-header-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.ticket-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.tool-item {
    flex: 1;
    min-width: 150px;
}

.tool-item label {
    display: block;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 5px;
}

.select-custom {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

/* Estilos de Chat */
.chat-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-bottom: 10px;
}

.message-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 75%;
}

.message-wrapper.client { align-self: flex-start; }
.message-wrapper.support { align-self: flex-end; }

.message-info {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #64748b;
}

.message-bubble {
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.client .message-bubble {
    background: white;
    color: var(--text-main);
    border-bottom-left-radius: 2px;
}

.support .message-bubble {
    background: var(--primary-blue);
    color: white;
    border-bottom-right-radius: 2px;
}

/* Caja de Respuesta Fija o Inferior */
.reply-box {
    background: white;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    margin-top: 30px;
}

.custom-textarea {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    height: 120px !important;
}

.custom-textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px var(--light-blue);
}
/*Estilos para usuarios*/
/* Card Contenedora */
.card-usuarios {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
}

/* Tabla Personalizada */
.table-custom thead th {
    background: #f8fafc;
    color: #64748b;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-top: none;
    padding: 15px;
}

.table-custom tbody td {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

/* Avatar del usuario */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 35px;
    height: 35px;
    background: var(--light-blue);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Badges y Estados */
.badge-custom {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-admin { background: #e0e7ff; color: #4338ca; }
.badge-user { background: #f1f5f9; color: #475569; }

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-active-user { background-color: #22c55e; box-shadow: 0 0 8px #22c55e; }
.status-inactive { background-color: #ef4444; }

/* Botón Crear Usuario */
.btn-crear-usuario {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-crear-usuario:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* Botón Eliminar */
.btn-action-delete {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-action-delete:hover {
    background: #ef4444;
    color: white;
}
/*Estilos para crear nuevo usuario*/
/* Contenedor Principal para centrar el formulario */
.contenedor-principal {
    min-height: calc(100vh - 70px); /* Ajuste según altura de tu navbar */
    padding: 40px 20px;
}

/* Tarjeta del Formulario */
.form-card-container {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

/* Encabezado de la Tarjeta */
.form-card-header {
    background: var(--primary-blue);
    padding: 40px 20px;
    text-align: center;
    color: white;
}

.header-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.form-card-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.form-card-header p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 5px 0 0 0;
}

/* Cuerpo del Formulario */
.form-card-body {
    padding: 30px 40px;
}

.custom-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
}

.custom-form label i {
    margin-right: 5px;
    color: var(--primary-blue);
}

.custom-form input, 
.form-select-custom {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.custom-form input:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 4px var(--light-blue);
}

/* Botones */
.form-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-primary-custom {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

.btn-cancel-custom {
    text-align: center;
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.btn-cancel-custom:hover {
    color: #ef4444;
}
/*Estilos para el login */
/* Configuración General */
.bg-light-clean {
    background-color: #f8fafc; /* Gris azulado muy claro del panel */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, sans-serif;
    margin: 0;
}

.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px;
}

/* ESTILO DE TÍTULO (Impacto) */
.brand-title {
    font-size: 3rem;
    font-weight: 900;
    color: #1e293b;
    letter-spacing: -1.5px;
    margin-bottom: 0;
}

.brand-title span {
    color: #2563eb; /* Tu azul corporativo */
}

.brand-tagline {
    color: #64748b;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 5px;
}

/* ESTILO DE FORMULARIO (Anterior que te gustó) */
.login-box-modern {
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.login-box-content {
    padding: 40px;
}

.login-box-content h3 {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 5px;
    font-size: 1.25rem;
}

.subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* Inputs Modernos */
.form-group-custom label {
    display: block;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.form-control-modern {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s;
    background-color: #ffffff;
}

.form-control-modern:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Botón que combina con el panel */
.btn-primary-modern {
    width: 100%;
    background-color: #2563eb; /* Azul corporativo */
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.3s, transform 0.2s;
    cursor: pointer;
}

.btn-primary-modern:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

/* Footer de la Card */
.login-box-footer {
    background-color: #f8fafc;
    padding: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    border-top: 1px solid #e2e8f0;
}
/* Contenedor del logo para centrarlo y darle aire */
.brand-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Estilo de la imagen */
.login-logo {
    max-width: 250px; /* Ajusta este ancho según sea tu logo (alargado o cuadrado) */
    height: auto;     /* Mantiene la proporción */
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.05)); /* Sombra suave solo a la forma del logo */
    transition: transform 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.02); /* Efecto sutil al pasar el ratón */
}

/* Ajuste para que el wrapper no pegue el logo al techo */
.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}
/* Estilos para la parte de clientes */
/* Estilo para las filas clicables */
.row-clickable {
    cursor: pointer;
    transition: background-color 0.2s;
}

.row-clickable:hover {
    background-color: #f8fafc !important;
}

/* Avatar específico para clientes */
.client-bg {
    background: #ecfdf5 !important; /* Verde menta muy suave */
    color: #059669 !important;      /* Verde esmeralda */
}

/* Panel de Resumen */
.resumen-container {
    background: #f8fafc;
    border-radius: 15px;
    border: 2px dashed #e2e8f0;
    min-height: 100px;
    padding: 20px;
    transition: all 0.3s ease;
}

.resumen-container:not(:empty) {
    background: white;
    border: 1px solid #f1f5f9;
    border-left: 4px solid var(--primary-blue);
    box-shadow: var(--shadow);
}

/* Alineación de tabla */
.table-custom thead th {
    border-bottom: 2px solid #f1f5f9;
}
/* Estilos para el resumen de clientes al hacer click en uno de ellos */
/* Toolbar y Filtros */
.toolbar-filtros {
    background: #f1f5f9;
    padding: 15px;
    border-radius: 12px;
}

.form-label-sm {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

/* Botones */
.btn-excel-custom {
    background: #10b981;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.3s;
}

.btn-filtrar-azul {
    background: var(--primary-blue);
    color: white;
    border: none;
    height: 31px;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* Tags de Prioridad */
.pri-tag {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.pri-critica { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.pri-alta { background: #ffedd5; color: #d97706; border: 1px solid #fed7aa; }
.pri-media { background: #eff6ff; color: #2563eb; border: 1px solid #dbeafe; }
.pri-baja { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }

/* Estados */
.badge-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}
.status-active { background: #dcfce7; color: #166534; }
.status-pending { background: #fef9c3; color: #854d0e; }
.status-closed { background: #f1f5f9; color: #475569; }

/* Icono de Notas */
.btn-notes-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: var(--primary-blue);
    transition: 0.3s;
}
.btn-notes-circle:hover { background: var(--primary-blue); color: white; }

/* Paginación */
.page-num {
    border: 1px solid #e2e8f0;
    background: white;
    width: 35px;
    height: 35px;
    margin: 0 4px;
    border-radius: 8px;
    transition: 0.3s;
}
.page-num.active { background: var(--primary-blue); color: white; border-color: var(--primary-blue); }

/*Filtro para el resumen de clientes */
/* Animación de entrada */
.fade-in {
    animation: fadeIn 0.4s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Contenedor principal del resumen */
.card-resumen-header {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px 16px 0 0; /* Redondeado solo arriba */
    padding: 25px;
    border-bottom: none;
}

.header-top-row {
    padding-bottom: 20px;
}

/* Caja de icono */
.icon-box-blue {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* Toolbar de filtros interna */
.toolbar-filtros-interna {
    background: #f8fafc;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}

.label-filtro {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.custom-input {
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
}

/* Botones */
.btn-excel-modern {
    background: #10b981;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.2s;
}

.btn-actualizar-blue {
    background: #334155;
    color: white;
    border: none;
    padding: 7px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
}

/* Tabla */
.table-card-container {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 16px 16px; /* Redondeado solo abajo */
    overflow: hidden;
}

.table-custom-resumen thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 15px;
}

.table-custom-resumen tbody td {
    padding: 15px;
}

/* Badges de Estado */
.badge-status-pill {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.st-activo { background: #dcfce7; color: #15803d; }
.st-pendiente { background: #fef9c3; color: #a16207; }
.st-cerrado { background: #f1f5f9; color: #475569; }

/* Etiquetas de Prioridad */
.priority-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
}
.p-critica { color: #ef4444; background: #fee2e2; }
.p-alta { color: #f97316; background: #ffedd5; }
.p-media { color: #3b82f6; background: #eff6ff; }
.p-baja { color: #64748b; background: #f1f5f9; }

/* Paginación */
.pagination-container-custom {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}
.btn-page {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    font-weight: 600;
    transition: 0.2s;
}
.btn-page.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/*Estilos para el mensaje que sale cuando una incidencia está cerrada (debajo de los filtros) */
.alerta-incidencia-cerrada {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #64748b; /* Gris oscuro para indicar cierre */
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.alerta-icono {
    width: 45px;
    height: 45px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.alerta-contenido {
    flex-grow: 1;
}

.alerta-titulo {
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.alerta-descripcion {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}

.alerta-fecha {
    font-size: 0.8rem;
    color: #94a3b8;
    background: white;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    white-space: nowrap;
}

/* Animación de aparición */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/*Estilos para la acción que sale en los detalles de las incidencias cuando está finalizada*/
.alerta-incidencia-cerrada {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-left: 6px solid #22c55e; /* Verde para indicar éxito/resolución */
    padding: 25px;
    border-radius: 14px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 25px 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.alerta-icono {
    width: 50px;
    height: 50px;
    background: #f0fdf4;
    color: #16a34a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.badge-resolucion {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.alerta-titulo {
    font-weight: 800;
    color: #0f172a;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.alerta-descripcion p {
    color: #334155;
    font-size: 1rem;
    line-height: 1.6;
}

.alerta-meta {
    text-align: right;
    flex-shrink: 0;
}

.fecha-badge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin-top: 5px;
}
/*Estilos para la parte de crear nuevo cliente */
/* CONTENEDOR ESPECÍFICO */
.card-formulario-container {
    max-width: 600px; /* Para que el formulario no sea gigante a lo ancho */
    margin: 0 auto;
}

.card-modern {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

/* CABECERA CON ICONO (Reutilizando tu estilo azul) */
.icon-box-blue {
    width: 50px;
    height: 50px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* INPUTS Y LABELS */
.form-group-custom {
    margin-bottom: 20px;
}

.form-group-custom label {
    display: block;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group-custom input {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group-custom input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-hint {
    display: block;
    color: #94a3b8;
    margin-top: 5px;
    font-size: 0.8rem;
}

/* BOTONES */
.btn-principal-blue {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%; /* Botón ancho en móviles, puedes quitarlo si prefieres */
}

.btn-principal-blue:hover {
    background: #1d4ed8;
}

.btn-cancelar {
    display: inline-block;
    text-align: center;
    width: 100%;
    margin-top: 15px;
    text-decoration: none;
    color: #64748b;
    font-size: 0.9rem;
}

.btn-cancelar:hover {
    color: #1e293b;
}
/* El contenedor que envuelve ASIDE y CONTENEDOR */
.layout {
    display: flex;
    width: 100%;
    min-height: 100vh; /* Ocupa toda la altura */
}

/* LA CLAVE: El área de contenido */
.contenedor {
    flex: 1;           /* ¡IMPORTANTE! Esto hace que use TODO el espacio a la derecha */
    display: flex;
    flex-direction: column;
    align-items: center;      /* Centra horizontalmente en su área */
    justify-content: center;   /* Centra verticalmente en su área */
    background-color: #f8fafc; 
    padding: 40px;
}

