* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-image: linear-gradient(to right top, #0066ff, #415afd, #604bfa, #7a38f3, #9112eb);    min-height: 100vh;
    color: #333;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-bottom: 25px;
}

.btn {
    display: inline-block;
    background: #1c71d8;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: #1a5fb4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-danger {
    background: #e01b24;
}

.btn-danger:hover {
    background: #c01920;
}

.btn-success {
    background: #2ec27e;
}

.btn-success:hover {
    background: #26a269;
}

.btn-warning {
    background: #e5a50a;
}

.btn-warning:hover {
    background: #c98600;
}

.btn-info {
    background: #1c71d8;
}

.btn-info:hover {
    background: #1a5fb4;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 2px solid #deddda;
    background: white;
    color: #333;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #1c71d8;
    box-shadow: 0 0 0 3px rgba(28, 113, 216, 0.2);
}

.message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.success {
    background: #d4f5d4;
    border: 1px solid #2ec27e;
    color: #26a269;
}

.error {
    background: #ffe5e5;
    border: 1px solid #e01b24;
    color: #c01920;
}

.info {
    background: #e5f0ff;
    border: 1px solid #1c71d8;
    color: #1a5fb4;
}

/* Checkboxes mejorados */
.checkbox-container {
    display: flex;
    align-items: center;
    margin: 10px 0;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #deddda;
    border-radius: 6px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s;
}

.checkbox-container input[type="checkbox"]:checked + .checkbox-custom {
    background: #1c71d8;
    border-color: #1c71d8;
}

.checkbox-container input[type="checkbox"]:checked + .checkbox-custom::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 16px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-label {
    font-size: 1rem;
    color: #333;
    font-weight: normal;
}

/* Tablas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background: #f8f8f8;
    font-weight: bold;
    color: #333;
}

tr:hover {
    background: #f5f5f5;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 25px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.close {
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .card {
        padding: 20px;
    }
    
    th, td {
        padding: 12px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}