/* Atomic Design - Átomos compartidos usando tokens de styles.css */

/* Botones base */
.atom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: var(--spacing-2) var(--spacing-3);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 1rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1.2;
}

.atom-btn-primary,
.btn.atom-btn-primary,
button.atom-btn-primary {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: var(--text-on-primary) !important;
    box-shadow: var(--shadow-sm);
}
.atom-btn-primary:hover,
.btn.atom-btn-primary:hover,
button.atom-btn-primary:hover {
    background: var(--accent-dark) !important;
    border-color: var(--accent-dark) !important;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.atom-btn-primary:active,
.btn.atom-btn-primary:active,
button.atom-btn-primary:active {
    transform: translateY(0);
}
.atom-btn:focus-visible {
    outline: 3px solid var(--primary-bg);
    outline-offset: 2px;
}
.atom-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.atom-btn-ghost {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: none;
}
.atom-btn-ghost:hover {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
    background: var(--primary-bg);
}

/* Inputs */
.atom-input {
    width: 100%;
    padding: var(--spacing-2);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: var(--bg-primary);
}
.atom-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-bg);
    outline: none;
}
.atom-input:hover {
    border-color: var(--gray-300);
}

/* Cards */
.atom-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-4);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.atom-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Badges */
.atom-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}
.atom-badge-primary { background: var(--primary-bg); color: var(--primary-dark); }
.atom-badge-accent { background: var(--accent-bg); color: var(--accent-dark); }

/* Alerts */
.atom-alert {
    border-radius: var(--radius-md);
    padding: var(--spacing-2);
    border: 1px solid var(--border-color);
    margin-bottom: var(--spacing-2);
}
.atom-alert-info { background: var(--primary-bg); color: var(--primary-dark); border-left: 4px solid var(--primary-color); }
.atom-alert-success { background: #ECFDF5; color: #065F46; border-left: 4px solid #10B981; }
.atom-alert-error { background: var(--accent-bg); color: var(--accent-dark); border-left: 4px solid var(--accent-color); }

/* Links */
.atom-link { color: var(--primary-color); text-decoration: none; font-weight: 500; }
.atom-link:hover { color: var(--accent-color); text-decoration: underline; }
