:root {
    --primary-color: #e63946;
    --primary-dark: #c1121f;
    --light-color: #ffffff;
    --dark-color: #1a1a1a;
    --gray-light: #f8f9fa;
    --gray-medium: #e9ecef;
    --gray-dark: #495057;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--gray-light);
    color: var(--dark-color);
    line-height: 1.6;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-header {
    background-color: var(--light-color);
    box-shadow: var(--shadow);
    padding: 0 2rem;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 10px;
}

.logo span {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-left: 2rem;
    cursor: pointer;
    display: none;
}

.user-profile {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-info {
    display: flex;
    flex-direction: column;
    margin-right: 1rem;
    text-align: right;
}

.user-name {
    font-weight: 600;
}

.user-role {
    font-size: 0.8rem;
    color: var(--gray-dark);
}

.user-avatar {
    font-size: 2rem;
    color: var(--primary-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--light-color);
    box-shadow: var(--shadow);
    border-radius: 4px;
    padding: 0.5rem 0;
    min-width: 200px;
    display: none;
    z-index: 1001;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background-color: var(--gray-medium);
    color: var(--primary-color);
}

.user-profile:hover .dropdown-menu {
    display: block;
}

.app-sidebar {
    background-color: var(--light-color);
    box-shadow: var(--shadow);
    width: 250px;
    position: fixed;
    top: 70px;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    transition: var(--transition);
    z-index: 999;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.sidebar-nav a:hover {
    background-color: var(--gray-medium);
    color: var(--primary-color);
}

.sidebar-nav a i {
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

.sidebar-nav .active > a {
    color: var(--primary-color);
    font-weight: 500;
    border-left: 3px solid var(--primary-color);
    background-color: rgba(230, 57, 70, 0.1);
}

.has-submenu > a {
    justify-content: space-between;
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.has-submenu.active .submenu {
    max-height: 500px;
}

.submenu a {
    padding-left: 3.5rem;
    font-size: 0.9rem;
    background-color: var(--gray-light);
}

.app-main {
    margin-left: 250px;
    margin-top: 70px;
    padding: 2rem;
    flex: 1;
    transition: var(--transition);
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.breadcrumbs i {
    margin: 0 0.5rem;
    font-size: 0.7rem;
}

.page-content {
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 2rem;
}

/* Formularios */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-medium);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.form-check-input {
    margin-right: 0.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Tablas */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-medium);
}

.table th {
    background-color: var(--gray-light);
    font-weight: 600;
}

.table tr:hover {
    background-color: var(--gray-light);
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

/* Alertas */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-left: 4px solid #28a745;
    color: #28a745;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
    color: #dc3545;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    color: #856404;
}

/* Tarjetas */
.card {
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-medium);
    background-color: var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

.card-body {
    padding: 1.5rem;
}

/* Login */
.login-container {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/political-bg.jpg') no-repeat center center;
    background-size: cover;
}

.login-box {
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 500px;
    margin: auto;
    padding: 2.5rem;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo img {
    height: 80px;
}

.login-logo h1 {
    color: var(--primary-color);
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .app-sidebar {
        transform: translateX(-100%);
    }
    
    .app-sidebar.active {
        transform: translateX(0);
    }
    
    .app-main {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .app-header {
        padding: 0 1rem;
    }
    
    .page-content {
        padding: 1.5rem;
    }
    
    .login-box {
        padding: 1.5rem;
        margin: 1.5rem;
    }
}















































/* Estilos adicionales para los nuevos componentes */

.info-group {
    margin-bottom: 1.5rem;
}

.info-group label {
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
}

.info-group p {
    padding: 0.5rem;
    background-color: var(--gray-light);
    border-radius: 4px;
    margin: 0;
}

.badge {
    padding: 0.35rem 0.65rem;
    border-radius: 50rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.bg-success {
    background-color: #28a745;
    color: white;
}

.bg-danger {
    background-color: #dc3545;
    color: white;
}

.input-group {
    display: flex;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
}

.page-item:first-child .page-link {
    margin-left: 0;
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.page-item:last-child .page-link {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.page-item.active .page-link {
    z-index: 1;
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: var(--primary-color);
    background-color: #fff;
    border: 1px solid #dee2e6;
}

.page-link:hover {
    color: var(--primary-dark);
    text-decoration: none;
    background-color: #e9ecef;
    border-color: #dee2e6;
}