* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 100vh;
}

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

.header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, .3);
}

.header p {
    font-size: 1.2em;
    opacity: .9;
}

/* Botones de navegación */
.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.nav-button {
    padding: 12px 24px;
    border: 2px solid white;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: .3s;
}

.nav-button:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

/* Formularios de autenticación */
.auth-form {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    margin: 0 auto;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: .3s;
}

.form-submit:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.form-toggle {
    text-align: center;
    margin-top: 15px;
    color: #555;
}

.form-toggle a {
    color: #667eea;
    cursor: pointer;
}

/* Mensajes de estado */
.status-message {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}

.error {
    background: #ffebee;
    color: #c62828;
}

.success {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Tarjetas de categorías y herramientas */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: .3s;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.category-card h3 {
    margin-bottom: 12px;
    font-size: 1.3em;
    color: #333;
}

.category-card p {
    color: #555;
    line-height: 1.5;
}

.category-card .count {
    margin-top: 10px;
    color: #667eea;
    font-weight: bold;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.tool-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .15);
    border-left: 4px solid #667eea;
    cursor: pointer;
    transition: .3s;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-left-color: #764ba2;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .25);
}

.tool-card h4 {
    margin-bottom: 8px;
    color: #333;
}

.tool-card .brief-desc {
    color: #666;
    margin-bottom: 10px;
}

.tool-card .platform {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
}

/* Vista detalle de herramienta */
.tool-detail {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.tool-detail h2 {
    margin-bottom: 20px;
    font-size: 2em;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.detail-section {
    margin-bottom: 20px;
}

.detail-section h3 {
    color: #667eea;
    margin-bottom: 8px;
}

.detail-section p {
    color: #555;
    line-height: 1.6;
}

.license-badge {
    background: #e8f4f8;
    color: #0066cc;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    display: inline-block;
}

.visit-link {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    margin-top: 10px;
    transition: .3s;
}

.visit-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}

/* Sistema de votación */
.rating-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.stars span {
    font-size: 1.5em;
    cursor: pointer;
    color: #ccc;
}

.stars span.active {
    color: gold;
}

.avg-rating {
    font-weight: bold;
    color: #333;
}

/* Panel de administración */
.admin-panel,
.user-panel {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.admin-panel h2,
.user-panel h2 {
    margin-bottom: 20px;
    color: #333;
}

.admin-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.admin-action-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: .3s;
}

.admin-action-btn:hover {
    opacity: 0.9;
}

/* Formularios de administración */
.admin-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row input,
.form-row select,
.form-row textarea {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-row textarea {
    min-height: 100px;
}

/* Listas de administración */
.admin-list {
    margin-top: 20px;
}

.admin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.admin-item:last-child {
    border-bottom: none;
}

.admin-item-actions {
    display: flex;
    gap: 10px;
}

.item-action-btn {
    padding: 5px 10px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.item-action-btn.delete {
    background: #f44336;
}

/* Estados pendientes de aprobación */
.pending-badge {
    background: #ff9800;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    margin-left: 10px;
}

.rejected-badge {
    background: #f44336;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    margin-left: 10px;
}

.loading {
    text-align: center;
    color: white;
    font-size: 1.2em;
    margin: 20px 0;
}