* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 28px;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    padding: 8px 15px;
    border-radius: 5px;
    background: rgba(255,255,255,0.2);
    transition: background 0.3s;
}

nav a:hover, nav a.active {
    background: rgba(255,255,255,0.3);
}

main {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

section {
    margin-bottom: 30px;
}

h2 {
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

input[type="file"], 
input[type="text"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border 0.3s;
}

input[type="file"]:focus,
input[type="text"]:focus,
textarea:focus,
select:focus {
    border-color: #667eea;
    outline: none;
}

textarea {
    resize: vertical;
}

small {
    display: block;
    margin-top: 5px;
    color: #666;
}

.btn-subir {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-subir:hover {
    transform: scale(1.05);
}

.btn-cancelar {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-left: 10px;
}

.filtros {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.filtros input,
.filtros select {
    flex: 1;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #f8f9fa;
}

th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

tr:hover {
    background: #f8f9fa;
}

.badge {
    background: #e9ecef;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: #495057;
}

.acciones {
    display: flex;
    gap: 10px;
}

.btn-descargar,
.btn-eliminar {
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-descargar:hover {
    background: #e3f2fd;
}

.btn-eliminar:hover {
    background: #ffebee;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.empty-state p {
    font-size: 18px;
    margin-bottom: 10px;
}

#mensaje {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

footer {
    text-align: center;
    margin-top: 30px;
    color: #6c757d;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    
    nav {
        margin-top: 15px;
    }
    
    nav a {
        display: inline-block;
        margin: 5px;
    }
    
    .filtros {
        flex-direction: column;
    }
    
    table {
        font-size: 14px;
    }
    
    td, th {
        padding: 8px;
    }
}
